/* =========================================================================
   Optimum Authorized Retailer
   Recreated from the Fibravel design handoff. Colours, type sizes, spacing,
   radii and borders are the literal values from the handoff's token table.

   The reference prototype is desktop-only (~1600px). Responsive rules follow
   the handoff's production guidance: 2-col grids collapse below 900px, 3-up
   grids below 700px, H1 -> ~40px, H2 -> ~30px, hamburger nav plus a sticky
   bottom call button on mobile.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand blue */
  --blue: #1a56ec;
  --blue-deep: #0b2f8f;
  --blue-light: #2f6bff;
  --blue-card-end: #2a63f5;
  --foot-a: #08276f;
  --foot-b: #1140c9;

  /* Orange CTA */
  --orange: #f2700f;
  --orange-hover: #d95f06;

  /* Ink */
  --ink: #0d1b33;
  --ink-2: #2c3a55;
  --ink-3: #3a4a66;
  --ink-4: #5a6a85;

  /* On blue */
  --on-blue: #dce6ff;
  --on-blue-2: #d3ddff;
  --on-blue-3: #e2e9ff;
  --on-blue-4: #c7d5ff;

  /* Rules */
  --rule: #d9dfeb;
  --rule-on-blue: rgba(255,255,255,0.35);
  --faq-hover: #f6f8fd;

  /* Badge accents */
  --badge-red: #d21e33;
  --badge-dark: #0f1626;

  --verify: #b45309;

  /* Gradients */
  --grad-band: linear-gradient(115deg, #0b2f8f 0%, #1a56ec 45%, #2f6bff 100%);
  --grad-band-55: linear-gradient(115deg, #0b2f8f 0%, #1a56ec 55%, #2f6bff 100%);
  --grad-card: linear-gradient(140deg, #0b2f8f, #2a63f5);
  --grad-guarantee: linear-gradient(140deg, #0b2f8f 0%, #1a56ec 60%, #2f6bff 100%);
  --grad-footer: linear-gradient(115deg, #08276f 0%, #1140c9 55%, #1a56ec 100%);

  --maxw: 1560px;
  --pad-x: 48px;
  --font: Figtree, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
a { color: #1447d6; text-decoration: none; }
a:hover { color: var(--orange); }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .band :focus-visible, .site-footer :focus-visible,
.guarantee__inner :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 14px 22px; font-weight: 800;
}
.skip-link:focus { left: 0; }
.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;
}

.inner { max-width: var(--maxw); margin: 0 auto; }

/* ---------- CTA pill ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange); color: #fff; font-weight: 800;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color 150ms ease;
  text-align: left;
}
.cta:hover { background: var(--orange-hover); color: #fff; }
.cta svg { flex: none; }

.cta--header { font-size: 19px; padding: 16px 30px; gap: 10px; }
.cta--hero   { font-size: 22px; padding: 20px 40px; margin-top: 38px; }
.cta--sect   { font-size: 20px; padding: 18px 36px; margin-top: 34px; }
.cta--deals  { font-size: 22px; padding: 20px 42px; margin-top: 48px; }
.cta--footer { font-size: 22px; padding: 22px 42px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 18px var(--pad-x); background: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(13,27,51,0.08);
}
/* Supplied Optimum authorized-reseller lockup. The intrinsic ratio is ~3.73:1;
   height is derived from width so the aspect never distorts. */
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: 230px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 44px; font-size: 18px; font-weight: 700; }
.site-nav a { color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--orange); }
.site-nav a.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; color: var(--ink); cursor: pointer; }

/* Compliance disclosure — sits directly beneath the header, above the fold. */
.disclosure {
  background: #eef2fd; border-bottom: 1px solid #dbe3f6;
  padding: 10px var(--pad-x); font-size: 14px; line-height: 1.5; color: #23386b;
}
.disclosure p { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-band); padding: 88px var(--pad-x) 96px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: 62px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em;
  color: #fff; text-wrap: balance;
}
.hero__body { margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--on-blue); max-width: 640px; }

