/* TideReach AI — site styles
   Palette (from the logo): ocean blues fading to the deep #01060D · Cyan #6BDDF5 / #5FC9F0 accents
   Type: Archivo (expanded for display, normal width for text) + IBM Plex Mono for figures and labels */

/* One visual world: the page descends from sunlit ocean blue at the top
   to the deep at the bottom, like light fading with depth. */
:root {
  --depth-0: #11497A;   /* sunlit water, top of the hero */
  --depth-1: #0B2F52;   /* bottom of the hero */
  --depth-2: #081F38;
  --depth-3: #04111F;
  --depth-4: #01060D;   /* the deep, behind the footer */

  --surface: rgba(173, 214, 255, .05);   /* raised panels: tinted glass, same look at any depth */
  --surface-solid: #0B1C2E;
  --field: rgba(1, 8, 18, .45);           /* form fields */
  --panel-top: rgba(23, 74, 122, .6);     /* calculator results */
  --panel-bottom: rgba(3, 14, 28, .6);
  --header-bg: rgba(4, 17, 33, .74);

  --ink: #E6EEF7;
  --ink-2: #AEBFD2;
  --ink-3: #93A6BA;
  --line: rgba(160, 200, 240, .16);
  --accent: #5FC9F0;
  --accent-hover: #88DAF6;
  --accent-ink: #04203A;
  --accent-soft: rgba(95, 201, 240, .14);
  --on-abyss: #EEF4FB;
  --on-abyss-2: #A8BBD2;
  --foam: #6BDDF5;
  --foam-hover: #96E8F9;
  --logo-light: none;
  --logo-dark: block;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --maxw: 1560px;
  --gutter: clamp(20px, 4vw, 56px);
  /* Type scale. Fine print never goes below 18px. */
  --fs-fine: 1.125rem;   /* 18px: sources, hints, labels, captions */
  --fs-small: 1.2rem;    /* 19.2px: secondary text, list items */
  --fs-body: 1.25rem;    /* 20px */
  --fs-lead: 1.45rem;    /* 23.2px */
  --radius: 8px;
  --header-h: 82px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; background: var(--depth-4); }
body {
  margin: 0;
  min-height: 100vh;
  /* The hero keeps its sunlit blue for its full height, then the water darkens all the way down */
  background: linear-gradient(180deg, var(--depth-0) 0, var(--depth-1) 900px, var(--depth-2) 40%, var(--depth-3) 75%, var(--depth-4) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.75rem); font-stretch: 125%; font-weight: 700; }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); }
