/* Snowzonia — site styles
   One family: Inter, the brand kit's match for the SNOWZONIA wordmark (Inter Medium).
   Regular for body, Medium and SemiBold for emphasis and headings.
   The slanted bar (::before on .bars li) borrows the parallelogram faces of the mark. */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --navy: #0b1a2e;
  --navy-2: #12263f;
  --navy-line: rgba(255, 255, 255, 0.12);
  --granite: #3d4757;
  --ink: #0e1b2c;
  --ink-2: #4a5668;
  --snow: #ffffff;
  --mist: #f4f7fa;
  --line: #d8e1ea;
  --glacier: #1d5fae;
  --glacier-dark: #164c8c;
  --ice: #7cc0f2;
  --on-navy: #ffffff;
  --on-navy-2: #b3c1d3;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 9vw, 120px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
/* the hidden attribute must win over component display rules (e.g. .btn) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glacier); text-underline-offset: 3px; }
a:hover { color: var(--glacier-dark); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.2vw + 1rem, 4.4rem); line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 2.2vw + 1rem, 2.8rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--snow); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 120px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; }
/* the mark on its own brand-blue tile; the header around it stays navy */
.brand-tile { width: 88px; height: 88px; border-radius: 18px; }
.brand-word { width: auto; height: 32px; }
@media (max-width: 640px) {
  .header-inner { min-height: 84px; }
  .brand { gap: 12px; }
  .brand-tile { width: 60px; height: 60px; border-radius: 13px; }
  .brand-word { height: 19px; }
}
@media (max-width: 420px) {
  .header-inner { min-height: 76px; }
  .brand { gap: 10px; }
  .brand-tile { width: 50px; height: 50px; border-radius: 11px; }
  .brand-word { height: 16px; }
}
@media (max-width: 350px) {
  .brand-tile { width: 42px; height: 42px; border-radius: 9px; }
  .brand-word { height: 13px; }
}
/* phones in landscape: a sticky 88px header would eat a quarter of the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: static; }
  .header-inner { min-height: 68px; }
  .brand-tile { width: 48px; height: 48px; border-radius: 10px; }
  .brand-word { height: 15px; }
  h1, .page-head h1 { font-size: clamp(2rem, 7vh + 1rem, 3rem); }
}
/* large monitors: scale type and widen the column a step so the page doesn't look small */
@media (min-width: 1800px) { html { font-size: 112.5%; } :root { --wrap: 1320px; } }
@media (min-width: 2400px) { html { font-size: 125%; } :root { --wrap: 1480px; } }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--on-navy-2); text-decoration: none; font-size: 0.95rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--on-navy); }
.site-nav a[aria-current="page"] { color: var(--on-navy); border-bottom-color: var(--ice); }
.nav-toggle { display: none; }
.site-nav .nav-cta { display: none; }
/* tall header at the top of the page; slimmer once the visitor scrolls (set by js/site.js) */
@media (min-width: 641px) {
  .header-inner, .brand-tile, .brand-word { transition: min-height .2s ease, width .2s ease, height .2s ease; }
  .site-header[data-compact] .header-inner { min-height: 76px; }
  .site-header[data-compact] .brand-tile { width: 52px; height: 52px; border-radius: 11px; }
  .site-header[data-compact] .brand-word { height: 19px; }
}
@media (prefers-reduced-motion: reduce) { .header-inner, .brand-tile, .brand-word { transition: none; } }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--navy-line); color: var(--on-navy);
    font: inherit; font-size: 0.95rem; padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-block: 8px; }
  .site-nav[data-open] { display: flex; }
  .site-nav a { padding-block: 12px; border-bottom: 1px solid var(--navy-line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--navy-line); box-shadow: inset 3px 0 0 var(--ice); padding-left: 12px; }
  /* two classes so it beats the later .btn display rule */
  .btn.header-cta { display: none; }
  /* the header CTA moves into the collapsed menu so phones and tablets keep a 'Talk to us' */
  .site-nav a.nav-cta { display: inline-flex; align-self: flex-start; margin-top: 16px; padding: 0 22px; border: 0; box-shadow: none; color: var(--navy); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--glacier); color: var(--snow); }
