/* ============================================================
   Storyn — marketing page styles
   Brand: deep navy + warm orange on cream. Literary serif + clean grotesk.
   ============================================================ */

:root {
  /* color */
  --cream:      #f7f3ec;
  --cream-2:    #efe8dc;
  --cream-3:    #e7dfd0;
  --paper:      #fffdf9;
  --navy:       #1a2336;
  --navy-2:     #232e47;
  --navy-soft:  #3a4358;
  --orange:     #e0772b;
  --orange-2:   #ca6520;
  --orange-soft:#f3b173;
  --ink:        #1a2336;
  --muted:      #62697a;
  --line:       rgba(26,35,54,0.12);

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-2);
  font-weight: 500;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--orange);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.3vw, 50px); line-height: 1.06; }
h3 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.18; }
p  { text-wrap: pretty; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: auto; height: 36px; display: block; }
.brand-name { font-family: var(--serif); font-size: 31px; font-weight: 600; color: var(--navy); letter-spacing: -0.015em; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--navy-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--orange-2); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* language toggle */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.lang button {
  border: 0; background: none; cursor: pointer;
  padding: 5px 11px; border-radius: 999px;
  color: var(--muted); letter-spacing: 0.04em;
  font-family: inherit; font-size: inherit;
  transition: color .2s;
}
.lang button.on { background: var(--navy); color: #fff; }

/* buttons */
.btn-store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--navy); color: #fff;
  padding: 11px 19px 11px 17px; border-radius: 14px;
  border: 0; cursor: pointer;
  transition: transform .18s ease, background .2s;
}
.btn-store:hover { transform: translateY(-2px); background: var(--navy-2); }
.btn-store svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.btn-store > span { display:flex; flex-direction:column; align-items:flex-start; }
.btn-store .s1 { font-size: 10px; letter-spacing: .03em; opacity: .8; line-height:1; margin-bottom:3px; white-space:nowrap; }
.btn-store .s2 { font-size: 18px; font-weight: 600; line-height:1; letter-spacing: -0.01em; white-space:nowrap; }
.btn-store.sm { padding: 9px 15px 9px 13px; border-radius: 11px; }
.btn-store.sm svg { width: 19px; height: 19px; }
.btn-store.sm .s2 { font-size: 14px; }
.btn-store.sm .s1 { font-size: 8px; }

.btn-store.lg { padding: 15px 28px 15px 24px; border-radius: 17px; }
.btn-store.lg svg { width: 30px; height: 30px; }
.btn-store.lg .s2 { font-size: 22px; }
.btn-store.lg .s1 { font-size: 11px; }
.btn-store.invert { background: var(--orange); }
.btn-store.invert:hover { background: var(--orange-2); }

/* ---------- soundwave motif ---------- */
.wave { display: inline-flex; align-items: center; gap: 5px; height: 40px; }
.wave span {
  width: 5px; border-radius: 999px; background: var(--orange);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ transform: scaleY(.45);} 50%{ transform: scaleY(1);} }
@media (prefers-reduced-motion: reduce){ .wave span{ animation:none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--orange-2); }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 30ch; margin: 0 0 32px; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--muted); display:flex; align-items:center; gap:7px; }
.hero-note b { color: var(--navy); font-weight: 600; }
.hero-wave { margin-bottom: 30px; }

/* phones */
.phone {
  position: relative;
  border-radius: 44px;
  background: #0d1016;
  padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(26,35,54,.5), 0 8px 24px -12px rgba(26,35,54,.35);
}
.phone img { border-radius: 36px; display:block; width: 100%; }
.phone-stack { position: relative; display: flex; justify-content: center; }
.phone.main { width: 300px; z-index: 2; }
.phone.behind {
  position: absolute; width: 248px; z-index: 1;
  left: 50%; top: 36px; transform: translateX(-92%) rotate(-7deg);
  opacity: .96;
}
.hero-blob {
  position: absolute; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,119,43,.18), rgba(224,119,43,0) 68%);
  right: -40px; top: 40px; pointer-events: none;
}

