/* ba-li ported */
/* ═══════════════════════════════════════════════════════════
   Blue Arctic · Base layer
   Reset, typography, layout primitives, buttons, forms and
   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; }
/* The List block cannot store role="list", so the v2 lists that carried it
   are matched by class instead, at the same specificity (0,1,1) and in the
   same place in the cascade as the rule above. */
:is(ul, ol).wp-block-list:where(.is-style-plain, .is-style-checklist, .check-list, .check-cols, .plan-features, .af-rate-list, .af-track-list, .app-row) { 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 */
::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. The tick is the brand mark drawn
   as a CSS mask, so it carries the logo's cyan→blue gradient at any
   size, so keep the mask; don't substitute 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: each subject icon strokes one detail in the sky accent
   (class="acc" inside the SVG). Markup lives in 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 the visible
   gap, the next section pays the other half. Never add margins to a
   section: use a modifier below so the halves stay predictable. */
.section { padding-block: var(--space-section-md); }

/* Pick a modifier by the RELATIONSHIP between sections, not by how a
   page happens to look:
     --tight        both sides small
     --standard     the default, stated explicitly
     --spacious     a deliberate large break
     --connected    this section belongs with the one ABOVE it
     --connected-b  the NEXT section belongs with this one */
.section--tight       { padding-block: var(--space-section-sm); }

.section--connected   { padding-top: var(--space-section-sm); }

/* Legacy name, kept so existing markup keeps working. */

/* Hero → first section is the one single-sided transition: the hero
   pays no bottom padding. `.anchor-nav` can sit between the two. */
.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, so the next section
   steps down from xl rather than stacking two full gaps. */
.page-hero + .section,
.page-hero-dark + .section,
/* …including with the anchor nav between them, or the
   `.anchor-nav + .section` rule above wins. */
.page-hero + .anchor-nav + .section,
.page-hero-dark + .anchor-nav + .section { padding-top: var(--space-section-md); }

/* A pricing section opens with its cards, so it steps down from xl.
   Specificity (0,2,0) is what beats the `.anchor-nav + .section` rule. */
.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 */
.section-head { max-width: 44rem; margin-bottom: var(--space-component); }
.section-head .eyebrow { margin-bottom: .75rem; }
/* Headline and its supporting paragraph 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 for pricing interfaces: the headline steps down
   a size so it never out-shouts the plan prices. Add
   `.section-head--compact` to any `.section-head`.
   Mobile-first: the base rule is the phone composition and every step
   up lives in a min-width query. */
.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; }
/* Match the focus ring to the button's own radius; the global 4px ring
   reads as squared corners inside a full pill. */
.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); }
/* Sky focus ring on dark surfaces: 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;
  }
}