h3 { font-size: 1.55rem; font-stretch: 110%; line-height: 1.25; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* Text for screen readers only */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface-solid); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: 600 1.15rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.on-abyss .btn-primary { background: var(--foam); color: #04203A; }
.on-abyss .btn-primary:hover { background: var(--foam-hover); color: #04203A; }
.on-abyss .btn-ghost { border-color: rgba(234, 243, 244, .35); color: var(--on-abyss); }
.on-abyss .btn-ghost:hover { border-color: var(--foam); color: var(--foam); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
/* The header floats over the page. It stays out of sight while the hero is on screen and
   slides in once the hero has scrolled away (script adds .is-shown). Keyboard focus also reveals it. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.2, .75, .2, 1), opacity .3s ease;
}
.site-header.is-shown, .site-header:has(:focus-visible) { transform: none; opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
/* Pages without a hero start below the header */
[data-view="contact"] { padding-top: var(--header-h); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; margin-right: auto; color: var(--ink); }
.logo { display: block; height: 48px; width: auto; }
.logo-on-light { display: var(--logo-light); }
.logo-on-dark { display: var(--logo-dark); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a:not(.btn) { padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-fine); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .btn { padding: 11px 18px; font-size: var(--fs-fine); }
@media (max-width: 480px) {
  :root { --header-h: 70px; }
  .header-inner { gap: 10px; }
  .logo { height: 26px; }
  .nav { gap: 2px; }
  .nav a:not(.btn) { padding: 8px; }
  .nav .btn { padding: 9px 12px; }
}

/* ---------- Views & sections ---------- */
.view { animation: view-in .35s ease-out both; }
@keyframes view-in { from { opacity: .4; } to { opacity: 1; } }

.section { padding-block: clamp(64px, 8vw, 104px); }
.section.alt { background: transparent; }
.section-head { display: grid; gap: 16px; max-width: 980px; margin-bottom: clamp(32px, 4vw, 48px); }
.note { font-size: var(--fs-body); color: var(--ink-2); max-width: 70ch; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: transparent; color: var(--on-abyss); isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.hero canvas, .hero::after {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(100deg, rgba(6, 26, 48, .6) 10%, rgba(6, 26, 48, .25) 42%, transparent 68%);
}
.hero .wrap { display: grid; gap: 26px; padding-block: clamp(64px, 10vw, 128px) clamp(64px, 9vw, 112px); }
/* Top row of the hero: same height and spacing as the header, so the two line up */
.hero .hero-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h); padding-block: env(safe-area-inset-top, 0px) 0;
}
.hero .hero-top + .wrap { padding-top: clamp(28px, 5vw, 72px); }
.hero .eyebrow { color: var(--foam); }
.hero h1 { max-width: 16ch; font-size: clamp(3rem, 1.6rem + 5.4vw, 6.6rem); line-height: 1.02; }
.hero .lead { color: var(--on-abyss-2); font-size: 1.55rem; max-width: 56ch; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-mono); font-size: var(--fs-fine); color: var(--on-abyss-2); }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 8px var(--foam); }

/* Load sequence: words surface one by one, the highlighted phrase catches the light, then the rest follows */
.hero .word { display: inline-block; animation: word-in .9s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(var(--i) * 60ms + 120ms); }
.hero .word.glow {
  color: var(--foam);
  animation: word-in .9s cubic-bezier(.2, .75, .2, 1) both, glint 1.6s ease-out both;
  animation-delay: calc(var(--i) * 60ms + 120ms), calc(var(--i) * 60ms + 700ms);
}
.hero .reveal { animation: fade-up .8s cubic-bezier(.2, .75, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes word-in {
  from { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes glint {
  0%   { text-shadow: 0 0 0 rgba(107, 221, 245, 0); color: var(--foam); }
  35%  { text-shadow: 0 0 28px rgba(107, 221, 245, .85), 0 0 2px rgba(230, 252, 247, .9); color: #E8FAFF; }
  100% { text-shadow: 0 0 22px rgba(107, 221, 245, .28); color: var(--foam); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .view, .hero .word, .hero .word.glow, .hero .reveal { animation: none; }
  .hero .word.glow { text-shadow: 0 0 22px rgba(107, 221, 245, .28); }
  .btn .arrow, .week-bar .seg { transition: none; }
}

/* Page header for the contact view */
.page-head { background: transparent; }
.page-head .wrap { display: grid; gap: 16px; padding-block: clamp(52px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { font-size: 1.55rem; }

/* ---------- What we do ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 48px; }
/* Each column spans four shared rows (heading, text, list, timeline) so they line up across columns */
.pillar {
  display: grid; grid-row: span 4; grid-template-rows: auto auto 1fr auto; grid-template-rows: subgrid;
  row-gap: 14px; padding-top: 24px; border-top: 2px solid var(--accent);
}
.pillar p { color: var(--ink-2); }
.pillar ul { display: grid; gap: 8px; font-size: var(--fs-small); align-content: start; }
.pillar li { padding-left: 20px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--accent); }
.pillar .pillar-meta { font-family: var(--font-mono); font-size: var(--fs-fine); color: var(--ink-3); padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- Busywork: stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px 64px; margin-bottom: 44px; }
.stat { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.stat .num {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(3.4rem, 2.2rem + 4.4vw, 5.6rem); line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat p { max-width: 44ch; }
.stat cite { font-style: normal; font-size: var(--fs-fine); color: var(--ink-3); }

/* ---------- Research stats ---------- */
.note-wide { max-width: none; font-size: 1.35rem; }
.stats:last-child { margin-bottom: 0; }

/* ---------- Calculator ---------- */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { display: grid; gap: 30px; align-content: start; padding: clamp(24px, 4vw, 44px); }
.field { display: grid; gap: 10px; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-small); }
.field .hint { font-size: var(--fs-fine); color: var(--ink-3); }
.field-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pill {
  flex: none; min-width: 5ch; text-align: center;
  padding: 4px 11px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
  font: 500 var(--fs-fine) var(--font-mono); font-variant-numeric: tabular-nums;
}

/* Stepper: − [value] + */
.stepper {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; max-width: 330px;
  border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--field);
  transition: border-color .15s, box-shadow .15s;
}
.stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step-btn {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 400 1.6rem/1 var(--font-body); transition: background-color .12s, color .12s;
}
.step-btn:hover { background: var(--accent-soft); color: var(--accent); }
.step-btn:first-child { border-right: 1px solid var(--line); }
.step-btn:last-child { border-left: 1px solid var(--line); }
.stepper input[type="number"] {
  border: 0; border-radius: 0; background: transparent; text-align: center;
  font: 500 1.35rem var(--font-mono); font-variant-numeric: tabular-nums; padding: 13px 4px;
}
.stepper input[type="number"]:focus-visible { box-shadow: none; }
.affix { display: flex; align-items: center; justify-content: center; gap: 2px; padding-inline: 8px; min-width: 0; }
.affix span { color: var(--ink-3); font: 400 var(--fs-fine) var(--font-mono); white-space: nowrap; }
.affix input[type="number"] { width: 5ch; flex: 0 1 auto; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Custom range sliders (filled track via --fill, set by script) */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
.slider::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; box-sizing: border-box; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%;
  background: var(--surface-solid); border: 4px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s;
}
.slider:hover::-webkit-slider-thumb, .slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-soft), 0 2px 6px rgba(10, 37, 64, .3); }
.slider::-moz-range-track { height: 10px; border-radius: 99px; background: var(--line); }
.slider::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--accent); }
.slider::-moz-range-thumb {
  box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-solid); border: 4px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .12s;
}
.slider:hover::-moz-range-thumb, .slider:active::-moz-range-thumb { transform: scale(1.12); }
.slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--accent-soft), 0 2px 6px rgba(10, 37, 64, .3); }
.slider-scale { display: flex; justify-content: space-between; margin-top: -4px; font: 400 var(--fs-fine) var(--font-mono); color: var(--ink-3); }

/* Results panel */
.calc-results {
  display: grid; gap: 30px; align-content: start;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(107, 221, 245, .12), transparent 60%),
    linear-gradient(165deg, var(--panel-top), var(--panel-bottom) 65%);
  color: var(--on-abyss);
}
.calc-results .eyebrow { color: var(--on-abyss-2); }
.week { display: grid; gap: 10px; }
.week-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.week-figure { font-family: var(--font-mono); font-size: var(--fs-fine); color: var(--on-abyss-2); }
.week-figure b { color: var(--foam); font-weight: 500; font-size: 1.35rem; }
.week-bar {
  position: relative; display: flex; height: 38px; border-radius: 5px; overflow: hidden;
  background: rgba(234, 243, 244, .08);
  --auto: 8%; --manual: 12%;
}
.week-bar .seg { height: 100%; transition: width .45s cubic-bezier(.2, .75, .2, 1); }
.week-bar .auto { width: var(--auto); background: linear-gradient(180deg, #A9EDFB, var(--foam)); box-shadow: 0 0 18px rgba(107, 221, 245, .45); position: relative; z-index: 1; }
.week-bar .manual { width: var(--manual); background: repeating-linear-gradient(135deg, rgba(107, 221, 245, .38) 0 4px, rgba(107, 221, 245, .16) 4px 8px); }
/* hour ticks every 2.5% (1 h of 40) and day dividers every 20% (8 h) */
.week-bar::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), var(--depth-3) calc(20% - 2px) 20%),
    repeating-linear-gradient(90deg, transparent 0 calc(2.5% - 1px), rgba(10, 37, 64, .55) calc(2.5% - 1px) 2.5%);
}
.week-days { display: grid; grid-template-columns: repeat(5, 1fr); font: 400 var(--fs-fine) var(--font-mono); color: var(--on-abyss-2); letter-spacing: .06em; text-transform: uppercase; }
.week-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-fine); color: var(--on-abyss-2); }
.week-legend span { display: inline-flex; align-items: center; gap: 7px; }
.week-legend i { width: 18px; height: 12px; border-radius: 2px; }
.week-legend i.auto { background: var(--foam); }
.week-legend i.manual { background: repeating-linear-gradient(135deg, rgba(107, 221, 245, .5) 0 3px, rgba(107, 221, 245, .2) 3px 6px); }
.week-legend i.rest { background: rgba(234, 243, 244, .14); }