/* ---------- Photo placeholders ---------- */
.ph {
  aspect-ratio: var(--ratio, 4/3);
  background: repeating-linear-gradient(135deg, #eef2fa 0 14px, #e1e7f4 14px 28px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
}
.ph span { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em;
  color: #4a5a78; text-transform: uppercase; }
.ph--hero { background: repeating-linear-gradient(135deg, #e8eefc 0 14px, #dbe4f7 14px 28px); }
.ph--dark { background: repeating-linear-gradient(135deg, #1b2436 0 14px, #131a29 14px 28px); }
.ph--dark span { color: #93a2c0; }

.frame-hero { border-radius: 12px; overflow: hidden; }
.frame-blue { border: 14px solid var(--blue); border-radius: 14px; overflow: hidden; }
.frame-plain { border-radius: 14px; overflow: hidden; }

/* ---------- Service sections ---------- */
.sect { background: #fff; }
.sect__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.sect--img-right .sect__media { order: 2; }
.kicker { font-size: 19px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--orange); text-transform: uppercase; }
.sect h2 { margin-top: 18px; font-size: 42px; line-height: 1.18; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); }
.sect h2.h2--tv { margin-top: 14px; font-size: 56px; line-height: 1.08; letter-spacing: -0.025em; }
.sect__body { margin-top: 24px; font-size: 24px; line-height: 1.45; color: var(--ink-2); max-width: 620px; }

/* ---------- Proof band ---------- */
.band { background: var(--grad-band-55); padding: 72px var(--pad-x); }
.band__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.band h2 { font-size: 38px; line-height: 1.3; font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.badge {
  border-radius: 12px; padding: 26px 20px; text-align: center;
  display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
  min-height: 250px;
}
.badge__t { font-weight: 900; line-height: 1.05; margin-top: 18px; }
.badge__c { font-size: 16px; line-height: 1.35; font-weight: 600; }
.badge .dim { opacity: 0.75; }
.badge--red { background: var(--badge-red); color: #fff; }
.badge--red .badge__t { font-size: 28px; letter-spacing: -0.02em; }
.badge--dark { background: var(--badge-dark); color: #fff; }
.badge--dark .badge__t { font-size: 22px; font-weight: 800; letter-spacing: 0.04em;
  line-height: 1.15; margin-top: 22px; }
.badge--light { background: #fff; color: var(--ink); }
.badge--light .badge__t { font-size: 22px; letter-spacing: 0.03em; line-height: 1.15;
  margin-top: 22px; color: var(--badge-red); }

/* ---------- Deals ---------- */
.deals { padding: 96px var(--pad-x); background: #fff; text-align: center; }
.deals .kicker { font-size: 20px; letter-spacing: 0.06em; }
.deals h2 { margin: 22px auto 0; max-width: 1050px; font-size: 44px; line-height: 1.2;
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.deals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 48px; text-align: left; }
.deal {
  background: var(--grad-card); border-radius: 14px; padding: 34px; min-height: 250px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.deal__n {
  width: 60px; height: 60px; border: 2px solid rgba(255,255,255,0.6); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 800;
}
.deal__b { color: #fff; font-size: 20px; line-height: 1.45; font-weight: 700; }

/* ---------- Guarantee band ---------- */
.guarantee { padding: 0 var(--pad-x) 96px; background: #fff; }
.guarantee__inner { max-width: var(--maxw); margin: 0 auto; background: var(--grad-guarantee);
  border-radius: 18px; padding: 76px 64px; text-align: center; }
.guarantee h2 { margin: 0 auto; max-width: 1000px; font-size: 44px; line-height: 1.22;
  font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.guarantee__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.gitem { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.gitem__icon { width: 78px; height: 78px; border: 2px solid rgba(255,255,255,0.55);
  border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.gitem__t { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.gitem p { color: var(--on-blue); font-size: 18px; line-height: 1.5; max-width: 330px; }

/* ---------- FAQ ---------- */
.faq { padding: 0 var(--pad-x) 100px; background: #fff; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__end { border-top: 1px solid var(--rule); }
.faq__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 28px 24px; background: none; border: 0; cursor: pointer;
  text-align: left; transition: background-color 150ms ease;
}
.faq__btn:hover { background: var(--faq-hover); }
.faq__q { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.faq__chev { font-size: 18px; color: var(--blue); font-weight: 800; flex: none; }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms ease; }
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__a { padding: 0 24px 30px; font-size: 19px; line-height: 1.6; color: var(--ink-3); max-width: 1100px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-footer); padding: 72px var(--pad-x) 56px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.15fr 0.8fr; gap: 56px; }
.footer__col1 { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.logo--footer img { width: 290px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 38px; font-size: 19px; font-weight: 700; }
.footer__nav a { color: #fff; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.footer__nav a:hover { color: var(--orange); }
.footer__nav a.is-active { border-bottom-color: #fff; }

.disc__h { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 22px; }
.disc__item { border-bottom: 1px solid var(--rule-on-blue); }
.disc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 18px 4px; background: none; border: 0; cursor: pointer; text-align: left;
}
.disc__t { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; color: #fff; text-transform: uppercase; }
.disc__chev { font-size: 15px; color: #fff; flex: none; }
.disc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms ease; }
.disc__panel.is-open { grid-template-rows: 1fr; }
.disc__panel > div { overflow: hidden; }
.disc__b { padding: 0 4px 18px; font-size: 15px; line-height: 1.55; color: var(--on-blue-2); }

.footer__cta { display: flex; align-items: center; justify-content: center; }
.footer__bottom { max-width: var(--maxw); margin: 64px auto 0; display: flex;
  align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__legal { font-size: 17px; line-height: 1.7; color: var(--on-blue-3); }
.footer__links { display: flex; align-items: center; gap: 20px; font-size: 17px; font-weight: 800; color: #fff; }
.footer__links a { color: #fff; }
.footer__links a:hover { color: var(--orange); }
.footer__sep { opacity: 0.5; }

/* ---------- Verify / TODO markers ---------- */
.verify { border-bottom: 2px dotted var(--verify); background: rgba(180,83,9,.10); padding: 0 2px; cursor: help; }
.legal-todo { display: inline-block; background: rgba(242,112,15,.18); color: #ffd0a8;
  border-left: 3px solid var(--orange); padding: 2px 8px; font-size: 13px; }
.prose .legal-todo { background: rgba(180,83,9,.08); color: var(--verify); border-left-color: var(--verify); }

/* ---------- Mobile drawer + sticky call ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(13,27,51,.6); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: 320px; max-width: 88vw;
  background: #fff; box-shadow: 0 24px 64px rgba(13,27,51,.3); padding: 24px;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-size: 18px; font-weight: 800; color: var(--ink); }
.drawer__close { background: none; border: 0; padding: 10px; color: var(--ink); cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 16px 0; font-size: 19px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--rule); }
.drawer nav a.is-active { color: var(--blue); }
.drawer .cta { margin-top: auto; justify-content: center; }

.sticky-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
.sticky-call a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; background: var(--orange); color: #fff; font-size: 19px; font-weight: 800;
  box-shadow: 0 -2px 14px rgba(13,27,51,.18);
}
.sticky-call a:hover { color: #fff; }

/* ---------- Legal pages ----------
   Long-form documents: measure capped near 72ch for readability, generous
   heading rhythm, numbered TOC that maps to the section order. */
.legal { padding: 72px var(--pad-x) 96px; background: #fff; }
.legal__inner { max-width: 860px; margin: 0 auto; }
.legal h1 { font-size: 52px; line-height: 1.1; font-weight: 800;
  letter-spacing: -0.025em; color: var(--ink); }
.legal__updated { margin-top: 14px; font-size: 16px; color: var(--ink-4); }
.legal__intro { margin-top: 22px; font-size: 21px; line-height: 1.55; color: var(--ink-2); }
.legal h2 {
  margin-top: 52px; padding-top: 8px; font-size: 26px; font-weight: 800;
  letter-spacing: -0.015em; color: var(--ink); scroll-margin-top: 120px;
}
.legal p { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--ink-3); }
.legal p strong { color: var(--ink); }
.legal a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.legal__banner { margin-top: 28px; }
.legal .legal-todo { display: block; padding: 12px 16px; font-size: 15px;
  line-height: 1.5; background: rgba(180,83,9,.09); color: #8a4108;
  border-left: 4px solid var(--verify); }
.legal p > .legal-todo { display: inline; padding: 2px 8px; border-left-width: 3px; }

.legal__toc { margin-top: 40px; padding: 28px 32px; background: var(--faq-hover);
  border: 1px solid var(--rule); border-radius: 14px; }
.legal__toc h2 { margin-top: 0; padding-top: 0; font-size: 15px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); }
.legal__toc ol { margin-top: 16px; padding-left: 22px; list-style: decimal;
  display: flex; flex-direction: column; gap: 9px; }
.legal__toc li::marker { color: var(--ink-4); font-size: 14px; }
.legal__toc a { font-size: 17px; font-weight: 600; color: var(--blue); text-decoration: none; }
.legal__toc a:hover { color: var(--orange); text-decoration: underline; }

.legal__vcard { margin-top: 18px; padding: 22px 26px; background: var(--faq-hover);
  border-radius: 12px; font-size: 17px; line-height: 1.8; color: var(--ink-3); }
.legal__vcard strong { color: var(--ink); }

/* =========================================================================
   Responsive — per the handoff's production guidance
   ========================================================================= */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .site-header .cta--header { display: none; }
  .nav-toggle { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__cta { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 900px) {
  :root { --pad-x: 24px; }
  .logo img { width: 210px; }
  .logo--footer img { width: 250px; }
  .hero { padding: 56px var(--pad-x) 64px; }
  .hero__inner, .sect__inner, .band__inner { grid-template-columns: 1fr; gap: 40px; }
  .sect--img-right .sect__media { order: 0; }
  .hero h1 { font-size: 40px; }
  .hero__body { font-size: 18px; margin-top: 20px; }
  .cta--hero { font-size: 19px; padding: 18px 30px; margin-top: 28px; }
  .sect h2, .sect h2.h2--tv { font-size: 30px; margin-top: 14px; }
  .sect__body { font-size: 19px; margin-top: 18px; }
  .kicker { font-size: 17px; }
  .band { padding: 56px var(--pad-x); }
  .band h2 { font-size: 26px; }
  .deals { padding: 64px var(--pad-x); }
  .deals h2, .guarantee h2 { font-size: 30px; }
  .guarantee { padding: 0 var(--pad-x) 64px; }
  .guarantee__inner { padding: 48px 28px; border-radius: 14px; }
  .guarantee__grid { gap: 32px; margin-top: 40px; }
  .gitem__t { font-size: 22px; }
  .faq { padding: 0 var(--pad-x) 72px; }
  .faq__q { font-size: 19px; }
  .faq__btn { padding: 22px 12px; }
  .faq__a { font-size: 17px; padding: 0 12px 24px; }
  .site-footer { padding: 56px var(--pad-x) 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__col1 { gap: 32px; }
  .footer__bottom { margin-top: 40px; }
  .legal { padding: 48px var(--pad-x) 72px; }
  .legal h1 { font-size: 34px; }
  .legal__intro { font-size: 18px; }
  .legal h2 { margin-top: 40px; font-size: 22px; }
  .legal p { font-size: 17px; }
  .legal__toc { padding: 22px 20px; }
  .legal__toc a { font-size: 16px; }
  .legal__vcard { padding: 18px 20px; font-size: 16px; }
  .frame-blue { border-width: 8px; }
  body { padding-bottom: 60px; }   /* clears the sticky call bar */
}

@media (max-width: 700px) {
  .badges, .deals__grid, .guarantee__grid { grid-template-columns: 1fr; }
  .badge { min-height: 0; }
  .deal { min-height: 0; padding: 26px; gap: 24px; }
  .logo img { width: 190px; }
  .logo--footer img { width: 220px; }
  .footer__nav { gap: 22px; font-size: 17px; }
  .footer__legal, .footer__links { font-size: 15px; }
  .hero h1 { font-size: 34px; }
  .deals h2, .guarantee h2, .band h2 { font-size: 26px; }
}

@media (min-width: 901px) { .sticky-call { display: none !important; } }

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header, .drawer, .scrim, .sticky-call, .disclosure { display: none !important; }
  body { padding-bottom: 0; }
}

/* Retention periods and similar in-document lists */
.legal__list { margin-top: 14px; padding-left: 22px; list-style: disc; }
.legal__list li { margin-top: 10px; font-size: 18px; line-height: 1.65; color: var(--ink-3); }
.legal__list li::marker { color: var(--ink-4); }
@media (max-width: 900px) { .legal__list li { font-size: 17px; } }

/* Supplied photography. Occupies the same box as the placeholder it replaces,
   so dropping images in never shifts the layout. */
.ph-img { width: 100%; height: auto; display: block; object-fit: cover; }
.frame-hero .ph-img { aspect-ratio: 16/11; }
.frame-blue .ph-img { aspect-ratio: 4/3; }
.frame-plain .ph-img { aspect-ratio: 16/11; }