/* ---------- generic section ---------- */
section { position: relative; }
.band { padding: 100px 0; }
.band.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.navy { background: var(--navy); color: #fff; }
.band.navy h2, .band.navy h3 { color: #fff; }
.sec-head { max-width: 640px; margin: 0 0 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { font-size: 18px; color: var(--muted); margin: 18px 0 0; }
.band.navy .sec-head p { color: rgba(255,255,255,.7); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step .phone { width: 100%; max-width: 270px; margin: 0 auto 28px; }
.step-n {
  font-family: var(--mono); font-size: 12px; color: var(--orange-2);
  letter-spacing: .15em; display: block; margin-bottom: 10px; text-align:center;
}
.step h3 { text-align: center; margin-bottom: 10px; }
.step p { text-align: center; color: var(--muted); font-size: 15.5px; margin: 0 auto; max-width: 30ch; }

/* ---------- AI features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(26,35,54,.4); border-color: var(--cream-3); }
.feat-ic {
  width: 46px; height: 46px; border-radius: 13px;
  background: color-mix(in srgb, var(--orange) 14%, transparent);
  display: grid; place-items: center; margin-bottom: 22px;
}
.feat-ic svg { width: 23px; height: 23px; stroke: var(--orange-2); fill: none; stroke-width: 1.8; }
.feat h3 { margin-bottom: 9px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feat.wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; padding: 0; overflow: hidden; }
.feat.wide .feat-body { padding: 40px 40px 40px 42px; }
.feat.wide .feat-media { background: var(--cream-2); padding: 36px 36px 0; align-self: stretch; display:flex; align-items:flex-end; justify-content:center; }
.feat.wide .feat-media .phone { width: 250px; box-shadow: 0 26px 50px -30px rgba(26,35,54,.5); }

/* ---------- book types ---------- */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type {
  border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
  padding: 26px 24px; background: rgba(255,255,255,.03);
  transition: background .2s, transform .2s, border-color .2s;
}
.type:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); border-color: rgba(243,177,115,.5); }
.type .t-k { font-family: var(--mono); font-size: 12px; color: var(--orange-soft); letter-spacing:.12em; }
.type h3 { margin: 14px 0 8px; font-size: 23px; }
.type p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.66); }

