/* Nufo landing page. Tokens mirror the app (Theme.kt): Nufo green, Inter, hairline cards. */
:root {
  --bg: #F8FAF8; --surface: #FFFFFF; --ink: #111813; --ink-2: #5B6660; --hairline: #E3E8E4;
  --green: #2E7D32; --green-deep: #1B5E20; --green-soft: #E8F3E9; --on-green: #FFFFFF;
  --grade-a: #1B5E20; --grade-b: #4CAF50; --grade-c: #FFC107; --grade-d: #FF9800; --grade-e: #F44336;
  --hero-from: #000000; --hero-to: #666666;
  --shadow: 0 1px 2px rgba(17, 24, 19, .06), 0 16px 40px -16px rgba(17, 24, 19, .18);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E130F; --surface: #18201A; --ink: #E9EEEA; --ink-2: #9AA59D; --hairline: #263028;
    --green: #4CAF50; --green-deep: #81C784; --green-soft: #1C2A1E; --on-green: #0E130F;
    --hero-from: #FFFFFF; --hero-to: #9B9B9B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E130F; --surface: #18201A; --ink: #E9EEEA; --ink-2: #9AA59D; --hairline: #263028;
  --green: #4CAF50; --green-deep: #81C784; --green-soft: #1C2A1E; --on-green: #0E130F;
  --hero-from: #FFFFFF; --hero-to: #9B9B9B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.wrap { max-width: 1152px; margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 16px; top: -64px; background: var(--green); color: var(--on-green); padding: 8px 12px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 8px; }

/* ---------- Nav: floating pill ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 24px); z-index: 50;
  margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 24px; border-radius: 9999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid var(--hairline); box-shadow: var(--shadow);
}
.nav .brand { display: flex; align-items: center; text-decoration: none; }
.nav .brand svg { height: 28px; width: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: 9999px; text-decoration: none;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav ul a:hover { color: var(--ink); background: var(--green-soft); }
.nav ul a[aria-current="true"] { color: var(--ink); background: var(--green-soft); }
.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: 9999px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 16px; line-height: 24px; font-weight: 600;
  background: var(--green); color: var(--on-green);
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--green) 70%, transparent);
}
.btn:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; line-height: 20px; }
.link { font-weight: 600; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link svg { transition: transform 300ms var(--ease); }
.link:hover svg { transform: translateY(2px); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--hairline); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2);
}
.gr { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding-inline: 4px; border-radius: 9999px; background: var(--green); color: var(--on-green); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; }
.section { padding-block: 96px; }
.section-head { max-width: 680px; display: grid; gap: 16px; margin-bottom: 48px; }
.section-head h2 { font-size: 36px; line-height: 40px; }
.section-head p { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; }

/* ---------- iPhone mockup ---------- */
.iphone {
  zoom: var(--z, 1);
  position: relative; width: 340px; height: 700px; border-radius: 56px; background: #1C1C1E; padding: 8px; flex: none;
  box-shadow: inset 0 0 2px 2px #3A3A3C, inset 0 0 0 1px #000, 0 2px 6px rgba(0,0,0,.18),
    0 30px 60px -12px rgba(20, 50, 25, .30), 0 60px 100px -20px rgba(20, 50, 25, .26);
}
.iphone::before, .iphone::after { content: ""; position: absolute; background: #2C2C2E; border-radius: 3px; }
.iphone::before { left: -2.5px; top: 150px; width: 3px; height: 32px; box-shadow: 0 60px 0 0 #2C2C2E, 0 105px 0 0 #2C2C2E; }
.iphone::after { right: -2.5px; top: 210px; width: 3px; height: 88px; }
.iphone .screen { position: relative; width: 100%; height: 100%; border-radius: 48px; overflow: hidden; background: #F8FAF8; isolation: isolate; }
.iphone .screen.dark { background: #0E130F; }
.iphone .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 500ms var(--ease-out); }
.iphone .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 100px; height: 30px; background: #000; border-radius: 20px; z-index: 3; }
.iphone .island::after { content: ""; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #1E2A3A 0%, #0A0F16 55%, #000 100%); }
/* Status bar: SF-style time, 4 bar cellular, 3 arc wifi, battery with level and cap. */
.statusbar { position: absolute; inset: 0 0 auto 0; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 34px; z-index: 2; color: #0B0B0C; font-family: -apple-system, "SF Pro Text", "Inter", sans-serif; }
.screen.dark .statusbar { color: #FFFFFF; }
.statusbar time { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.statusbar .icons { display: flex; align-items: center; gap: 6px; }
.statusbar svg { display: block; fill: currentColor; }
.iphone .home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 112px; height: 4px; border-radius: 4px; background: #0B0B0C; opacity: .85; z-index: 2; }
.screen.dark .home { background: #FFFFFF; opacity: .7; }
.iphone .glare { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%); }

/* ---------- Smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 64px 48px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 20px; }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer .fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.footer .brandline { display: grid; gap: 12px; max-width: 320px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.footer .sig { flex: none; width: 26px; height: 28px; align-self: center; background: var(--green); -webkit-mask: url(signature.png) center / contain no-repeat; mask: url(signature.png) center / contain no-repeat; opacity: .55; transition: opacity .2s cubic-bezier(.23,1,.32,1), transform .2s cubic-bezier(.23,1,.32,1); }
.footer .sig:hover, .footer .sig:focus-visible { opacity: 1; transform: rotate(-6deg) scale(1.08); }
.footer .brandline svg { height: 36px; width: auto; }

/* ---------- Simple document pages (privacy, 404) ---------- */
.doc { max-width: 680px; margin-inline: auto; padding: 160px var(--gutter) 96px; display: grid; gap: 16px; }
.doc h1 { font-size: 36px; line-height: 40px; }
.doc h2 { font-size: 20px; line-height: 28px; margin-top: 24px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 24px; }
.doc ul { display: grid; gap: 8px; padding-left: 24px; }

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .section { padding-block: 64px; }
  .section-head h2 { font-size: 30px; line-height: 36px; }
  .nav { gap: 12px; padding-left: 16px; }
  .nav ul, .nav .btn { display: none; }
  .burger { display: grid; place-items: center; position: relative; width: 48px; height: 48px; border: 0; border-radius: 9999px; background: transparent; color: var(--ink); cursor: pointer; }
  .burger i { position: absolute; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 500ms var(--ease); }
  .burger i:first-child { transform: translateY(-4px); }
  .burger i:last-child { transform: translateY(4px); }
  .menu-open .burger i:first-child { transform: rotate(45deg); }
  .menu-open .burger i:last-child { transform: rotate(-45deg); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .brandline { grid-column: 1 / -1; }
}
/* Mobile menu overlay */
.menu { position: fixed; inset: 0; z-index: 40; display: grid; align-content: center; gap: 8px; padding: 96px 32px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease); }
.menu a { font-size: 30px; line-height: 36px; font-weight: 600; text-decoration: none; padding-block: 8px; opacity: 0; transform: translateY(48px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.menu-open .menu { opacity: 1; pointer-events: auto; }
.menu-open .menu a { opacity: 1; transform: none; }
.menu a:nth-child(2) { transition-delay: 50ms; } .menu a:nth-child(3) { transition-delay: 100ms; } .menu a:nth-child(4) { transition-delay: 150ms; }