/* Design tokens: dogfooded by business site + client templates.
   Solid colors only. No gradients, no glassmorphism. */
:root {
  --navy: #003388;
  --navy-dark: #00235e;
  --navy-tint: #eaf0fa;
  --ink: #1a202c;
  --muted: #4a5568;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --line: #e2e8f0;
  --line-strong: #cbd5e0;
  /* Tangerine CTA with navy text: reads as orange (not "danger" red) and passes
     WCAG AA (6.3:1; hover 4.9:1). White text on a true orange fails AA. */
  --cta: #fb8c00;
  --cta-dark: #ef6c00;
  --cta-ink: #00235e;
  --accent-yellow: #facf38;
  --ok: #1e7e34;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.08);
  --max: 1120px;
  --narrow: 760px;
}

/* Logo wordmark: Barlow Condensed 800 (SIL OFL), subset to the logo's letters only. */
@font-face {
  font-family: "Logo Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-800-logo.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--narrow); }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 12px; color: var(--navy-dark); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--navy-dark); margin: 0 0 8px; }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 6px; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 40em; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.page-head { margin-bottom: 28px; }

/* Header: logo | nav | CTA */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-dark); text-decoration: none; white-space: nowrap; }
.logo-text { font: 800 1.6rem/1 "Logo Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.02em; }
.logo-hl { color: var(--cta-dark); }
.logo:hover { color: var(--navy-dark); }
.logo-mark { width: 32px; height: 32px; flex: none; }
.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.header-nav a:hover { color: var(--navy); background: var(--navy-tint); }
.header-nav a[aria-current="page"] { color: var(--navy); background: var(--navy-tint); }
.lang-switch { color: var(--muted); font-weight: 600; font-size: 0.9rem; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.lang-switch:hover { color: var(--navy); border-color: var(--navy); }
/* Mobile menu (no-JS <details>; app.js closes it on outside click). */
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--navy-dark); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 26px; height: 26px; }
.mobile-menu[open] summary { background: var(--navy-tint); }
.mobile-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 8px 0; }
.mobile-nav a { display: block; padding: 12px 20px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--navy); background: var(--navy-tint); }
.mobile-nav .lang-switch { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 14px; font-size: 1rem; }

