/* Context Frame — marketing stylesheet.
   Hand-authored, no build step, no third-party requests. The display face is
   a system serif (durable-record voice); body is the system UI stack; the
   product's own artifact excerpts render in the system mono stack. */

:root {
  --ink: #10201C;
  --muted: #52645F;
  --ground: #F6F8F7;
  --surface: #FFFFFF;
  --line: #D9E1DE;
  --teal: #16655A;
  --teal-deep: #0D473F;
  --teal-wash: #E7F0EE;
  --amber: #9A6B22;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff;
  padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0; color: #fff; }

.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}

.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark span { color: var(--teal); }
.wordmark.small { font-size: 1.1rem; }
.site-head nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-head nav a {
  font-size: 0.95rem; color: var(--muted); text-decoration: none;
}
.site-head nav a:hover { color: var(--ink); }
.site-head nav a.is-current { color: var(--ink); font-weight: 600; }
.nav-cta {
  border: 1px solid var(--teal); border-radius: 4px; padding: 0.35rem 0.9rem;
  color: var(--teal) !important; font-weight: 600;
}
.nav-cta:hover { background: var(--teal-wash); }

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .shell {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem;
}
@media (max-width: 860px) { .hero .shell { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 1.3rem; }
.hero-copy .lede { font-size: 1.18rem; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  display: inline-block; border-radius: 5px; padding: 0.7rem 1.4rem;
  font-weight: 650; text-decoration: none; font-size: 1rem; border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

/* the artifact excerpt — the product's actual output as the hero visual */
.artifact {
  background: #0E1B18; color: #C9DED9; border-radius: 8px;
  padding: 1.4rem 1.5rem; font-family: var(--mono); font-size: 0.8rem;
  line-height: 1.75; overflow-x: auto; box-shadow: 0 20px 50px rgb(14 27 24 / 0.18);
}
.artifact .hd { color: #6FD3C2; }
.artifact .cm { color: #5E7C75; }
.artifact .em { color: #E8C87E; }

/* ---------- sections ---------- */
.band { padding: 4rem 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { display: flex; flex-direction: column; gap: 0.6rem; max-width: 44rem; margin-bottom: 2.2rem; }
.band-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.band.alt .card { background: var(--ground); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .k { font-family: var(--mono); font-size: 0.78rem; color: var(--teal); }

/* numbered loop — a real sequence, so numbers carry meaning */
.loop { counter-reset: step; display: grid; gap: 1.1rem; max-width: 46rem; }
.loop li {
  list-style: none; counter-increment: step; display: grid;
  grid-template-columns: 2.6rem 1fr; gap: 1.1rem; align-items: start;
}
.loop li::before {
  content: counter(step);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--teal);
  border: 1px solid var(--line); border-radius: 50%; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; background: var(--surface);
}
.loop h3 { margin-bottom: 0.2rem; }
.loop p { color: var(--muted); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.2rem; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.plan.featured { border-color: var(--teal); box-shadow: 0 12px 32px rgb(22 101 90 / 0.12); }
.plan .name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.plan .price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.94rem; color: var(--muted); }
.plan ul li::before { content: "— "; color: var(--teal); }
.plan .btn { text-align: center; margin-top: auto; }
.plans-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.9rem; max-width: 46rem; }

/* ---------- prose pages ---------- */
.prose { max-width: 44rem; display: grid; gap: 1.1rem; }
.prose h2 { margin-top: 1.4rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }

/* ---------- faq ---------- */
.faq { max-width: 46rem; display: grid; gap: 0.9rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem 1.3rem;
}
.faq details[open] { border-color: var(--teal); }
.faq summary {
  font-weight: 650; cursor: pointer; font-size: 1.02rem;
  list-style-position: outside;
}
.faq details p { color: var(--muted); margin-top: 0.7rem; }

/* ---------- forms ---------- */
.form-grid { max-width: 34rem; display: grid; gap: 1.1rem; }
label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 0.4rem; }
input, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 5px; padding: 0.65rem 0.8rem; width: 100%;
}
input:hover, textarea:hover { border-color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice {
  border: 1px solid var(--teal); background: var(--teal-wash); color: var(--teal-deep);
  border-radius: 6px; padding: 0.9rem 1.1rem; font-weight: 600;
}
.error-text { color: #8C2B2B; font-size: 0.88rem; font-weight: 400; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 4rem; }
.foot-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  padding-top: 2.2rem; padding-bottom: 2.4rem; align-items: start;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-tag { color: var(--muted); font-family: var(--serif); font-style: italic; margin-top: 0.3rem; }
.site-foot nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-foot nav a:hover { color: var(--ink); }
.foot-legal { grid-column: 1 / -1; color: var(--muted); font-size: 0.84rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
