/* Miotownik — landing styles. Warm "Stud-Book Editorial" identity.
   Hard-rules pass: full-bleed atmospheric hero, brand-first, no hero cards,
   one job per section, intentional motion. */
:root{
  --canvas:#EFE7D6; --surface:#FDFAF3; --surface-alt:#F5EEDE; --sunken:#E4D9C8;
  --ink:#2B2418; --ink-soft:#5B5142; --ink-faint:#8C8270;
  --pine:#1C4837; --pine-soft:#E8F0E6; --pine-deep:#143528;
  --ember:#BC5B3C; --ember-bg:#F3E6DC;
  --line:#DBCFB6; --line-strong:#C2B392; --ok:#3B7A4E;
  --shadow-1:0 6px 18px rgba(61,42,15,.10);
  --shadow-2:0 24px 60px rgba(31,42,28,.28);
  --radius:18px; --radius-sm:12px; --maxw:1080px;
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
  --sans:'Hanken Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans); color:var(--ink); background:var(--canvas);
  line-height:1.6; -webkit-font-smoothing:antialiased; font-size:17px; overflow-x:hidden}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px}
a{color:var(--pine); text-decoration:none}
a:hover{text-decoration:underline}
/* a11y: visible keyboard focus + skip link */
a:focus-visible,.btn:focus-visible,button:focus-visible{outline:3px solid var(--pine);
  outline-offset:3px; border-radius:6px}
.skip{position:absolute; left:8px; top:-48px; z-index:200; background:var(--pine);
  color:#fff; font-weight:800; padding:10px 16px; border-radius:0 0 10px 10px;
  transition:top .15s}
.skip:focus{top:0; text-decoration:none}
.serif{font-family:var(--serif)}
.italic{font-family:var(--serif); font-style:italic; color:var(--pine)}
.kicker{font-size:.72rem; letter-spacing:1.8px; text-transform:uppercase;
  font-weight:800; color:var(--ember)}

/* Buttons + CTA */
.cta-row{display:flex; gap:14px; align-items:center; justify-content:center; flex-wrap:wrap}
@media(max-width:480px){.hero-cta.cta-row{flex-direction:column; align-items:stretch}
  .hero-cta .btn,.hero-cta .store-badge{text-align:center; justify-content:center; width:100%}}
.btn{display:inline-flex; align-items:center; gap:8px; font-family:var(--sans);
  font-weight:800; font-size:.98rem; padding:14px 24px; border-radius:var(--radius-sm);
  border:1px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s}
.btn:hover{text-decoration:none; transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.985)}
.btn-primary,.btn-notify{background:var(--pine); color:var(--surface);
  border-top:1px solid rgba(255,255,255,.18); box-shadow:var(--shadow-1)}
.btn-notify:hover{box-shadow:0 12px 26px rgba(20,53,40,.30)}
.btn-ghost{background:rgba(253,250,243,.6); color:var(--pine); border:1px solid var(--line); backdrop-filter:blur(4px)}
/* App Store: non-interactive "coming soon" status chip, NOT a button (no false hover) */
.store-badge{display:inline-flex; align-items:center; gap:9px; background:var(--ink); color:#fff;
  padding:11px 18px; border-radius:var(--radius-sm); cursor:default; user-select:none; box-shadow:var(--shadow-1)}
.store-badge .soon{font-size:.6rem; letter-spacing:1px; font-weight:700; text-transform:uppercase;
  background:rgba(255,255,255,.18); padding:3px 8px; border-radius:999px}
.store-badge b{font-size:1.02rem; font-weight:800; letter-spacing:-.2px}

/* ============ HERO — one full-bleed atmospheric composition ============ */
.hero{position:relative; display:flex; flex-direction:column;
  align-items:center; text-align:center; overflow:hidden; padding:0 24px 0}