/* ---------- publish ---------- */
.pub-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.pub-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.pub-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.pub-item:last-child { border-bottom: 1px solid var(--line); }
.pub-item .p-ic { width: 40px; height:40px; flex:none; border-radius: 11px; background: var(--navy); display:grid; place-items:center; }
.pub-item .p-ic svg { width: 20px; height:20px; stroke:#fff; fill:none; stroke-width:1.8; }
.pub-item h3 { font-size: 21px; margin-bottom: 4px; }
.pub-item p { margin: 0; color: var(--muted); font-size: 15px; }
.pub-visual {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  border-radius: 26px; padding: 56px; display:grid; place-items:center;
  position: relative; overflow: hidden; min-height: 380px;
}
.book {
  width: 230px; aspect-ratio: 3/4; border-radius: 6px 12px 12px 6px;
  background: linear-gradient(135deg, #fbf7f0, #ece3d4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), inset 9px 0 0 0 rgba(0,0,0,.06);
  position: relative; transform: rotate(-4deg);
  padding: 38px 30px; display:flex; flex-direction:column; justify-content:space-between;
}
.book::before { content:""; position:absolute; left:14px; top:8px; bottom:8px; width:2px; background:rgba(26,35,54,.12); }
.book .b-top .b-wave { display:flex; gap:4px; margin-bottom:18px; }
.book .b-top .b-wave i { width:4px; border-radius:99px; background:var(--orange); display:block; }
.book .b-title { font-family: var(--serif); font-size: 28px; color: var(--navy); line-height:1.08; }
.book .b-auth { font-family: var(--mono); font-size: 11px; letter-spacing:.1em; color: var(--muted); text-transform:uppercase; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final h2 { max-width: 16ch; margin: 0 auto 22px; }
.final p { color: rgba(255,255,255,.72); font-size: 19px; max-width: 44ch; margin: 0 auto 36px; }
.final .wave { margin-bottom: 30px; height: 52px; }
.final .wave span { width: 6px; }

/* ---------- footer ---------- */
.foot { padding: 60px 0 40px; background: var(--cream); border-top: 1px solid var(--line); }
.foot-top { display:flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot .brand-name { font-size: 22px; }
.foot .brand-logo { height: 30px; }
.foot-tag { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; max-width: 34ch; }
.foot-links { display:flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); margin:0 0 16px; font-weight:500; }
.foot-col a { display:block; font-size: 15px; color: var(--navy-soft); margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--orange-2); }
.foot-bottom { display:flex; justify-content: space-between; align-items:center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-bottom p { margin:0; font-size: 13.5px; color: var(--muted); }
.foot-bottom a.vaz { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--orange); padding-bottom:1px; }
.foot-bottom a.vaz:hover { color: var(--orange-2); }

/* reveal — only hides when JS is active (no-JS / print stays visible) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .js .reveal{ opacity:1; transform:none; } }

/* ============================================================
   ENERGY LAYER — chips, live demo, marquee
   ============================================================ */

/* floating chips around hero phones */
.chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); color: var(--navy);
  font-size: 14px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(26,35,54,.45);
  border: 1px solid var(--line);
  white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.chip b { color: var(--orange-2); font-size: 16px; line-height: 0; }
.chip s { text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; color: var(--muted); }
.chip-1 { top: 56px; left: -16px; animation-delay: 0s; }
.chip-2 { top: 250px; left: -46px; animation-delay: .9s; }
.chip-3 { bottom: 128px; left: 6px; animation-delay: 1.6s; }
.chip-4 { top: 22px; right: 2px; animation-delay: .5s; }
.chip-5 { bottom: 168px; right: -28px; animation-delay: 1.2s; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
@media (prefers-reduced-motion: reduce){ .chip{ animation:none; } }

/* ---------- live cleanup demo ---------- */
.demo-band { overflow: hidden; }
.demo-rays {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(540px 380px at 78% 30%, rgba(224,119,43,.18), transparent 70%),
    radial-gradient(440px 440px at 12% 90%, rgba(243,177,115,.10), transparent 70%);
}
.demo-grid { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.demo-copy h2 { margin-bottom: 22px; }
.demo-copy h2 em { font-style: italic; color: var(--orange-soft); }
.demo-lead { font-size: 19px; color: rgba(255,255,255,.74); max-width: 40ch; margin: 0; }
.demo-stat { display: flex; gap: 48px; margin-top: 38px; }
.demo-stat .ds-num { display: block; font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--orange-soft); }
.demo-stat .ds-lab { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 8px; max-width: 14ch; }

.demo-card {
  background: var(--paper); border-radius: 22px;
  padding: 28px 30px 22px; position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.6);
}
.dc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.dc-dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd2dd; flex: none; transition: background .3s; }
.demo-card.recording .dc-dot { background: var(--orange); box-shadow: 0 0 0 0 rgba(224,119,43,.5); animation: ping 1.3s ease-out infinite; }
@keyframes ping { 0%{ box-shadow: 0 0 0 0 rgba(224,119,43,.5);} 100%{ box-shadow: 0 0 0 12px rgba(224,119,43,0);} }
.dc-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .3s; white-space: nowrap; }
.demo-card.clean .dc-label { color: var(--orange-2); }
.dc-wave { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.dc-wave i { width: 3px; height: 100%; border-radius: 99px; background: var(--orange); transform-origin: center; animation: pulse 1s ease-in-out infinite; }
.dc-wave i:nth-child(2){ animation-delay:.15s } .dc-wave i:nth-child(3){ animation-delay:.3s } .dc-wave i:nth-child(4){ animation-delay:.45s } .dc-wave i:nth-child(5){ animation-delay:.6s }
.demo-card.clean .dc-wave { opacity: .25; }

.dc-body {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5; color: var(--navy); margin: 0; min-height: 180px;
  transition: color .5s;
}
.dc-body .filler {
  display: inline-block;
  border-radius: 5px;
  transition: max-width .45s ease, opacity .35s ease, transform .35s ease,
              background-color .3s ease, color .3s ease, padding .3s ease, margin .3s ease;
  max-width: 320px; white-space: nowrap; vertical-align: bottom;
}
.dc-body .filler.hl { background: rgba(224,119,43,.16); color: var(--orange-2); padding: 0 4px; }
.dc-body .filler.strike { text-decoration: line-through; text-decoration-color: var(--orange); }
.dc-body .filler.gone { max-width: 0; opacity: 0; transform: scale(.7); padding: 0; margin: 0; overflow: hidden; }
.demo-card.clean .dc-body { color: var(--ink); }

.dc-foot { margin-top: 18px; }
.dc-tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); transition: color .3s; }
.dc-tag.ok { color: #1f8a5b; }

/* ---------- genre marquee ---------- */
.types-band { padding-bottom: 88px; }
.marquee { margin-top: 8px; display: flex; flex-direction: column; gap: 16px; }
.mq-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: inline-flex; gap: 16px; width: max-content; animation: scrollX 38s linear infinite; }
.mq-track.rev { animation-duration: 46s; animation-direction: reverse; }
.mq-row:hover .mq-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .mq-track{ animation:none; } }
.genre {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 30px; color: #fff;
  padding: 16px 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03); white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.genre b { font-family: var(--mono); font-size: 14px; color: var(--orange-soft); font-weight: 500; }
