/* PonPonKo website. Tokens mirror the Figma design system (Sanzo Wada 325). */
:root {
  --ochre-100: #FAF0D4; --ochre-300: #EFD27F; --ochre-500: #E2B540; --ochre-700: #A9831F;
  --red-100: #F8DCDE; --red-500: #DA525D; --red-700: #A8323D;
  --naples-50: #FEF9EA; --naples-100: #FDF2CF; --naples-300: #FBE6A0;
  --slate-50: #E7EEED; --slate-100: #C9D6D4; --slate-300: #7F9895; --slate-500: #3F5D59;
  --slate-700: #1E4440; --slate-900: #112F2C; --slate-950: #0A1D1B;

  --bg: var(--naples-50); --surface: #fff; --text: var(--slate-900); --text-2: var(--slate-500);
  --border: var(--slate-100); --accent: var(--ochre-500); --accent-strong: var(--ochre-700);

  --display: ui-rounded, "SF Pro Rounded", "Zen Maru Gothic", system-ui, -apple-system, sans-serif;
  --body: system-ui, -apple-system, "Inter", "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: var(--slate-950); --surface: var(--slate-900); --text: var(--naples-50);
          --text-2: var(--slate-300); --border: var(--slate-700); --accent-strong: var(--ochre-300); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
       gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--slate-900) 92%, transparent);
       backdrop-filter: blur(12px); color: var(--naples-50); }
.nav nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-size: 15px; }
.nav nav a { text-decoration: none; opacity: .85; }
.nav nav a:hover { opacity: 1; }
@media (max-width: 640px) { .nav nav { display: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* lockup-reversed.svg: generated lockup with the wordmark on the mark's
   optical centre and the dark-background ears (tools/brand/generate.mjs). */
.brand img { display: block; }
.brand-lockup { height: 38px; width: auto; }
.footer .brand-lockup { height: 30px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--naples-50); text-align: center;
        padding: 0 clamp(16px, 5vw, 64px) clamp(64px, 10vw, 120px);
        background: radial-gradient(ellipse at 50% 0%, var(--slate-700) 0%, var(--slate-900) 45%, var(--slate-950) 100%); }
.notch { display: inline-flex; align-items: center; gap: 0; background: #000; padding: 10px 22px 14px;
         border-radius: 0 0 26px 26px; margin-bottom: clamp(40px, 8vw, 88px); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.notch-gap { width: clamp(120px, 26vw, 240px); }
.eye { position: relative; width: 34px; height: 34px; border-radius: 50%;
       background: radial-gradient(circle at 42% 38%, #F6D873, var(--ochre-500) 70%);
       transition: transform .5s cubic-bezier(.3,1.4,.5,1); transform: scaleY(.08); }
.eye.awake { transform: scaleY(1); }
.eye.blink { transform: scaleY(.08); transition-duration: .09s; }
.pupil { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
         background: #050B0A; box-shadow: inset 4px 4px 0 -1px rgba(254,249,234,.0); }
.pupil::after { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--naples-50); }
.hero-copy { max-width: 760px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--ochre-300); margin: 0 0 14px; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--slate-100); margin: 0 auto 32px; max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fineprint { margin-top: 22px; font-size: 14px; color: var(--slate-300); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 12px;
          font-weight: 650; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.button.primary { background: var(--ochre-500); color: var(--slate-900); box-shadow: 0 8px 22px rgba(226,181,64,.25); }
.button.ghost { color: var(--naples-50); border: 1px solid rgba(254,249,234,.3); }
.button.wide { width: 100%; }
.button[aria-disabled="true"] { opacity: .65; cursor: default; transform: none; }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) clamp(16px, 5vw, 48px); }
.section > p { color: var(--text-2); max-width: 680px; }

.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.split p { color: var(--text-2); }
.eye-types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type { position: relative; display: flex; justify-content: space-around; align-items: center; height: 84px; background: #000; border-radius: 0 0 18px 18px; }
.type em { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-300); }
.type i { position: relative; display: block; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--ochre-500); overflow: hidden; }
.type b { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: #050B0A; transition: transform .08s linear; }
.type.classic b { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.type.classic b::after { content: ""; position: absolute; left: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--naples-50); }
.type.almond i { width: 38px; height: 20px; border-radius: 50%; }
.type.almond b { width: 6px; height: 18px; margin: -9px 0 0 -3px; border-radius: 3px; }
.type.button-eyes i { background: transparent; overflow: visible; }
.type.button-eyes b { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; background: var(--ochre-500); }
.type.button-eyes b::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--naples-50); }
.type.lantern i { background: color-mix(in srgb, var(--ochre-500) 22%, transparent); border: 4px solid var(--ochre-500); overflow: visible;
                  box-shadow: 0 0 0 7px color-mix(in srgb, var(--ochre-500) 16%, transparent); }
.type.lantern b { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--naples-50); }

