/* haikudo.app — v0 (Concept B: sticky-phone scroll). Palette mirrors Haiku_FR/lib/theme/app_theme.dart. */
:root{
  --bg:#FEEEEE;--surface:#FFFFFF;--nav:#F8D8D8;--primary:#D4737A;--secondary:#E8A0A0;
  --text:#1E2B39;--muted:#7A8A9A;--accent:#F5C6C4;--heart:#D45050;--divider:#EDD0D0;
  --frame:#1E2B39;--mode:"light";color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
  --bg:#263545;--surface:#2D3E52;--nav:#1C2A38;--primary:#7A9AB5;--secondary:#5E7A96;
  --text:#FFFFFF;--muted:#8FA5B8;--accent:#374E64;--heart:#E06870;--divider:#374E64;
  --frame:#0F1822;--mode:"dark";color-scheme:dark;}}
:root[data-theme=dark]{
  --bg:#263545;--surface:#2D3E52;--nav:#1C2A38;--primary:#7A9AB5;--secondary:#5E7A96;
  --text:#FFFFFF;--muted:#8FA5B8;--accent:#374E64;--heart:#E06870;--divider:#374E64;
  --frame:#0F1822;--mode:"dark";color-scheme:dark;}

*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font:400 17px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;transition:background .4s,color .4s}
a{color:inherit}
.serif{font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif}
.it{font-style:italic;font-weight:400}
.wrap{max-width:1160px;margin:0 auto;padding:0 32px}

/* header */
header{position:fixed;inset:0 0 auto;z-index:10}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:76px}
.logo{display:flex;gap:10px;align-items:center;text-decoration:none;font-weight:600;letter-spacing:-.01em;font-size:19px}
.logo svg{width:28px;height:28px}.logo .m{fill:var(--primary)}
.pill{display:flex;gap:6px;align-items:center;padding:6px;border-radius:999px;background:color-mix(in srgb,var(--surface) 70%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--divider);font-size:14px}
.pill a{text-decoration:none;padding:8px 14px;border-radius:999px}
.pill a.primary{background:var(--primary);color:#fff}
.toggle{border:0;background:transparent;color:var(--text);width:34px;height:34px;border-radius:50%;cursor:pointer;display:grid;place-items:center}

/* hero */
.hero{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:48px;padding-top:76px}
.badge{display:inline-flex;gap:8px;align-items:center;font-size:13px;padding:6px 12px;border-radius:999px;background:var(--accent);color:var(--text)}
.badge i{width:7px;height:7px;border-radius:50%;background:var(--primary);display:inline-block}
.hero h1{font-size:clamp(42px,5.2vw,74px);line-height:1.02;letter-spacing:-.035em;font-weight:600;margin:24px 0}
.hero h1 em{font-style:italic;font-weight:400;color:var(--primary)}
.hero p{font-size:19px;color:var(--muted);max-width:30ch}
.hero .actions{display:flex;gap:12px;margin-top:36px;flex-wrap:wrap}
.btn{padding:14px 24px;border-radius:14px;text-decoration:none;font-size:15px;font-weight:500;border:1px solid var(--divider)}
.btn.solid{background:var(--text);color:var(--bg);border-color:var(--text)}

/* phone frame: .screen matches the 1080x2340 screenshots exactly, so nothing is cropped */
.phone{width:300px;padding:11px;border-radius:44px;background:var(--frame);position:relative;margin:0 auto;
  box-shadow:0 50px 100px -40px rgba(30,43,57,.55),0 0 0 1px rgba(255,255,255,.05) inset}
.phone::before{content:"";position:absolute;top:20px;left:50%;width:11px;height:11px;border-radius:50%;background:#0B1118;transform:translateX(-50%);z-index:3}
.screen{display:block;aspect-ratio:1080/2340;border-radius:34px;overflow:hidden;background:var(--bg)}
.screen picture{display:block;height:100%}
.screen img{display:block;width:100%;height:100%;object-fit:cover}

/* story */
.story{display:grid;grid-template-columns:1fr 1fr;gap:64px;position:relative}
.sticky{position:sticky;top:0;height:100vh;display:grid;place-items:center}
.stack{display:grid;width:300px}
.stack .screen{grid-area:1/1;opacity:0;transform:scale(.97);transition:opacity .6s,transform .6s}
.stack .screen.on{opacity:1;transform:none}
.steps{padding:20vh 0}
.step{min-height:80vh;display:flex;flex-direction:column;justify-content:center;opacity:.25;transition:opacity .5s}
.step.on{opacity:1}
.step .k{font-size:13px;letter-spacing:.2em;color:var(--primary);font-weight:600}
.step h2{font-size:clamp(32px,3.6vw,48px);letter-spacing:-.03em;line-height:1.08;margin:14px 0 16px;font-weight:600}
.step p{color:var(--muted);max-width:36ch}
.dots{position:absolute;left:-28px;top:50%;display:flex;flex-direction:column;gap:10px;transform:translateY(-50%)}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--divider);transition:all .3s}.dots i.on{background:var(--primary);height:20px;border-radius:3px}