.genre.alt { background: transparent; color: rgba(255,255,255,.5); font-size: 26px; }
.genre:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.genre:hover b { color: #fff; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-grid h2 { max-width: 14ch; }
.about-body p { font-size: 19px; line-height: 1.6; color: var(--navy-soft); margin: 0 0 20px; text-wrap: pretty; }
.about-credit { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 16px; color: var(--navy); font-weight: 500; margin-top: 10px; }
.about-credit b { color: var(--orange-2); font-weight: 700; }
.about-credit i { color: var(--orange); font-style: normal; transition: transform .2s; }
.about-credit:hover i { transform: translateX(5px); }

@media (max-width: 920px) {
  .demo-grid { grid-template-columns: 1fr; gap: 34px; }
  .demo-lead { max-width: none; }
  .chip-2, .chip-4, .chip-5 { display: none; }
  .chip-1 { left: 0; } .chip-3 { left: 0; }
  .genre { font-size: 24px; padding: 13px 22px; }
  .genre.alt { font-size: 22px; }
}


/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-wave { display:flex; justify-content:center; }
  .eyebrow { justify-content:center; }
  .phone-stack { margin-top: 14px; }
  .steps { grid-template-columns: 1fr; gap: 56px; max-width: 360px; margin-inline:auto; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat.wide { grid-template-columns: 1fr; }
  .feat.wide .feat-body { padding: 34px 30px 0; }
  .feat.wide .feat-media { padding: 24px 30px 0; }
  .types { grid-template-columns: 1fr 1fr; }
  .pub-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .band { padding: 72px 0; }
  .hero { padding: 36px 0 64px; }
  .phone.behind { display: none; }
  .phone.main { width: 270px; }
  .chip-1 { top: 30px; } .chip-3 { bottom: 96px; }
  .demo-stat { gap: 30px; }
  .demo-card { padding: 24px 22px 20px; }
  .types { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; gap: 16px; }
  .foot-bottom { justify-content: center; text-align:center; }
  .brand-name { font-size: 27px; }
  .foot .brand-name { font-size: 22px; }
}
