/* Honest Intros public site. Tokens first; the app in web/ uses the same names. */
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f7f5f0; --card: #ffffff; --ink: #141414; --ink-2: #3a3833; --muted: #6d6961; --line: rgba(20, 20, 20, .10);
  --mark: #ffe169; --mark-soft: #fff4bf; --go: #1f7a4f; --go-soft: #e4f3ea; --warn: #b42318;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --r: 12px; --r-lg: 18px;
  --shadow: 0 0 .5px rgba(0,0,0,.18), 0 3px 8px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lift: 0 0 .5px rgba(0,0,0,.18), 0 12px 32px rgba(0,0,0,.10), 0 3px 8px rgba(0,0,0,.06);
  --max: 1160px; --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; }
a { color: inherit; text-decoration-color: rgba(20,20,20,.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-wrap: balance; }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
kbd { font: 600 .8em var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--card); }
mark { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); color: inherit; padding: 0 2px; }

/* header and footer */
header.top { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; }
.logo-mark { width: 28px; height: 28px; }
header.top nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
header.top nav a { text-decoration: none; color: var(--ink-2); }
header.top nav a:hover { color: var(--ink); }
footer.bottom { max-width: var(--max); margin: 96px auto 0; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 10px; font-weight: 600; }
footer .cols a { display: block; text-decoration: none; padding: 3px 0; }
footer .cols a:hover { color: var(--ink); }
footer .fine { margin-top: 28px; font-size: .82rem; max-width: 70ch; }

/* buttons and the website box */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--ink);
  color: #fff; font: 600 1rem var(--sans); padding: 13px 22px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.site-form { display: flex; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow);
  max-width: 480px; margin-top: 28px; transition: box-shadow .2s ease; }
.site-form:focus-within { box-shadow: var(--shadow-lift), 0 0 0 3px var(--mark); }
.site-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.05rem var(--sans); color: var(--ink); }
.site-form input::placeholder { color: #9b968c; }
.under-form { font-size: .88rem; color: var(--muted); margin: 10px 0 0 20px; }

/* hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-2); background: var(--card);
  border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow); margin: 0 0 22px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 0 rgba(31,122,79,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31,122,79,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,79,0); } }
.marked { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; white-space: nowrap;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88% / 0% 42%; animation: sweep .9s .35s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes sweep { to { background-size: 100% 42%; } }
.lede { font-size: 1.18rem; color: var(--ink-2); margin: 20px 0 0; max-width: 34em; }

/* the live stage */
.stage { position: relative; min-height: 470px; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.browser { position: relative; width: 88%; overflow: hidden; z-index: 1; }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3dfd6; }
.url { margin-left: 10px; flex: 1; font-size: .8rem; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 3px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { padding: 18px 20px 20px; min-height: 196px; }
.site-name { font: 400 1.5rem/1.1 var(--serif); margin: 0 0 10px; }
.line { margin: 0 0 7px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.line span { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 90% / 0% 45%; transition: background-size .8s cubic-bezier(.2,.7,.2,1); }
.line.hl span { background-size: 100% 45%; }
.line.skeleton { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #eeebe4 25%, #f7f5f0 50%, #eeebe4 75%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.draft { position: absolute; right: 0; top: 150px; width: 76%; padding: 14px 18px 14px; z-index: 2; font-size: .88rem;
  transition: transform .7s cubic-bezier(.5,0,.2,1), opacity .5s ease; }
.draft-head { display: flex; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.draft-head span { width: 52px; }
.draft-head b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-body { min-height: 150px; padding: 10px 0 4px; line-height: 1.5; }
.draft-body p { margin: 0 0 7px; }
.draft-body .ph { color: var(--muted); font-style: italic; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.draft-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.check { font-size: .78rem; color: var(--go); opacity: 0; transition: opacity .4s ease; }
.check::before { content: "✓ "; font-weight: 700; }
.check.on { opacity: 1; }
.approve { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .82rem; transition: background .25s ease, transform .15s ease; }
.approve.pressed { transform: scale(.94); }
.approve.done { background: var(--go); }
.sent-chip { position: absolute; right: 4%; bottom: 8px; z-index: 2; background: var(--card); box-shadow: var(--shadow-lift); border-radius: 999px;
  padding: 8px 16px; font-size: .82rem; color: var(--ink-2); opacity: 0; transform: translateY(12px); filter: blur(4px);
  transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.sent-chip.on { opacity: 1; transform: none; filter: none; }
.cursor { position: absolute; width: 22px; height: 22px; left: 0; top: 0; z-index: 4; opacity: 0; transition: opacity .3s ease;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.flying { position: absolute; z-index: 5; margin: 0; font-size: .88rem; line-height: 1.45; background: var(--mark-soft); border-radius: 6px;
  padding: 2px 6px; box-shadow: var(--shadow); pointer-events: none; }
.draft.gone { transform: translate(40px, -30px) scale(.92); opacity: 0; }
.enter { animation: enter .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* bands below the hero */
.band { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 8px; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px; position: relative; }
.step .num { position: absolute; top: 18px; right: 20px; font: italic 400 1.6rem var(--serif); color: #c9c4b8; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 8px 0 14px; }
.mini { font-size: .82rem; background: var(--paper); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #ebe7dd; color: var(--ink-2); }
.tag.ok { background: var(--go-soft); color: var(--go); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.three h3 { font: 400 1.6rem/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 8px; }
.three p { color: var(--ink-2); margin: 0; }
.compare-links { margin-top: 32px; color: var(--muted); font-size: .95rem; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; margin-top: 32px; }
.price { padding: 24px; }
.price .big { font: 400 2.4rem var(--serif); margin: 6px 0 10px; }
.price ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.price li { margin: 5px 0; }
.faq { margin-top: 28px; max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 10px 0 0; }
.final { text-align: center; padding-top: 96px; }
.final .site-form { margin: 24px auto 0; }
.final .under-form { margin-left: 0; }

/* long-form pages */
.prose { max-width: 740px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.prose h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose .small, .stamp { font-size: .85rem; color: var(--muted); }
.note { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 16px; font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--r); box-shadow: var(--shadow); background: var(--card); }
table.compare { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 560px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td:last-child { background: #fcfbf6; }
.sample { padding: 20px 22px; margin: 16px 0; }
.sample p { margin: 0 0 10px; color: var(--ink); }
.end-cta { margin-top: 56px; padding: 28px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.end-cta h2 { margin-top: 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; }
  .steps, .three { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  header.top nav { display: none; }
  header.top .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .three, .prices { grid-template-columns: 1fr; }
  .stage { min-height: 440px; }
  .browser { width: 100%; }
  .draft { width: 90%; top: 170px; }
  .site-form { padding-left: 16px; }
  .site-form .btn { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marked { background-size: 100% 42%; }
}