/* Buttons: warm contrast on navy */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.98rem; line-height: 1.3; text-decoration: none; text-align: center; border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cta-dark); color: var(--cta-ink); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-tint); color: var(--navy-dark); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 72px 0 80px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.25rem); }
.hero .subhead { font-size: 1.15rem; color: #dbe4f3; max-width: 34em; }
.hero .subhead strong { color: #fff; }
.hero :focus-visible { outline-color: var(--accent-yellow); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-ctas .btn-secondary { background: #fff; color: var(--navy); }
.hero-ctas .btn-secondary:hover { background: var(--navy-tint); }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 24px; flex-wrap: wrap; color: #fff; font-weight: 600; font-size: 0.95rem; }
.trust-row li::before { content: "✓"; color: var(--accent-yellow); font-weight: 800; margin-right: 8px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

/* Browser mock (hero + sample thumbnails) */
.browser-mock { background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28); }
.browser-bar { background: #eef1f6; padding: 10px 12px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e0; display: block; }
.browser-bar .address { flex: 1; height: 18px; margin-left: 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.mock-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 800; color: var(--navy); }
.mock-nav .mock-phone { background: var(--cta); color: var(--cta-ink); padding: 2px 8px; border-radius: 4px; }
.browser-body { padding: 20px; }
.mock-kicker { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--navy-dark); background: var(--accent-yellow); padding: 2px 8px; border-radius: 4px; margin: 0; }
.mock-h { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 8px 0 4px; line-height: 1.2; }
.mock-sub { color: var(--muted); margin: 0 0 14px; font-size: 0.92rem; }
.mock-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.mock-btn { display: inline-block; background: var(--cta); color: var(--cta-ink); font-weight: 700; padding: 7px 14px; border-radius: 6px; font-size: 0.85rem; }
.mock-btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 5px 12px; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mock-tiles span { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 0.72rem; font-weight: 700; color: var(--navy-dark); text-align: center; }
.mock-note { font-size: 0.82rem; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; background: var(--accent-yellow); color: var(--navy-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; vertical-align: middle; }

/* Price strip (home) */
.price-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--navy-tint); border: 1px solid #d3def2; }
.price-strip p { margin: 0; font-size: 1.1rem; }
.price-strip strong { color: var(--navy-dark); font-size: 1.35rem; }

/* Steps */
.steps { display: grid; gap: 14px; padding: 0; margin: 28px 0; list-style: none; counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px 20px 76px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps li strong { display: block; color: var(--navy-dark); font-size: 1.08rem; margin-bottom: 2px; }
.steps li p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing-intro { text-align: center; max-width: 640px; margin: 0 auto; }
.pricing-intro .lede { margin: 0 auto; }
.plans-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin: 36px 0 20px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; }
.price-card.featured { border: 2px solid var(--navy); box-shadow: var(--shadow-md); }
.price-card .price { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 4px 0 4px; line-height: 1.1; }
.price-card .price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .btn { display: block; margin-top: 8px; }
.price-card .fine { margin: 12px 0 0; text-align: center; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--navy); background: var(--navy-tint); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { position: relative; padding-left: 30px; margin: 10px 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; }
.plans-duo { align-items: stretch; }
.price-card.premium { display: flex; flex-direction: column; }
.price-card.featured { display: flex; flex-direction: column; }
.price-card.featured .badge { align-self: flex-start; }
.price-card.featured .btn { margin-top: auto; }
.addon-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.addon-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-alt); }
.addon-name { position: relative; display: flex; align-items: center; gap: 8px; }
.addon-sub { grid-column: 1; color: var(--muted); font-size: 0.9rem; }
.addon-price { grid-column: 2; grid-row: 1 / span 2; color: var(--navy); white-space: nowrap; font-size: 1.05rem; }
.price-card .premium-note { margin: auto 0 0; padding-top: 16px; }
/* Info tooltip: hover or keyboard/tap focus shows it. */
.info { flex: none; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font: italic 700 0.75rem/1 Georgia, serif; cursor: help; display: grid; place-items: center; }
.info:hover, .info:focus-visible { border-color: var(--navy); background: var(--navy-tint); }
.tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 10; width: max-content; max-width: min(280px, 75vw); padding: 10px 12px; border-radius: 8px; background: var(--navy-dark); color: #fff; font-size: 0.85rem; font-weight: 400; line-height: 1.45; box-shadow: var(--shadow-md); visibility: hidden; opacity: 0; transition: opacity 0.12s; }
.info:hover + .tip, .info:focus + .tip { visibility: visible; opacity: 1; }
.fine { color: var(--muted); font-size: 0.92rem; }

/* Samples */
.sample-card { padding: 0; overflow: hidden; }
.sample-card .sample-body { padding: 20px 22px 22px; }
a.sample-card { color: inherit; text-decoration: none; display: block; }
a.sample-card:hover h2 { color: var(--navy); text-decoration: underline; }
.sample-trade { font-weight: 700; color: var(--navy-dark); margin: 0 0 6px !important; }
.sample-trade span { color: var(--cta-dark); }
.sample-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--navy); }
.sample-card h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sample-thumb { --t1: var(--navy); --t2: var(--accent-yellow); aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; }
.st-bar { background: var(--t1); height: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.st-bar i { width: 60px; height: 6px; border-radius: 3px; background: #fff; opacity: 0.9; }
.st-bar b { width: 34px; height: 10px; border-radius: 3px; background: var(--t2); }
.st-hero { padding: 16px 14px 0; display: flex; flex-direction: column; gap: 7px; }
.st-hero i { height: 9px; width: 70%; border-radius: 3px; background: var(--t1); }
.st-hero i + i { height: 6px; width: 50%; background: var(--line-strong); }
.st-hero b { width: 64px; height: 16px; border-radius: 4px; background: var(--t2); margin-top: 4px; }
.st-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 14px 14px; }
.st-tiles i { height: 28px; border-radius: 4px; background: var(--bg-alt); border: 1px solid var(--line); }

/* FAQ */
.faq-list { margin: 28px 0; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; background: #fff; transition: border-color 0.15s; }
.faq-list details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--navy-dark); padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-top: 24px; }
form label { display: block; margin: 0 0 16px; font-weight: 600; font-size: 0.95rem; }
form .opt { color: var(--muted); font-weight: 400; }
form .hint { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 4px; }
form input, form select, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 51, 136, 0.15); }
form textarea { resize: vertical; }
form .btn { width: 100%; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.honeypot { position: absolute; left: -9999px; }
.form-error { color: #b42318; font-weight: 600; margin: 12px 0 0; }
.form-error:empty { display: none; }
.thanks { background: #e6f4ea; border: 1px solid #34a853; color: var(--ok); padding: 16px 20px; border-radius: var(--radius); font-weight: 600; margin-top: 24px; }
.call-alt { margin-top: 20px; }
.cta-band { margin-top: 32px; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 404 */
.not-found { text-align: center; padding: 96px 0; }
.not-found .lede { margin: 0 auto 24px; }
.not-found .cta-band { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; background: var(--bg-alt); margin-top: auto; }
.footer-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer-compact { font-size: 0.9rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 10px 0; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.muted { color: var(--muted); }
code { background: #eef1f6; padding: 1px 6px; border-radius: 6px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  /* Nav and language link collapse into the menu button. */
  .header-inner { gap: 8px; min-height: 60px; }
  .header-nav, .header-inner > .lang-switch { display: none; }
  .header-cta { margin-left: auto; padding: 8px 14px; }
  .mobile-menu { display: block; }
  .grid2 { grid-template-columns: 1fr; }
  .plans-duo { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .logo { gap: 8px; }
  .logo-text { font-size: 1.25rem; }
  .logo-mark { width: 28px; height: 28px; }
  .header-cta { padding: 7px 12px; font-size: 0.88rem; }
  .hero-ctas .btn { width: 100%; }
  .pricing-intro { text-align: left; }
  .form-card, .price-card { padding: 20px; }
  .steps li { padding-left: 66px; }
  .steps li::before { left: 16px; }
}
