/* Swim Diary. A small, framework-free site with a little movement in the water.
   Fraunces is loaded via Google Fonts in index.html. */

:root {
  --paper: #f8fcfd;
  --water-light: #edf8fa;
  --ink: #10384b;
  --muted: #56717c;
  --teal: #087f99;
  --cyan: #09accb;
  --line: #d8e9ed;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wave-back: #d9f1f5;
  --wave-middle: #e2f5f8;
  --wave-front: #edf8fa;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.lightbox-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a, button { touch-action: manipulation; }
p, h1, h2, h3, figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #b7eaf1; color: #10384b; }
:focus-visible { outline: 3px solid #0784a3; outline-offset: 6px; border-radius: 4px; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.icon { width: 24px; height: 24px; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 14px 20px; background: var(--ink); color: white; border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { color: #367383; font-size: 10px; font-weight: 700; letter-spacing: 2.2px; line-height: 1.7; }
/* Use Fraunces for display text; keep the app-like system sans for UI and body copy. */
h1, h2, .brand > span, .feature-card h3, .memory-note p, .footer-brand > span { font-optical-sizing: auto; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -2.8px; }
h2 { font-size: clamp(44px, 4.35vw, 58px); line-height: 1.08; }
h1 em, h2 em { color: var(--teal); font-weight: 500; }
.section-space { padding-block: 112px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; padding-block: 14px; }
.text-link .icon { width: 17px; height: 17px; transition: transform .2s ease; }
.text-link:hover .icon { transform: translateY(3px); }

/* Header */
.site-header { position: relative; z-index: 5; background: #f6fbfc; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 100px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 3px 5px #0d68811a); }
.brand > span { font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: -.8px; }
.brand-dot { color: var(--cyan); }
.desktop-nav { display: flex; gap: 32px; margin-left: 40px; }
.desktop-nav a { font-size: 13px; color: #526c77; padding-block: 12px; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--teal); }
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 43px; padding: 11px 18px; font-size: 12px; font-weight: 600; border: 1px solid #c8e0e6; border-radius: 100px; background: #edf8fa; transition: background .2s ease, border-color .2s ease; }
.header-cta .icon { width: 16px; height: 16px; }
.header-cta:hover { background: #dff2f6; border-color: #9bceda; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 87% 48%, #e1f5f9 0, #f6fbfc 64%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 24px; align-items: center; min-height: 762px; padding-top: 12px; padding-bottom: 106px; }
.hero-copy { min-width: 0; padding-bottom: 9px; position: relative; z-index: 2; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.hero-eyebrow .icon { width: 21px; height: 21px; color: #049eb9; }
h1 { font-size: clamp(62px, 6.65vw, 90px); line-height: 1.015; letter-spacing: -4.5px; }
.hero-description { max-width: 421px; font-size: 17px; line-height: 1.8; color: var(--muted); margin-top: 28px; }
.hero-actions { display: flex; align-items: center; gap: 31px; margin-top: 34px; }
.store-slot { display: flex; }
.store-badge { min-height: 62px; display: inline-flex; align-items: center; gap: 12px; background: #113b4f; color: #fff; padding: 12px 22px 12px 18px; border-radius: 15px; box-shadow: 0 5px 10px #123b4f0d; text-align: left; }
a.store-badge { transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
a.store-badge:hover { background: #075671; box-shadow: 0 7px 18px #123b4f20; transform: translateY(-2px); }
.store-badge .icon { width: 27px; height: 29px; stroke-width: 1.4; }
.store-badge span { display: grid; gap: 3px; }
.store-badge small { font-size: 10px; line-height: 1.2; color: #d3e9ed; letter-spacing: .25px; }
.store-badge strong { font-size: 19px; letter-spacing: -.4px; line-height: 1.15; font-weight: 550; }
.health-note { display: flex; align-items: center; gap: 9px; color: #5e7882; font-size: 11px; line-height: 1.6; margin-top: 24px; }
.health-icon { width: 24px; height: 24px; background: white; border: 1px solid #e1e9ed; border-radius: 7px; display: grid; place-items: center; }
.health-icon .icon { width: 12px; height: 12px; stroke: #e46878; fill: #e46878; }
.hero-art { height: 634px; position: relative; min-width: 0; }
.pool-halo { position: absolute; width: 105%; height: 89%; top: 56px; left: -8px; border-radius: 47% 53% 43% 57% / 53% 43% 57% 47%; background: linear-gradient(145deg, #def7fb 8%, #b5eaf2 55%, #daf6f8 96%); overflow: hidden; transform: rotate(-7deg); }
.pool-halo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 28%, #ffffff35 29%, #ffffff35 30%, transparent 32%, transparent 40%, #ffffff25 44%, transparent 48%); }
.pool-halo svg { width: 100%; height: 100%; stroke: #fff; stroke-width: 1.5; opacity: .5; }
.phone { background: #f2f2f7; border: 5px solid #193c4e; border-radius: 37px; overflow: hidden; box-shadow: 0 26px 45px -15px #103e5447, 0 3px 6px #143f4d24, 0 0 0 1px #52788c; }
.phone > img { width: 100%; height: auto; border-radius: 30px; }
.hero-phone { position: absolute; }
.hero-phone--back { width: 242px; top: 63px; left: 22px; transform: rotate(-9deg); z-index: 1; }
.hero-phone--front { width: 263px; top: 22px; right: 16px; transform: rotate(8deg); z-index: 2; }
.small-ripple { position: absolute; border: 1px solid #8dd7e3; border-radius: 50%; width: 60px; height: 22px; transform: rotate(-15deg); }
.small-ripple::before { content: ""; position: absolute; inset: -7px; border: 1px solid #b0e4ed; border-radius: inherit; }
.ripple-one { top: 21px; left: 120px; }
.ripple-two { bottom: 6px; right: 50px; width: 92px; height: 25px; transform: rotate(-6deg); }
.floating-note { position: absolute; z-index: 3; left: 26px; bottom: 21px; display: flex; align-items: center; gap: 12px; background: #ffffff; padding: 15px 20px 15px 14px; border: 1px solid #fff; border-radius: 17px; box-shadow: 0 12px 35px #0b64741c; transform: rotate(-3deg); }
.floating-note-icon { width: 41px; height: 41px; color: #069eba; background: #e4f6fa; border-radius: 12px; display: grid; place-items: center; }
.floating-note-icon .icon { width: 21px; height: 21px; }
.floating-note strong { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.floating-note div > span { display: block; font-size: 10.5px; color: #65808a; }
.hero-art-caption { position: absolute; bottom: -18px; right: 68px; font-size: 8px; letter-spacing: 2px; color: #5c929d; }

/* Seamless, transform-only waves. Each track contains two matching periods. */
.waterline { position: absolute; height: 138px; bottom: 0; left: 0; right: 0; overflow: hidden; pointer-events: none; }
.wave-track { position: absolute; width: 200%; max-width: none; height: 100%; left: 0; bottom: -1px; animation: wave-drift 32s linear infinite; }
.wave-track--back { fill: var(--wave-back); bottom: 17px; animation-duration: 41s; }
.wave-track--middle { fill: var(--wave-middle); bottom: 3px; animation-duration: 31s; animation-direction: reverse; }
.wave-track--front { fill: var(--wave-front); bottom: -19px; animation-duration: 25s; }
.waterline--hero { z-index: -1; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[data-motion="paused"] .wave-track { animation-play-state: paused; }

/* Intro */
.intro-section { background: var(--water-light); padding-top: 43px; padding-bottom: 82px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.centered { text-align: center; }
.section-heading > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.85; margin-top: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.feature-card { background: #ffffffed; border: 1px solid #dbecef; border-radius: 23px; padding: 27px 29px 24px; box-shadow: 0 5px 15px #0e5a6f03; display: flex; flex-direction: column; }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; gap: 12px; }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #e1f6fa; color: #068ca8; }
.feature-icon .icon { width: 21px; height: 21px; }
.feature-icon--health { color: #d46375; background: #fff0f2; }
.feature-icon--health .icon { fill: #d463751c; }
.feature-icon--blue { color: #447cc1; background: #edf3ff; }
.feature-number { font-size: 9px; font-weight: 600; letter-spacing: 1.7px; color: #688690; }
.feature-card h3 { font-family: var(--serif); font-weight: 650; font-size: 23px; letter-spacing: -.65px; line-height: 1.25; margin-bottom: 11px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.85; margin-bottom: 23px; }
.feature-tag { display: block; border-top: 1px solid #e1edf0; margin-top: auto; padding-top: 15px; font-size: 11px; color: #3f7989; }

/* The journal */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.journal-visual { position: relative; height: 615px; min-width: 0; overflow: hidden; border: 1px solid #d7ebef; border-radius: 30px; background: linear-gradient(150deg, #e8f6f9, #d7f1f5); }
.journal-visual-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 29px; position: relative; z-index: 2; }
.journal-visual-header .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
.journal-visual-header .icon { color: #459fb3; width: 19px; height: 19px; }
.journal-water-rings { position: absolute; border: 1px solid #ffffffb3; width: 800px; height: 350px; left: -280px; top: 180px; border-radius: 50%; transform: rotate(-24deg); }
.journal-water-rings::before, .journal-water-rings::after { content: ""; position: absolute; inset: 26px; border: 1px solid #ffffffb3; border-radius: 50%; }
.journal-water-rings::after { inset: -28px; }
.journal-phone { position: absolute; width: 262px; right: 36px; top: 89px; transform: rotate(7deg); }
.memory-note { position: absolute; z-index: 2; left: 23px; top: 314px; width: 224px; padding: 32px 26px 23px; background: #fffdf7; border-radius: 3px 3px 24px 3px; transform: rotate(-7deg); box-shadow: 0 12px 32px #214e5c24; }
.memory-note-pin { position: absolute; top: -12px; left: 68px; width: 79px; height: 23px; background: #8bced65c; border: 1px solid #addde042; transform: rotate(5deg); }
.memory-note p { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: #366574; }
.memory-note > span:last-child { display: block; margin-top: 19px; color: #6e9098; font-size: 7px; letter-spacing: 1.3px; line-height: 1.5; }
.photo-chip { position: absolute; z-index: 2; bottom: 26px; right: 26px; display: inline-flex; gap: 8px; align-items: center; background: #ffffffed; border: 1px solid white; padding: 12px 15px; border-radius: 30px; font-size: 10px; color: #346578; box-shadow: 0 6px 16px #12526612; }
.photo-chip .icon { width: 17px; height: 17px; color: #1f9fb7; }
.feature-copy { padding-left: 9px; padding-right: 16px; }
.feature-copy > .eyebrow { margin-bottom: 22px; }
.section-description { font-size: 16px; line-height: 1.85; color: var(--muted); margin-top: 25px; max-width: 417px; }
.detail-list { margin-top: 30px; }
.detail-row { display: flex; gap: 18px; align-items: flex-start; padding-block: 17px; }
.detail-row + .detail-row { border-top: 1px solid #dfebee; }
.detail-row > span { width: 26px; height: 26px; display: grid; place-items: center; color: #1493ae; padding-top: 2px; flex-shrink: 0; }
.detail-row .icon { width: 23px; height: 23px; }
.detail-row h3 { font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.detail-row p { font-size: 13px; line-height: 1.75; color: var(--muted); max-width: 360px; }

/* Progress */
.progress-panel { background: #084b64; position: relative; isolation: isolate; display: grid; grid-template-columns: 1.12fr 1fr; min-height: 599px; overflow: hidden; border-radius: 32px; }
.progress-copy { padding: 73px 0 70px 65px; position: relative; z-index: 2; }
.progress-copy > .eyebrow { color: #a0d9e1; margin-bottom: 24px; letter-spacing: 1.85px; }
.progress-copy h2 { color: #fff; font-size: 57px; line-height: 1.08; }
.progress-copy h2 em { color: #a0e4ec; }
.progress-copy > p:not(.eyebrow) { max-width: 401px; color: #c0dce4; font-size: 15px; line-height: 1.85; margin-top: 26px; }
.progress-highlights { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; margin-block: 28px 20px; }
.progress-highlights span { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: #d5f0f5; }
.progress-highlights .icon { width: 18px; height: 18px; color: #8dd7e3; }
.text-link--light { color: #fff; font-size: 13px; }
.progress-visual { position: relative; z-index: 1; min-width: 0; }
.progress-phone { position: absolute; width: 273px; top: 65px; left: 116px; transform: rotate(8deg); border-color: #9dd8e6; box-shadow: 0 20px 45px #01293d70, 0 0 0 1px #c4f0f870; }
.progress-orbit { position: absolute; width: 485px; height: 485px; border-radius: 50%; border: 1px solid #74b3c82e; left: 15px; top: 65px; }
.progress-orbit::before, .progress-orbit::after { content: ""; position: absolute; inset: -35px; border: 1px solid #74b3c824; border-radius: 50%; }
.progress-orbit::after { inset: 35px; }
.progress-stamp { position: absolute; top: 365px; left: 47px; width: 113px; height: 113px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 50%; background: #d6f4f3; border: 5px solid #c0e7e8; color: #196b80; transform: rotate(-13deg); box-shadow: 0 12px 25px #032e4933; }
.progress-stamp .icon { width: 25px; height: 25px; }
.progress-stamp span { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-align: center; line-height: 1.5; }
.waterline--deep { height: 170px; --wave-back: #13749340; --wave-middle: #08739159; --wave-front: #063e58bb; z-index: 1; }

/* Screenshot gallery */
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.gallery-heading .eyebrow { margin-bottom: 20px; }
.gallery-heading-aside { display: flex; flex-direction: column; gap: 26px; padding: 0 3px 6px 0; }
.gallery-heading-aside > p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.gallery-controls { display: flex; gap: 10px; }
.circle-button { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #c9e0e6; background: transparent; transition: background .2s ease, border-color .2s ease, opacity .2s ease; }
.circle-button .icon { width: 19px; height: 19px; }
.circle-button:hover:not(:disabled) { background: #e4f3f7; border-color: #93c7d4; }
.circle-button:disabled { opacity: .35; }
.gallery-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 12px 4px 24px; scrollbar-width: thin; scrollbar-color: #c4e3e9 transparent; overscroll-behavior-x: contain; }
.gallery-card { flex: 0 0 241px; min-width: 0; scroll-snap-align: start; }
.gallery-image { display: block; position: relative; border: 4px solid #e0eaed; border-radius: 29px; background: #f1f1f7; overflow: hidden; box-shadow: 0 7px 15px #143d4d0a; transition: border-color .2s ease, transform .2s ease; }
.gallery-image:hover { border-color: #97d5e2; transform: translateY(-5px); }
.gallery-image img { width: 100%; border-radius: 25px; }
.enlarge-hint { position: absolute; bottom: 13px; right: 13px; width: 31px; height: 31px; display: grid; place-items: center; background: #fffffff0; border-radius: 50%; box-shadow: 0 1px 6px #1646581a; color: #35657a; }
.enlarge-hint .icon { width: 15px; height: 15px; }
.gallery-card figcaption { display: flex; gap: 12px; margin-top: 21px; }
.gallery-number { padding-top: 2px; font-size: 10px; font-weight: 600; color: #4c8798; }
.gallery-card figcaption h3 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.gallery-card figcaption p { font-size: 10.5px; color: #637d87; line-height: 1.7; }
.gallery-footnote { margin-top: 18px; color: #69818b; display: flex; align-items: center; gap: 7px; font-size: 10px; }
.gallery-footnote > .icon { width: 13px; height: 13px; }
.gallery-footnote > span { margin-left: auto; font-size: 8px; letter-spacing: 1.65px; }

/* Final call to action */
.download-section { position: relative; overflow: hidden; background: #edf8fa; text-align: center; }
.waterline--download { top: 0; bottom: auto; height: 102px; transform: rotate(180deg); --wave-back: #d8eff4; --wave-middle: #e6f5f8; --wave-front: #f8fcfd; }
.download-content { position: relative; padding-top: 134px; padding-bottom: 79px; }
.download-icon { margin-inline: auto; width: 88px; height: 88px; filter: drop-shadow(0 10px 10px #166d8724); }
.download-content .eyebrow { margin-top: 28px; margin-bottom: 16px; font-size: 9px; }
.download-content h2 { font-size: 57px; }
.download-content > p:not(.eyebrow) { font-size: 14px; line-height: 1.85; color: var(--muted); margin-top: 21px; }
.download-content .store-slot { justify-content: center; margin-top: 27px; }
.download-platform { display: block; margin-top: 18px; font-size: 10px; color: #5b7c88; }

/* Footer */
.site-footer { background: #edf8fa; }
.footer-inner { border-top: 1px solid #d4e8ed; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 26px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand > .icon { color: #2194aa; width: 22px; height: 22px; }
.footer-brand > span { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.footer-brand > small { font-size: 9px; color: #6c8790; margin-left: 5px; }
.footer-links { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a, .motion-toggle { font-size: 10px; color: #4e7381; }
.footer-links a:hover, .motion-toggle:hover { color: #007e99; }
.motion-toggle { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 7px 0; }
.motion-toggle .icon { width: 13px; height: 13px; }
.back-top { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; }
.back-top .icon { width: 13px; height: 13px; }

/* Full-size screenshot viewer. Native dialog handles focus and Escape. */
.lightbox { border: 0; background: transparent; color: #f1fbff; padding: 0; width: min(720px, calc(100% - 48px)); max-height: calc(100% - 28px); overflow: visible; }
.lightbox::backdrop { background: #061d2bef; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lightbox-inner { width: 100%; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 15px; padding-inline: 5px; }
.lightbox-toolbar p { font-size: 14px; font-weight: 500; }
.lightbox .circle-button { border-color: #a2ced14d; color: #fff; background: #13384b; }
.lightbox .circle-button:hover { background: #25607a; }
.lightbox .circle-button:focus-visible { outline-color: #a0e3f0; }
.lightbox-stage { display: flex; justify-content: center; align-items: center; gap: 32px; position: relative; }
.lightbox-image { width: auto; height: min(75dvh, 900px); max-width: calc(100vw - 194px); object-fit: contain; border-radius: 22px; }
.lightbox-count { text-align: center; font-size: 11px; color: #accbd6; padding-top: 17px; min-height: 30px; }

/* Tablet */
@media (max-width: 1150px) {
  .desktop-nav { margin-left: 0; gap: 24px; }
  .hero-grid { grid-template-columns: 1fr 1.04fr; min-height: 708px; }
  h1 { font-size: 77px; }
  .hero-art { height: 582px; }
  .hero-phone--back { width: 220px; left: 12px; }
  .hero-phone--front { width: 236px; right: 4px; top: 25px; }
  .floating-note { bottom: 16px; left: 8px; }
  .hero-art-caption { right: 20px; }
  .hero-description { max-width: 390px; font-size: 16px; }
  .feature-card { padding: 24px; }
  .feature-card h3 { font-size: 21px; }
  .split-layout { gap: 48px; }
  .journal-phone { width: 246px; right: 24px; top: 96px; }
  .memory-note { width: 199px; left: 19px; padding: 29px 23px 22px; }
  .memory-note p { font-size: 22px; }
  .journal-visual { height: 600px; }
  .progress-copy { padding-left: 49px; }
  .progress-copy h2 { font-size: 51px; }
  .progress-phone { width: 257px; left: 72px; top: 81px; }
  .progress-stamp { left: 12px; top: 386px; }
}

@media (max-width: 950px) {
  .container { width: calc(100% - 56px); }
  .header-inner { gap: 20px; min-height: 90px; }
  .brand > span { font-size: 23px; }
  .brand img { width: 37px; height: 37px; }
  .desktop-nav { gap: 20px; }
  .desktop-nav a { font-size: 12px; }
  .header-cta { font-size: 11px; gap: 10px; padding-inline: 13px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 10px; min-height: 629px; padding-bottom: 92px; }
  h1 { font-size: 64px; letter-spacing: -3.2px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: 1.7px; gap: 8px; margin-bottom: 24px; }
  .hero-description { font-size: 14px; max-width: 342px; }
  .hero-actions { gap: 21px; }
  .text-link { font-size: 12px; gap: 8px; }
  .store-badge { padding: 11px 17px 11px 13px; min-height: 58px; gap: 8px; }
  .store-badge strong { font-size: 18px; }
  .store-badge small { font-size: 9px; }
  .health-note { font-size: 9px; }
  .hero-art { height: 526px; }
  .hero-phone--back { width: 190px; top: 64px; left: 4px; }
  .hero-phone--front { width: 210px; right: -1px; top: 28px; }
  .floating-note { padding: 12px; gap: 9px; left: 0; bottom: 12px; }
  .floating-note strong { font-size: 12px; }
  .floating-note div > span { font-size: 9px; }
  .floating-note-icon { width: 35px; height: 35px; }
  .hero-art-caption { font-size: 6px; right: 16px; }
  .phone { border-radius: 32px; border-width: 4px; }
  .phone > img { border-radius: 27px; }
  .intro-section { padding-top: 32px; padding-bottom: 65px; }
  .feature-grid { gap: 15px; }
  .feature-card { padding: 21px; }
  .feature-card-top { align-items: flex-start; margin-bottom: 22px; }
  .feature-number { font-size: 7px; letter-spacing: 1px; padding-top: 7px; }
  .feature-card h3 { font-size: 21px; }
  .feature-card p { font-size: 12px; }
  .feature-tag { font-size: 9px; }
  .section-space { padding-block: 85px; }
  .split-layout { gap: 32px; }
  .feature-copy { padding: 0; }
  .feature-copy h2 { font-size: 48px; }
  .section-description { font-size: 14px; }
  .detail-row { gap: 13px; padding-block: 15px; }
  .detail-row p { font-size: 12px; }
  .journal-visual { height: 585px; }
  .journal-visual-header { padding: 24px 22px; }
  .journal-visual-header .eyebrow { font-size: 8px; }
  .journal-phone { width: 224px; top: 114px; right: 21px; }
  .memory-note { top: 324px; left: 14px; width: 173px; padding-inline: 20px; }
  .memory-note p { font-size: 20px; }
  .memory-note > span:last-child { font-size: 6px; letter-spacing: 1px; }
  .photo-chip { font-size: 9px; right: 18px; bottom: 21px; }
  .progress-panel { min-height: 560px; }
  .progress-copy { padding: 55px 0 52px 36px; }
  .progress-copy h2 { font-size: 46px; }
  .progress-copy > .eyebrow { font-size: 8px; }
  .progress-copy > p:not(.eyebrow) { font-size: 13px; max-width: 319px; }
  .progress-phone { width: 236px; left: 42px; top: 92px; }
  .progress-stamp { width: 95px; height: 95px; top: 363px; left: -3px; }
  .progress-stamp span { font-size: 8px; }
  .progress-orbit { left: -38px; }
  .gallery-card { flex-basis: 220px; }
  .gallery-heading-aside > p { font-size: 12px; }
}

/* Narrow tablet / larger phone */
@media (max-width: 780px) {
  .desktop-nav { display: none; }
  .container { width: calc(100% - 48px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 92px; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-eyebrow { justify-content: center; font-size: 9px; }
  h1 { font-size: 80px; letter-spacing: -4px; }
  .hero-description { margin-inline: auto; max-width: 405px; font-size: 16px; margin-top: 23px; }
  .hero-actions { justify-content: center; margin-top: 27px; }
  .store-badge { padding: 12px 22px 12px 17px; }
  .text-link { font-size: 13px; }
  .health-note { justify-content: center; font-size: 10px; margin-top: 20px; }
  .hero-art { width: 100%; max-width: 510px; height: 604px; margin-inline: auto; }
  .hero-phone--back { width: 230px; left: 9px; top: 57px; }
  .hero-phone--front { width: 251px; right: 3px; top: 23px; }
  .floating-note { left: 34px; bottom: 22px; padding: 14px 19px 14px 13px; }
  .floating-note strong { font-size: 13px; }
  .floating-note div > span { font-size: 10px; }
  .floating-note-icon { width: 39px; height: 39px; }
  .hero-art-caption { right: 36px; font-size: 7px; bottom: -13px; }
  .pool-halo { width: 101%; left: 0; }
  .feature-grid { gap: 14px; }
  .feature-card { padding: 19px; }
  .feature-card-top { flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .feature-card h3 { font-size: 21px; }
  .feature-card p { font-size: 12px; }
  .feature-tag { line-height: 1.6; }
  .split-layout { grid-template-columns: 1fr; gap: 38px; max-width: 550px; }
  .feature-copy { grid-row: 1; }
  .feature-copy h2 { font-size: 55px; }
  .section-description { max-width: 470px; font-size: 15px; }
  .detail-row p { max-width: none; font-size: 13px; }
  .journal-visual { height: 605px; }
  .journal-phone { width: 258px; top: 90px; right: 45px; }
  .memory-note { width: 214px; top: 306px; left: 29px; padding-inline: 25px; }
  .memory-note p { font-size: 24px; }
  .memory-note > span:last-child { font-size: 7px; }
  .journal-visual-header { padding: 28px; }
  .journal-visual-header .eyebrow { font-size: 9px; }
  .photo-chip { right: 29px; bottom: 28px; font-size: 11px; }
  .progress-panel { grid-template-columns: 1fr; text-align: center; }
  .progress-copy { padding: 49px 30px 15px; }
  .progress-copy h2 { font-size: 52px; }
  .progress-copy > .eyebrow { font-size: 9px; }
  .progress-copy > p:not(.eyebrow) { margin-inline: auto; max-width: 420px; font-size: 14px; }
  .progress-highlights { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 18px; }
  .progress-visual { height: 482px; }
  .progress-phone { width: 269px; top: 20px; left: calc(50% - 114px); }
  .progress-stamp { width: 113px; height: 113px; top: 276px; left: calc(50% - 190px); }
  .progress-stamp span { font-size: 9px; }
  .progress-orbit { left: calc(50% - 242px); top: 0; }
  .gallery-heading { gap: 24px; }
  .gallery-heading h2 { font-size: 45px; }
  .gallery-heading-aside > p { font-size: 11px; }
  .gallery-footnote > span { font-size: 6px; letter-spacing: 1.3px; }
  .footer-inner { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .footer-links { justify-content: center; }
}

/* Mobile */
@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 82px; gap: 14px; }
  .brand { gap: 9px; }
  .brand img { width: 35px; height: 35px; }
  .brand > span { font-size: 22px; }
  .header-cta { min-height: 39px; font-size: 10px; gap: 8px; padding: 10px 12px; }
  .header-cta .icon { width: 13px; height: 13px; }
  .hero-grid { padding-top: 36px; padding-bottom: 78px; gap: 29px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: 1.6px; margin-bottom: 23px; }
  .hero-eyebrow .icon { width: 18px; height: 18px; }
  h1 { font-size: clamp(53px, 13.8vw, 73px); letter-spacing: -3px; line-height: 1.04; }
  .hero-description { font-size: 14px; max-width: 337px; margin-top: 21px; line-height: 1.85; }
  .hero-actions { gap: 25px; margin-top: 25px; }
  .store-badge { min-height: 57px; padding: 11px 18px 11px 13px; border-radius: 13px; }
  .store-badge .icon { width: 25px; height: 27px; }
  .store-badge strong { font-size: 18px; }
  .store-badge small { font-size: 9px; }
  .text-link { font-size: 12px; }
  .health-note { font-size: 9px; margin-top: 18px; gap: 7px; }
  .health-icon { width: 22px; height: 22px; }
  .hero-art { height: clamp(414px, 111vw, 563px); margin-top: 8px; }
  .hero-phone--back { width: 48.5%; left: 1%; top: 43px; }
  .hero-phone--front { width: 52%; right: 0; top: 26px; }
  .phone { border-width: 4px; border-radius: 29px; }
  .phone > img { border-radius: 24px; }
  .pool-halo { top: 55px; height: 80%; width: 103%; left: -4px; }
  .ripple-one { left: 71px; top: 17px; width: 44px; height: 15px; }
  .ripple-two { right: 23px; bottom: -8px; width: 70px; height: 20px; }
  .floating-note { left: 5px; bottom: 0; padding: 12px 16px 12px 11px; border-radius: 15px; gap: 10px; }
  .floating-note strong { font-size: 11px; }
  .floating-note div > span { font-size: 9px; }
  .floating-note-icon { width: 34px; height: 34px; border-radius: 10px; }
  .floating-note-icon .icon { width: 18px; height: 18px; }
  .hero-art-caption { display: none; }
  .waterline--hero { height: 113px; }
  .intro-section { padding-top: 34px; padding-bottom: 59px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.8px; }
  h2 { font-size: 44px; letter-spacing: -2px; }
  .section-heading > p:last-child { font-size: 13px; margin-top: 18px; line-height: 1.8; }
  .desktop-break { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 29px; }
  .feature-card { padding: 24px; border-radius: 21px; }
  .feature-card-top { flex-direction: row; align-items: center; margin-bottom: 20px; }
  .feature-number { font-size: 8px; letter-spacing: 1.3px; padding-top: 0; }
  .feature-card h3 { font-size: 24px; }
  .feature-card p { font-size: 13px; margin-bottom: 20px; }
  .feature-tag { font-size: 10px; }
  .feature-icon { width: 41px; height: 41px; }
  .section-space { padding-block: 64px; }
  .feature-copy { padding-inline: 4px; }
  .feature-copy > .eyebrow { margin-bottom: 18px; }
  .feature-copy h2 { font-size: 48px; }
  .section-description { font-size: 14px; margin-top: 21px; }
  .detail-list { margin-top: 22px; }
  .detail-row { gap: 14px; }
  .detail-row h3 { font-size: 13px; }
  .detail-row p { font-size: 12px; }
  .journal-visual { height: 526px; border-radius: 24px; }
  .journal-visual-header { padding: 23px; }
  .journal-visual-header .eyebrow { font-size: 7px; letter-spacing: 1.5px; }
  .journal-phone { width: 224px; top: 85px; right: 19px; }
  .memory-note { top: 282px; left: 17px; width: 175px; padding: 24px 18px 20px; }
  .memory-note p { font-size: 20px; }
  .memory-note > span:last-child { font-size: 6px; letter-spacing: .9px; }
  .memory-note-pin { width: 65px; left: 48px; }
  .photo-chip { bottom: 20px; right: 16px; font-size: 9px; padding: 11px 13px; }
  .progress-panel { border-radius: 25px; }
  .progress-copy { padding: 39px 23px 8px; }
  .progress-copy > .eyebrow { font-size: 7px; letter-spacing: 1.6px; margin-bottom: 20px; }
  .progress-copy h2 { font-size: clamp(38px, 10.5vw, 51px); letter-spacing: -2px; }
  .progress-copy > p:not(.eyebrow) { font-size: 13px; margin-top: 22px; line-height: 1.85; }
  .progress-highlights { gap: 13px; margin-top: 24px; margin-bottom: 14px; }
  .progress-highlights span { font-size: 10px; gap: 7px; }
  .progress-highlights .icon { width: 15px; height: 15px; }
  .progress-visual { height: 413px; }
  .progress-phone { width: 227px; left: calc(50% - 102px); top: 16px; }
  .progress-stamp { width: 94px; height: 94px; top: 251px; left: calc(50% - 151px); gap: 8px; border-width: 4px; }
  .progress-stamp .icon { width: 22px; height: 22px; }
  .progress-stamp span { font-size: 7px; }
  .waterline--deep { height: 139px; }
  .gallery-heading { display: block; margin-bottom: 27px; }
  .gallery-heading h2 { font-size: 43px; }
  .gallery-heading .eyebrow { margin-bottom: 18px; }
  .gallery-heading-aside { flex-direction: row; justify-content: space-between; align-items: center; padding: 0; gap: 15px; margin-top: 23px; }
  .gallery-heading-aside > p { font-size: 11px; }
  .gallery-controls { gap: 7px; }
  .gallery-controls .circle-button { width: 36px; height: 36px; }
  .gallery-controls .icon { width: 15px; height: 15px; }
  .gallery-track { margin-right: -20px; padding-right: 20px; gap: 20px; }
  .gallery-card { flex-basis: 216px; }
  .gallery-image { border-radius: 26px; }
  .gallery-image img { border-radius: 22px; }
  .gallery-card figcaption { margin-top: 18px; }
  .gallery-card figcaption h3 { font-size: 12px; }
  .gallery-card figcaption p { font-size: 10px; }
  .gallery-footnote { font-size: 9px; margin-top: 14px; }
  .gallery-footnote > span { display: none; }
  .download-content { padding-top: 116px; padding-bottom: 54px; }
  .download-icon { width: 78px; height: 78px; }
  .download-content .eyebrow { font-size: 8px; margin-top: 24px; }
  .download-content h2 { font-size: 46px; }
  .download-content > p:not(.eyebrow) { font-size: 13px; }
  .download-platform { font-size: 9px; }
  .footer-inner { padding-block: 25px; gap: 18px; }
  .footer-brand > span { font-size: 19px; }
  .footer-links { gap: 20px; width: 100%; }
  .footer-links a, .motion-toggle { font-size: 10px; }
  .lightbox { width: calc(100% - 24px); max-height: calc(100% - 24px); }
  .lightbox-toolbar { margin-bottom: 13px; }
  .lightbox-toolbar p { font-size: 12px; }
  .lightbox .circle-button { width: 35px; height: 35px; }
  .lightbox-image { max-width: calc(100vw - 98px); height: 74dvh; border-radius: 17px; }
  .lightbox-stage { gap: 10px; }
  .lightbox-nav { position: absolute; z-index: 1; top: calc(50% - 17px); }
  [data-lightbox-prev] { left: 0; }
  [data-lightbox-next] { right: 0; }
  .lightbox-count { padding-top: 13px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .brand > span { font-size: 20px; }
  .brand img { width: 32px; height: 32px; }
  .header-cta { padding-inline: 10px; font-size: 9px; }
  .header-cta .icon { display: none; }
  h1 { font-size: 52px; }
  .hero-eyebrow { font-size: 7px; }
  .hero-actions { gap: 19px; }
  .health-note { font-size: 8px; }
  .hero-art { height: 382px; }
  .journal-phone { width: 204px; right: 12px; }
  .journal-visual { height: 494px; }
  .memory-note { width: 155px; top: 276px; }
  .memory-note p { font-size: 18px; }
  .gallery-track { margin-right: -16px; }
  .progress-copy { padding-inline: 20px; }
  .progress-highlights { flex-direction: column; align-items: center; }
  .download-content h2 { font-size: 42px; }
}

/* Respect the user's preference from the very first render. A deliberate click
   on "Resume waves" can enable the animation without changing that OS setting. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not([data-motion="running"]) .wave-track { animation-play-state: paused; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media print {
  .site-header, .waterline, .gallery-controls, .footer-links, .lightbox { display: none !important; }
  .hero-grid, .split-layout, .progress-panel { display: block; }
  .hero-art, .journal-visual, .progress-visual { display: none; }
  .hero-grid, .section-space, .intro-section, .progress-copy, .download-content { padding: 24px 0; min-height: 0; }
  .progress-panel { background: white; color: var(--ink); }
  .progress-copy h2, .progress-copy h2 em, .progress-copy p, .progress-copy span { color: var(--ink) !important; }
  .gallery-track { flex-wrap: wrap; overflow: visible; }
  .gallery-card { width: 120px; flex-basis: 120px; }
}