.hero-bg{position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(125% 85% at 50% -8%, var(--pine-soft) 0%, rgba(232,240,230,0) 52%),
    radial-gradient(90% 60% at 88% 18%, rgba(188,91,60,.10) 0%, transparent 50%),
    linear-gradient(180deg, #F7F1E4 0%, var(--canvas) 46%, #E7DCC8 100%);}
.grain{position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.55; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");}

.hero-nav{position:absolute; top:0; left:0; right:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--maxw); margin:0 auto; padding:20px 24px; width:100%}
.hero-nav .n-brand{display:flex; align-items:center; gap:8px; font-family:var(--serif);
  font-weight:700; font-size:1.05rem; color:var(--ink); opacity:.78}
.hero-nav .n-brand img{width:26px;height:26px;border-radius:7px}
.hero-nav a.n-link{color:var(--ink-soft); font-weight:700; font-size:.92rem}

.hero-content{margin-top:clamp(72px,9vh,108px); max-width:600px; display:flex;
  flex-direction:column; align-items:center; gap:14px; z-index:2; flex:0 0 auto}
/* editorial eyebrow — type carries the hero, this just sets the key */
.hero-eyebrow{display:inline-flex; align-items:center; gap:11px; font-size:.74rem; font-weight:800;
  letter-spacing:2.4px; text-transform:uppercase; color:var(--ember)}
.hero-eyebrow::before{content:''; width:26px; height:2px; background:var(--ember); opacity:.55; border-radius:2px}
/* oversized Fraunces display — the hero's main visual */
.hero-headline{font-family:var(--serif); font-weight:600; font-size:clamp(2.5rem,7vw,4.3rem);
  letter-spacing:-.022em; color:var(--ink); max-width:16ch; line-height:.98; text-wrap:balance}
.hero-headline .italic{font-weight:600}
.hero-sub{font-size:1.08rem; line-height:1.5; color:var(--ink-soft); max-width:44ch}
.hero-cta{margin-top:10px}
/* concrete trust micro-badges */
.hero-trust{list-style:none; display:flex; gap:8px 18px; flex-wrap:wrap; justify-content:center;
  margin-top:6px; padding:0}
.hero-trust li{display:flex; align-items:center; gap:7px; font-size:.85rem; font-weight:600; color:var(--ink-soft)}
@media(max-width:480px){.hero-trust{flex-direction:column; align-items:center; gap:7px}}
.hero-trust li::before{content:''; width:7px; height:7px; border-radius:50%; background:var(--ok); flex:0 0 auto}

/* product scene — phone + glow + floating app callouts (not a flat screenshot) */
.hero-stage{position:relative; margin-top:32px; flex:0 0 auto; display:flex; justify-content:center; z-index:1}
.hero-glow{position:absolute; inset:2% -14% 6% -14%; z-index:0; pointer-events:none;
  background:
    radial-gradient(58% 48% at 50% 42%, rgba(188,91,60,.24), transparent 70%),
    radial-gradient(52% 58% at 64% 64%, rgba(28,72,55,.20), transparent 72%);
  filter:blur(36px)}
.hero-device{position:relative; margin-bottom:-46px; width:min(316px,62vw); flex:0 0 auto;
  border-radius:38px; padding:11px; background:var(--ink); z-index:1;
  box-shadow:0 38px 60px -26px rgba(20,40,30,.55), 0 10px 24px -12px rgba(20,40,30,.40);
  opacity:0; translate:0 22px;
  animation:riseT .7s cubic-bezier(.2,.7,.2,1) .4s forwards, floatT 8s ease-in-out 1.5s infinite}
.hero-device img{width:100%; height:auto; display:block; border-radius:28px}
/* floating callout pills (desktop only — would crowd mobile) */
.hpill{display:none}
@keyframes pillIn{from{opacity:0; translate:0 12px} to{opacity:1; translate:0 0}}
@media(max-width:560px){
  .hero-content{margin-top:68px; gap:12px}
  .hero-stage{margin-top:22px}
  /* crop device on mobile — show top 55% of the phone */
  .hero-device{width:70vw; margin-bottom:0; overflow:hidden; border-radius:32px}
  .hero-device img{height:95vw; object-fit:cover; object-position:top; border-radius:22px}
}

/* Desktop: two-column hero — oversized type left, tilted product scene right */
@media(min-width:860px){
  .hero{flex-direction:row; align-items:center; justify-content:center; text-align:left;
    gap:clamp(36px,5vw,80px); max-width:var(--maxw); margin:0 auto; padding:96px 24px 0; min-height:100svh}
  .hero-content{margin-top:0; align-items:flex-start; text-align:left; max-width:540px; flex:1 1 0}
  .hero-content .cta-row{justify-content:flex-start}
  .hero-trust{justify-content:flex-start}
  .hero-headline{max-width:14ch}
  .hero-sub{max-width:42ch}
  .hero-stage{margin:0; align-self:center; perspective:1700px}
  .hero-device{margin:0; width:min(322px,32vw);
    transform:rotateY(-14deg) rotateX(3deg) rotateZ(1.2deg); transform-origin:center}
  .hpill{display:inline-flex; align-items:center; gap:8px; position:absolute; z-index:3;
    background:var(--surface); border:1px solid var(--line); color:var(--ink);
    font-size:.82rem; font-weight:700; padding:9px 14px; border-radius:999px; white-space:nowrap;
    box-shadow:0 14px 28px -12px rgba(31,42,28,.34); opacity:0;
    animation:pillIn .6s cubic-bezier(.2,.7,.2,1) forwards}
  .hpill::before{content:''; width:9px; height:9px; border-radius:50%; background:var(--ember); flex:0 0 auto}
  .hpill-a{top:13%; left:-52px; animation-delay:1.0s}
  .hpill-b{top:45%; right:-30px; animation-delay:1.2s}
  .hpill-b::before{background:var(--pine)}
  .hpill-c{bottom:15%; left:-30px; animation-delay:1.4s}
  .hpill-c::before{background:var(--ok)}
}

/* ============ MOTION ============ */
@keyframes floatT{0%,100%{translate:0 0}50%{translate:0 -11px}}
@keyframes riseT{to{opacity:1; translate:0 0}}
.up{opacity:0; transform:translateY(20px); animation:rise .6s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes rise{to{opacity:1; transform:none}}
.d1{animation-delay:.04s}.d2{animation-delay:.12s}.d3{animation-delay:.20s}
.d4{animation-delay:.30s}.d5{animation-delay:.40s}
.reveal{opacity:0; transform:translateY(24px);
  transition:opacity .6s ease var(--rd,0ms), transform .6s cubic-bezier(.2,.7,.2,1) var(--rd,0ms)}
.reveal.in{opacity:1; transform:none}
/* step numeral pops in as each step reveals */
.step .n{transform:scale(.86); opacity:.3;
  transition:transform .5s cubic-bezier(.2,.8,.2,1) var(--rd,0ms), opacity .5s ease var(--rd,0ms)}
.reveal.in .n{transform:scale(1); opacity:1}
@media(prefers-reduced-motion:reduce){
  .up,.reveal,.reveal .n,.hero-device,.hpill{animation:none!important; transition:none!important;
    opacity:1!important; transform:none!important; translate:0!important}
  .hero-device{transform:none!important}}

/* ============ SECTIONS — one job each, no cards ============ */
section{padding:88px 0}
@media(max-width:560px){section{padding:60px 0} .section-head{margin-bottom:36px}}
.section-head{text-align:center; max-width:44ch; margin:0 auto 48px}
.section-head h2{font-family:var(--serif); font-weight:900; font-size:clamp(2rem,5vw,2.6rem);
  letter-spacing:-.6px; margin:10px 0}
.section-head p{color:var(--ink-soft)}

/* Proof strip — concrete capability anchor between hero and features */
.proof{padding:44px 0; background:var(--surface-alt); border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)}
.proof-grid{list-style:none; display:grid; grid-template-columns:repeat(4,1fr); gap:24px 32px;
  text-align:center; margin:0; padding:0}
.proof-grid li{display:flex; flex-direction:column; gap:6px; align-items:center;
  border-left:1px solid var(--line); padding:0 12px}
.proof-grid li:first-child{border-left:0}
.proof-grid b{font-family:var(--serif); font-weight:700; font-size:1.7rem; color:var(--pine);
  line-height:1; letter-spacing:-.4px}
.proof-grid span{font-size:.86rem; color:var(--ink-soft); line-height:1.35; max-width:22ch}
@media(max-width:680px){.proof-grid{grid-template-columns:1fr 1fr; gap:24px 16px}
  .proof-grid li:nth-child(odd){border-left:0}}
@media(max-width:560px){.proof{padding:32px 0}}

/* Features — clean editorial grid, NOT cards (no border/shadow/bg) */
.features{display:grid; grid-template-columns:repeat(3,1fr); gap:56px 40px}
@media(max-width:820px){.features{grid-template-columns:1fr 1fr; gap:48px 32px}}
@media(max-width:540px){.features{grid-template-columns:1fr; gap:32px}}
.feat{padding-top:18px; border-top:2px solid var(--line-strong);
  transition:border-color .2s ease, transform .2s ease}
.feat:hover{border-top-color:var(--pine); transform:translateY(-2px)}
.feat.accent{border-top-color:var(--pine)}
.feat h3{font-family:var(--serif); font-size:1.3rem; font-weight:700; margin-bottom:10px; color:var(--ink)}
.feat p{color:var(--ink-soft); font-size:.99rem}

/* How it works — numbered sequence, connected, no cards */
#jak{border-top:1px solid var(--line-strong)}
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:40px; position:relative}
.steps::before{content:''; position:absolute; top:28px; left:17%; right:17%; height:2px;
  background:var(--line-strong); z-index:0}
@media(max-width:680px){.steps{grid-template-columns:1fr; gap:28px} .steps::before{display:none}}
.step{position:relative; z-index:1; text-align:center}
.step .n{display:inline-block; font-family:var(--serif); font-weight:900; font-size:3.1rem;
  color:var(--ember); line-height:1; margin-bottom:14px; padding:0 14px; background:#F1E7CF}
.step h3{font-family:var(--serif); font-size:1.25rem; margin:0 0 7px}
.step p{color:var(--ink-soft); font-size:.99rem; max-width:30ch; margin-inline:auto}

/* Privacy band — full-bleed colored plane, one job */
.band{background:linear-gradient(160deg,var(--pine) 0%, var(--pine-deep) 100%); color:#EAF0E9}
.band .wrap{display:grid; grid-template-columns:1.25fr .75fr; gap:40px; align-items:center; padding:76px 24px}
.band h2{font-family:var(--serif); color:#fff; font-size:clamp(1.9rem,4.6vw,2.4rem); font-weight:900; letter-spacing:-.5px; margin-bottom:14px}
.band p{opacity:.94; line-height:1.5}
.band ul{list-style:none; margin-top:20px; display:grid; gap:11px}
.band li{display:flex; gap:11px; align-items:flex-start; line-height:1.5}
.band li::before{content:'✓'; color:#A9D6B6; font-weight:800}
.band-device{justify-self:center; width:min(330px,78vw); border-radius:38px; padding:10px;
  background:#0E211A; border:1px solid rgba(169,214,182,.22);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5)}
.band-device img{width:100%; height:auto; display:block; border-radius:28px}
@media(max-width:760px){.band .wrap{grid-template-columns:1fr; text-align:left; padding:52px 24px}
  .band-device{margin-top:24px; width:min(260px,68vw)}}
@media(max-width:560px){.band .wrap{padding:48px 24px}
  .band-device{display:none}}

/* Final CTA — one job, atmospheric close */
.final{text-align:center; position:relative; overflow:hidden; border-top:1px solid var(--line-strong);
  background:
    radial-gradient(82% 72% at 50% -4%, var(--pine-soft) 0%, rgba(232,240,230,0) 58%),
    radial-gradient(70% 60% at 50% 118%, rgba(188,91,60,.12) 0%, transparent 55%),
    linear-gradient(180deg,#F3ECDB 0%, #E7DCC8 100%)}
.final .wrap{position:relative; z-index:1}
.final h2{font-family:var(--serif); font-size:clamp(2rem,5.5vw,2.8rem); font-weight:900; letter-spacing:-.6px; margin-bottom:10px; max-width:18ch; margin-inline:auto}
.final p{color:var(--ink-soft); margin-bottom:24px}
.badge-soon{display:inline-block; background:var(--ember-bg); color:#9C4326;
  font-weight:800; font-size:.72rem; letter-spacing:1px; text-transform:uppercase;
  padding:6px 13px; border-radius:999px; border:1px solid rgba(156,67,38,.30)}

/* Footer */
footer{border-top:2px solid var(--line-strong); padding:40px 0; color:var(--ink-soft); font-size:.92rem; background:#E3D7C0}
footer .wrap{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap}
footer .brand{display:flex; align-items:center; gap:9px; font-family:var(--serif); font-weight:700; font-size:1.1rem; color:var(--ink)}
footer .brand img{width:28px;height:28px;border-radius:8px}
footer a{color:var(--ink-soft); font-weight:600; transition:color .15s ease}
footer a:hover{color:var(--pine)}
footer .fnav{display:flex; gap:24px}
@media(max-width:560px){
  footer .wrap{flex-direction:column; align-items:flex-start; gap:20px}
  footer .fnav{flex-wrap:wrap; gap:16px 20px}
}

/* ============ Doc pages (privacy / support / terms) ============ */
header.nav{position:sticky; top:0; z-index:20; background:rgba(239,231,214,.86);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line)}
.nav .wrap{display:flex; align-items:center; justify-content:space-between; height:64px}
.nav .brand{display:flex; align-items:center; gap:10px; font-family:var(--serif); font-weight:700; font-size:1.3rem; color:var(--ink)}
.nav .brand img{width:34px; height:34px; border-radius:9px}
.nav-links{display:flex; gap:22px; align-items:center; font-size:.95rem}
.nav-links a{color:var(--ink-soft); font-weight:600}
.doc{max-width:760px; margin:0 auto; padding:48px 24px 72px}
.doc h1{font-family:var(--serif); font-weight:900; font-size:2.4rem; letter-spacing:-.5px; margin-bottom:6px}
.doc .updated{color:var(--ink-soft); font-size:.9rem; margin-bottom:28px}
.doc h2{font-family:var(--serif); font-size:1.4rem; margin:30px 0 8px}
.doc h3{font-size:1.05rem; margin:22px 0 6px}
.doc p,.doc li{color:var(--ink-soft); margin-bottom:10px}
.doc ul{padding-left:22px}
.doc .lead{font-size:1.12rem; color:var(--ink); background:var(--surface);
  border:1.5px solid var(--line); border-left:4px solid var(--pine);
  border-radius:var(--radius-sm); padding:18px 20px; margin-bottom:26px}
.doc .back{display:inline-block; margin-bottom:24px; font-weight:700}