/* strip */
.strip{padding:120px 0 40px}
.strip h2{text-align:center;font-size:13px;letter-spacing:.3em;color:var(--muted);font-weight:500;margin-bottom:48px}
.row{display:flex;gap:28px;overflow-x:auto;padding:20px 32px 60px;scroll-snap-type:x mandatory;justify-content:safe center}
.row figure{flex:none;scroll-snap-align:center;margin:0;text-align:center}
.row .phone{width:220px;padding:9px;border-radius:34px}
.row .phone::before{top:16px;width:8px;height:8px}
.row .screen{border-radius:26px}
.row figcaption{margin-top:16px;font-size:14px;color:var(--muted)}

/* closing band */
.close{margin:80px auto 0;max-width:1160px;padding:0 32px}
.band{background:var(--nav);border-radius:36px;padding:96px 48px;text-align:center}
.band h2{font-size:clamp(36px,4.6vw,60px);letter-spacing:-.03em;font-weight:600;line-height:1.05}
.band p{color:var(--muted);margin:18px auto 34px;max-width:42ch}
.play{display:inline-flex;align-items:center;gap:12px;background:var(--text);color:var(--bg);padding:12px 22px;border-radius:14px;text-decoration:none;text-align:left;line-height:1.2}
.play .icon{font-size:22px}
.play small{display:block;font-size:10px;opacity:.7;letter-spacing:.06em;text-transform:uppercase}
.play b{font-size:17px;font-weight:600}
.signup{display:flex;gap:8px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.signup input{width:270px;padding:13px 16px;border-radius:14px;border:1px solid var(--divider);background:var(--surface);color:var(--text);font:inherit;font-size:14px}
.signup button{padding:13px 20px;border-radius:14px;border:0;background:var(--primary);color:#fff;font:inherit;font-size:14px;cursor:pointer}
.signup-note{font-size:13px;color:var(--muted);margin-top:14px;min-height:1.6em}

/* simple pages (privacy, delete-account, 404) */
.page{min-height:calc(100vh - 120px);display:grid;place-content:center;text-align:center;padding:140px 32px 80px}
.page .k{font-size:13px;letter-spacing:.2em;color:var(--primary);font-weight:600}
.page h1{font-size:clamp(36px,4.6vw,56px);letter-spacing:-.03em;font-weight:600;line-height:1.08;margin:14px 0 18px}
.page p{color:var(--muted);max-width:46ch;margin:0 auto 12px}
.page .haiku{font-size:22px;line-height:1.6;color:var(--text);margin:8px auto 28px}
.todo{font-family:ui-monospace,monospace;font-size:.9em;color:var(--primary)}
.page .btn{display:inline-block;justify-self:center;margin-top:20px}

footer{max-width:1160px;margin:0 auto;padding:48px 32px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;color:var(--muted);font-size:13px}
footer nav{display:flex;gap:22px}footer a{text-decoration:none}footer a:hover{color:var(--text)}

@media (max-width:860px){.hero,.story{grid-template-columns:1fr}.hero{text-align:center;padding-top:120px}.hero p{margin:0 auto}.hero .actions{justify-content:center}
  .sticky{order:-1;height:auto;top:64px;z-index:2;padding:12px 0}.stack{width:170px;padding:7px;border-radius:30px}.stack .screen{border-radius:24px}.stack::before{top:13px;width:7px;height:7px}.steps{padding:0}.step{min-height:60vh;text-align:center}.step p{margin:0 auto}
  .dots,.pill a:not(.primary),.hero>.phone{display:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
