@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Italic-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #13211c;
  --ink-2: #1d3129;
  --ink-soft: #2c433a;
  --paper: #f3eee4;
  --paper-2: #e8e0d1;
  --paper-3: #faf7f1;
  --gold: #c4a35a;
  --gold-2: #e3c16f;
  --gold-dim: #8a7340;
  --sage: #3f6b5a;
  --terra: #b45a3c;
  --ok: #2c6a4c;
  --line: rgba(19, 33, 28, 0.12);
  --line-strong: rgba(19, 33, 28, 0.22);
  --shadow: 0 30px 60px rgba(19, 33, 28, 0.16);
  --serif: "Instrument Serif", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Instrument Sans", "IBM Plex Sans", "Segoe UI", sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font-family: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Logo ---------- */
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.mark svg { flex: none; }
.mark .word {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mark .word span { font-style: italic; color: var(--gold-dim); }

/* ---------- Landing nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav .links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav .links a { text-decoration: none; color: var(--ink-soft); }
.site-nav .links a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 64px 40px 80px;
  max-width: 1240px;
  margin: 0 auto;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 18px;
}
.kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-dim);
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.fineprint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 32rem;
}
.hero-stage {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-stage::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.28), transparent 65%);
  top: 10%;
  z-index: 0;
}

/* ---------- Sections ---------- */
section { padding: 80px 40px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 8px 0 14px;
}
.section-head p { color: var(--ink-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 24px;
  min-height: 220px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.step p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.feature {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 10px 0 10px;
}
.feature p { color: var(--ink-soft); }
.feature .icon {
  width: 36px;
  height: 36px;
  color: var(--gold-dim);
}

.band { background: var(--ink); color: var(--paper); }
.band .kicker { color: var(--gold-2); }
.band .section-head p, .band .coming p { color: rgba(243, 238, 228, 0.72); }
.coming {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.coming h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 8px 0 16px;
}
.coming-card {
  background: rgba(243, 238, 228, 0.06);
  border: 1px solid rgba(227, 193, 111, 0.28);
  border-radius: var(--radius);
  padding: 24px;
}
.coming-card h3 { font-size: 1rem; margin-bottom: 12px; color: var(--gold-2); }
.coming-card li {
  list-style: none;
  padding: 10px 0;
  border-top: 1px solid rgba(243, 238, 228, 0.1);
  font-size: 0.94rem;
  color: rgba(243, 238, 228, 0.8);
}
.coming-card li:first-of-type { border-top: 0; }
.note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(243, 238, 228, 0.6);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
}
.price-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
}
.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card .plan {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.price-card.featured .plan { color: var(--gold-2); }
.price-card .amount {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-card .amount small {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--ink-soft);
}
.price-card.featured .amount small { color: rgba(243, 238, 228, 0.65); }
.alt-price { margin: 8px 0 18px; color: var(--ink-soft); font-size: 0.92rem; }
.price-card.featured .alt-price { color: rgba(243, 238, 228, 0.65); }
.price-card ul { list-style: none; margin: 8px 0 24px; }
.price-card li {
  padding: 8px 0 8px 18px;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.price-card.featured li { border-top-color: rgba(243, 238, 228, 0.1); }
.price-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 16px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
details.faq-item {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; color: var(--gold-dim); font-weight: 500; }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p {
  color: var(--ink-soft);
  padding: 0 0 16px;
  font-size: 0.95rem;
}
.disclaimer {
  margin-top: 36px;
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--paper));
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 760px;
}

/* ---------- Waitlist ---------- */
.waitlist-box {
  max-width: 560px;
  background: var(--paper-3);
  color: var(--ink);
  border-radius: 24px;
  padding: 28px;
  margin-top: 12px;
}
.form-row { display: flex; gap: 10px; }
.form-row input {
  flex: 1;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.form-row input:focus { border-color: var(--gold); }
.wait-note { margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); }
.wait-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 16%, #fff);
  font-size: 0.9rem;
}
.wait-msg.show { display: block; }

footer.site-foot {
  padding: 36px 40px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 0.88rem;
}
footer.site-foot .legal { max-width: 640px; }

/* =========================================================
   APP MOCKUP
   ========================================================= */
