/* Cairo, self-hosted from the brand identity (09_Typography), so no font request leaves the site. */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-Variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* TOA Visits brand tokens (toa-sa/toa-brand-identity, 18_TOA_Visits/08_Colors) */
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1f2a27;
  --muted: #5b6663;
  --line: #e2e5e0;
  --brand: #0d3b2e;
  --brand-ink: #ffffff;
  --gold: #c79a2e;
  --gold-ink: #8a6a1e;
  --gold-soft: #f6ecd2;
  --ivory: #fcf9f2;
  --danger: #b3261e;
  --ok: #1e7a46;
  --radius: 14px;
  --tint: #eef4f1;
  --soft: #f5f7f6;
  --brand-deep: #0d3b2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --surface: #1a201d;
    --ink: #eef1ee;
    --muted: #a6b0a9;
    --line: #2c3430;
    --brand: #2f8a66;
    --gold: #d9b45a;
    --gold-ink: #d9b45a;
    --gold-soft: #2a261b;
    --danger: #f2817a;
    --ok: #63c48b;
    --shadow: none;
    --tint: #16201c;
    --soft: #141a17;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.75;
  font-size: 17px;
}

a { color: var(--brand); }

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

.topbar { border-bottom: 1px solid var(--line); background: var(--ivory); }
.topbar .btn-ghost { color: #0d3b2e; border-color: #e2e5e0; }
.topbar .admin-nav a { color: #0d3b2e; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 18px; color: #0d3b2e; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand span { color: #8a6a1e; margin-inline-start: 8px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn-small { padding: 6px 14px; font-size: 15px; }

.hero { padding: 64px 0 40px; }
.badge { display: inline-block; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; padding: 4px 14px; border-radius: 999px; font-size: 15px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.3; margin: 16px 0 12px; color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seats { color: var(--gold-ink); font-weight: 600; margin-top: 14px; }

section { padding: 40px 0; }
section h2 { font-size: 28px; color: var(--brand); margin: 0 0 20px; }

.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: 19px; }
.card p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; margin-bottom: 8px; }

.price { font-size: 34px; font-weight: 700; color: var(--brand); }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 16px; }
.features { margin: 14px 0 0; padding: 0 18px 0 0; color: var(--muted); font-size: 15px; }
.features li { margin-bottom: 4px; }
.badge-small { font-size: 12px; padding: 2px 10px; margin-inline-start: 6px; vertical-align: middle; }
.card.primary { border: 2px solid var(--gold); }
.note { color: var(--muted); font-size: 15px; }

.trial-split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.trial-split .card.primary { border: 2px solid var(--gold); }