.btn-primary:hover { background: var(--glacier-dark); color: var(--snow); }
.btn-ice { background: var(--ice); color: var(--navy); }
.btn-ice:hover { background: #a4d4f6; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--on-navy); color: var(--on-navy); }
.btn-line { border-color: var(--glacier); color: var(--glacier); }
.btn-line:hover { background: var(--glacier); color: var(--snow); }
.header-cta { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
/* small phones: long button labels wrap instead of pushing past the screen edge */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; padding-block: 10px; line-height: 1.3; }
  .actions .btn { flex: 1 1 auto; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-note { font-size: 0.9rem; color: var(--on-navy-2); margin-top: 14px; }

/* ---------- surfaces ---------- */
.section { padding-block: var(--space); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy .lede, .section-navy p { color: var(--on-navy-2); }
.section-navy h2, .section-navy h3 { color: var(--on-navy); }
.section-navy a:not(.btn) { color: var(--ice); }
.contours { background-image: url("../assets/contours.svg"); background-repeat: no-repeat; background-position: right bottom; background-size: min(1200px, 120%) auto; }

.head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.head p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { background-color: var(--navy); color: var(--on-navy); padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { color: var(--on-navy-2); }
.hero-company { margin-top: 36px; font-size: 0.9rem; color: var(--on-navy-2); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .plane-diagram { max-width: 560px; } }

/* plane diagram: the one orchestrated moment on the site */
.plane-diagram { width: 100%; height: auto; overflow: visible; }
.plane-diagram text { font-family: var(--font); }
.pd-wire { fill: none; stroke: var(--ice); stroke-opacity: 0.55; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pd-plane { opacity: 1; }
/* phones: the diagram scales down to ~55%, so its labels are drawn larger to stay readable */
@media (max-width: 560px) {
  .pd-sub { display: none; }
  .pd-label { font-size: 22px; }
  .pd-chips { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pd-wire { stroke-dashoffset: 1; animation: pd-draw 0.9s ease-out forwards; }
  .pd-wire.pd-low { animation-delay: 0.75s; }
  .pd-plane { opacity: 0; animation: pd-fade 0.6s ease-out 0.45s forwards; }
  @keyframes pd-draw { to { stroke-dashoffset: 0; } }
  @keyframes pd-fade { to { opacity: 1; } }
}

/* inner page heads */
.page-head { background-color: var(--navy); color: var(--on-navy); padding-block: clamp(56px, 8vw, 96px); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.2rem, 3.4vw + 1rem, 3.8rem); }
.page-head .lede { color: var(--on-navy-2); }
/* second, supporting line inside a headline: smaller and softer, so the primary line leads */
.h1-sub { display: block; margin-top: 0.45em; font-size: 0.5em; line-height: 1.2; font-weight: 500; color: var(--on-navy-2); letter-spacing: 0; }
.product-logo { width: 200px; height: auto; margin-bottom: 28px; }

/* ---------- content patterns ---------- */
/* columns separated by a top rule, not boxed cards */
.ruled { display: grid; gap: 32px clamp(24px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.ruled > * { border-top: 2px solid var(--ink); padding-top: 20px; }
.ruled p { color: var(--ink-2); margin: 0; }
.section-navy .ruled > * { border-top-color: var(--ice); }
.section-navy .ruled p { color: var(--on-navy-2); }
/* fixed column counts where the item count is known, so rows never leave an orphan */
.ruled-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ruled-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .ruled-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .ruled-2, .ruled-3 { grid-template-columns: 1fr; } }

/* slanted-bar bullets */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li { position: relative; padding-left: 30px; }
.bars li::before {
  content: ""; position: absolute; left: 2px; top: 0.72em;
  width: 16px; height: 4px; background: var(--glacier); transform: skewX(-32deg);
}
.section-navy .bars li::before { background: var(--ice); }
.bars strong { font-weight: 600; }
.bars-lg { font-size: 1.15rem; font-weight: 500; gap: 18px; }
.bars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; max-width: 900px; }
@media (max-width: 640px) { .bars-grid { grid-template-columns: 1fr; } }
.ruled .bars { margin-top: 16px; color: var(--ink-2); font-size: 0.98rem; }
.ruled .bars + p, .ruled p + .bars { margin-top: 16px; }
.ruled-1 { grid-template-columns: 1fr; }
.ruled .more { margin-top: 12px; }
.steps-title { font-size: 1.35rem; margin-bottom: 28px; }
.split-center { align-items: center; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .split-even { grid-template-columns: 1fr; } }
.muted-p { color: var(--ink-2); }
.link-cards h3 a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.link-cards h3 a:hover { color: var(--glacier); text-decoration-color: currentColor; }
.hp { display: none; }
.fine { font-size: 0.875rem; color: var(--ink-2); margin-top: 32px; }
.actions-tight { margin-top: 0; }
.hint { font-size: 0.92rem; color: var(--ink-2); }
.form-hint { margin: 12px 0 0; }

/* a real sequence: numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--navy-line); padding-top: 18px; position: relative; }
.steps li::before { content: counter(step); display: block; font-weight: 600; font-size: 0.95rem; color: var(--ice); margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { font-size: 0.97rem; margin: 0; }
.section:not(.section-navy) .steps li { border-top-color: var(--line); }
.section:not(.section-navy) .steps li::before { color: var(--glacier); }
.section:not(.section-navy) .steps p { color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.feature-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.feature-head .head { margin-bottom: 0; }

.divider { border: 0; border-top: 1px solid var(--navy-line); margin: clamp(48px, 6vw, 72px) 0; }
.section:not(.section-navy) .divider { border-top-color: var(--line); }


.figure { border-radius: 10px; overflow: hidden; }
.figure img { width: 100%; }

.callout { border-left: 3px solid var(--glacier); padding: 4px 0 4px 20px; margin: 0; }
.callout p { margin: 0; }
.section-navy .callout { border-left-color: var(--ice); }

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style-position: outside; }
.qa details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

.tiers { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.tiers > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.tiers .meta { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 6px; }

/* closing band */
.close-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.close-band h2 { margin: 0; max-width: 20ch; }
.close-band .actions { margin-top: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.97rem; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--snow);
  border: 1px solid #a9b6c6; border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ice); outline-offset: 0; border-color: var(--glacier); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: 0.92rem; margin: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; height: 100%; border: 1px solid #a9b6c6; border-radius: var(--radius); padding: 12px 14px; font-weight: 500; }
.choice input:checked + span { border-color: var(--glacier); box-shadow: inset 0 0 0 1px var(--glacier); background: #eef5fd; }
.choice input:focus-visible + span { outline: 3px solid var(--ice); outline-offset: 2px; }
.form-status { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: #eef5fd; color: var(--ink); }
.form-status[data-kind="error"] { background: #fdeeee; color: #8a1c13; }
.form-status:empty { display: none; }
.aside h2 { font-size: 1.25rem; }
.aside p, .aside address { color: var(--ink-2); font-style: normal; }
.aside .block { padding-block: 20px; border-top: 1px solid var(--line); }

.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; max-width: 66ch; }
.prose li { margin-bottom: 0.4em; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding-block: 64px 32px; font-size: 0.95rem; border-top: 1px solid var(--navy-line); }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 0.95rem; letter-spacing: 0; color: var(--on-navy); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* standalone links get a tap area of at least 24px (44px on touch screens) */
.foot-grid ul a, .site-footer p a, .more a, .aside .block a, .link-cards h3 a { display: inline-block; padding-block: 4px; }
@media (pointer: coarse) {
  .foot-grid ul a, .site-footer p a, .more a, .aside .block a, .link-cards h3 a { padding-block: 12px; }
}
.site-footer a { color: var(--on-navy-2); text-decoration: none; }
.site-footer a:hover { color: var(--on-navy); text-decoration: underline; }
.foot-brand { margin-bottom: 16px; }
/* footer keeps a smaller logo than the header: the large header size overflows the footer's first column */
.foot-brand .brand-tile { width: 56px; height: 56px; border-radius: 12px; }
.foot-brand .brand-word { height: 20px; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: 0.875rem; }
.foot-legal p { max-width: none; margin: 0 0 4px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
/* landscape phones: the header scrolls away, so keep its slim size even in the compact state */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header[data-compact] .header-inner { min-height: 68px; }
  .site-header[data-compact] .brand-tile { width: 48px; height: 48px; }
  .site-header[data-compact] .brand-word { height: 15px; }
}
