/* editais.tech landing. Same tokens as the dashboard (editais/src/web/app.css). */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --sunken: #eef0ec;
  --ink: #121513;
  --ink-2: #3d4440;
  --muted: #5f6662;
  --line: #e3e5e1;
  --line-strong: #cfd3cd;
  --brand: #0c6b5a;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ed;
  --amber: #8a5300;
  --amber-soft: #fdf0d9;
  --red: #b42318;
  --red-soft: #fdecea;
  --green: #136c3f;
  --green-soft: #e4f3ea;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 20 / 5%), 0 8px 24px -12px rgb(16 24 20 / 14%);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e0d;
    --surface: #141716;
    --sunken: #1a1d1c;
    --ink: #edefed;
    --ink-2: #c3c9c5;
    --muted: #949b96;
    --line: #242826;
    --line-strong: #353a38;
    --brand: #43c4a8;
    --brand-ink: #06231d;
    --brand-soft: #11302a;
    --amber: #f1b866;
    --amber-soft: #33260f;
    --red: #ff8d82;
    --red-soft: #3a1613;
    --green: #6fd6a0;
    --green-soft: #10301f;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--bg); border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.tld { color: var(--muted); font-weight: 500; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.top-nav a:hover { color: var(--brand); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s; }
.button:hover { filter: brightness(1.07); }
.button.small { height: 40px; padding: 0 16px; font-size: 14px; }
.button.wide { width: 100%; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--sunken); filter: none; }
.button.invert { background: var(--brand-ink); color: var(--brand); }
.button:disabled { opacity: .6; cursor: progress; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 56px; align-items: start; padding: 72px 0 88px; }
.eyebrow { font: 500 13px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink-2); }

/* form */
.lead-form { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lead-form h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.form-intro { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.lead-form label { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.lead-form input { height: 48px; width: 100%; padding: 0 14px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.lead-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lead-form input[aria-invalid="true"] { border-color: var(--red); }
.lead-form .button { margin-top: 16px; }
.form-error { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--red); font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin-bottom: 36px; text-wrap: balance; max-width: 24ch; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: pain; }
.pains li { padding-top: 18px; border-top: 2px solid var(--ink); }
.pains p, .steps p, .rules p, .price p { color: var(--ink-2); margin-top: 8px; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.step-n { font: 500 15px var(--mono); color: var(--brand); padding-top: 2px; }

/* illustration */
.paper { margin: 0; position: sticky; top: 96px; }
.paper-sheet { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; }
.paper-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.paper-kind { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.paper-tag { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); }
.paper-h { font-weight: 600; margin-bottom: 8px; }
.paper-text { color: var(--ink-2); line-height: 1.7; }
.paper mark { background: var(--amber-soft); color: var(--amber); padding: 1px 4px; border-radius: 4px; font-family: var(--mono); font-size: 12.5px; }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--sunken); margin-top: 10px; }
.w90 { width: 90%; } .w75 { width: 75%; } .w82 { width: 82%; }
.checklist { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.checklist-title { font-weight: 600; font-size: 13px; }
.checklist p { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.ok, .miss { font: 600 11px var(--mono); padding: 2px 8px; border-radius: 999px; min-width: 46px; text-align: center; }
.ok { background: var(--green-soft); color: var(--green); }
.miss { background: var(--red-soft); color: var(--red); }
.paper figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rules > div { background: var(--surface); padding: 28px; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.price.featured { border: 2px solid var(--brand); }
.amount { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink) !important; margin: 10px 0 4px !important; font-variant-numeric: tabular-nums; }
.amount span { font-size: 16px; color: var(--muted); font-weight: 500; }
.price .note { font-size: 14px; color: var(--brand); font-weight: 500; }
.price .button { margin-top: auto; }
.price > p:last-of-type { margin-bottom: 24px; }

.faq details { border-top: 1px solid var(--line); }
.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; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

.closing { background: var(--brand); color: var(--brand-ink); margin-top: 24px; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 0; flex-wrap: wrap; }
.closing h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; font-weight: 600; max-width: 22ch; text-wrap: balance; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot .brand { font-size: 15px; color: var(--ink); }

/* thanks / 404 */
.notice-page { min-height: 70vh; display: grid; place-items: center; padding: 64px 0; }
.notice-card { max-width: 560px; }
.notice-card h1 { font-size: clamp(30px, 4vw, 44px); }
.notice-card p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.notice-card .button { margin-top: 28px; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .top-inner { justify-content: space-between; }
  .hero, .how { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 56px; }
  .lead { font-size: 17px; }
  .pains, .prices { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .paper { position: static; }
  .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .lead-form, .price, .rules > div { padding: 20px; }
  .closing-inner .button { width: 100%; }
}

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