/* Eduko — shared styles.
   One stylesheet for every page. Keep it small: this file is render-blocking
   and your landing page has to be under 2s on 4G. */

:root {
  --paper: #FDFAF4;
  --card: #FFFFFF;
  --ink: #1C1A17;
  --ink-2: #56514A;
  --ink-3: #8A837A;
  --rule: #E8E0D3;
  --brand: #1F4E6B;      /* deep teal-navy — trust, adult, not childish */
  --brand-dark: #163a50;
  --accent: #E08A2C;     /* warm amber — the buy button */
  --accent-dark: #C4741C;
  --good: #2E7D5B;
  --wash: #F4EDE0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28,26,23,.05), 0 12px 32px -20px rgba(28,26,23,.4);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16.5px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

h1, h2, h3 { line-height: 1.18; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; margin-top: 0; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }

/* ---------- header / footer ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--card);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.logo {
  font-weight: 800; font-size: 18px; color: var(--brand);
  text-decoration: none; letter-spacing: -.02em;
}
.logo span { color: var(--accent); }
.site-head .hint { font-size: 13.5px; color: var(--ink-3); }

.site-foot {
  border-top: 1px solid var(--rule); margin-top: 64px;
  padding: 32px 0 48px; font-size: 14px; color: var(--ink-3);
  background: var(--wash);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot address { font-style: normal; line-height: 1.7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  font: inherit; font-weight: 700; font-size: 17px;
  padding: 15px 30px; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; box-shadow: var(--shadow);
  transition: background .15s, transform .05s;
  width: 100%; max-width: 420px;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--ink-3); cursor: not-allowed; }
.btn.ghost {
  background: transparent; color: var(--ink-2); box-shadow: none;
  border: 1px solid var(--rule); font-weight: 600; font-size: 15px; padding: 12px 22px;
}
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-note { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding: 52px 0 44px; }
.hero .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 14px;
}
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 40ch; }
.hero-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }

.sheet-stack {
  background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.sheet {
  aspect-ratio: 3/4; background: #fff; border: 1px solid var(--rule);
  border-radius: 4px; padding: 8px; display: flex; flex-direction: column; gap: 5px;
}
.sheet i { display: block; height: 4px; background: var(--rule); border-radius: 2px; }
.sheet i.short { width: 55%; }
.sheet i.dark { background: #cfc4b0; }
.sheet-caption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 14px; }

/* ---------- sections ---------- */
section { padding: 44px 0; }
.section-alt { background: var(--wash); border-block: 1px solid var(--rule); }

.features { display: grid; gap: 18px; padding: 0; margin: 24px 0 0; list-style: none; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features li {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 22px;
}
.features b { display: block; margin-bottom: 4px; font-size: 16.5px; }
.features span { color: var(--ink-2); font-size: 15.5px; }

.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li {
  padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  color: var(--good); font-weight: 700;
}

/* ---------- price box ---------- */
.pricebox {
  background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius);
  padding: 28px; max-width: 460px; margin: 28px auto 0; text-align: center;
  box-shadow: var(--shadow);
}
.pricebox .amount { font-size: 44px; font-weight: 800; color: var(--brand); line-height: 1; }
.pricebox .amount small { font-size: 17px; font-weight: 600; color: var(--ink-3); }
.pricebox .strike { color: var(--ink-3); text-decoration: line-through; margin-left: 8px; font-size: 20px; font-weight: 600; }
.pricebox .terms { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; }
.pricebox .btn { margin-top: 18px; }

/* ---------- faq ---------- */
details {
  border-bottom: 1px solid var(--rule); padding: 14px 0;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 2px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- checkout ---------- */
.panel {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--paper);
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.field .err { color: #B0341C; font-size: 13.5px; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #B0341C; }

.bump {
  border: 2px dashed var(--accent); background: #FDF6EA;
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
}
.bump label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; cursor: pointer; align-items: start; }
.bump input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.bump b { display: block; font-size: 16px; margin-bottom: 3px; }
.bump p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.bump .tag {
  display: inline-block; background: var(--accent); color: #fff; font-size: 11px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 8px;
}

.summary { border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 16px; }
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 15.5px; }
.summary .row.total { border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 12px; font-weight: 800; font-size: 20px; }
.summary .row span:last-child { font-variant-numeric: tabular-nums; }

.status { font-size: 14.5px; margin-top: 14px; min-height: 20px; }
.status.error { color: #B0341C; }

/* ---------- success / downloads ---------- */
.dl-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.dl-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 16px 20px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.dl-list a:hover { border-color: var(--brand); }
.dl-list a small { font-weight: 500; color: var(--brand); }

.badge {
  display: inline-block; background: #E4F1EA; color: var(--good);
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px;
  margin-bottom: 16px;
}

/* ---------- legal pages ---------- */
.legal { padding: 44px 0 20px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal .updated { font-size: 14px; color: var(--ink-3); }

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