.big-result { display: grid; gap: 4px; padding-top: 26px; border-top: 1px solid rgba(234, 243, 244, .14); }
.big-result .value {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(3.4rem, 2.4rem + 3.4vw, 5.4rem); line-height: 1; color: var(--foam);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(107, 221, 245, .25);
}
.big-result .label { color: var(--on-abyss-2); }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.result { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 8px; background: rgba(234, 243, 244, .06); border: 1px solid rgba(234, 243, 244, .1); }
.result .value { font-family: var(--font-display); font-stretch: 115%; font-weight: 650; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); line-height: 1.1; color: var(--on-abyss); font-variant-numeric: tabular-nums; }
.result .label { font-size: var(--fs-fine); color: var(--on-abyss-2); }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } }
.results-foot { display: grid; gap: 18px; justify-items: start; }
.results-foot .fine { font-size: var(--fs-fine); color: var(--on-abyss-2); }

/* ---------- Form controls ---------- */
input[type="number"] {
  width: 100%;
  padding: 11px 13px;
  font: 400 var(--fs-small)/1.4 var(--font-body);
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 6px;
}
input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Why now ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: start; }
.split .section-head { margin-bottom: 0; }
.signals { display: grid; }
.signals li { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line); }
.signals li:last-child { border-bottom: 1px solid var(--line); }
.signals strong { font-weight: 600; font-size: 1.35rem; }
.signals span { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

/* ---------- Example projects (in-house products) ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 32px; }
.product { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 16 / 9; max-width: 100%; background: #04101C; border-bottom: 1px solid var(--line); }
.product-media video { display: block; width: 100%; height: 100%; object-fit: cover; background: #04101C; }
.product-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 30px); }
.product-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.product-logo { width: 56px; height: 56px; flex: none; }
.product-name { font-size: 1.95rem; font-stretch: 118%; font-weight: 700; margin-right: auto; }
.product-tag {
  flex: none; font: 500 var(--fs-fine) var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); border: 1px dashed var(--ink-3); border-radius: 4px; padding: 4px 9px;
}
.product-meta { font: 400 var(--fs-fine) var(--font-mono); color: var(--ink-3); }
.product-title { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.65rem; line-height: 1.25; text-wrap: balance; }
.product-desc { color: var(--ink-2); margin-bottom: 10px; }
.product-metrics { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.metric { display: grid; gap: 2px; }
.metric b { font-family: var(--font-display); font-stretch: 118%; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); font-weight: 700; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric span { font-size: var(--fs-fine); color: var(--ink-3); }
@media (max-width: 600px) { .product-top { flex-wrap: wrap; } .product-tag { order: 3; } }

/* ---------- Contact ---------- */
/* The contact details are the centerpiece: email and phone set at display size */
.reach { display: grid; gap: clamp(36px, 4vw, 56px); }
.reach-item { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.reach-label { font-family: var(--font-mono); font-size: var(--fs-fine); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.reach-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.reach-big {
  font-family: var(--font-display); font-stretch: 110%; font-weight: 700; line-height: 1.05;
  font-size: clamp(1.6rem, 0.5rem + 4.6vw, 4.6rem); color: var(--ink); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
a.reach-big:hover { color: var(--accent); }
.reach-next { display: grid; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.reach-next h2 { font-size: 1.7rem; font-stretch: 110%; }
.copy-btn { font: 500 var(--fs-fine) var(--font-mono); padding: 8px 16px; border-radius: 6px; cursor: pointer; background: transparent; color: var(--accent); border: 1.5px solid var(--line); }
.copy-btn:hover { border-color: var(--accent); }
.next-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 48px; counter-reset: next; }
.next-steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 16px; color: var(--ink-2); font-size: var(--fs-small); }
.next-steps li::before {
  counter-increment: next; content: counter(next);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font: 500 var(--fs-fine) var(--font-mono);
}
.next-steps strong { color: var(--ink); display: block; font-size: 1.3rem; margin-bottom: 4px; }

.faq { display: grid; max-width: 1040px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 48px 24px 0; position: relative; font-weight: 600; font-size: 1.35rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.9rem var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: transparent; color: var(--on-abyss); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--on-abyss-2); max-width: 58ch; margin-top: 14px; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

.site-footer { background: transparent; color: var(--on-abyss-2); font-size: var(--fs-fine); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 48px; padding-block: 56px 32px; }
.site-footer .logo { height: 42px; }
.site-footer h2 { font-family: var(--font-mono); font-size: var(--fs-fine); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-abyss-2); margin-bottom: 12px; font-stretch: 100%; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: var(--on-abyss); text-decoration: none; }
.site-footer a:hover { color: var(--foam); }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { max-width: 36ch; }
.footer-privacy { grid-column: 1 / -1; }
.footer-privacy p { max-width: 90ch; }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(234, 243, 244, .12); font-size: var(--fs-fine); }
@media (max-width: 600px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Language switch (header) ---------- */
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  padding: 8px 11px; font: 500 var(--fs-fine) var(--font-mono); letter-spacing: .04em;
  transition: background-color .12s, color .12s;
}
.lang-switch button + button { border-left: 1.5px solid var(--line); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: rgba(95, 201, 240, .22); color: var(--ink); }
@media (max-width: 480px) {
  .lang-switch button { padding: 6px 6px; }
}

/* ---------- First-visit language picker ---------- */
html.gate-open { overflow: hidden; }
.lang-gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(1, 6, 13, .6);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  animation: gate-fade .3s ease-out both;
}
.lang-gate[hidden] { display: none; }
.lang-card {
  width: min(100%, 540px);
  display: grid; justify-items: center; gap: 22px; text-align: center;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px);
  background: var(--surface-solid); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  animation: gate-card .45s cubic-bezier(.2, .75, .2, 1) both;
}
.lang-card .logo { height: 44px; }
.lang-card h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 1.95rem); font-stretch: 112%; }
.lang-card h2 [lang="es"] { display: block; margin-top: 4px; color: var(--accent); }
.lang-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.lang-option {
  display: grid; justify-items: center; gap: 4px;
  padding: 18px 12px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--field); color: var(--ink);
  font-family: var(--font-body);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.lang-option .code { font: 500 var(--fs-fine) var(--font-mono); letter-spacing: .12em; color: var(--ink-3); }
.lang-option .name { font-family: var(--font-display); font-stretch: 112%; font-weight: 650; font-size: 1.5rem; }
.lang-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.lang-option.is-default { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.lang-option.is-default .code { color: inherit; opacity: .75; }
.lang-option.is-default:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.lang-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lang-note { font-size: var(--fs-fine); color: var(--ink-3); line-height: 1.5; }
@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-card { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lang-gate, .lang-card { animation: none; } }
