/* PRallround base: tokens, reset, shared components. Variants set fonts and override tokens. */

:root {
  /* brand (binding) */
  --navy: #0E3C5C;
  --sky: #C7E6F5;
  --white: #FFFFFF;

  /* palette lock: only navy, sky, white and their mixes */
  --navy-deep: color-mix(in oklab, var(--navy) 82%, #000);
  --ink: var(--navy);
  --ink-soft: color-mix(in oklab, var(--navy) 74%, var(--white));
  --ink-faint: color-mix(in oklab, var(--navy) 55%, var(--white));
  --line: color-mix(in oklab, var(--navy) 13%, var(--white));
  --line-strong: color-mix(in oklab, var(--navy) 26%, var(--white));
  --mist: color-mix(in oklab, var(--sky) 40%, var(--white));
  --sky-strong: color-mix(in oklab, var(--sky) 80%, var(--navy));
  --on-navy: var(--white);
  --on-navy-soft: color-mix(in oklab, var(--sky) 78%, var(--navy));
  --on-navy-line: color-mix(in oklab, var(--sky) 22%, var(--navy));
  --error: #B42318; /* the one semantic colour outside the brand: errors only */

  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --display-stretch: 100%;
  --display-weight: 700;

  /* type roles */
  --fs-display: clamp(2.5rem, 1.35rem + 4.3vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.3vw, 3.35rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  /* space: 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(96px, 5.5rem + 6vw, 184px);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;

  /* the logo's rounded-square tile is the radius unit */
  --r-tile: 12px;
  --r-card: 20px;
  --r-media: 24px;
  --r-panel: 32px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 18px 40px -18px color-mix(in oklab, var(--navy) 45%, transparent), 0 2px 6px -2px color-mix(in oklab, var(--navy) 18%, transparent);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { text-wrap: pretty; }

::selection { background: var(--sky); color: var(--navy); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .quote-panel :focus-visible:not(.quote-card *), .site-footer :focus-visible, .band :focus-visible { outline-color: var(--sky); }
input, textarea { caret-color: var(--navy); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--white) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.wordmark {
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1;
  text-decoration: none; color: var(--navy); margin-right: auto;
}
.wordmark span { font-weight: 560; }
.main-nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.main-nav a {
  position: relative; text-decoration: none; font-size: var(--fs-small); font-weight: 560; color: var(--ink-soft);
  padding-block: 6px; transition: color 0.2s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-size: var(--fs-label); font-weight: 650; letter-spacing: 0.04em; color: var(--navy);
  transition: border-color 0.2s, background-color 0.2s;
}
.lang-btn .icon { width: 16px; height: 16px; }
.lang-btn:hover { border-color: var(--navy); }
.lang-chevron { transition: transform 0.3s var(--ease-out); }
.lang-btn[aria-expanded='true'] .lang-chevron { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 196px; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-float);
  animation: pop-in 0.25s var(--ease-out);
}
.lang-list a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-size: var(--fs-small);
}
.lang-list a:hover, .lang-list a:focus-visible { background: var(--mist); outline-offset: -2px; }
.lang-code { font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.05em; width: 22px; }
.lang-check { margin-left: auto; width: 16px; height: 16px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }

.menu-btn {
  display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--white); color: var(--navy);
}
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded='true'] .menu-open { display: none; }
.menu-btn[aria-expanded='true'] .menu-close { display: inline; }
.menu-btn .icon { width: 20px; height: 20px; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; background: var(--white); padding: var(--s6) var(--gutter);
  display: flex; flex-direction: column; gap: var(--s7); overflow-y: auto; border-top: 1px solid var(--line);
  animation: pop-in 0.3s var(--ease-out);
}
.mobile-menu ul a {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.75rem; text-decoration: none;
}
.mobile-menu-actions { display: grid; gap: var(--s3); }
.menu-open { overflow: hidden; }
@media (max-width: 899px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { gap: var(--s3); }
  :root { --header-h: 68px; }
}

/* ---------- buttons and the pr3 arrow ---------- */
.arrow-dot {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--sky); color: var(--navy);
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.arrow-dot .icon { width: 18px; height: 18px; }
.arrow-dot-sm { width: 32px; height: 32px; background: transparent; color: inherit; border: 1px solid currentColor; }
.arrow-dot-sm .icon { width: 15px; height: 15px; }
a:hover > .arrow-dot, button:hover > .arrow-dot, a:focus-visible > .arrow-dot,
a:hover .channel-action .arrow-dot { transform: rotate(45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 56px; padding: 8px 8px 8px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color 0.3s, border-color 0.3s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary, .btn-dark { background: var(--navy); color: var(--white); }
.btn-primary:hover, .btn-dark:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); padding-right: 26px; justify-content: center; gap: 10px; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.75; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 650; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 650; text-decoration: underline; text-underline-offset: 0.25em; color: var(--navy); }

/* ---------- stars, avatars ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--navy); }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.avatars { display: inline-flex; }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; border: 2px solid var(--white);
}
.avatars .avatar + .avatar { margin-left: -10px; }
.avatar-1 { background: var(--sky); color: var(--navy); }
.avatar-2 { background: var(--navy); color: var(--white); }
.avatar-3 { background: var(--mist); color: var(--navy); }

/* ---------- form ---------- */
.quote-form { display: grid; gap: var(--s5); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: var(--fs-small); font-weight: 650; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-tile);
  background: var(--white); font-size: 1rem; line-height: 1.4; color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sky) 70%, transparent);
}
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px color-mix(in oklab, var(--error) 16%, transparent); }
.field-error { color: var(--error); font-size: var(--fs-small); font-weight: 560; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--ink-soft); cursor: pointer; line-height: 1.5; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.consent-box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.consent-box .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.consent input:checked + .consent-box { background: var(--navy); border-color: var(--navy); color: var(--white); }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--navy); outline-offset: 2px; }
.field.has-error .consent-box { border-color: var(--error); }
.consent a { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-tile);
  background: color-mix(in oklab, var(--error) 7%, var(--white)); color: var(--error); font-size: var(--fs-small); font-weight: 560;
}
.form-status .icon { margin-top: 2px; }
.btn-submit { justify-self: start; min-width: 220px; }
.btn-submit.is-loading .arrow-dot .icon { animation: spin-out 0.9s var(--ease-out) infinite; }
@keyframes spin-out { to { transform: rotate(360deg); } }
.form-success { display: grid; gap: var(--s3); justify-items: start; padding-block: var(--s6); outline: none; }
.success-mark {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sky); color: var(--navy);
  animation: pop-in 0.5s var(--ease-out);
}
.success-mark .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--ink-soft); max-width: 44ch; }

/* ---------- wave ---------- */
.wave { width: 100%; height: clamp(44px, 7vw, 112px); position: relative; z-index: 1; overflow: visible; margin-bottom: -1px; }
.wave-bottom { margin: -1px 0 0; }
.wave-bottom { transform: scaleY(-1); }
.wave-back { fill: var(--wave-back, color-mix(in oklab, var(--sky) 70%, var(--white))); }
.wave-front { fill: var(--wave-front, var(--mist)); }

/* ---------- reveal: text and buttons rise slowly; images never animate in ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in, .no-io [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 0.4s linear; transition-delay: 0s; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- design round helper (Shift+P) ---------- */
.show-ph [data-placeholder] { outline: 2px dashed #C2410C; outline-offset: 4px; }
