/* Landing page. Values come from tokens.css (see DESIGN.md). */
.container { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; margin: 0; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; max-width: 22ch; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

/* ---- nav ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .2s, border-color .2s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--navy-950); border-bottom-color: rgb(255 255 255 / .08); }
.nav-inner { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: #fff; text-decoration: none; font: 600 16px/1 var(--font-sans); }
.brand img { display: block; }
.nav-links { display: flex; gap: var(--s-5); margin-left: auto; }
.nav-links a { color: rgb(255 255 255 / .72); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.btn-nav { height: 38px; padding: 0 var(--s-4); background: #fff; color: var(--navy-950); font-size: 14px; }
.btn-nav:hover { background: #e6ecf5; }
@media (max-width: 760px) { .nav-links { display: none; } .btn-nav { margin-left: auto; } }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 78% 45%, rgb(194 154 59 / .14), transparent 70%),
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--navy-950);
  color: #fff;
  padding: 120px 0 var(--s-8);
  min-height: min(860px, 92vh); display: flex; align-items: center;
}
.hero-grid { width: 100%; }
.hero-grid { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.05; max-width: 12ch; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .cta-row { margin-top: var(--s-7); animation: rise .8s .12s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: rgb(255 255 255 / .74); max-width: 52ch; margin: var(--s-5) 0 var(--s-6); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .btn-primary { background: #fff; color: var(--navy-950); }
.hero .btn-primary:hover { background: #e6ecf5; }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / .25); background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: var(--s-6) 0 0; font-size: var(--fs-small); color: rgb(255 255 255 / .62); }
.hero-points li { display: flex; align-items: center; gap: var(--s-2); }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* the sample memo */
.hero-visual { position: relative; margin: 0; justify-self: center; width: min(100%, 470px); }
.memo {
  background: var(--paper); color: #111; border-radius: 4px;
  padding: 26px 34px 34px; box-shadow: var(--shadow-paper), 0 0 0 1px rgb(0 0 0 / .04);
  font: 11.5px/1.35 var(--font-memo);
  transform: rotate(-1.5deg);
  animation: memo-in .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes memo-in { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); } }
.memo p { margin: 0 0 9px; }
.memo-head { position: relative; text-align: center; color: #355e93; margin-bottom: 20px; min-height: 52px; }
.memo-head img { position: absolute; left: -10px; top: 0; width: 52px; height: 52px; }
.memo-head div { display: flex; flex-direction: column; font-size: 8.5px; line-height: 1.3; padding-top: 4px; }
.memo-head b { font-size: 10.5px; font-weight: 400; }
.memo-date { text-align: right; }
.memo-sig { margin: 26px 0 0 52%; display: flex; flex-direction: column; }
.memo-signature { width: 120px; height: auto; margin-bottom: 2px; }

.tag {
  position: absolute; display: inline-flex; align-items: center; gap: var(--s-2);
  font: 500 13px/1.2 var(--font-sans); color: #fff;
  background: var(--navy-800); border: 1px solid rgb(255 255 255 / .12);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 24px rgb(0 0 0 / .3);
  animation: tag-in .6s ease-out both;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.tag-date { top: 36%; right: -28px; animation-delay: .5s; }
.tag-sig { bottom: -18px; right: -12px; animation-delay: .9s; }
@keyframes tag-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1100px) { .tag-date { right: -8px; } }

@media (max-width: 900px) {
  .hero { padding: 112px 0 var(--s-8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 520px) {
  .memo { padding: 18px 20px 24px; font-size: 9.5px; }
  .memo-head img { width: 40px; height: 40px; left: -6px; }
  .memo-head div { font-size: 7px; padding-left: 30px; }
  .tag { font-size: 11.5px; padding: 6px 10px; }
  .tag-sig { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .memo, .tag, .hero h1, .hero .cta-row { animation: none; } }

/* ---- sections ---- */
.section { padding: var(--s-9) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section .eyebrow { margin: 0 0 var(--s-3); }
.section-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: 58ch; margin: var(--s-4) 0 0; }
@media (max-width: 640px) { .section { padding: var(--s-8) 0; } }

/* how it works */
.steps { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); counter-reset: none; }
.steps li { border-top: 1px solid var(--border); padding-top: var(--s-5); }
.step-num { display: block; font: 500 44px/1 var(--font-serif); color: var(--brass); margin-bottom: var(--s-4); }
.steps p { color: var(--text-muted); margin: var(--s-3) 0 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: var(--s-6); } }

/* written to the book */
.book { display: grid; gap: var(--s-7); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: stretch; }
.compare-card { border-radius: var(--r-md); padding: var(--s-6); border: 1px solid var(--border); }
.compare-card p:last-child { margin: 0; font: 18px/1.55 var(--font-memo); }
.compare-label { margin: 0 0 var(--s-3); font: 600 var(--fs-micro)/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.compare-before { background: var(--bg); color: var(--text-muted); }
.compare-before p:last-child { text-decoration: line-through; text-decoration-color: rgb(180 35 24 / .45); text-decoration-thickness: 1.5px; }
.compare-before .compare-label { color: var(--error); }
.compare-after { background: var(--paper); color: #111; box-shadow: var(--shadow-paper); border-color: transparent; }
.compare-after .compare-label { color: #8a6a1f; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-8); }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: var(--s-5) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  font: 500 18px/1.4 var(--font-sans);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 300 26px/1 var(--font-sans); color: var(--text-muted); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 var(--s-5); color: var(--text-muted); max-width: 60ch; }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; gap: var(--s-5); } }

/* final cta */
.final { background: var(--navy-950); color: #fff; padding: var(--s-9) 0; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.final h2 { max-width: 18ch; }
.final .btn-primary { background: #fff; color: var(--navy-950); }
.final .btn-primary:hover { background: #e6ecf5; }

/* footer */
.footer { background: var(--navy-950); color: rgb(255 255 255 / .55); border-top: 1px solid rgb(255 255 255 / .08); padding: var(--s-6) 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.footer p { margin: 0; max-width: 64ch; }
.nav :focus-visible, .hero :focus-visible, .final :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* ---- signature guide (/how-to) ---- */
.nav-links a[aria-current="page"] { color: #fff; }
.guide { padding: calc(64px + var(--s-8)) 0 var(--s-9); }
.guide-head { max-width: 640px; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.guide-head h1 { font-size: var(--fs-h2); line-height: 1.12; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin: var(--s-7) 0 var(--s-9); }
.example { margin: 0; }
.example-shot {
  height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
  background: #fff; border-radius: var(--r-md); border: 2px solid var(--border); box-shadow: var(--shadow-1);
}
.example-good .example-shot { border-color: var(--success); }
.example-bad .example-shot { border-color: var(--error); }
.example-shot img { width: 200px; height: auto; }
.example-typed { display: flex; flex-direction: column; font: 15px/1.3 var(--font-memo); color: #111; }
.example figcaption { margin-top: var(--s-4); color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.verdict { font: 600 13px/1 var(--font-sans); padding: 6px 10px; border-radius: 999px; }
.verdict-good { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.verdict-bad { background: color-mix(in srgb, var(--error) 13%, transparent); color: var(--error); }
.guide-steps h2 { font-size: 30px; }
.guide-tip { margin: var(--s-6) 0 0; color: var(--text-muted); max-width: 60ch; }
.guide-cta { margin-top: var(--s-8); }
@media (max-width: 700px) { .examples { grid-template-columns: 1fr; } .guide { padding-top: calc(64px + var(--s-6)); } }
