/* Shared styles for the public pages (index, privacy, terms, thanks). Phone first, no external assets. */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1b1d21;
  --muted: #5b616b;
  --line: #e2ded5;
  --accent: #0f5c4d;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe9;
  --warn-bg: #fff4d6;
  --warn-ink: #6b4a00;
  --radius: 14px;
  --max: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121416;
    --surface: #1b1e22;
    --ink: #eceae5;
    --muted: #a3a8b0;
    --line: #2d3137;
    --accent: #5fc2a8;
    --accent-ink: #0b1a16;
    --accent-soft: #1d2e29;
    --warn-bg: #3a2f12;
    --warn-ink: #f3d68a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121416; --surface: #1b1e22; --ink: #eceae5; --muted: #a3a8b0; --line: #2d3137;
  --accent: #5fc2a8; --accent-ink: #0b1a16; --accent-soft: #1d2e29; --warn-bg: #3a2f12; --warn-ink: #f3d68a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
main, header.top, footer.site { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin-top: 8px; }
h3 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.2em; }
small, .muted { color: var(--muted); }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 6px; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.pill { font-size: 0.8rem; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

section { padding: 28px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.hero { padding-top: 20px; }
.lede { font-size: 1.1rem; color: var(--muted); }

.btn {
  display: inline-block; text-align: center; text-decoration: none; font-weight: 650;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px;
  padding: 14px 20px; min-height: 48px; width: 100%; max-width: 360px; font-size: 1rem; cursor: pointer;
}
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 56px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem;
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.card .role { font-weight: 700; font-size: 1.05rem; }
.card .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.card ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: 0.95rem; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card .actions span { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; }
.card .actions span:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.example-tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }

.never { list-style: none; padding: 0; display: grid; gap: 10px; }
.never li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.never strong { display: block; }

.price { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px 16px; }
.price .amount { font-size: 2rem; font-weight: 800; }
.price .amount small { font-size: 1rem; font-weight: 500; }
.seats { font-weight: 650; color: var(--accent); min-height: 1.5em; }
.plans { display: grid; gap: 14px; margin: 14px 0; }
.plan h3 { margin: 0 0 6px; }
.plan ul { padding-left: 18px; }
.plan.small { border-width: 1px; }
.plan.featured { border-width: 3px; }
.plan .tag { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.85rem; font-weight: 700; }

.features { display: grid; gap: 14px; }
.feature-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.feature-group h3 { display: flex; align-items: center; gap: 10px; }
.feature-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.feature-group strong { display: block; }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.9rem; flex: none; }
.price .amount small { white-space: nowrap; }

.evidence { font-size: 0.95rem; }
.evidence li { margin-bottom: 8px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; }
details p { margin: 10px 0 0; }

.banner { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); padding: 12px 14px; margin: 16px 0; font-weight: 600; }
.legal h2 { margin-top: 28px; font-size: 1.15rem; }
.legal section { border: 0; padding: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }

footer.site { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- free preview (index) + dashboard (app.html) ---------- */
.btn.small { width: auto; min-height: 40px; padding: 9px 14px; font-size: 0.92rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn + .btn { margin-top: 8px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.row-actions .btn + .btn { margin-top: 0; }
form.stack { display: grid; gap: 12px; }
label { font-weight: 600; display: grid; gap: 6px; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 160px; resize: vertical; font-size: 0.95rem; }
input[type="file"] { font: inherit; max-width: 100%; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { font-weight: 600; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); cursor: pointer; }
.status { min-height: 1.5em; color: var(--muted); }
.status.error { color: #b3261e; }
.jobs { display: grid; gap: 12px; margin: 14px 0; }
.fit { float: right; margin-left: 8px; font-weight: 750; font-size: 0.85rem; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 3px 10px; }
.who { font-size: 0.95rem; margin: 8px 0 0; }
.locked { display: grid; gap: 4px; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.locked span::before { content: "🔒 "; }
.unlock { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 0 0 6px; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; font-size: 0.95rem; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.usage { font-size: 0.95rem; margin: 6px 0 12px; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.tag { display: inline-block; font-size: 0.78rem; border-radius: 99px; padding: 2px 9px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.draft { white-space: pre-wrap; font-size: 0.92rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.list { list-style: none; padding: 0; display: grid; gap: 10px; }
.list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
[hidden] { display: none !important; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .never { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .features { grid-template-columns: repeat(3, 1fr); align-items: start; }
}
