/* fahi.asset — front gate. Matches the approved DESIGN_PURPLE brand system. */

:root {
  --ink: #171523;
  --ink-soft: #5b5670;
  --plum: #4b084a;
  --indigo: #4c1d9f;
  --lilac: #d8aeee;
  --paper: #ffffff;
  --mist: #f6f1fb;
  --line: #e7dcf2;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px -28px rgba(76, 29, 159, 0.28);
  --shadow-sm: 0 8px 20px -12px rgba(76, 29, 159, 0.2);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.14;
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--indigo);
  display: inline-block;
}

/* ---------- Header ---------- */

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
  position: relative;
}

.logo-mark { height: 28px; width: auto; }

nav.primary {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1;
  margin-left: 44px;
}

nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav.primary a[aria-current="page"] { color: var(--indigo); }
nav.primary a:hover { color: var(--indigo); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile nav disclosure — hidden on desktop, shown at the nav.primary breakpoint */

.nav-toggle { display: none; }

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  color: var(--ink);
}

.nav-toggle summary::-webkit-details-marker { display: none; }

.nav-toggle-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  z-index: 30;
}

.nav-toggle-panel a {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-toggle-panel a:hover { background: var(--mist); }
.nav-toggle-panel a[aria-current="page"] { color: var(--indigo); }
.nav-toggle-panel hr { border: none; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(76,29,159,0.5); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 60%); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.hero .cta-row { display: flex; gap: 14px; margin-top: 32px; }

.trust-row {
  display: flex;
  gap: 22px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row span::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: inset 0 0 0 4px var(--indigo);
}

/* Dashboard mock — the product surface, not a stock illustration */

.dash {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-head h3 { margin: 0; font-size: 1rem; }
.dash-head span { font-size: 0.8rem; color: var(--ink-soft); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.dash-stat {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 16px;
}

.dash-stat .label { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 6px; display: block; }
.dash-stat .value { font-size: 1.5rem; font-weight: 800; display: block; }
.dash-stat .delta { font-size: 0.78rem; color: var(--indigo); font-weight: 600; }
.dash-stat .delta.warn { color: #a3390a; }

.dash-panels {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.dash-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.dash-panel h4 { margin: 0 0 12px; font-size: 0.85rem; font-weight: 700; }

.donut {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 4px auto 10px;
  background: conic-gradient(
    var(--indigo) 0% 48%,
    var(--lilac) 48% 72%,
    var(--plum) 72% 86%,
    #cbb8e6 86% 94%,
    #eee6f7 94% 100%
  );
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: #fff;
  border-radius: 50%;
}

.legend { list-style: none; margin: 0; padding: 0; font-size: 0.76rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 7px; padding: 3px 0; }
.legend .sw { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.loc-list { list-style: none; margin: 0; padding: 0; font-size: 0.82rem; }
.loc-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.loc-list li:last-child { border-bottom: none; }
.loc-list strong { color: var(--ink); font-weight: 600; }

/* ---------- Capabilities ---------- */

.capabilities { padding: 96px 0 40px; }

.section-head { max-width: 62ch; margin-bottom: 48px; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 0 26px;
  overflow: hidden;
  background: #fff;
}

.cap-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--mist); padding: 12px; }
.cap-card .cap-body { padding: 20px 22px 0; }
.cap-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.cap-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Platform spotlight ---------- */

.platform { padding: 88px 0; }

.platform .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.platform .lede { max-width: 46ch; }

/* Assets table panel */

.table-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.table-panel-head h4 { margin: 0; font-size: 1rem; }

.table-scroll { overflow-x: auto; }

table.assets-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 460px; }
table.assets-table th {
  text-align: left;
  padding: 10px 20px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
table.assets-table td { padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
table.assets-table tr:last-child td { border-bottom: none; }
table.assets-table td.muted { color: var(--ink-soft); }

.status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-use { background: #e7defb; color: var(--indigo); }
.status-repair { background: #fbe8cf; color: #92590a; }
.status-retired { background: #eee; color: #666; }

/* ---------- Stats band ---------- */

.stats-band { padding: 0 0 96px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.stat-cell { text-align: left; }
.stat-cell .num { font-size: 1.9rem; font-weight: 800; display: block; }
.stat-cell .label { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Closing CTA band ---------- */

.close-band {
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
}

.close-band h2 { color: #fff; }
.close-band p.lede { color: #c9c3d8; }
.close-band .btn-ghost { background: transparent; color: #fff; border-color: #3a3450; }
.close-band .btn-ghost:hover { border-color: var(--lilac); color: var(--lilac); }
.close-band .cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.close-band .trust-row { color: #a79fc0; }
.close-band .trust-row span::before { box-shadow: inset 0 0 0 4px var(--lilac); background: transparent; }

/* ---------- Footer ---------- */

footer.site { padding: 48px 0; border-top: 1px solid var(--line); }

footer.site .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--indigo); }
.foot-meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: 64px 0 48px; background: var(--mist); }
.page-head .eyebrow { display: block; }

/* ---------- Pricing ---------- */

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 28px 0 8px;
  background: #fff;
}

.billing-toggle button {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
}

.billing-toggle button.active { background: var(--indigo); color: #fff; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.plan.featured { background: var(--mist); border: 2px solid var(--indigo); box-shadow: var(--shadow); position: relative; }

.plan h3 { margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .desc { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 20px; }

.badge-chosen {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--lilac);
  color: var(--plum);
  padding: 3px 10px;
  border-radius: 999px;
}

.price { font-size: 2.4rem; font-weight: 800; margin-bottom: 2px; }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }

.price-note { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 24px; }

.plan .btn { width: 100%; margin-bottom: 24px; }

.plan-features { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.plan-features li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.plan-features li:first-child { border-top: none; }

.compare { margin-top: 96px; }

table.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 32px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table.compare-table th, table.compare-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
table.compare-table th { background: var(--mist); font-weight: 700; font-size: 0.8rem; color: var(--ink-soft); }
table.compare-table tr:last-child td { border-bottom: none; }
table.compare-table td.yes { color: var(--indigo); font-weight: 600; }
table.compare-table td.no { color: var(--ink-soft); }

/* FAQ */

.faq { padding: 96px 0; }
.faq-list { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--indigo);
  font-weight: 700;
  font-size: 1.1rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 20px; color: var(--ink-soft); }

/* ---------- About ---------- */

.about-body { padding: 64px 0 40px; }
.about-body p { max-width: 66ch; }

.gov-band { padding: 88px 0; background: var(--mist); }

/* ---------- Legal ---------- */

.legal-body { padding: 56px 0 96px; }
.legal-body h2 { font-size: 1.2rem; margin-top: 2.2em; }
.legal-body p, .legal-body li { color: var(--ink-soft); max-width: 72ch; }
.legal-body .updated { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  nav.primary { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  header.site .wrap { flex-wrap: wrap; row-gap: 10px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .platform .wrap { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-panels { grid-template-columns: 1fr; }
  .close-band .wrap { flex-direction: column; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .cap-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Forms (subscribe wizard, government quote, mock pay page) ---------- */

.form-page { padding: 64px 0 96px; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

.wizard-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.wizard-steps .step.active { color: var(--indigo); }
.wizard-steps .step:not(:last-child)::after { content: "→"; margin-left: 8px; color: var(--line); }

.field { display: grid; gap: 6px; margin-bottom: 18px; font-size: 0.9rem; }
.field label { font-weight: 600; }

.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
  border-color: var(--indigo);
}

.otp-input { letter-spacing: 0.5em; font-size: 1.4rem; text-align: center; }

.field-error {
  color: #a3390a;
  font-size: 0.82rem;
  background: #fbe8cf;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
}

.field-hint { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }

.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }

.plan-pick button {
  text-align: left;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-family: var(--font);
}

.plan-pick button.selected { border-color: var(--indigo); background: var(--mist); }
.plan-pick .plan-pick-name { font-weight: 700; display: block; margin-bottom: 4px; }
.plan-pick .plan-pick-price { color: var(--ink-soft); font-size: 0.85rem; }

.btn-block { width: 100%; }

.btn-danger { background: #fff; color: #a3390a; border: 1px solid #f3c9a8; }
.btn-danger:hover { background: #fdeecb; }

.pay-summary { display: grid; gap: 0; margin-bottom: 24px; font-size: 0.92rem; }

.pay-summary div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pay-summary div:last-child { border-bottom: none; }

.pay-actions { display: flex; gap: 12px; flex-direction: column; margin-top: 24px; }

.result-card { text-align: center; }
.result-icon { font-size: 2.5rem; margin-bottom: 12px; }
.result-icon.success { color: var(--indigo); }
.result-icon.failure { color: #a3390a; }

@media (max-width: 560px) {
  .plan-pick { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* ---------- Focus ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
