/* ============================================================
   Linen — thelinenapp.com
   Warm, tactile, editorial. Display: Bricolage Grotesque.
   Body: Hanken Grotesk. Signature motif: two pills landing
   into a corner L. Motion is calm, staggered, purposeful.
   ============================================================ */

:root {
  --page: #f2f0e8;
  --paper: #fffdf7;
  --ink: #18201c;
  --ink-soft: #3a423d;
  --muted: #6b736b;
  --line: rgba(24, 32, 28, .12);

  --green: #42786b;
  --green-deep: #2f5a4f;
  --mint: #d8eadb;
  --coral: #d96f55;
  --rose: #f0c3ba;
  --blue: #536fa7;
  --sky: #dfe8f8;
  --gold: #d8aa48;
  --sun: #f7e4ad;
  --violet: #8b75b8;
  --lavender: #d8d0ec;

  --shadow-sm: 0 2px 8px rgba(31, 38, 35, .06);
  --shadow-md: 0 14px 34px rgba(31, 38, 35, .10);
  --shadow-lg: 0 34px 70px rgba(31, 38, 35, .16);
  --shadow-xl: 0 50px 100px rgba(31, 38, 35, .22);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 42px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.3, 1.3, .4, 1);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 68px);

  --f-display: "Bricolage Grotesque", "SF Pro Display", -apple-system, sans-serif;
  --f-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  background-color: var(--page);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(216, 234, 219, .55), transparent 60%),
    radial-gradient(900px 560px at 6% 8%, rgba(247, 228, 173, .34), transparent 58%),
    radial-gradient(1000px 700px at 50% 118%, rgba(223, 232, 248, .40), transparent 60%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle woven-linen grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--mint); color: var(--green-deep); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.display {
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.h-sec {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-body);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--green);
}
.eyebrow.center::after {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--green);
}

.serif-accent { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: rgba(255, 253, 247, .7);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform .4s var(--ease);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s var(--ease);
}
.nav-bar {
  position: absolute;
  inset: 0;
  background: rgba(242, 240, 232, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled .nav-bar { opacity: 1; border-bottom-color: var(--line); }
.nav.scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }
.nav.hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 1;
}
.brand-mark { width: 42px; height: 42px; transition: width .4s var(--ease), height .4s var(--ease); }
.brand-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}
.nav.scrolled .brand-mark { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  position: relative;
  z-index: 1;
}
.nav-links a.navlink {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .25s;
  position: relative;
}
.nav-links a.navlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a.navlink:hover { color: var(--ink); }
.nav-links a.navlink:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .7);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 5px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(130px, 20vh, 200px);
  padding-bottom: clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero .display { margin-top: 20px; }
