/* The AQUASTROKE website (public pages). The web app has its own design in app.html.
   Layout idea: deep blue sections, large type, real product screenshots in device frames, one dark band for contrast. */
:root {
  /* Dark when the device is dark; light when it is light (the owner, 2026-11-17, as in the app). */
  color-scheme: dark;
  --bg: #07111f; --surface: #0e1c33; --tint: #0b1830; --ink: #eaf3ff; --muted: #9fb4cf; --line: #1c3253;
  --brand: #4d8dff; --brand-d: #6ea1ff; --brand-ink: #04122b; --aqua: #4cd0ee; --dark: #050d1a; --dark-2: #0b1a30; --dark-ink: #eaf3ff; --dark-muted: #9fb4cf;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { width: min(820px, 100%); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 10px 18px; font: 600 15px/1.2 inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-d); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.outline:hover { border-color: var(--brand); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; flex: 1; }
.nav a { white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.bar-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
/* Language and country (site.js): a small button, a panel across on a computer and a list down on a phone. */
.locale { position: relative; }
.locale-btn { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 0 8px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.locale-btn:hover { border-color: var(--brand); }
.locale-flag { font-size: 18px; line-height: 1; }
.locale-panel--small { width: min(380px, calc(100vw - 32px)); }
.locale + .locale { margin-inline-start: -2px; }
.locale-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: min(720px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(4, 20, 50, .22); padding: 16px; }
.locale-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.locale-head span, .locale-sub { color: var(--muted); font-size: 13px; }
.locale-sub { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; margin: 12px 0 6px; }
.locale-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.locale-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.locale-item:hover { background: var(--tint); }
.locale-item.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.locale-item-flag { font-size: 22px; line-height: 1; }
.locale-item b { font-size: 14px; }
.locale-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.locale-lang { border: 1px solid var(--line); background: none; color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.locale-lang.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.price-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.price-where { font-weight: 700; color: var(--muted); }
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.billing button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.billing button.on { background: var(--brand); color: var(--brand-ink); }
.menu { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: clip; padding-block: 56px 72px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--aqua) 28%, transparent), transparent 70%),
  radial-gradient(700px 380px at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 78px, color-mix(in srgb, var(--aqua) 16%, transparent) 78px 80px); mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; }
.hero h1 span { display: block; }
.accent { color: var(--brand); }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 999px; padding: 6px 12px; }
.hero-visual { position: relative; padding-bottom: 24px; }
.device.desktop, .shot { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.dots { display: flex; gap: 6px; padding: 10px 12px; background: var(--tint); border-bottom: 1px solid var(--line); }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.device.desktop img, .shot img { width: 100%; }
.device.phone { position: absolute; inset-inline-end: -10px; bottom: -8px; width: 30%; min-width: 108px; border-radius: 22px; border: 6px solid var(--dark); background: var(--dark); box-shadow: var(--shadow); overflow: hidden; }
.device.phone img { width: 100%; }

/* Sections */
.section { padding-block: 80px; }
.section.tint { background: var(--tint); }
.section.dark { background: radial-gradient(900px 400px at 80% 0%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 70%), var(--dark); color: var(--dark-ink); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.dark .eyebrow { color: var(--aqua); }
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.sub { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 62ch; }
.sub.left { max-width: 70ch; }
.dark .sub { color: var(--dark-muted); }
.small-h { font-size: 20px; font-weight: 700; margin: 40px 0 16px; }
.trio, .grid4 { display: grid; gap: 16px; }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.tile h4 { font-size: 17px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }
.on-dark .tile { background: var(--dark-2); border-color: color-mix(in srgb, var(--dark-ink) 14%, transparent); }
.on-dark .tile p { color: var(--dark-muted); }
.more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--aqua); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
/* Number and title on the first row, the explanation underneath. */
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 12px; }
.step .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.step h3 { font-size: 26px; margin: 0; line-height: 1.2; }
.step p { grid-column: 1 / -1; margin: 0; color: var(--muted); }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; margin-top: 56px; }
.feature.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 18px; max-width: 40ch; }
.shot.phone-shot { width: min(300px, 70%); margin-inline: auto; border-radius: 30px; border: 8px solid var(--dark); background: var(--dark); }
.shot.phone-shot img { border-radius: 20px; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.price.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price .amount-text { font-size: 26px; }
.price h3 { font-size: 15px; letter-spacing: .14em; color: var(--muted); }
.amount { font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.amount sup { font-size: 22px; vertical-align: top; margin-inline-end: 2px; color: var(--muted); }
.period { color: var(--muted); font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; border-top: 1px solid var(--line); padding-top: 18px; }
.price li { padding-inline-start: 26px; position: relative; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }
.price li.off { opacity: .62; text-decoration: line-through; }
.badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }

/* CTA + footer */
/* The AQUASTROKE blue, deep enough for white text (5.9:1; the lighter site blue gave 2.7:1, audit 2026-11-17). */
.cta-band { padding-block: 88px; background: linear-gradient(135deg, #0057FF, #0A6AD0); color: #fff; }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.cta-band .sub { color: #fff; margin-inline: auto; }
.cta-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cta-form input { flex: 1 1 260px; max-width: 360px; border: 0; border-radius: 999px; padding: 14px 20px; font: inherit; }
.cta-form .btn.primary { background: var(--dark); color: #fff; }
.site-footer { background: var(--dark); color: var(--dark-muted); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot-brand { color: var(--dark-ink); font-weight: 800; letter-spacing: .14em; }
.copy { font-size: 13px; flex: 1 1 260px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--aqua); text-decoration: none; font-size: 14px; }
.foot-links a:hover { text-decoration: underline; }

/* Request-a-demo dialog */
.dialog-back { position: fixed; inset: 0; background: rgba(5, 13, 26, .6); display: grid; place-items: center; padding: 16px; z-index: 80; }
.dialog-back[hidden] { display: none; }
.dialog { background: var(--surface); color: var(--ink); border-radius: 18px; width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 22px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog h2 { font-size: 22px; }
.dialog p { color: var(--muted); font-size: 14px; }
.dialog label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; }
.dialog input, .dialog textarea { width: 100%; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 11px 13px; font: inherit; }
.dialog .error { color: #c0392b; font-weight: 600; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.x { background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; padding: 6px; }

/* Smaller screens */
/* (Replaced 2026-11-17: the header now folds into the ☰ menu whenever its links do not fit, in any language; site.js fitHeader.) */
@media (max-width: 980px) {
  .hero-grid, .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio, .steps, .prices { grid-template-columns: 1fr; }
  .locale-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { display: block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .bar-end .btn.ghost { display: none; }
  .section { padding-block: 60px; }
  .hero { padding-block: 36px 56px; }
  .hero-visual { margin-inline-end: 14px; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .locale-panel { position: fixed; top: calc(68px + env(safe-area-inset-top, 0px)); inset-inline: 12px; width: auto; max-height: calc(100vh - 90px); }
  .locale-list { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

/* Contact us (site.js): round icons side by side; the name is the tooltip. */
.contact-ways { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.contact-way { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; padding: 0; }
.contact-way:hover, .contact-way:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-way svg { width: 28px; height: 28px; color: var(--brand); }
.contact-way[hidden] { display: none; }
#contact-whatsapp svg { color: #25d366; }
#contact-instagram svg { color: #d62976; }
#contact-tiktok svg { color: var(--ink); }
.contact-kind { display: flex; gap: 18px; margin-bottom: 10px; }
.contact-kind label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* A smaller "Get Started" in the header. */
.bar-end .btn.primary { padding: 7px 14px; font-size: 13.5px; min-height: 0; line-height: 1.3; }

/* Features as four compact cards with the screen on top. */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.fcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.fcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--line); }
.fcard img.tall { object-fit: contain; background: var(--tint); padding-top: 10px; }
.fcard > div { padding: 16px 18px 18px; }
.fcard h3 { font-size: 18px; margin: 0 0 6px; }
.fcard p { margin: 0; color: var(--muted); font-size: 15px; }
.expect-note { margin-top: 22px; color: var(--muted); font-size: 13.5px; max-width: 760px; }
/* Pricing: four plans in a row, the personal swimmer plan as a wide card under them. */
@media (min-width: 981px) {
  .prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #swimmer-plan { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.6fr auto; align-items: center; gap: 8px 28px; }
  #swimmer-plan .badge { display: none; }
  #swimmer-plan > h3, #swimmer-plan > .amount, #swimmer-plan > .period, #swimmer-plan > .solo-was, #swimmer-plan > .solo-terms, #swimmer-plan > .solo-offer { grid-column: 1; }
  #swimmer-plan ul { grid-column: 2; grid-row: 1 / span 6; margin: 0; border-top: 0; padding-top: 0; grid-template-columns: 1fr 1fr; }
  #swimmer-plan .btn { grid-column: 3; grid-row: 1 / span 6; width: auto; }
}
@media (max-width: 980px) { .fgrid { grid-template-columns: 1fr; } }
/* On a phone the plans sit side by side and slide across, instead of one long column. */
@media (max-width: 980px) {
  .prices { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 16px 4px 12px; margin-inline: -4px; -webkit-overflow-scrolling: touch; }
  .prices > .price { flex: 0 0 84%; scroll-snap-align: center; }
}

/* The personal swimmer plan: length of the subscription and the launch offer (site.js SOLO). */
.solo-terms { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); align-self: flex-start; justify-self: start; }
.solo-terms button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.solo-terms button.on { background: var(--brand); color: var(--brand-ink); }
.solo-was { margin: 0; color: var(--muted); font-size: 15px; }
.solo-offer { margin: 6px 0 0; color: var(--aqua); font-weight: 700; font-size: 13.5px; }

/* Home page: two phones in the hero, who it is for, and four app screens. */
.hero-phones { position: relative; height: clamp(420px, 46vw, 600px); }
.hp { position: absolute; width: auto; height: 92%; border-radius: 34px; border: 8px solid #05070c; background: #05070c; box-shadow: 0 30px 70px rgba(0, 10, 30, .45); }
.hp-back { inset-inline-end: 4%; top: 0; transform: rotate(5deg); opacity: .92; }
.hp-front { inset-inline-start: 6%; bottom: 0; transform: rotate(-4deg); }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.who-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.who-card.who-swim { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.who-ic { font-size: 30px; line-height: 1; }
.who-card h3 { font-size: 20px; margin: 0; }
.who-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.who-card li { padding-inline-start: 22px; position: relative; }
.who-card li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }
.shots4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.app-shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.app-shot img { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; object-position: top; border-radius: 26px; border: 6px solid #05070c; background: #05070c; box-shadow: var(--shadow); }
.app-shot figcaption { display: flex; flex-direction: column; gap: 3px; }
.app-shot figcaption b { font-size: 17px; }
.app-shot figcaption span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 980px) {
  .who { grid-template-columns: 1fr; }
  .shots4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
  .shots4 .app-shot { flex: 0 0 64%; scroll-snap-align: center; }
  .hero-phones { height: 440px; max-width: 460px; margin-inline: auto; width: 100%; }
}

/* Subscribe window (site.js openSubscribe). */
.sub-plan { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); }
.sub-plan .sub-flag { font-size: 26px; line-height: 1; }
.sub-plan div { display: flex; flex-direction: column; flex: 1; }
.sub-plan div span { color: var(--muted); font-size: 13.5px; }
.sub-plan strong { font-size: 20px; white-space: nowrap; }

/* Touch screens: controls at least 44 x 44 points (Apple and Google guidance), easier to tap and to find with VoiceOver. */
@media (pointer: coarse) {
  .locale-btn { min-width: 44px; height: 44px; }
  .brand, .bar-end .btn.primary, .menu { min-height: 44px; }
  .brand, .menu { min-width: 44px; justify-content: center; }
  .who-card .more, .foot-links a, .billing button, .solo-terms button, .locale-lang { display: inline-flex; align-items: center; min-height: 44px; }
  .dialog .x { min-width: 44px; min-height: 44px; }
}

/* Safari on iPhone zooms into any field under 16px when it is tapped and does not zoom back out: 16px on touch screens. */
@media (pointer: coarse) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea { font-size:16px !important; } }

/* One page, turned sideways (site.js): the menu moves the screen to the side, never down. */
main[id="main"] { overflow-x: clip; }
.turn-out-fwd { animation: turnOutFwd .15s ease-in both; }
.turn-out-back { animation: turnOutBack .15s ease-in both; }
.turn-in-fwd { animation: turnInFwd .3s cubic-bezier(.2,.8,.2,1) both; }
.turn-in-back { animation: turnInBack .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes turnOutFwd { to { opacity: 0; transform: translate3d(-48px,0,0); } }
@keyframes turnOutBack { to { opacity: 0; transform: translate3d(48px,0,0); } }
@keyframes turnInFwd { from { opacity: 0; transform: translate3d(64px,0,0); } to { opacity: 1; transform: none; } }
@keyframes turnInBack { from { opacity: 0; transform: translate3d(-64px,0,0); } to { opacity: 1; transform: none; } }
[dir="rtl"] .turn-out-fwd { animation-name: turnOutBack; }
[dir="rtl"] .turn-out-back { animation-name: turnOutFwd; }
[dir="rtl"] .turn-in-fwd { animation-name: turnInBack; }
[dir="rtl"] .turn-in-back { animation-name: turnInFwd; }
main[id="main"] > [hidden] { display: none !important; }
.site-frame { display: block; width: 100%; min-height: 70vh; border: 0; }
#nav a[aria-current="page"] { color: var(--brand, #0a66ff); }
@media (prefers-reduced-motion: reduce) { .turn-out-fwd, .turn-out-back, .turn-in-fwd, .turn-in-back { animation: none; } }

/* "Try the demo" under the hero buttons: a fictional team, open to every visitor. */
.demo-try { margin: 14px 0 0; font-weight: 600; }
.demo-try a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* iPhone zooms into a field under 16 px and stays zoomed: on touch screens every field is 16 px (audit 2026-11-17). */
@media (pointer:coarse), (max-width:760px) { input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]), select, textarea { font-size:16px !important; } }

/* ══ Home page, 2026-11-17 (the owner): light or dark as the device is set; one section per screen, so scrolling never
   shows half of the section before; the call to action, the contact and the footer share the last screen. ══ */
/* Light when the device is light, unless the app's Settings → Appearance chose Dark; always light when it chose Light
   (the same choice as inside the app, aq_theme_mode, set on <html data-mode> by the page's first script). */
@media (prefers-color-scheme: light) {
  :root:not([data-mode="dark"]) { color-scheme: light;
    --bg: #F5F8FC; --surface: #FFFFFF; --tint: #EAF1FB; --ink: #0A1628; --muted: #4B5B73; --line: #DCE3EE;
    --brand: #0057FF; --brand-d: #0346C8; --brand-ink: #FFFFFF; --aqua: #0A7EA4;
    --dark: #0A1628; --dark-2: #10213D; --dark-ink: #EAF3FF; --dark-muted: #B6C6DC;
    --shadow: 0 18px 44px -22px rgba(10, 30, 60, .35); }
  :root:not([data-mode="dark"]) .hp, :root:not([data-mode="dark"]) .app-shot img { box-shadow: 0 24px 50px -20px rgba(10, 30, 60, .45); }
}
:root[data-mode="light"] { color-scheme: light;
  --bg: #F5F8FC; --surface: #FFFFFF; --tint: #EAF1FB; --ink: #0A1628; --muted: #4B5B73; --line: #DCE3EE;
  --brand: #0057FF; --brand-d: #0346C8; --brand-ink: #FFFFFF; --aqua: #0A7EA4;
  --dark: #0A1628; --dark-2: #10213D; --dark-ink: #EAF3FF; --dark-muted: #B6C6DC;
  --shadow: 0 18px 44px -22px rgba(10, 30, 60, .35); }
:root[data-mode="light"] .hp, :root[data-mode="light"] .app-shot img { box-shadow: 0 24px 50px -20px rgba(10, 30, 60, .45); }
.who-ic svg { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* One screen per section. Scrolling stops at the top of each section (below the header). */
@media (min-height: 600px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: 68px; }
  main > section { scroll-snap-align: start; min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; }
  main > section.section, main > section.hero { padding-block: 32px; }
  .site-footer { scroll-snap-align: end; }
}
/* Pricing in one screen: the five plans in one row on a computer, smaller type. */
#pricing h2 { font-size: clamp(26px, 3.2vw, 38px); }
#pricing .lead, #pricing > .wrap > p:not(.eyebrow) { font-size: 15.5px; }
.price-tools { margin-top: 14px; }
.prices { margin-top: 18px; gap: 12px; }
.price { padding: 18px 16px; gap: 4px; }
.price ul { margin: 10px 0 14px; padding-top: 10px; gap: 7px; }
.price li { font-size: 14px; }
@media (min-width: 981px) {
  /* The four coach plans in a row (their lists as long as their own text), the swimmer plan as one slim card under them. */
  .prices { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .prices > .price:not(#swimmer-plan) { align-self: stretch; }
  .price ul { flex: 0 0 auto; }
  .price .btn.block { margin-top: auto; }
  #swimmer-plan { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 2px 22px; padding: 12px 18px; }
  #swimmer-plan > h3 { grid-column: 1; grid-row: 1; }
  #swimmer-plan > .amount { grid-column: 1; grid-row: 2; font-size: 30px; }
  #swimmer-plan > .solo-was, #swimmer-plan > .period { grid-column: 2; grid-row: 1; margin: 0; }
  #swimmer-plan > .solo-terms { grid-column: 2; grid-row: 2; margin: 0; }
  #swimmer-plan > .solo-offer { display: none; }
  #swimmer-plan ul { grid-column: 3; grid-row: 1 / span 2; grid-template-columns: 1fr 1fr; margin: 0; border-top: 0; padding-top: 0; gap: 2px 14px; }
  #swimmer-plan .btn { grid-column: 4; grid-row: 1 / span 2; width: auto; }
  /* The heading and the plan tools share one row. */
  #pricing .price-tools { margin-top: 8px; }
  .app-shot img { max-height: 46svh; }
  .feature, .shots4 { margin-top: 18px; }
}
/* Phones: the audience and the plans slide across, with a button for each above them (site.js phoneTabs). */
.ptabs { display: none; }
@media (max-width: 980px) {
  .ptabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 0; padding-bottom: 2px; }
  .ptabs::-webkit-scrollbar { display: none; }
  .ptabs button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
  .ptabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
  .who { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-top: 12px; padding-bottom: 6px; scrollbar-width: none; }
  .who::-webkit-scrollbar, .prices::-webkit-scrollbar { display: none; }
  .who > .who-card { flex: 0 0 88%; scroll-snap-align: center; }
  .prices { padding-top: 8px; margin-top: 12px; scrollbar-width: none; }
  .prices > .price { flex: 0 0 88%; }
  .hero { padding-block: 20px; }
  .hero-phones { height: min(290px, 33svh); }
  .hero .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 16px; }
  .hero .chips li { flex: none; }
  .hero .cta-row { margin-top: 18px; }
  .hero .lead { font-size: 16px; }
}
/* The last screen: the call to action, then the contact, then the footer. */
.final { padding: 0 !important; }
.final .cta-band { padding-block: clamp(32px, 6svh, 64px); }
.final-contact { padding-block: clamp(28px, 5svh, 56px); }
.final-contact h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.final-contact .sub { margin-inline: auto; color: var(--muted); }
@media (min-height: 600px) { main > section.final { min-height: calc(100svh - 68px - var(--foot-h, 64px)); justify-content: stretch; } .final-contact { flex: 1; display: flex; flex-direction: column; justify-content: center; } }
/* One white field with the button inside it, on the blue band. */
.cta-form { background: #fff; border-radius: 999px; padding: 6px; max-width: 520px; margin: 24px auto 0; flex-wrap: nowrap; gap: 6px; box-shadow: 0 14px 30px -14px rgba(0, 20, 60, .5); }
.cta-form input { flex: 1 1 auto; max-width: none; min-width: 0; background: transparent; color: #0A1628; padding: 12px 16px; border: 0; outline: none; }
.cta-form input::placeholder { color: #66758C; }
.cta-form .btn.primary, .cta-form .btn.primary:hover { background: #0A1628; color: #fff; padding: 12px 22px; }
@media (max-width: 560px) {
  .cta-form { flex-direction: column; background: transparent; box-shadow: none; padding: 0; gap: 10px; }
  .cta-form input { background: #fff; border-radius: 999px; }
}
/* A quieter footer: smaller name and line. */
:root { --foot-h: 64px; }
.site-footer { padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.foot { gap: 6px 22px; }
.foot-brand { font-size: 13px; letter-spacing: .2em; }
.site-footer .copy { font-size: 12.5px; }
.foot-links { gap: 2px 16px; }
.foot-links a { font-size: 13px; }
@media (max-width: 980px) {
  :root { --foot-h: 132px; }
  .foot { justify-content: center; text-align: center; }
  .foot-links { justify-content: center; }
}
/* The plan lists start at the top (they were spread to the tallest card), and the price is a little smaller. */
.price ul { align-content: start; }
@media (min-width: 981px) {
  .price .amount { font-size: clamp(34px, 3.2vw, 44px); }
  .price li { font-size: 13.5px; }
  .solo-terms button { padding: 5px 10px; }
  .solo-offer { font-size: 12.5px; }
}
/* Phones: the plans keep their own height, the tools on one row, so pricing fits one screen. */
@media (max-width: 980px) {
  .prices { align-items: flex-start; padding-top: 4px; }
  #pricing h2 { font-size: 26px; }
  #pricing .sub { font-size: 14px; line-height: 1.5; }
  #pricing .price-tools { flex-wrap: nowrap; gap: 8px; margin-top: 10px; }
  #pricing .price-where { font-size: 13px; }
  #pricing .ptabs { margin-top: 8px; }
  .price { padding: 16px 14px; }
  .price .amount { font-size: 40px; }
  .hero { padding-block: 12px; }
}
#pricing { padding-block: 14px !important; }
@media (max-width: 980px) { .prices, .who { align-items: flex-start; transition: height .25s ease; } }
/* The footer stays dark in both modes: its links in a light aqua that reads on it. */
.site-footer .foot-links a { color: #8FD8F5; }
/* Phones: the last screen (call to action, contact, footer) fits the screen without cutting the heading. */
@media (max-width: 560px) {
  .final .cta-band { padding-block: 20px; }
  .final .cta-band h2 { font-size: 28px; }
  .cta-form { margin-top: 14px; }
  .final-contact { padding-block: 16px; }
  .final-contact .eyebrow { display: none; }
  .final-contact .sub { font-size: 14.5px; }
  .contact-ways { margin-top: 14px; }
  .site-footer .foot { gap: 2px 14px; }
}
/* ══ The owner's second look, 2026-11-17 ══
   One colour scheme everywhere: in light mode every dark-blue background turns white or pale and the text dark,
   as inside the app; the call-to-action band and the footer follow the mode instead of being a separate blue band. */
.hero::before { display: none; }
.final .cta-band { background: var(--tint); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final .cta-band h2 { color: var(--ink); }
.final .cta-band .sub { color: var(--muted); }
.cta-form { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-form input { color: var(--ink); }
.cta-form input::placeholder { color: var(--muted); }
.cta-form .btn.primary, .cta-form .btn.primary:hover { background: var(--brand); color: var(--brand-ink); }
.site-footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); }
.foot-brand { color: var(--ink); }
.site-footer .foot-links a { color: var(--brand); }
@media (max-width: 560px) { .cta-form { background: transparent; border: 0; box-shadow: none; } .cta-form input { background: var(--surface); border: 1px solid var(--line); } }
/* The two phones in the hero at a proper size on a phone; the two buttons share a row so the hero still fits. */
@media (max-width: 980px) {
  .hero-phones { height: min(420px, 50svh); }
  .hero .cta-row { flex-wrap: nowrap; gap: 8px; }
  .hero .cta-row .btn.big { flex: 1 1 0; padding-inline: 10px; font-size: 15px; }
  .hero h1 { font-size: 36px; }
  .hero .chips { display: none; }
}
/* Pricing: every plan the same height. Computers: the five plans in one row; phones: one at a time, all the same size. */
@media (min-width: 981px) {
  .prices { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; }
  .prices > .price { align-self: stretch; }
  #swimmer-plan { grid-column: auto; display: flex; flex-direction: column; padding: 18px 16px; gap: 4px; }
  #swimmer-plan > .amount { font-size: clamp(34px, 3.2vw, 44px); }
  #swimmer-plan > .solo-offer { display: none; }
  #swimmer-plan ul { grid-template-columns: none; margin: 10px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); gap: 7px; }
  #swimmer-plan .btn { width: 100%; margin-top: auto; }
  .price li { font-size: 13px; line-height: 1.45; }
}
@media (max-width: 980px) {
  .prices { align-items: stretch; height: auto !important; }
  .prices > .price { align-self: stretch; }
  #swimmer-plan .solo-offer { display: none; }
  .price .btn.block { margin-top: auto; }
}
@media (min-width: 981px) { #pricing .sub { max-width: none; } #pricing .prices { margin-top: 10px; } #pricing .price-tools { margin-top: 6px; } }
@media (max-width: 980px) { .hero-phones { height: min(380px, 45svh); } #pricing .sub { display: none; } }
/* The header folds into the ☰ menu whenever its links do not fit on one line (longer words in Filipino, French,
   Spanish… pushed the language, country and sign-in buttons off the screen; the owner, 2026-11-17). */
.site-header.compact .menu { display: block; }
.site-header.compact .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; margin: 0; }
.site-header.compact .nav.open { display: flex; }
.site-header.compact .nav a { padding: 12px; }
.site-header { position: sticky; }
.bar-end { flex: none; }
.nav a { white-space: nowrap; }
/* The header may use a wider row than the page, so the links fit in more languages before folding into the menu. */
.site-header > .wrap { width: min(1400px, 100%); }

/* "Did you mean …@gmail.com?" under an email field (public/email-check.js). */
.aq-email-hint { margin: 4px 0 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.aq-email-hint .aq-email-fix { background: none; border: 0; padding: 6px 2px; min-height: 32px; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }

/* Home hero: the name and what the platform is (the owner, 2026-11-20). */
.hero h1.hero-brand { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.25; }
.hero h1.hero-brand .hero-name { font-size: clamp(44px, 6vw, 76px); letter-spacing: 0.02em; line-height: 1.05; margin-bottom: 8px; }
.hero h1.hero-brand .hero-line { display: block; max-width: 22ch; }
.hero h1.hero-brand .hero-line .hero-dash { display: inline; }
.hero .hero-sub { margin-top: 14px; font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; }
@media (max-width: 560px) {
  .hero h1.hero-brand { font-size: 22px; }
  .hero h1.hero-brand .hero-name { font-size: 42px; }
}

/* One background colour for the whole page (the owner, 2026-11-20): no lighter bands behind sections, the start-free
   box or the footer; the contact block comes first in the last section, the start-free box under it. */
.section.tint, .final .cta-band, .site-footer { background: var(--bg); }
.final .cta-band { border: 0; padding-block: clamp(20px, 4svh, 44px) clamp(32px, 6svh, 64px); }
.final-contact { padding-bottom: 0; }

/* Home hero: one start button and the demo as a small button (the owner, 2026-11-20). */
.hero .cta-row .btn.big { flex: 0 0 auto; min-width: 220px; }
.demo-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-weight: 500; }
.demo-try a.demo-btn { text-decoration: none; min-height: 44px; padding: 8px 18px; font-size: 15px; font-weight: 700; }
.demo-note { color: var(--muted); font-size: 14.5px; }