.form-card { max-width: 720px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.field .error { color: var(--danger); font-size: 14px; margin-top: 4px; }
.row2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: auto; margin-top: 6px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

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

footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.consent {
  position: fixed; inset: auto 16px 16px 16px; max-width: 720px; margin: 0 auto; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: none; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.consent.show { display: flex; }
.consent p { margin: 0; flex: 1 1 320px; font-size: 15px; }
.consent .actions { display: flex; gap: 8px; }

.flash { background: var(--gold-soft); border-radius: 10px; padding: 10px 14px; margin: 16px 0; }
.alert { background: var(--surface); border: 1px solid var(--danger); color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }

/* Admin */
.admin-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.admin-nav a { text-decoration: none; font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: left; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); font-size: 13px; }
.pill.won { background: var(--ok); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.filters select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pager { display: flex; gap: 12px; margin: 16px 0; }
code.link { direction: ltr; display: inline-block; font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 6px; user-select: all; }

/* Publishing */
.post-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.post-body { display: flex; gap: 14px; align-items: flex-start; }
.post-thumb { width: 120px; max-width: 30%; border-radius: 10px; border: 1px solid var(--line); }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.post-actions form { margin: 0; }
.pill.status-approved { background: var(--brand); color: #fff; }
.pill.status-published { background: var(--ok); color: #fff; }
.pill.status-failed { background: var(--danger); color: #fff; }
.field .label { display: block; font-weight: 600; margin-bottom: 6px; }

@media (max-width: 720px) {
    .topbar .wrap:has(.admin-nav) { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .admin-nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 4px; white-space: nowrap; }
    .admin-nav form { margin-inline-start: auto; }
}

/* Two-factor */
.qr { background: #fff; display: inline-block; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin: 12px 0; }
.qr svg { display: block; width: 220px; height: 220px; }
.steps { padding-inline-start: 20px; margin: 12px 0; }
.recovery-codes { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 16px; line-height: 1.8; text-align: left; }

/* ---------------------------------------------------------------------
   Campaign landing page (lp-*), modelled on visit.toa.sa
   --------------------------------------------------------------------- */
.icon { width: 1em; height: 1em; flex: none; }

.btn-gold { background: var(--gold); color: #0d3b2e; font-weight: 700; }
.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }

.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(6px); }
.lp-nav { display: flex; gap: 22px; margin-inline-start: auto; margin-inline-end: 8px; }
.lp-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-nav a:hover { color: var(--brand); }

.lp-kicker { color: var(--gold); font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.lp-kicker-dark { color: var(--gold-ink); }

/* Hero */
.lp-hero {
  background: var(--brand-deep) url("../brand/pattern-gold-on-green.svg") repeat;
  background-size: 320px; color: #fff; padding: 72px 0 80px; overflow: hidden;
}
.lp-hero-grid { display: grid; gap: 48px; grid-template-columns: 1.15fr .85fr; align-items: center; }
.lp-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.25; margin: 0 0 18px; color: #fff; font-weight: 800; }
.lp-lead { font-size: 19px; line-height: 1.85; color: rgba(255, 255, 255, .85); margin: 0 0 28px; max-width: 600px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.lp-hero-points li { display: flex; align-items: center; gap: 8px; }
.lp-hero-points .icon { color: var(--gold); }
.lp-hero-visual { position: relative; display: flex; justify-content: center; }
.lp-phone {
  width: min(300px, 80%); border-radius: 40px; border: 10px solid #fff; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); transform: rotate(-3deg); background: #fff;
}
.lp-phone img { display: block; width: 100%; height: auto; }
.lp-float-card {
  position: absolute; bottom: 36px; inset-inline-end: 0; display: flex; gap: 12px; align-items: center;
  background: #fff; color: #17332b; border-radius: 14px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}
.lp-float-card strong { display: block; font-size: 15px; }
.lp-float-card span { font-size: 13px; color: #62726b; }
.lp-float-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e3f1ea; color: #1e7a46; font-size: 20px; }

/* Offer strip */
.lp-offer { background: var(--gold-soft); padding: 16px 0; border-bottom: 1px solid rgba(199, 154, 46, .35); }
.lp-offer-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-offer p { margin: 0; color: var(--gold-ink); flex: 1 1 320px; }
.lp-offer-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 20px; }
.lp-seats { background: var(--brand-deep); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }

/* Sections */
.lp-section { padding: 80px 0; }
.lp-tint { background: var(--tint); }
.lp-soft { background: var(--soft); }
.lp-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.lp-head h2, .lp-section h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--brand); margin: 0 0 10px; font-weight: 800; line-height: 1.35; }
.lp-head p { color: var(--muted); margin: 0; }

.lp-features { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.lp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13, 59, 46, .08); }
.lp-feature h3 { margin: 16px 0 6px; font-size: 19px; color: var(--ink); }
.lp-feature p { margin: 0; color: var(--muted); font-size: 16px; }
.lp-feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--brand); font-size: 22px; }

.lp-showcase { display: grid; gap: 48px; grid-template-columns: .9fr 1.1fr; align-items: center; }
.lp-showcase-visual img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(13, 59, 46, .18)); }
.lp-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; }
.lp-checks .icon { color: var(--gold); font-size: 22px; margin-top: 3px; }
.lp-checks span { color: var(--muted); }
.lp-checks strong { color: var(--ink); }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: none; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; position: relative; }
.lp-steps h3 { margin: 14px 0 6px; font-size: 19px; }
.lp-steps p { margin: 0; color: var(--muted); }
.lp-step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-deep); color: #fff; font-weight: 800; }