.hero .display .row { display: block; overflow: hidden; }
.hero .display .row > span {
  display: inline-block;
  transform: translateY(115%);
}
.hero .lede { margin: 26px 0 34px; max-width: 500px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-note {
  margin-top: 20px;
  font-size: .9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note b { color: var(--green); font-weight: 700; }

.reveal-load { opacity: 0; }

/* floating background pills */
.hero-orbits { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orbit-pill {
  position: absolute;
  border-radius: 999px;
  opacity: 0;
}

/* ---------- Phone ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1600px;
}
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  background: #0f1512;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-xl), inset 0 0 0 1.5px rgba(255,255,255,.08);
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #0f1512;
  border-radius: 999px;
  z-index: 6;
}
.screen-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 22px 6px;
  font-size: 12px; font-weight: 800;
}
.screen-status .batt { width: 22px; height: 11px; border: 1.6px solid var(--ink); border-radius: 3px; opacity: .85; position: relative; }
.screen-status .batt::after { content:""; position:absolute; left:2px; top:1.5px; bottom:1.5px; width:12px; background: var(--ink); border-radius:1px; }

.app-body { flex: 1; padding: 8px 16px 0; overflow: hidden; display: flex; flex-direction: column; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.app-kicker { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.app-title { font-family: var(--f-display); font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.avatar-chip { display: flex; }
.avatar {
  width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--mint); color: var(--green-deep);
  font-size: 12px; font-weight: 800;
  border: 2px solid var(--paper);
}
.avatar + .avatar { margin-left: -9px; background: var(--rose); color: #8a3f2c; }

.pcard {
  border-radius: 18px;
  padding: 14px 15px;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pcard.green { background: linear-gradient(140deg, #4c8476, #345d51); }
.pcard h4 { font-family: var(--f-body); font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.pcard p { margin: 3px 0 0; font-size: 11px; line-height: 1.35; color: rgba(255,255,255,.82); }
.pcard .metrics { display: flex; gap: 7px; margin-top: 11px; }
.pcard .metric { flex: 1; background: rgba(255,255,255,.16); border-radius: 10px; padding: 6px 4px; text-align: center; }
.pcard .metric b { display: block; font-size: 15px; font-weight: 800; }
.pcard .metric span { font-size: 8px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: rgba(255,255,255,.78); }

.plist { display: flex; flex-direction: column; }
.plist-label { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 2px 2px 8px; }
.prow {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
}
.prow:first-of-type { border-top: 0; }
.pring {
  width: 21px; height: 21px; flex: none;
  border-radius: 999px;
  border: 2.4px solid rgba(24,32,28,.28);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .3s var(--spring);
}
.pring.need { border-color: var(--coral); }
.pring.maybe { border-color: var(--blue); }
.pring.done { background: var(--green); border-color: var(--green); position: relative; }
.pring.done::after {
  content: "";
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
.prow-main { flex: 1; min-width: 0; }
.prow-main strong { display: block; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.prow-main span { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow.checked .prow-main strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107,115,107,.5); }
.ptag { font-size: 9px; font-weight: 800; letter-spacing: .02em; padding: 4px 8px; border-radius: 999px; flex: none; }
.ptag.today { color: #275247; background: var(--mint); }
.ptag.week { color: #554579; background: var(--lavender); }
.ptag.link { color: #41526f; background: var(--sky); }
.ptag.gold { color: #6c4e0b; background: var(--sun); }

.app-dock {
  margin: auto -16px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255,253,247,.9);
}
.dock-field {
  flex: 1;
  font-size: 12px; color: var(--muted);
  background: rgba(24,32,28,.05);
  border-radius: 999px;
  padding: 10px 15px;
}
.dock-add {
  width: 38px; height: 38px; flex: none;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.dock-add svg { width: 17px; height: 17px; }

/* floating notif card near phone */
.float-card {
  position: absolute;
  background: var(--paper);
  border-radius: 18px;
  padding: 13px 15px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  z-index: 3;
  max-width: 215px;
}
.float-card .fc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.float-card .fc-dot { width: 8px; height: 8px; border-radius: 999px; }
.float-card .fc-label { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.float-card strong { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.float-card p { margin: 2px 0 0; font-size: 11px; color: var(--muted); line-height: 1.35; }
.float-a { top: 12%; left: -8%; }
.float-b { bottom: 15%; right: -6%; }

.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty.delay { animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Section scaffolding ---------- */
section { position: relative; padding: clamp(70px, 11vw, 150px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-sec { margin-top: 18px; }
.section-head p { margin: 22px 0 0; }

/* ---------- Reveal utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Marquee ---------- */
.marquee-band {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,247,.5);
  overflow: hidden;
}
.marquee { display: flex; gap: 16px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-band:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.mq-item .mq-ring { width: 13px; height: 13px; border-radius: 999px; border: 2.4px solid; flex: none; }

/* ---------- Loop / how it works ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.loop-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 34px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.loop-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.loop-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--f-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--line);
}
.loop-ic {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.loop-ic svg { width: 26px; height: 26px; }
.loop-step h3 { font-size: 1.4rem; margin-bottom: 10px; letter-spacing: -0.03em; }
.loop-step p { margin: 0; font-size: .98rem; color: var(--muted); line-height: 1.5; }
.loop-step .loop-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }

/* ---------- Feature split rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-visual { order: -1; }
.feature-copy .h-sec { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 16px 0 18px; }
.feature-copy p { color: var(--ink-soft); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; }
.feature-list .fl-ic { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; margin-top: 1px; }
.feature-list .fl-ic svg { width: 15px; height: 15px; }

.feature-visual {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 56px);
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fv-mint { background: linear-gradient(150deg, #e6f1e8, #cfe4d4); }
.fv-sun { background: linear-gradient(150deg, #fbeec2, #f4dfa0); }
.fv-sky { background: linear-gradient(150deg, #e6edfa, #d3e0f6); }

/* mini surfaces used inside feature visuals */
.mini {
  width: 100%;
  max-width: 320px;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.7);
  overflow: hidden;
}
.mini-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mini-head strong { font-family: var(--f-display); font-size: 1.15rem; }
.mini-body { padding: 8px 18px 16px; }
.mini-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-row:first-child { border-top: 0; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800;
  color: var(--coral);
  background: rgba(217,111,85,.14);
  border: 1px solid rgba(217,111,85,.28);
  padding: 4px 10px; border-radius: 999px;
}
.live-pill .lp-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--coral); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.4;transform:scale(.7);} }

/* lockscreen live activity mock */
.lockscreen {
  width: 100%; max-width: 320px;
  background: linear-gradient(165deg, #1c2420, #101512);
  border-radius: var(--r-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.ls-time { text-align: center; margin-bottom: 20px; }
.ls-time b { font-family: var(--f-display); font-size: 44px; font-weight: 800; letter-spacing: -0.04em; display: block; line-height: 1; }
.ls-time span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.ls-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 18px; padding: 15px; }
.ls-card .ls-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ls-card .ls-top strong { font-size: 14px; }
.ls-metrics { display: flex; gap: 8px; }
.ls-metrics .m { flex: 1; text-align: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 7px 3px; }
.ls-metrics .m b { display: block; font-family: var(--f-display); font-size: 17px; }
.ls-metrics .m span { font-size: 8px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.ls-actions { display: flex; gap: 8px; margin-top: 12px; }
.ls-actions .a { flex: 1; text-align: center; font-size: 11px; font-weight: 800; padding: 9px; border-radius: 999px; }
.ls-actions .a.yes { background: #fff; color: var(--ink); }
.ls-actions .a.no { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Interactive demo ---------- */
.demo {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.demo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 88% 10%, rgba(66,120,107,.4), transparent 60%),
              radial-gradient(600px 360px at 5% 100%, rgba(216,170,72,.22), transparent 60%);
  pointer-events: none;
}
.demo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.demo h2, .demo .eyebrow { color: #fff; }
.demo .eyebrow { color: var(--sun); }
.demo .eyebrow::before { background: var(--sun); }
.demo p { color: rgba(255,255,255,.72); }
.demo-hint { margin-top: 22px; font-size: .92rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 9px; }
.demo-hint .tap-dot { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--sun); position: relative; }
.demo-hint .tap-dot::after { content:""; position:absolute; inset:4px; border-radius:999px; background: var(--sun); animation: pulse 1.6s ease-in-out infinite; }

.demo-app {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 8px 20px 18px;
  box-shadow: var(--shadow-xl);
  max-width: 380px;
  margin-inline: auto;
  width: 100%;
}
.demo-app .app-top { padding-top: 14px; }
.demo-row {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 6px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  border-radius: 12px;
  transition: background .25s;
}
.demo-row:first-of-type { border-top: 0; }
.demo-row:hover { background: rgba(24,32,28,.03); }
.demo-row .pring { width: 24px; height: 24px; cursor: pointer; }
.demo-row .prow-main strong { font-size: 15px; }
.demo-row .prow-main span { font-size: 11.5px; }
.demo-progress { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.demo-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(24,32,28,.08); overflow: hidden; }
.demo-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .6s var(--ease); }
.demo-count { font-size: 13px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.demo-done-msg {
  margin-top: 14px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s, transform .5s var(--spring);
}
.demo-done-msg.show { opacity: 1; transform: none; }

/* ---------- Shared space band ---------- */
.together {
  text-align: center;
}
.together-visual {
  margin: 48px auto 0;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  position: relative;
}
.person {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.person .pface {
  width: clamp(70px, 12vw, 104px); height: clamp(70px, 12vw, 104px);
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  box-shadow: var(--shadow-md);
}
.person .pname { font-weight: 700; font-size: 1rem; }
.person .prole { font-size: .82rem; color: var(--muted); }
.together-link {
  flex: 1;
  max-width: 220px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px);
  position: relative;
  opacity: .5;
}
.together-space {
  margin: 44px auto 0;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin-inline: auto; }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: linear-gradient(160deg, #2f5a4f, #223f38); color: #fff; box-shadow: var(--shadow-lg); }
.price-card.featured h3, .price-card.featured .price b { color: #fff; }
.price-tag-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.price-badge { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--sun); color: #6c4e0b; }
.price-card.featured .price-badge { background: rgba(255,255,255,.16); color: #fff; }
.price-card h3 { font-size: 1.5rem; }
.price { margin: 20px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--f-display); font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; }
.price span { font-size: 1rem; color: var(--muted); }
.price-card.featured .price span { color: rgba(255,255,255,.7); }
.price-desc { font-size: .98rem; color: var(--muted); margin: 0 0 22px; }
.price-card.featured .price-desc { color: rgba(255,255,255,.75); }
.price-feats { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.price-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.price-feats .pf-check { width: 20px; height: 20px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--mint); margin-top: 1px; }
.price-card.featured .price-feats .pf-check { background: rgba(255,255,255,.2); }
.price-feats .pf-check svg { width: 12px; height: 12px; }
.price-card .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}
.faq-icon { position: relative; width: 22px; height: 22px; flex: none; }
.faq-icon::before, .faq-icon::after { content:""; position: absolute; left: 50%; top: 50%; background: var(--green); border-radius: 2px; transition: transform .35s var(--ease); }
.faq-icon::before { width: 16px; height: 2.4px; transform: translate(-50%,-50%); }
.faq-icon::after { width: 2.4px; height: 16px; transform: translate(-50%,-50%); }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { margin: 0; padding: 0 6px 26px; color: var(--ink-soft); max-width: 640px; }

/* ---------- CTA ---------- */
.cta-final {
  text-align: center;
  background: linear-gradient(165deg, #4c8476, #2f5a4f);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(50px, 8vw, 96px) clamp(24px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.cta-final h2 { color: #fff; }
.cta-final .lede { color: rgba(255,255,255,.82); margin: 20px auto 34px; max-width: 520px; }
.cta-final .btn-primary { background: #fff; color: var(--ink); }
.cta-final .btn-primary:hover { background: var(--sun); }
.cta-mark { width: 66px; height: 66px; margin: 0 auto 26px; }
.cta-orbits { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(56px, 8vw, 90px) 0 40px;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .brand-mark { width: 48px; height: 48px; }
.footer-brand .brand-name { font-size: 2rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 300px; margin: 16px 0 0; }
.footer-col h4 { font-family: var(--f-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: .96rem; color: var(--ink-soft); padding: 6px 0; transition: color .2s, padding-left .25s var(--ease); }
.footer-col a:hover { color: var(--green); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--muted); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, transform .3s var(--spring); }
.footer-social a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(30px, 5vw, 60px); }
.legal-body { padding-top: 0; padding-bottom: clamp(60px, 9vw, 120px); }
.legal-doc { max-width: 760px; }
.legal-doc h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 46px 0 14px; letter-spacing: -0.03em; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 800; margin: 26px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }
.legal-doc ul { padding-left: 22px; margin: 12px 0; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.legal-toc strong { font-family: var(--f-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 12px 0 0; padding-left: 20px; columns: 2; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--green); }
.legal-note {
  background: var(--sun);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  margin-bottom: 34px;
  font-size: .94rem;
  color: #6c4e0b;
  font-weight: 600;
}
.updated { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Hero: shared-space diorama ---------- */
.space-stage { position: relative; max-width: 440px; margin-inline: auto; }
.space-card {
  position: relative; z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 24px 18px;
  box-shadow: var(--shadow-xl);
}
.space-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.space-card .app-title { font-size: 30px; }
.space-card .prow-main strong { font-size: 14.5px; }
.space-card .prow-main span { font-size: 11.5px; }
.space-card .pring { width: 23px; height: 23px; }
.space-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 15px; border-top: 1px solid var(--line); }
.actor { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; opacity: 0; }
.actor .avatar { width: 42px; height: 42px; font-size: 15px; border: 3px solid var(--page); box-shadow: var(--shadow-md); }
.actor-left .avatar { background: var(--rose); color: #8a3f2c; }
.actor-bubble {
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px 15px;
  border-radius: 15px; border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.actor-bubble b { color: var(--sun); font-weight: 800; }
.actor-left { top: -28px; left: -36px; animation: actor-in .7s var(--spring) 1.1s forwards; }
.actor-right { bottom: 56px; right: -44px; animation: actor-in .7s var(--spring) 3.1s forwards; }
.actor-right .actor-bubble { background: var(--green-deep); border-radius: 15px; border-bottom-right-radius: 4px; }
@keyframes actor-in { from { opacity: 0; transform: translateY(18px) scale(.85); } to { opacity: 1; transform: none; } }
.row-new { overflow: hidden; max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; animation: row-in .8s var(--ease) 2s forwards; }
@keyframes row-in {
  from { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
  to { max-height: 70px; opacity: 1; padding-top: 11px; padding-bottom: 11px; }
}
.ring-auto { position: relative; animation: ring-fill .45s var(--ease) 3.7s forwards; }
.ring-auto::after {
  content: ""; position: absolute; left: 6px; top: 3px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg); opacity: 0;
  animation: check-in .3s ease 4s forwards;
}
@keyframes ring-fill { to { background: var(--green); border-color: var(--green); } }
@keyframes check-in { to { opacity: 1; } }
.autocheck .prow-main strong { animation: fade-strike .4s ease 4s forwards; }
@keyframes fade-strike { to { color: var(--muted); } }

/* ---------- Interlude ---------- */
.interlude { text-align: center; padding-block: clamp(90px, 13vw, 170px); overflow: hidden; }
.interlude-line {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6.6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin: 0;
}
.interlude-line em { color: var(--green); }
.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute;
  transform: rotate(var(--r));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .92rem; font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(217, 111, 85, .75);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

/* ---------- Loop: staircase stagger ---------- */
@media (min-width: 941px) {
  .loop { align-items: start; }
  .loop-step:nth-child(2) { margin-top: 34px; }
  .loop-step:nth-child(3) { margin-top: 68px; }
  .loop-step:nth-child(4) { margin-top: 102px; }
}

/* ---------- Together: full-bleed mint band ---------- */
#together {
  background: linear-gradient(170deg, rgba(216, 234, 219, .55), rgba(207, 228, 212, .85));
  border-block: 1px solid var(--line);
}

/* ---------- Diorama responsive ---------- */
@media (max-width: 940px) {
  .space-stage { margin-top: 48px; }
}
@media (max-width: 560px) {
  .actor-left { left: -6px; top: -32px; }
  .actor-right { right: -6px; bottom: 30px; }
  .actor-bubble { font-size: 11.5px; padding: 8px 12px; }
  .actor .avatar { width: 36px; height: 36px; font-size: 13px; }
  .sticker { font-size: .78rem; padding: 7px 13px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .phone-stage { margin-top: 40px; }
  .feature, .demo-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-visual { order: 0; }
  .loop { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: var(--gutter); right: var(--gutter);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px;
    gap: 18px;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.mobile-open .btn { width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .float-a, .float-b { display: none; }
}
@media (max-width: 500px) {
  .loop { grid-template-columns: 1fr; }
  .together-visual { flex-direction: column; }
  .together-link { width: 3px; height: 40px; max-width: none; background: repeating-linear-gradient(180deg, var(--green) 0 10px, transparent 10px 18px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
