/* ============================================================
   The Tech Pad — shared site styles (marketing subpages)
   Tokens match the home page + admin design system.
   ============================================================ */
:root {
  --ink: #10251e;
  --muted: #63716b;
  --paper: #f7f7f4;
  --card: #fff;
  --line: #dfe5e1;
  --green: #087552;
  --emerald: #059669;
  --lime: #dfff8f;
  --deep: #0d2b22;
  --soft: #ecf6f1;
  --shadow: 0 24px 70px #10251e1a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background: linear-gradient(180deg, #f4f7f3 0, #f8f8f5 38%, #f7f7f4 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
button, a, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }

/* ---------- nav ---------- */
header.wrap {
  position: sticky; top: 0; z-index: 30; width: 100%;
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  background: #f7f7f4f2; border-bottom: 1px solid #dfe5e1b8;
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; width: 230px; max-width: 34vw; height: auto; }
.footer .brand-logo { width: 180px; }
.links { display: flex; gap: 30px; color: #42534c; font-size: 14px; }
.links a:hover { color: var(--green); }
.nav-actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 19px;
  font-weight: 700; font-size: 14px; background: var(--card); transition: .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px #10251e14; }
.btn.dark { background: var(--deep); color: #fff; border-color: var(--deep); }
.btn.lime { background: var(--lime); color: var(--deep); border-color: var(--lime); }
.menu { display: none; background: none; border: 0; font-size: 24px; }

/* ---------- page hero ---------- */
.page-hero { padding: 84px 0 56px; text-align: center; }
.page-hero h1 {
  max-width: 860px; margin: 18px auto 16px; text-wrap: balance;
  font-size: clamp(42px, 6.4vw, 76px); line-height: 1; letter-spacing: -.06em; font-weight: 780;
}
.page-hero h1 span { color: var(--green); }
.page-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px solid #cddbd4; background: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 760; color: #365247;
}
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-weight: 800;
  color: var(--green); font-size: 11px;
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.05em; line-height: 1.05; margin: 12px 0; }
.section-head p { color: var(--muted); font-size: 16px; }
.dark-section { background: var(--deep); color: #fff; }
.dark-section .kicker { color: var(--lime); }
.dark-section .section-head p { color: #a9beb6; }

/* ---------- pricing ---------- */
.free-banner {
  max-width: 780px; margin: 0 auto 34px; padding: 14px 18px; border-radius: 14px;
  background: var(--soft); border: 1px solid #cfe6d9; text-align: center; font-size: 13px;
}
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; transition: .22s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 16px 38px #071d1711; }
.plan.pop { background: var(--deep); color: #fff; }
.plan-tag { font-size: 11px; color: var(--green); font-weight: 800; }
.plan.pop .plan-tag { color: var(--lime); }
.price { font-size: 36px; font-weight: 780; letter-spacing: -.05em; margin: 14px 0 4px; }
.price span { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan.pop .price span, .plan.pop .desc { color: #aec1b9; }
.desc { color: var(--muted); font-size: 13px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; color: var(--muted); font-size: 12.5px; flex: 1; }
.plan li:before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 8px; }
.plan.pop li:before { color: var(--lime); }
.plan .btn { width: 100%; margin-top: 16px; }
.plan-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; }

/* comparison table */
.compare-wrap { overflow-x: auto; margin-top: 64px; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 13.5px; min-width: 720px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid #edf1ee; text-align: left; }
.compare thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fafbf9; }
.compare thead th.plan-name { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 800; color: var(--ink); }
.compare thead th.pop-col { background: var(--deep); color: #fff; }
.compare td.row-label { color: var(--muted); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--green); font-weight: 800; }
.compare td.no { color: #a8b3ae; }
.compare td.pop-col { background: #0f352b; color: #d9e9e1; }
.compare td.yes.pop-col { color: var(--lime); }

/* ---------- docs ---------- */
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 13.5px; }
.doc-toc a { padding: 7px 12px; border-radius: 9px; color: #42534c; text-decoration: none; }
.doc-toc a:hover { background: #eef3ef; color: var(--green); }
.doc-body { min-width: 0; }
.doc-body h2 { font-size: 30px; letter-spacing: -.04em; margin: 56px 0 14px; scroll-margin-top: 96px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 19px; margin: 30px 0 10px; }
.doc-body p, .doc-body li { color: #3d4c46; font-size: 15px; }
.doc-body ul { padding-left: 20px; }
.doc-body code {
  background: #eef3ef; border: 1px solid #dfe7e2; border-radius: 6px;
  padding: 2px 6px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.endpoint {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin: 18px 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.method {
  font-size: 11px; font-weight: 900; letter-spacing: .06em; padding: 5px 10px;
  border-radius: 8px; background: #e6f7ed; color: var(--green);
}
.endpoint code.url { font-size: 14px; }
.endpoint .desc { flex-basis: 100%; margin: 0; }
pre.code {
  background: #071d17; border: 1px solid #28483e; border-radius: 14px; padding: 18px 20px;
  color: #c9ddd5; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto; margin: 14px 0;
}
pre.code .green { color: #87e8ba; }
pre.code .yellow { color: #ddff91; }
pre.code .dim { color: #6f9488; }
table.data {
  width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; font-size: 13.5px; margin: 16px 0;
}
table.data th, table.data td { padding: 11px 14px; border-bottom: 1px solid #edf1ee; text-align: left; vertical-align: top; }
table.data thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fafbf9; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data code { white-space: nowrap; }
.note {
  border: 1px solid #cfe6d9; background: var(--soft); border-radius: 12px;
  padding: 14px 16px; font-size: 13.5px; color: #2f4a3e; margin: 16px 0;
}
.note b { color: var(--green); }
.steps { counter-reset: step; display: grid; gap: 14px; margin: 20px 0; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--deep); color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.step h3 { margin: 0 0 6px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- legal ---------- */
.legal { max-width: 780px; margin: auto; padding: 70px 0 90px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.055em; line-height: 1.05; margin: 14px 0 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 44px; }
.legal h2 { font-size: 24px; letter-spacing: -.03em; margin: 44px 0 12px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: #3d4c46; font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal .box {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; margin: 22px 0;
}
.legal .box b { color: var(--green); }
.legal a { color: var(--green); text-decoration: underline; }

/* ---------- faq ---------- */
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary:after { content: "+"; float: right; color: var(--green); font-size: 22px; }
.faq-list details[open] summary:after { content: "–"; }
.faq-list p { color: var(--muted); font-size: 14px; padding-right: 25px; }
.faq { max-width: 780px; margin: auto; }

/* ---------- cta + footer ---------- */
.cta { padding: 0 0 80px; }
.cta-box {
  background: var(--lime); border-radius: 24px; padding: 64px 30px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box h2, .cta-box p, .cta-box a { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; letter-spacing: -.06em; margin: 0 auto 16px; max-width: 760px; }
.cta-box p { color: #3c5148; }
.footer { padding: 36px 0 50px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--green); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .menu { display: block; }
  .nav-actions .btn:first-child { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr; gap: 30px; }
  .doc-toc { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1120px); }
  header.wrap { padding: 0 12px; }
  .nav { height: 66px; }
  .nav-actions .btn { padding: 9px 13px; }
  .page-hero { padding: 60px 0 44px; }
  section { padding: 64px 0; }
  .plans { grid-template-columns: 1fr; }
  .plan.pop { transform: none; }
  .foot { flex-direction: column; text-align: center; }
}

/* Monthly / Yearly billing toggle */
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; background: #e9efec; border: 1px solid #dfe5e1; border-radius: 999px; padding: 4px; margin: 0 auto 26px; }
.billing-toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 13px; color: #63716b; cursor: pointer; transition: .2s ease; }
.billing-toggle button.active { background: #0d2b22; color: #fff; box-shadow: 0 4px 14px #0d2b221f; }
.billing-toggle .save-badge { display: inline-block; margin-left: 6px; background: #dfff8f; color: #0d2b22; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; vertical-align: 1px; }
.bp-yearly { display: flex; flex-direction: column; gap: 2px; animation: priceIn .3s ease; }
.bp-yearly s { color: #63716b; font-size: 13px; font-weight: 500; text-decoration-thickness: 1.5px; }
.bp-yearly b { font-size: 30px; font-weight: 780; letter-spacing: -.04em; line-height: 1.05; }
.bp-yearly b span { font-size: 13px; font-weight: 500; color: #63716b; }
.bp-yearly small { font-size: 12px; color: #63716b; }
.bp-yearly em { font-style: normal; align-self: flex-start; margin-top: 4px; background: #e3f6ea; color: #087552; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.plan.pop .bp-yearly s { color: #8fa89e; }
.plan.pop .bp-yearly b span, .plan.pop .bp-yearly small { color: #aec1b9; }
.plan.pop .bp-yearly em { background: #1d4538; color: #dfff8f; }
@keyframes priceIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .billing-toggle { width: 100%; justify-content: center; } .billing-toggle button { flex: 1; padding: 10px 8px; } .bp-yearly b { font-size: 26px; } }