/* Pricing */
.lp-pill-gold { display: inline-block; margin-top: 18px; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid rgba(199, 154, 46, .45); font-weight: 700; padding: 8px 20px; border-radius: 999px; font-size: 15px; }
.lp-plans { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px 22px; }
.lp-plan h3 { margin: 0; font-size: 22px; color: var(--brand); }
.lp-plan-tagline { color: var(--muted); font-size: 14px; margin: 6px 0 18px; min-height: 44px; }
.lp-plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lp-plan-price strong { font-size: 44px; line-height: 1; color: var(--ink); font-weight: 800; }
.lp-plan-price span { color: var(--muted); font-size: 14px; }
.lp-price-old { text-decoration: line-through; color: var(--muted); font-size: 18px; }
.lp-plan-extra { color: var(--muted); font-size: 13px; margin: 12px 0 4px; }
.lp-plan-features { list-style: none; padding: 0; margin: 10px 0 22px; display: grid; gap: 10px; flex: 1; }
.lp-plan-features li { display: flex; gap: 10px; font-size: 15px; }
.lp-plan-features .icon { color: var(--ok); margin-top: 5px; }
.lp-plan .btn { width: 100%; }
.lp-plan.is-featured { border: 2px solid var(--brand); box-shadow: 0 20px 44px rgba(13, 59, 46, .12); transform: translateY(-6px); }
.lp-plan.is-enterprise { border-top: 4px solid var(--gold); }
.lp-plan.is-enterprise .lp-plan-price strong { font-size: 34px; }
.lp-plan-flag { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); background: var(--brand-deep); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.lp-note { text-align: center; color: var(--muted); font-size: 14px; margin: 28px auto 0; max-width: 760px; }

/* Request */
.lp-request { display: grid; gap: 0; grid-template-columns: .8fr 1.2fr; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(13, 59, 46, .12); }
.lp-request-side { background: var(--brand-deep) url("../brand/pattern-gold-on-green.svg") repeat; background-size: 320px; color: #fff; padding: 40px 32px; }
.lp-request-side h2 { color: #fff; }
.lp-request-side > p { color: rgba(255, 255, 255, .85); margin: 0; }
.lp-checks-light span { color: rgba(255, 255, 255, .9); }
.lp-request-note { margin-top: 28px !important; font-size: 14px; color: rgba(255, 255, 255, .75) !important; }
.lp-request-note a { color: var(--gold); }
.lp-form { max-width: none; border-radius: 0; border: 0; box-shadow: none; padding: 36px 32px; }
.lp-submit { width: 100%; padding: 14px 22px; font-size: 18px; }

/* FAQ */
.lp-faq { max-width: 760px; }
.lp-faq h2 { text-align: center; margin-bottom: 28px; }
.lp-faq details { border-radius: 12px; padding: 16px 20px; }

/* Closing CTA */
.lp-cta { background: var(--brand-deep) url("../brand/pattern-gold-on-green.svg") repeat; background-size: 320px; color: #fff; padding: 48px 0; }
.lp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lp-cta h2 { color: #fff; margin: 0 0 6px; font-size: 30px; }
.lp-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.lp-cta a:not(.btn) { color: var(--gold); }

@media (max-width: 980px) {
  .lp-nav { display: none; }
  .lp-hero-grid, .lp-showcase, .lp-request { grid-template-columns: 1fr; }
  .lp-hero { padding: 48px 0 56px; }
  .lp-hero-visual { margin-top: 8px; }
  .lp-features, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-plans { grid-template-columns: 1fr 1fr; }
  .lp-plan.is-featured { transform: none; }
}
@media (max-width: 640px) {
  .lp-section { padding: 56px 0; }
  .lp-features, .lp-steps, .lp-plans { grid-template-columns: 1fr; }
  .lp-plan-tagline { min-height: 0; }
  .lp-float-card { inset-inline-end: 4px; bottom: 16px; }
  .lp-request-side, .lp-form { padding: 28px 20px; }
  .topbar .btn-small { padding: 6px 12px; font-size: 14px; }
}
