/* Kadro — landing styles
   Palette: warm off-white bg, deep forest accent, warm amber highlight.
   Type: Fraunces (display) + Inter (body).
*/

:root {
  --bg: #faf7f1;
  --bg-2: #f3ede1;
  --ink: #1a2321;
  --ink-2: #3d4a46;
  --muted: #6b746f;
  --line: #e6dfd0;
  --accent: #1f4d3f;        /* deep forest */
  --accent-ink: #ffffff;
  --accent-2: #d98b2b;      /* warm amber */
  --bad: #8a3a2a;
  --good: #1f4d3f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20,30,25,.04), 0 10px 30px -12px rgba(20,30,25,.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,247,241,.85);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-family: "Fraunces", serif; font-weight: 600; font-size: 18px;
}
.brand-word { font-family: "Fraunces", serif; font-size: 22px; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--ink-2); font-size: 15px; }
.nav-cta { font-size: 14px; }
@media (max-width: 720px) {
  .nav nav { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 16px/1 "Inter", sans-serif;
  padding: 14px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .06s ease, background .15s ease, color .15s ease, border-color .15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #163a2f; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 14px; min-height: 40px; font-size: 14px; }

/* ---------- HERO ---------- */
.hero { padding: 56px 0 24px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: var(--accent); font-weight: 600; margin: 0 0 14px;
}
h1 {
  font-family: "Fraunces", serif;
  font-weight: 500; letter-spacing: -0.025em;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02; margin: 0 0 20px;
  color: var(--ink);
}
.lede {
  font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 28px;
}
.lede-alt { font-size: 18px; color: var(--ink-2); margin: 12px 0 24px; max-width: 40em; }

.micro { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.secondary-link { margin-top: 22px; }
.linky { font-size: 15px; border-bottom: 1px solid currentColor; }

/* Capture form */
.capture { margin-top: 8px; }
.capture-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; box-shadow: var(--shadow);
  max-width: 520px;
}
.capture-row input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 10px 16px; font-size: 16px; color: var(--ink);
  min-height: 40px;
}
.capture-row input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.capture-row .btn { flex: 0 0 auto; }
.capture-row.is-invalid {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(138, 58, 42, .14);
}
/* Inline validation message. The live region stays rendered while empty, never
   display:none, because display:none drops a node out of the accessibility
   tree and the region has to exist there before the text lands in it. An empty
   block-level p generates no line boxes, so zeroing its margin is all it takes
   to give it no visual footprint. */
.field-error {
  margin: 10px 0 0;
  color: var(--bad);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
/* .modal-card p (0,1,1) outranks .field-error (0,1,0) and sits later in this
   file, so inside the modal the message needs a (0,2,0) selector to keep the
   error red instead of rendering as ordinary body copy. Must stay above the
   :empty rule, which ties at (0,2,0) and has to win on source order. */
.modal-card .field-error { margin: 10px 0 0; color: var(--bad); }
.field-error:empty { margin-top: 0; }
@media (max-width: 480px) {
  .capture-row { border-radius: var(--radius); padding: 10px; }
  .capture-row input { padding: 12px 12px; }
  .capture-row .btn { width: 100%; }
}

/* Qualifier */
.qualifier {
  margin-top: 18px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.qualifier-title { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.q + .q { margin-top: 12px; }
.q-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.q-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.q-opts button {
  border: 1px solid var(--line); background: var(--bg);
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  font: 500 13px "Inter"; color: var(--ink);
}
.q-opts button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.thanks { display: none; margin: 12px 0 0; color: var(--accent); font-weight: 500; }
.qualifier.done .thanks { display: block; }

/* Hero visual — text thread */
.hero-visual {
  background: linear-gradient(180deg, #fff 0%, #f7f1e3 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.thread {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14.5px;
}
.thread-head {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; margin-bottom: 6px;
}
.thread-head .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.thread-head .time { margin-left: auto; }
.msg {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  opacity: 0; transform: translateY(6px);
  animation: pop .5s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(var(--i) * 320ms + 200ms);
}
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.us   { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.system {
  align-self: stretch; max-width: 100%; text-align: center;
  background: #fff7e8; border: 1px dashed var(--accent-2); color: #6b3f0d;
  border-radius: 10px; font-size: 13px;
}
@keyframes pop { to { opacity: 1; transform: translateY(0); } }
.thread-caption { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.price-strip {
  max-width: var(--max); margin: 32px auto 0; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 15px;
}
.price-strip strong { color: var(--ink); font-size: 18px; font-family: "Fraunces", serif; }
.price-strip span { color: var(--muted); }

/* ---------- SECTIONS ---------- */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section-title {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em;
  line-height: 1.1; margin: 0 0 36px;
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.steps li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.steps h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: 20px; margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--ink-2); }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--bg-2); color: var(--accent);
  font-family: "Fraunces", serif; font-weight: 600;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* Scenario */
.scenario { background: var(--bg-2); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.split-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.split-col h3 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; }
.split-col.bad h3 { color: var(--bad); }
.split-col.good h3 { color: var(--good); }
.split-col ul { margin: 0; padding: 0 0 0 18px; color: var(--ink-2); }
.split-col li + li { margin-top: 8px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* Features */
.grid.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: 20px; margin: 0; }
.card p { margin: 0; color: var(--ink-2); }
.card-featured {
  background: linear-gradient(180deg, #1f4d3f 0%, #163a2f 100%);
  color: #fff; border-color: transparent;
}
.card-featured h3, .card-featured p { color: #fff; }
.card-featured .pill {
  align-self: flex-start; background: rgba(255,255,255,.12); color: #f7f1e3;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 900px) { .grid.features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid.features { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { background: var(--bg-2); }
.pricing-inner { display: grid; place-items: center; }
.price-card {
  width: 100%; max-width: 640px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 40px; text-align: center; box-shadow: var(--shadow);
}
.price {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: "Fraunces", serif; color: var(--ink); margin: 6px 0 18px;
}
.price .dollar { font-size: 32px; }
.price .amount { font-size: 84px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.price .per { font-size: 20px; color: var(--muted); margin-left: 8px; font-family: "Inter"; }
.price-bullets { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--ink-2); }
.price-bullets li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.compare { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0 auto 24px; }
.price-card .capture-row { margin: 0 auto; }

/* FAQ */
.faq-wrap { max-width: 780px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: "Fraunces", serif; font-size: 20px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: "Inter"; font-size: 24px; color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq-body { padding-top: 10px; color: var(--ink-2); }
.faq-body p { margin: 0; }

/* Footer */
.footer { background: var(--ink); color: #d9dfdb; padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer strong { color: #fff; font-family: "Fraunces", serif; }
.foot-links a { color: #d9dfdb; }
.consent { flex-basis: 100%; margin: 6px 0 0; color: #8a938f; font-size: 13px; }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,25,20,.55); }
.modal-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 18px; padding: 28px 24px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.35);
  animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-card h2 { font-family: "Fraunces", serif; font-weight: 500; margin: 0 0 8px; font-size: 24px; }
.modal-card p { margin: 0 0 16px; color: var(--ink-2); }
.modal-x {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted);
}

/* Scenario compare threads (grafted from variant 2, styled to this system) */
.split-threads .split-col { padding: 18px; }
.thread-compare { font-size: 13.5px; margin-top: 4px; }
.thread-compare .msg { max-width: 94%; }
.msg-meta { display: block; font-size: 11.5px; margin-top: 4px; opacity: .75; }
.msg.missed {
  align-self: flex-start; background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-2); border-bottom-left-radius: 6px;
}
.thread-bad .msg.us.late { background: var(--muted); }
.msg.system.lost {
  background: #f8e9e5; border: 1px dashed var(--bad); color: var(--bad); font-weight: 500;
}
.msg.system.won {
  background: #e8f2ec; border: 1px dashed var(--good); color: var(--good); font-weight: 500;
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
