:root {
  --sky: #e4ded3;          /* warm stone band */
  --sky-deep: #d4ccbe;
  --paper: #f5f2ec;
  --card: #fffdf9;
  --ink: #0e1620;          /* midnight */
  --ink-soft: #1b2632;
  --ink-fg: #ece6db;
  --sun: #c98a5b;          /* copper */
  --sun-deep: #b0703f;
  --muted: #5d6874;
  --line: rgba(23, 32, 43, 0.14);
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(23, 32, 43, 0.35);
  --display: "Archivo Black", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--sun); padding: .5rem 1rem; border-radius: 99px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  display: inline-flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); display: inline-block; }
.section-title { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }
.lead-text { font-size: 15px; color: var(--muted); max-width: 440px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer; font: 600 15px var(--sans);
  padding: 14px 26px; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-sun { background: var(--sun); color: #fff; box-shadow: 0 8px 22px -10px rgba(176, 112, 63, .9); }
.btn-sun:hover { background: var(--sun-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-ink { background: var(--ink); color: var(--ink-fg); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 40; color: var(--ink-fg);
  transition: background .3s, box-shadow .3s;
}
.bar.scrolled { background: rgba(14, 22, 32, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(236,230,219,.1); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; max-width: 1180px; margin: 0 auto; }
.mark { font-family: var(--display); text-transform: uppercase; text-decoration: none; font-size: 19px; letter-spacing: .01em; }
.mark em { font-family: var(--serif); text-transform: none; font-size: 22px; font-weight: 400; margin-left: 2px; }
.nav { display: none; gap: 28px; font-size: 13px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 860px) { .nav { display: flex; } }

/* Hero */
.hero { position: relative; isolation: isolate; margin-top: -76px; padding-top: 76px; min-height: 700px; color: var(--ink-fg); overflow: hidden; background: var(--ink); }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; filter: saturate(.8); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,22,32,.96) 0%, rgba(14,22,32,.88) 38%, rgba(14,22,32,.45) 64%, rgba(14,22,32,.15) 85%);
}
.hero-copy { padding: 96px 0 80px; max-width: 600px; }
.hero h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .95; margin-top: 18px; letter-spacing: -0.01em; }
.hero .tag { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-top: 12px; }
.hero .tag i { color: var(--sun); }
.hero p.sub { margin-top: 22px; max-width: 460px; font-size: 16.5px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero small { display: block; margin-top: 18px; font-size: 12.5px; color: rgba(236,230,219,.65); }

.note {
  position: absolute; background: var(--card); border-radius: 10px; padding: 14px 18px;
  box-shadow: var(--shadow); display: none; font-size: 13px; color: var(--ink);
}
.note-1 { right: 5%; top: 108px; transform: rotate(4deg); animation: float 6s ease-in-out infinite; width: 256px; }
.note-2 { right: 27%; bottom: 64px; transform: rotate(-3deg); background: var(--sun); color: #fff; animation: float 7s ease-in-out infinite .8s; width: 280px; }
.note b { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.note b span { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 11px; }
.note p { margin-top: 6px; }
.note .big { font-family: var(--serif); font-size: 32px; line-height: 1; }
.note svg { flex: none; }
.note-row { display: flex; align-items: flex-start; gap: 6px; }
.note-row svg { margin-top: 2px; }
.note-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.note-list li { display: flex; align-items: center; gap: 7px; }
.note-2 b span { color: rgba(255,255,255,.75); }
.note-checks { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 12px; }
.note-checks li { display: flex; align-items: center; gap: 7px; }
.note-checks svg { color: var(--sun-deep); }
@media (min-width: 1040px) { .note { display: block; } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Reveal */
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Sections */
.band { padding: 88px 0; }
.band-paper { background: var(--paper); }
.band-sky { background: var(--sky); }
.band-ink { background: var(--ink); color: var(--ink-fg); }
.band-sun { background: var(--sun); }
.split { display: grid; gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }

.intro h2 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.stats .n { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.stats p:last-child { font-size: 13px; margin-top: 6px; color: var(--muted); }

/* Draft tabs */
.drafts { margin-top: 60px; }
.drafts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.drafts-head h3 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.02; }
.drafts-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .drafts-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
@media (min-width: 960px) { .tabs { flex-direction: column; overflow: visible; } }
.tab {
  display: flex; align-items: center; gap: 10px; text-align: left; white-space: nowrap;
  border: 1px solid transparent; background: transparent; padding: 12px 14px; border-radius: 10px;
  font: 600 14px var(--sans); color: var(--muted); cursor: pointer; transition: all .2s;
}
.tab span.num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--ink); background: rgba(23,32,43,.04); }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 6px 18px -10px rgba(23,32,43,.4); }
.tab svg { margin-left: auto; width: 14px; opacity: 0; transition: opacity .2s; }
.tab[aria-selected="true"] svg { opacity: 1; }
.tab-cta { color: var(--sun); border: 1px dashed var(--line); }
.tab-cta svg { opacity: 1; }
@media (min-width: 960px) { .tab-cta { margin-top: 8px; } }

.panel { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.panel[hidden] { display: none; }
.mock { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.mock-top { background: var(--ink); color: var(--ink-fg); padding: 20px 26px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.mock-top small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.mock-top small em { color: var(--sun); font-style: normal; }
.mock-top h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 6px 0 0; line-height: 1.1; }
.pill { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--sun); color: #fff; white-space: nowrap; }
.mock-body { padding: 24px 26px; font-size: 14px; }
.sys-flow {
  display: grid; gap: 8px; margin-bottom: 18px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
@media (min-width: 640px) { .sys-flow { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.sys-flow span { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink); }
.sys-flow span b { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--sun-deep); }
.mock-body code { font-size: 12.5px; background: var(--paper); padding: 2px 5px; border-radius: 4px; }
.mock-body dl { display: grid; gap: 18px; margin: 0; }
@media (min-width: 640px) { .mock-body dl { grid-template-columns: 1fr 1fr; } }
.mock-body dt { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.mock-body dd { margin: 6px 0 0; }
.mock-body .draft { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--sun); background: var(--paper); border-radius: 0 8px 8px 0; font-size: 14px; }
.mock-body .draft p + p { margin-top: 8px; }
.ph { background: #f1dcc9; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.mock-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding: 14px 26px; border-top: 1px solid var(--line); background: rgba(23,32,43,.03); font-size: 12px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.check svg { width: 14px; height: 14px; }
.list-rows { display: grid; gap: 0; margin-top: 4px; }
.list-rows div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.list-rows div:first-child { border-top: 0; }
.list-rows b { min-width: 74px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.tiny { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }

/* Who */
.who ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 15px; }
.who li { display: flex; gap: 12px; }
.who li svg { flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }
.who-more { margin-top: 18px; max-width: 460px; font-size: 14px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-pad { padding: 30px; }
.card-foot { margin-top: auto; padding: 22px 30px; border-top: 1px solid var(--line); background: rgba(23,32,43,.03); }
.card h3 { font-size: 36px; line-height: 1.05; margin-top: 12px; }
.card p { font-size: 14.5px; margin-top: 14px; }
.stat-quote { font-family: var(--serif); font-size: 64px; line-height: 1; }

/* Steps */
.center { text-align: center; }
.center .section-title { margin: 14px auto 0; max-width: 720px; }
.steps { display: grid; gap: 20px; margin-top: 52px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-radius: var(--radius); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s; }
.step:hover { transform: translateY(-4px); }
.step-pad { padding: 28px; }
.step small { font-size: 12px; }
.step h3 { font-size: 32px; line-height: 1.05; margin-top: 10px; }
.step p { font-size: 14.5px; margin-top: 14px; }
.step .price-tag { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding: 6px 12px; background: rgba(255,255,255,.65); border-radius: 99px; }
.step-visual { margin-top: auto; padding: 0 28px; height: 150px; display: flex; align-items: flex-end; }
.step-visual .mini { width: 100%; background: var(--card); border-radius: 10px 10px 0 0; padding: 16px; box-shadow: var(--shadow); font-size: 12px; transition: transform .4s; }
.step:hover .mini { transform: rotate(0deg) !important; }
.s1 { background: var(--sky); } .s1 .mini { transform: rotate(-3deg); }
.s2 { background: var(--sun); } .s2 .mini { transform: rotate(3deg); }
.s3 { background: var(--paper); } .s3 .mini { transform: rotate(-2deg); }
.mini .row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.mini .row:first-of-type { border-top: 0; }
.care-strip { margin-top: 20px; border: 1px solid rgba(244,239,228,.22); border-radius: var(--radius); padding: 28px; display: grid; gap: 20px; }
@media (min-width: 860px) { .care-strip { grid-template-columns: 1fr 2fr; align-items: center; } }
.care-strip h3 { font-size: 32px; line-height: 1.05; margin-top: 8px; }
.care-strip ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
@media (min-width: 640px) { .care-strip ul { grid-template-columns: repeat(3, 1fr); } }
.care-strip li { display: flex; gap: 8px; }
.care-strip svg { color: var(--sun); width: 16px; flex-shrink: 0; margin-top: 3px; }
.motto { font-family: var(--serif); font-size: 26px; color: var(--sun); text-align: center; margin-top: 44px; }

/* Pricing */
.deal { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; font-size: 13px; }
.deal strong { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.tiers { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier.featured { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.tier.featured .muted { color: rgba(244,239,228,.7); }
.tier-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tier-head span:first-child { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.amount { font-family: var(--display); font-size: 46px; margin-top: 20px; line-height: 1; }
.amount small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; opacity: .68; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 13px; margin-top: 8px; }
.tier ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14.5px; }
.tier li { display: flex; gap: 8px; }
.tier li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.tier .btn { margin-top: auto; }
.extras { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .extras { grid-template-columns: repeat(3, 1fr); } }
.extra { border: 1px dashed rgba(23,32,43,.3); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; }
.extra h3 { font-size: 26px; }
.extra p { font-size: 14px; margin-top: 8px; color: var(--muted); }
.extra b { font-family: var(--display); font-size: 22px; display: block; margin-top: auto; padding-top: 12px; }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 30px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 720px; color: var(--muted); font-size: 15px; }

/* Close / inline form */
.close-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .close-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; } }
.close-grid h2 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: .98; }
.close-grid > div > p { margin-top: 18px; font-size: 16px; max-width: 440px; }

.form-card { background: var(--card); border-radius: 18px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(23,32,43,.5); color: var(--ink); }
.form-card h3 { font-size: 30px; line-height: 1.05; }
.form-card .hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; border: 0; padding: 0; }
.chips legend { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; user-select: none; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--sun-deep); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 12px; font-weight: 700; }
.field label i { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field textarea {
  font: 15px var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .15s, background .15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form-card .btn { width: 100%; margin-top: 18px; }
.form-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.step2[hidden], .step1[hidden] { display: none; }
.progress { display: flex; gap: 6px; margin-top: 16px; }
.progress i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background .3s; }
.progress i.on { background: var(--sun-deep); }
.status { font-size: 14px; margin-top: 12px; }
.status.error { color: #a3341f; }
.done { text-align: center; padding: 20px 0 6px; }
.done .serif { font-size: 40px; line-height: 1; }
.done p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.hp { position: absolute; left: -9999px; }

/* Modal */
dialog { border: 0; padding: 0; background: transparent; max-width: 480px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(23,32,43,.55); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.x { position: absolute; right: 14px; top: 12px; background: transparent; border: 0; font-size: 26px; cursor: pointer; line-height: 1; color: var(--muted); }
dialog .form-card { position: relative; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; display: flex; transform: translateY(140%); transition: transform .35s; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 860px) { .sticky-cta { display: none; } }

footer { background: var(--ink); color: rgba(244,239,228,.7); font-size: 13px; padding: 32px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--ink-fg); }

/* Result page from api/lead.js */
.sheet { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.note-page { text-align: center; padding: 40px; }
.note-page .motto { color: var(--ink); font-size: 44px; margin: 0 0 12px; }
.text-link { display: inline-block; margin-top: 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
