/* ═══════════════════════════════════════════════════════════
   Blue Arctic V6 · Base layer
   ───────────────────────────
   Reset, typography, layout primitives, buttons, forms,
   accessibility helpers. No page-specific styling here.
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored sections clear the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: 600; }

/* Brand text selection: a small signature nobody else has */
::selection { background: var(--ice-200); color: var(--navy-900); }

.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.6; }
.small { font-size: var(--fs-small); }

/* Eyebrow: small-caps section label with the Blue Arctic peak.
   The tick is a simplified silhouette of the brand mark (the arctic
   peak with the wave running through its base), rendered as a CSS
   mask so it carries the logo's cyan→blue gradient at any size.
   This is the site-wide brand signature. Do not swap it back to a
   generic shape. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: .8rem;
  height: .7rem;
  background: linear-gradient(135deg, var(--sky-400) 20%, var(--blue-600) 78%);
  -webkit-mask: var(--brand-peak) center / contain no-repeat;
  mask: var(--brand-peak) center / contain no-repeat;
  flex: none;
  transform: translateY(-.05em);
}
.eyebrow-light { color: var(--sky-400); }
.eyebrow-light::before { background: linear-gradient(135deg, #8ED2F6 20%, var(--sky-400) 78%); }

/* Duotone icons: every subject icon carries one detail stroked in
   the arctic sky accent (class="acc" inside the SVG), echoing the
   two blues of the Blue Arctic mark. See includes/icons.php. */
.ico .acc { stroke: var(--sky-400); }

/* ── Layout primitives ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Section rhythm ────────────────────────────────────────
   `.section` is the transition unit. Its padding is HALF of the
   gap you will see, because the next section pays the other half.
   Do not add margins to sections. Reach for a modifier below so
   the two halves stay predictable and never stack into a 200px
   white zone. */
.section { padding-block: var(--space-section-md); }

/* Modifiers: pick one by the RELATIONSHIP between the sections,
   not by how a page happens to look:
     --tight      both sides small        (48px between two tight)
     --standard   the default, explicit   (80px)
     --spacious   a deliberate large break(104px)
     --connected  this section belongs with the one ABOVE it (64px)
     --connected-b the NEXT section belongs with this one        */
.section--tight       { padding-block: var(--space-section-sm); }
.section--standard    { padding-block: var(--space-section-md); }
.section--spacious    { padding-block: var(--space-section-lg); }
.section--connected   { padding-top: var(--space-section-sm); }
.section--connected-b { padding-bottom: var(--space-section-sm); }
/* Legacy name, kept so existing markup keeps working. */
.section-tight-b { padding-bottom: var(--space-section-sm); }

/* Hero → first section is the one transition that carries a full
   single-sided value: the hero contributes no bottom padding, so
   without this the page would open too tight. `.anchor-nav` sits
   between the hero and the first section on product pages. */
.hero + .section,
.bahero + .section,
.anchor-nav + .section,
.hero + .logo-band,
.bahero + .section-domain { padding-top: var(--space-section-xl); }

/* `.page-hero` already pays its own bottom padding (~52px). Giving the
   next section the full xl value on top of that stacked into a 140px
   gap, exactly the accumulation this system exists to prevent. */
.page-hero + .section,
.page-hero-dark + .section,
/* …including when the anchor nav sits between them, which is the
   common case on interior pages. Without these two selectors the
   `.anchor-nav + .section` rule above wins and the gap measures 140px. */
.page-hero + .anchor-nav + .section,
.page-hero-dark + .anchor-nav + .section { padding-top: var(--space-section-md); }

/* A pricing section that opens a product page leads with its cards, so
   the full hero → first-section `xl` step is one size too generous: it
   pushes the first card row down the viewport for no editorial reason.
   `lg` keeps the transition deliberate without the empty zone. Specific
   enough (0,2,0) to beat the `.anchor-nav + .section` rule above. */
.anchor-nav + .section--pricing,
.bahero + .section--pricing { padding-top: var(--space-section-lg); }
.section-mist { background: var(--mist); }
.section-dark {
  background: var(--navy-900);
  color: #D9E6F2;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #F4F9FD; }
.section-dark .lead { color: #A8BFD3; }

/* Section header block */
/* Heading block → the content it introduces. Restrained on purpose:
   this was clamp(2.5rem,5vw,3.5rem) (56px), which read as a gap
   between two unrelated things rather than a label on the content
   directly beneath it. */
.section-head { max-width: 44rem; margin-bottom: var(--space-component); }
.section-head .eyebrow { margin-bottom: .75rem; }
/* Headline → supporting paragraph stays compact: they are one unit. */
.section-head h2 { margin-bottom: .7rem; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }

/* Compact section head: pricing interfaces, not editorial articles.
   A pricing lede exists to say what you are choosing between and how
   to decide, then get out of the way, so the headline steps down a
   size (it must not out-shout the plan prices beneath it) and the
   supporting copy shrinks to interface scale. Reusable: add
   `.section-head--compact` to any `.section-head`.

   Mobile-first, per the layout-spacing rules: the base rule is the
   phone composition and the desktop step lives in a min-width query.

   Desktop measures: eyebrow → headline 8px, headline → copy 16px,
   copy → cards 40px (target 36-48). */
.section-head--compact { max-width: 46rem; margin-bottom: 1.5rem; }
.section-head--compact .eyebrow { margin-bottom: .5rem; }
.section-head--compact h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.15rem);
  margin-bottom: 1rem;
}
.section-head--compact .lead {
  max-width: 42rem;
  margin-inline: auto;
  font-size: clamp(1rem, 2.4vw, 1.0625rem);
  line-height: 1.55;
}
@media (min-width: 901px) {
  .section-head--compact { margin-bottom: 2.5rem; }
}

/* Horizon rule: signature hairline divider */
.horizon {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--sky-400) 50%, var(--line-2) 82%, transparent);
  opacity: .7;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn .ico { flex: none; }
/* The global focus ring is a 4px-radius rectangle; on a full pill button
   that reads as squared-off corners inside a round shape. Match the ring
   to the button's own radius. */
.btn:focus-visible { border-radius: var(--r-btn); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(8, 25, 45, .12);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 2px 8px -2px rgba(21, 96, 232, .4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--paper);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--blue-500); color: var(--blue-600); background: #FBFCFE; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  padding-inline: 1rem;
}
.btn-quiet:hover { color: var(--blue-600); background: var(--frost); }

.btn-on-dark {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.btn-on-dark:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); }

.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: var(--fs-tiny); }

/* Text-arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--blue-600);
}
.link-arrow .ico { transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ── Forms ─────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input::placeholder { color: var(--ink-3); }
.input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(45, 121, 245, .18);
}

/* ── Accessibility ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.section-dark :focus-visible { outline-color: var(--sky-400); }
/* Every dark surface gets the sky focus ring: blue-500 is invisible on navy */
.header-dark :focus-visible,
.hero :focus-visible,
.announce :focus-visible,
.trial-band :focus-visible,
.security-section :focus-visible,
.site-footer :focus-visible { outline-color: var(--sky-400); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

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

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
