/* Fonts are served from this server (no Google Fonts requests). Files: assets/fonts/ — see README. */
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/sora-500.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/sora-700.woff2") format("woff2"); }

/* Layout: Citricity brand. Teal ink on soft grey, green as the action colour, yellow only for placeholders. Hero pairs the promise with a redacted email mock. */
:root {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --ink: #024f4b;
  --ink-deep: #073532;
  --muted: #4b6b68;
  --line: #dfe7e5;
  --green: #65d78b;
  --green-ink: #0d5a32;
  --green-soft: #e3f6ea;
  --yellow: #ffc83b;
  --yellow-soft: #fff3d1;
  --ph-ink: #3a2a00;
  --on-teal: #ffffff;
  --redact-pupil: #024f4b;
  --redact-staff: #3d7f7a;
  --redact-third: #7a9995;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Sora", var(--font-display);
  --brand-pro: #1f9a52;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1d1c; --surface: #102a28; --ink: #e4f1ef; --ink-deep: #061514; --muted: #9db9b5; --line: #20403d;
    --green: #6fe095; --green-ink: #9ff0bb; --green-soft: #143a27; --yellow: #ffc83b; --yellow-soft: #3a2e0c; --ph-ink: #ffe7a3;
    --on-teal: #ffffff; --brand-pro: #6fe095; --redact-pupil: #5fb8ae; --redact-staff: #4a8f88; --redact-third: #6f8e8a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1d1c; --surface: #102a28; --ink: #e4f1ef; --ink-deep: #061514; --muted: #9db9b5; --line: #20403d;
  --green: #6fe095; --green-ink: #9ff0bb; --green-soft: #143a27; --yellow: #ffc83b; --yellow-soft: #3a2e0c; --ph-ink: #ffe7a3;
  --on-teal: #ffffff; --brand-pro: #6fe095; --redact-pupil: #5fb8ae; --redact-staff: #4a8f88; --redact-third: #6f8e8a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
}
.inner {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 600; }
h2 { font-size: clamp(27px, 3.6vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0; }
a { color: inherit; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
/* .ph marks unfinished placeholder text; .hl is the same yellow highlight used on purpose. */
.ph, .hl { color: var(--ph-ink); background: var(--yellow-soft); box-shadow: inset 0 -2px 0 var(--yellow); padding: 0 3px; border-radius: 3px; }
.table-note { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--font-body); padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn-primary { background: var(--green); color: #052b1a; }
.btn-primary:hover { background: color-mix(in srgb, var(--green) 85%, #000); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
header.site .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { align-self: center; flex: none; color: var(--ink); margin-right: -2px; }
.wordmark { font-family: var(--font-logo); font-weight: 500; font-size: 22px; white-space: nowrap; }
.wordmark .sar { letter-spacing: 0.18em; }
.wordmark .pro { font-weight: 700; color: var(--brand-pro); margin-left: 0.04em; }
.byline { font-size: 12.5px; color: var(--muted); }
nav.main { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.main a.link { text-decoration: none; }
nav.main a.link:hover { text-decoration: underline; text-underline-offset: 4px; }
nav.main .btn { padding: 10px 18px; }
@media (max-width: 860px) { nav.main a.link { display: none; } .byline { display: none; } }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero .inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.trust-line span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 900px) { .hero .inner { grid-template-columns: 1fr; } .hero { padding-block: 40px 56px; } }

/* Email mock */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgba(2,79,75,.35); overflow: hidden; min-width: 0; }
.mock-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.mock-bar strong { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); white-space: nowrap; }
.mock-body { padding: 18px 18px 20px; display: grid; gap: 14px; font-size: 14px; }
.msg { border-left: 3px solid var(--line); padding-left: 12px; display: grid; gap: 6px; }
.msg .meta { font-size: 12px; color: var(--muted); }
.r { display: inline-block; height: 1.05em; vertical-align: -0.15em; border-radius: 3px; position: relative; }
.r::after { content: attr(data-cat); position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.r.pupil { background: var(--redact-pupil); width: 7.2em; }
.r.staff { background: var(--redact-staff); width: 6.2em; }
.r.third { background: var(--redact-third); width: 7.4em; }
.guard { display: flex; gap: 10px; align-items: flex-start; background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 60%, transparent); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.guard b { font-weight: 600; }
.guard .icon { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: #3a2a00; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--muted); padding: 0 18px 16px; }
.legend-row i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

/* Sections */
section.block { padding-block: 80px; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }

.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.problem ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.problem li { display: flex; gap: 12px; align-items: flex-start; }
.problem li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; border: 2px solid var(--green); }
.stat { background: var(--ink); color: var(--on-teal); border-radius: var(--radius); padding: 32px; display: grid; gap: 10px; }
:root[data-theme="dark"] .stat { background: var(--ink-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat { background: var(--ink-deep); border: 1px solid var(--line); } }
.stat .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--green); }
.stat p { color: color-mix(in srgb, var(--on-teal) 85%, transparent); }
@media (max-width: 820px) { .problem { grid-template-columns: 1fr; } }
/* Chalkboard illustration beside the problem text, with the stat as a full-width strip below. */
.stat.wide { grid-column: 1 / -1; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 12px 40px; }
@media (max-width: 820px) { .stat.wide { grid-template-columns: 1fr; } }
.chalk { margin: 0; min-width: 0; }
.chalk img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #111; }


.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.feature .num { font-family: var(--font-display); font-weight: 700; color: var(--green-ink); font-size: 14px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature.key { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.feature.key .tag { justify-self: start; font-size: 11.5px; font-weight: 600; background: var(--green); color: #052b1a; padding: 2px 10px; border-radius: 999px; }
.feature.wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.cost { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.cost-body { display: grid; gap: 28px; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
td.good { color: var(--green-ink); font-weight: 600; }
@media (max-width: 820px) { .cost { grid-template-columns: 1fr; } .cost .chalk { order: 2; } }

.security { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; }
.sec-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.sec-item svg { width: 40px; height: 40px; }
.sec-item h3 { margin-bottom: 6px; }
.sec-item p { color: var(--muted); font-size: 15px; }
.sec-item .note { display: block; margin-top: 6px; font-size: 13px; }

.built { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
blockquote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
blockquote p { font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1.45; }
blockquote footer { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .built { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; }
.plan .for { color: var(--muted); font-size: 14.5px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; align-content: start; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%231f8a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan.mat { background: var(--ink); color: var(--on-teal); border-color: var(--ink); }
.plan.mat .for, .plan.mat .price small { color: color-mix(in srgb, var(--on-teal) 75%, transparent); }
:root[data-theme="dark"] .plan.mat { background: var(--ink-deep); border-color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan.mat { background: var(--ink-deep); border-color: var(--green); } }
.plan.mat .btn-ghost { border-color: var(--green); color: var(--on-teal); }
.plan .btn { width: 100%; }
.price-notes { margin-top: 18px; font-size: 14px; color: var(--muted); }
.other-orgs { margin-top: 28px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.other-orgs p { max-width: 64ch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* Real SAR */
.realsar { background: var(--ink); color: var(--on-teal); border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
:root[data-theme="dark"] .realsar { background: var(--ink-deep); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .realsar { background: var(--ink-deep); border: 1px solid var(--line); } }
.realsar .lede { color: color-mix(in srgb, var(--on-teal) 80%, transparent); }
.realsar .eyebrow { color: var(--green); }
.realsar ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.realsar li { display: grid; gap: 2px; padding-left: 18px; border-left: 3px solid var(--green); }
.realsar li span { color: color-mix(in srgb, var(--on-teal) 78%, transparent); font-size: 15px; }
.realsar .small { font-size: 13.5px; color: color-mix(in srgb, var(--on-teal) 70%, transparent); }
@media (max-width: 860px) { .realsar { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green-ink); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 20px; color: var(--muted); max-width: 68ch; }

.closing { text-align: center; display: grid; gap: 18px; justify-items: center; }
footer.site { padding-block: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* Contact view */
.contact { padding-block: 48px 80px; }
.contact .inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-aside { display: grid; gap: 18px; min-width: 0; }
.contact-aside ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.back { font-size: 14px; text-decoration: none; color: var(--muted); }
.back:hover { text-decoration: underline; }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: grid; gap: 18px; min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.seg label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.seg input { accent-color: var(--green-ink); }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .fieldset-label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: 15px/1.4 var(--font-body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
textarea { min-height: 96px; resize: vertical; }
.warn { font-size: 13px; background: var(--yellow-soft); border-radius: 8px; padding: 8px 10px; }
.done { background: var(--green-soft); border: 1px solid var(--green); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; }
.done h3 { color: var(--green-ink); }
.proto-note { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .contact .inner { grid-template-columns: 1fr; } }

/* The hidden attribute must win over component display rules like .field { display: grid }. */
[hidden] { display: none !important; }

/* Spam trap field: hidden from people, visible to bots */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