.checks { list-style: none; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.checks li { padding: 18px 20px 18px 52px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; color: var(--text-2); }
.checks li strong { color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 18px; top: 17px; width: 22px; height: 22px; border-radius: 50%;
                     background: var(--slate-500); color: var(--naples-50); font-size: 13px; font-weight: 700; display: grid; place-items: center; }

.limits { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pricing { text-align: center; }
.pricing-intro { color: var(--text-2); margin: 0 auto; max-width: 560px; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 32px auto 0; }
.price-card { display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--border);
              border-radius: 22px; padding: 28px; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(10,29,27,.12); }
.plan-name { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--accent-strong); margin: 0 0 6px; }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 700; margin: 0; }
.price span { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.price-note { color: var(--text-2); margin: 6px 0 22px; flex: 1; }
.included { list-style: none; padding: 0; margin: 28px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--text-2); font-size: 15px; }
.included li::before { content: "✓ "; color: var(--accent-strong); font-weight: 700; }
.button.ghost-dark { color: var(--text); border: 1px solid var(--border); }
.fineprint-dark { margin-top: 22px; font-size: 14px; color: var(--text-2); }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin: 10px 0; max-width: 780px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; }
.faq details p { color: var(--text-2); margin: 0 0 16px; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
          padding: 32px clamp(16px, 5vw, 48px); background: var(--slate-900); color: var(--slate-300); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--naples-50); }
.footer p { margin: 0; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px clamp(16px, 5vw, 32px) 96px; }
.doc h1 { font-size: 2.4rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc p, .doc li { color: var(--text-2); }
.draft { background: var(--red-100); color: var(--red-700); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .eye, .button { transition: none; }
}

/* Download page */
.download-hero { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(48px, 8vw, 88px); }
.download-mark { filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); margin-bottom: 8px; }
.install-steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 760px; }
.install-steps li { counter-increment: step; position: relative; padding: 16px 20px 16px 60px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-2); }
.install-steps li strong { color: var(--text); }
.install-steps li::before { content: counter(step); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--slate-900); font-weight: 700; font-size: 14px; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; margin: 0 1px; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 6px; background: var(--surface); font: 600 .85em ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; color: var(--text); }
.checksum { background: var(--slate-900); color: var(--naples-50); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.sha { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; color: var(--text-2); }

/* How it works: big numbers, alternating sides */
.eyebrow-dark { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-strong); margin: 0 0 10px; }
.how-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: clamp(28px, 5vw, 56px); }
.how-step { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.how-step:nth-child(even) .how-text { order: 2; }
.how-text { position: relative; }
.how-num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 11vw, 7.5rem); line-height: .9;
  letter-spacing: -0.04em; color: var(--accent); margin-bottom: 8px; }
.how-step:nth-child(even) .how-num { color: var(--slate-500); }
.how-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.how-text p { color: var(--text-2); margin: 0; max-width: 440px; font-size: 1.05rem; }
.how-art { display: grid; place-items: center; gap: 14px; min-height: 220px; padding: 32px; border-radius: 24px;
  background: var(--slate-900); border: 1px solid var(--slate-700); }
.how-step:nth-child(even) .how-art { background: var(--surface); border-color: var(--border); }
.how-caption { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--slate-300); }
.how-step:nth-child(even) .how-caption { color: var(--text-2); }

/* The island, small */
.mini-island { display: flex; justify-content: space-between; align-items: center; width: 230px; height: 46px; padding: 0 18px;
  background: #000; border-radius: 0 0 18px 18px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.mini-island i { display: block; }
.mini-island .lid { width: 24px; height: 4px; border-radius: 3px; background: var(--ochre-500); opacity: .85; }
.mini-island .eye { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--ochre-500); overflow: hidden; transform: none; }
.mini-island .eye b { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -2px; border-radius: 50%; background: #050B0A; }
.mini-island .eye b::after { content: ""; position: absolute; left: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--naples-50); }
.mini-island.alert .eye { width: 29px; height: 29px; background: var(--red-500); box-shadow: 0 0 18px rgba(218,82,93,.6); }
.mini-island.alert .eye b { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.mini-island.alert .eye b::after { width: 3px; height: 3px; }

/* The phone, small */
.mini-phone { width: 200px; height: 150px; border-radius: 30px 30px 0 0; border: 6px solid var(--slate-900); border-bottom: 0;
  background: linear-gradient(160deg, var(--slate-700), var(--slate-950)); padding: 26px 12px 0; }
.mini-note { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(254,249,234,.92); color: var(--slate-900); }
.mini-app-icon { border-radius: 7px; flex: none; }
.mini-note div { display: grid; font-size: 12px; line-height: 1.3; }
.mini-note strong { font-size: 12px; }

@media (max-width: 720px) {
  .how-step { grid-template-columns: 1fr; }
  .how-step:nth-child(even) .how-text { order: 0; }
  .how-art { min-height: 160px; }
}
@media (prefers-color-scheme: dark) {
  .how-step:nth-child(even) .how-num { color: var(--naples-300); }
  .how-step:nth-child(even) .how-art { background: var(--slate-700); border-color: var(--slate-500); }
  .how-step:nth-child(even) .how-caption { color: var(--slate-100); }
}

/* Short pages (404, thanks, legal): keep the footer at the bottom of the window. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.center > img:first-child { margin-bottom: 20px; }