body.app-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(196, 163, 90, 0.18), transparent 55%),
    var(--paper);
}
.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.app-side {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-3) 70%, transparent);
}
.app-side .back {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin: 16px 0 24px;
}
.app-side h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.app-side .side-copy { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 22px; }
.screen-nav { list-style: none; display: grid; gap: 4px; }
.screen-nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 10px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.screen-nav button:hover { background: rgba(19, 33, 28, 0.05); color: var(--ink); }
.screen-nav button.is-on {
  background: var(--ink);
  color: var(--paper);
}
.sample-flag {
  margin-top: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--gold-dim);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 10px 12px;
}

.app-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.device {
  width: 390px;
  height: 800px;
  background: #0c1411;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(19,33,28,0.4);
  position: relative;
  z-index: 1;
}
.device-screen {
  height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.status-bar {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 6px;
  font-size: 0.74rem;
  font-weight: 650;
}
.status-bar .pips { letter-spacing: 2px; color: var(--ink-soft); }
.screen {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 6px 18px 18px;
}
.screen.is-on { display: block; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 10px;
}
.app-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.app-p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 16px; }
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
.stack { display: grid; gap: 10px; margin-top: 16px; }
.drop {
  border: 1.5px dashed color-mix(in srgb, var(--gold-dim) 50%, var(--line-strong));
  background: #fff;
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
}
.drop strong { display: block; margin: 8px 0 4px; }
.drop span { font-size: 0.8rem; color: var(--ink-soft); }

.leak {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  display: block;
}
.leak:hover { border-color: var(--gold); }
.leak .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.leak .name { font-weight: 650; font-size: 0.92rem; }
.leak .amt { font-variant-numeric: tabular-nums; font-weight: 650; }
.leak .meta { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.leak .days { color: var(--sage); font-weight: 650; font-size: 0.78rem; margin-top: 4px; }
.tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra);
  background: color-mix(in srgb, var(--terra) 12%, #fff);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
  display: inline-block;
}
.leak .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Clock */
.clock-wrap { display: grid; place-items: center; padding: 8px 0 4px; }
.clock {
  width: 210px;
  height: 210px;
  position: relative;
}
.clock svg { width: 210px; height: 210px; transform: rotate(-90deg); }
.clock .num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.clock .num strong {
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.clock .num em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--gold-dim);
  font-size: 1.05rem;
}
.dash-goal { text-align: center; margin-bottom: 14px; }
.dash-goal h3 { font-size: 1rem; }
.dash-goal p { font-size: 0.8rem; color: var(--ink-soft); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 14px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.stat b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.stat span { font-size: 0.75rem; color: var(--ink-soft); }
.ticks { display: flex; gap: 6px; margin-top: 6px; }
.ticks i {
  width: 16px;
  height: 6px;
  border-radius: 99px;
  background: var(--paper-2);
  display: block;
}
.ticks i.on { background: var(--gold); }
.activity { list-style: none; }
.activity li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.activity .ok { color: var(--ok); font-weight: 650; }

.letter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 20px;
  box-shadow: 0 10px 24px rgba(19,33,28,0.05);
}
.letter .date { font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.letter h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 8px 0 14px;
}
.letter p { font-size: 0.88rem; margin-bottom: 10px; }
.letter .sign { font-family: var(--serif); font-style: italic; margin-top: 12px; }

.script-meta { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 10px; }
.script-meta div { margin-bottom: 2px; }
.tiny { font-size: 0.75rem; color: var(--ink-soft); margin-top: 10px; }

.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: var(--paper-3);
  padding: 6px 6px 10px;
}
.tabbar button {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--ink-soft);
  padding: 8px 0;
  border-radius: 10px;
}
.tabbar button.is-on { color: var(--ink); background: color-mix(in srgb, var(--gold) 20%, transparent); }

/* embed / shot modes */
body.embed, body.shot {
  background: transparent;
  min-height: auto;
}
body.embed .grain,
body.shot .grain,
body.embed .app-side,
body.shot .app-side { display: none; }
body.embed .app-shell,
body.shot .app-shell { display: block; min-height: auto; }
body.embed { background: transparent; }
body.embed .app-stage { padding: 24px; }
body.embed .device { box-shadow: 0 28px 50px rgba(19,33,28,0.22); }
body.shot {
  background: var(--paper);
  min-height: 100vh;
}
body.shot .app-stage { min-height: 100vh; padding: 48px; }

@media (max-width: 960px) {
  .hero, .coming, .features, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-nav { padding: 14px 18px; }
  .site-nav .links { display: none; }
  section, .hero { padding-left: 18px; padding-right: 18px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}
