/* Shared styling for the public site (landing, terms) and the platform console.
   No build step, no webfont, no CDN: the whole site is three files the API serves from wwwroot. */

:root {
  --gold: #b8860b;
  --gold-soft: #d9a520;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6c6459;
  --line: #e6e1d8;
  --shadow: 0 1px 2px rgba(28, 26, 23, .06), 0 8px 24px rgba(28, 26, 23, .06);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gold: #d9a520;
    --gold-soft: #f0c14b;
    --bg: #14130f;
    --surface: #1d1b16;
    --ink: #f2eee6;
    --muted: #a49b8c;
    --line: #322e26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Vazirmatn, "Segoe UI", Tahoma, "Iranian Sans", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); }
.brand span.mark { color: var(--gold); font-size: 24px; line-height: 1; }
header nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
header nav a.link { color: var(--muted); padding: 8px 12px; border-radius: 10px; }
header nav a.link:hover { color: var(--ink); background: var(--surface); text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- hero ---- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.4; margin: 0 0 16px; letter-spacing: -.01em; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---- sections ---- */
section { padding: 56px 0; }
section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; text-align: center; }
section p.sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.card .icon { font-size: 22px; margin-bottom: 10px; display: block; }

/* ---- pricing ---- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); max-width: 760px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.plan.featured { border-color: var(--gold); }
.plan .tag {
  position: absolute; top: -12px; inset-inline-start: 26px;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; }
.plan li { padding: 5px 0; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.plan li::before { content: "✔"; color: var(--gold); font-size: 13px; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "—"; color: var(--muted); }
.plan .btn { width: 100%; justify-content: center; }

/* ---- steps ---- */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- cta + footer ---- */
.cta { text-align: center; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
footer { padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { margin-inline-start: auto; display: flex; gap: 18px; }

/* ---- long-form text (terms) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.doc h1 { font-size: 28px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; text-align: start; }
.doc p, .doc li { color: var(--ink); font-size: 15.5px; }
.doc ul { padding-inline-start: 22px; }

@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  header nav a.link { display: none; }
}
