@font-face {
    font-family: Manrope;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --ink: #191b30;
    --muted: #4c536a;
    --accent: #3f3699;
    --line: #d5d6e4;
    --shell: 1260px;
    --ease: cubic-bezier(.2,.8,.2,1);
    --nav-height: 84px;
    --glass: rgba(255,255,255,.72);
    --glass-edge: inset 0 1px 1px #ffffffed, inset 0 -1px 1px #ffffff90, 0 8px 32px #30285e13;
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 12px); }
body { margin: 0; background: #fbfaff; color: var(--ink); font: 400 1rem/1.55 Manrope, system-ui, sans-serif; }
p, h1, h2, h3, h4, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
[hidden] { display: none !important; }
::selection { background: #c8c3ff; color: #18172c; }
:focus-visible { outline: 3px solid #5548bf; outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - clamp(40px, 9vw, 152px))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; background: white; padding: 12px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; height: var(--nav-height); padding-top: 14px; pointer-events: none; }
.header-inner, .billing-options {
    background: var(--glass);
    box-shadow: var(--glass-edge);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.header-inner {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 58px;
    border-radius: 50px;
    padding: 0 11px 0 24px;
}
.brand img { width: 128px; }
.main-nav, .header-actions, .intro-actions, .narrative-controls { display: flex; gap: 22px; align-items: center; }
.main-nav { margin: auto; }
.main-nav a, .login { font-size: .82rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .login:hover { color: var(--accent); }
.mobile-nav { display: none; }
.button, .book-toggle {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 99px;
    border: 0;
    background: var(--ink);
    color: #fff;
    font-size: .85rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .25s var(--ease), background .25s;
}
.button:hover, .book-toggle:hover { background: #40376a; transform: translateY(-2px); }
.button-small { min-height: 38px; padding: 8px 16px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.arrow { width: .52em; height: .52em; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.arrow-down { transform: rotate(135deg) translate(-1px,1px); }

.showcase {
    isolation: isolate;
    position: relative;
    overflow: clip;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: var(--nav-height);
    background: #efedfb;
    transition: background-color .65s;
}
.showcase-inner { min-height: clamp(540px, 76svh, 850px); display: flex; align-items: center; padding-block: 64px 100px; }
.intro-glass { width: min(49%, 640px); }
.showcase h1 { font-size: clamp(3rem, 5.4vw, 5.65rem); font-weight: 650; letter-spacing: -.04em; }
.showcase h1 em { display: block; font-style: normal; color: var(--accent); }
.showcase p { max-width: 42ch; margin: 22px 0 28px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.intro-actions, .narrative-controls { flex-wrap: wrap; gap: 13px 20px; }
.billing-options button {
    background: transparent;
    color: var(--ink);
    border: 0;
    padding: 10px 17px;
    border-radius: 99px;
    font-size: .83rem;
    font-weight: 750;
    transition: color .22s, background-color .22s;
}
.billing-options [aria-pressed=true] { background: #26243b; color: white; }

.clinical { padding-block: clamp(50px, 7vw, 105px) clamp(75px, 9vw, 145px); }
.narrative { --spread: 1; border-radius: 30px; background: #e9e9f8; }
.narrative-sticky {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3%;
    align-items: center;
    padding: clamp(32px, 5vw, 76px);
    border-radius: inherit;
    overflow: clip;
    background: radial-gradient(ellipse at 82% 20%, #c2d4fc, transparent 49%), radial-gradient(ellipse at 83% 93%, #c8c3f1, transparent 55%), #ededf8;
}
.scene-intro h2, .section-lead h2, .faq h2, .closing h2 { font-size: clamp(2.35rem, 4.6vw, 4.75rem); font-weight: 650; }
.scene-intro p, .section-lead p, .closing p { max-width: 50ch; color: var(--muted); margin: 19px 0 28px; }
.narrative-controls .book-toggle { background: #fffc; color: var(--ink); box-shadow: var(--glass-edge); }
.record-stage { display: grid; align-content: center; min-width: 0; min-height: 390px; gap: 30px; }
.record-stage figcaption { text-align: center; color: #4f536c; font-size: .72rem; }
.record-stack { position: relative; margin: 65px auto 0; width: min(82%, 390px); }
.record-sheet {
    border-radius: 17px;
    padding: clamp(15px, 2.4vw, 31px);
    box-shadow: inset 0 1px 1px #fff, 0 16px 30px #33396421;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.record-back, .record-mid { position: absolute; inset: 0; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; padding: 8px 16px; }
.record-sheet > strong, .record-sheet > span { font-size: .68rem; }
.record-back {
    background: #c0c3f0c9;
    transform: translate(calc(23px * var(--spread)), calc(-64px * var(--spread))) rotate(calc(6deg * var(--spread)));
}
.record-mid {
    background: #bcdcf0cc;
    transform: translate(calc(12px * var(--spread)), calc(-34px * var(--spread))) rotate(calc(3deg * var(--spread)));
}
.record-front { position: relative; background: linear-gradient(125deg,#fffffff5,#f4f6ffcc); }
.record-heading { display: flex; justify-content: space-between; align-items: center; }
.record-heading span { font-size: .68rem; color: var(--muted); }
.record-front h3 { font-size: clamp(1rem, 2.2vw, 2rem); margin: 25px 0 12px; }
.record-front dl > div { display: flex; justify-content: space-between; gap: 6px; padding: 8px 0; border-top: 1px solid #d0d3e4; font-size: clamp(.62rem,.9vw,.82rem); }
.record-front dd { color: var(--muted); }
.narrative[data-manual] .record-sheet { transition: transform .65s var(--ease); }
@media (min-height: 620px) and (min-width: 750px) and (prefers-reduced-motion: no-preference) {
    .narrative[data-scroll-ready] { min-height: 127svh; }
    .narrative[data-scroll-ready] .narrative-sticky { position: sticky; top: var(--nav-height); height: min(660px, calc(100svh - var(--nav-height) - 12px)); }
}

.clinical-tools, .faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 8vw, 130px); }
.clinical-tools { padding-top: clamp(60px, 8vw, 115px); }
.clinical-tools h3 { font-size: clamp(2rem, 3.8vw, 3.8rem); font-weight: 650; }
.clinical-tools .text-link, .optics-layout .text-link { margin-top: 24px; }
.disclosures { border-top: 1px solid var(--line); }
.disclosures details { border-bottom: 1px solid var(--line); }
.disclosures summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 69px; padding: 12px 0; font-size: clamp(1rem, 1.6vw, 1.23rem); font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
.disclosures details p { color: var(--muted); padding: 0 18px 23px 0; max-width: 65ch; }
.plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #ebeaf5; }
.plus::before, .plus::after { position: absolute; content: ''; inset: 14px 9px; background: currentColor; }
.plus::after { transform: rotate(90deg); transition: transform .28s; }
details[open] .plus::after { transform: none; }
@supports (interpolate-size: allow-keywords) {
    .disclosures details { interpolate-size: allow-keywords; }
    .disclosures details::details-content { height: 0; overflow: clip; opacity: 0; transition: height .35s var(--ease), opacity .25s, content-visibility .35s allow-discrete; }
    .disclosures details[open]::details-content { height: auto; opacity: 1; }
}

.optics { background: #f6eee4; padding-block: clamp(56px, 8vw, 120px); }
.optics > .shell { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 clamp(30px, 6vw, 90px); align-items: start; }
.optics .section-lead { grid-column: 2; align-self: end; }
.optics-layout { display: contents; }
.optics-layout img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; grid-column: 1; grid-row: 1 / 3; border-radius: 24px; }
.optics-layout .disclosures { grid-column: 2; }
.optics .disclosures, .optics details { border-color: #d5c8b9; }
.optics .plus { background: #eee1d1; }

.pricing { padding-block: clamp(76px,10vw,150px); }
.pricing .section-lead { text-align: center; }
.pricing .section-lead p { margin-inline: auto; }
.billing { display: grid; justify-items: center; gap: 12px; margin-bottom: 48px; }
.billing-options { display: inline-flex; padding: 4px; background: #ecebf9; border-radius: 99px; }
.billing p, .pricing-note { color: var(--muted); font-size: .84rem; }
.plan-group { display: grid; grid-template-columns: minmax(175px,.65fr) 2fr; gap: 28px; padding-block: 30px; border-top: 1px solid var(--line); }
.plan-group h3 { font-size: clamp(1.4rem, 2.25vw, 2.3rem); font-weight: 650; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan { display: flex; flex-direction: column; align-items: start; padding: clamp(20px,2.65vw,38px); border-radius: 20px; background: linear-gradient(135deg,#fff,#eaeaf7); box-shadow: var(--glass-edge); }
.plan-featured { background: radial-gradient(ellipse at top right,#504885,transparent 80%),#232239; color: white; }
.plan h4 { font-size: 1.8rem; }
.plan-audience { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.plan-price { margin-block: 24px 10px; font-variant-numeric: tabular-nums; }
.plan-price strong { font-size: clamp(2rem,3.4vw,3.3rem); letter-spacing: -.04em; line-height: 1.15; }
.plan-price span { font-size: .78rem; }
.plan ul { padding-left: 16px; margin: 0 0 25px; font-size: .88rem; }
.plan li { padding-block: 3px; }
.plan .button { margin-top: auto; }
.plan-featured .plan-audience { color: #e2dff6; }
.plan-featured .button, .closing .button { background: #eeeaff; color: #25213d; }
.pricing-note { max-width: 87ch; margin: 10px 0 0 auto; }
.faq { padding-block: clamp(58px,7.5vw,120px); background: #f0eff6; }

.closing { padding-block: clamp(68px,9vw,135px); background: radial-gradient(ellipse at 90% 120%,#494070,transparent 65%),#201e35; color: white; }
.closing .shell { display: grid; grid-template-columns: 2fr 1fr; gap: 12px 35px; align-items: center; }
.closing p { grid-column: 1; color: #e3dff6; margin: 8px 0 0; }
.closing .button { grid-column: 2; grid-row: 1 / 3; justify-self: end; }
.site-footer { background: #1e1d31; color: #dfdced; font-size: .8rem; }
.footer-inner, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-inner { justify-content: space-between; padding-block: 24px; }

@media (max-width: 920px) {
    .main-nav, .header-demo { display: none; }
    .header-actions { margin-left: auto; gap: 13px; }
    .mobile-nav { display: block; }
    .mobile-nav summary { display: grid; place-items: center; list-style: none; width: 42px; height: 42px; border-radius: 50%; background: #ffffffb5; cursor: pointer; }
    .hamburger { width: 15px; height: 9px; border-block: 2px solid; }
    .mobile-nav nav { position: absolute; inset: calc(100% + 8px) 0 auto; padding: 10px 22px; border-radius: 21px; background: #fbfaff; box-shadow: 0 18px 40px #35324a26; }
    .mobile-nav nav a { display: block; padding-block: 12px; font-weight: 700; text-decoration: none; }
    .plan-group { grid-template-columns: 1fr; }
    .showcase h1 { font-size: clamp(2.8rem,5.6vw,3.7rem); }
    .narrative-sticky { padding-inline: 25px; }
}
@media (max-width: 749px) {
    :root { --nav-height: 74px; }
    .site-header { padding-top: 9px; }
    .header-inner { height: 53px; padding-left: 16px; }
    .brand img { width: 109px; }
    .showcase { display: grid; }
    .showcase-inner { grid-row: 1; min-height: 0; padding-block: 31px 10px; }
    .intro-glass { width: 100%; max-width: 560px; }
    .showcase h1 { font-size: clamp(2.55rem,9.3vw,4.1rem); }
    .showcase p { margin: 14px 0 19px; }
    .narrative-sticky, .clinical-tools, .faq-layout, .optics > .shell, .closing .shell { grid-template-columns: 1fr; }
    .narrative-sticky { padding: 26px 20px 15px; }
    .record-stage { min-height: 310px; gap: 16px; }
    .record-stack { width: 88%; margin-top: 74px; }
    .record-sheet { border-radius: 12px; }
    .record-front { padding: 18px; }
    .record-front h3 { margin-top: 17px; }
    .optics .section-lead, .optics-layout img, .optics-layout .disclosures { grid-column: 1; grid-row: auto; }
    .optics-layout img { height: auto; min-height: 0; aspect-ratio: 3/2; margin-bottom: 23px; }
    .closing .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
}
@media (max-width: 560px) {
    .shell { width: calc(100% - 34px); }
    .plan-grid { grid-template-columns: 1fr; }
    .intro-actions .button { padding-inline: 16px; }
    .record-back, .record-mid { padding-inline: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .optics-layout img { animation: reveal-frame linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
        @keyframes reveal-frame { from { clip-path: inset(5% 3% 4% round 28px); } to { clip-path: inset(0 round 24px); } }
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Interactive clinical examples */
.clinical-examples { padding-block: clamp(65px, 8vw, 115px) 0; }
.examples-intro { max-width: 860px; }
.examples-intro h2 { font-size: clamp(2.35rem, 5.1vw, 5rem); font-weight: 650; }
.examples-intro p { margin: 18px 0; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.examples-intro nav, .plot-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.examples-intro nav a { color: var(--accent); font-weight: 750; font-size: .89rem; }
.example-row {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: clamp(30px, 6vw, 94px);
    padding-block: clamp(40px, 6vw, 86px);
}
.example-row + .example-row { border-top: 1px solid var(--line); }
.example-story h3 { font-size: clamp(1.85rem, 3.2vw, 3.2rem); line-height: 1.14; font-weight: 650; }
.example-story p { margin-top: 17px; max-width: 58ch; color: var(--muted); }
.clinical-figure {
    min-width: 0;
    padding: clamp(18px, 3.5vw, 42px);
    border-radius: 22px;
    background: linear-gradient(140deg, #f3f0ff, #fff 68%);
    box-shadow: var(--glass-edge);
    color: #252139;
}
.clinical-figure figcaption strong, .clinical-figure figcaption span { display: block; }
.clinical-figure figcaption strong { font-size: clamp(1.12rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.clinical-figure figcaption span, .plot-legend { color: #504d66; font-size: .78rem; }
.example-plot { display: block; width: 100%; height: auto; margin-block: 19px 12px; overflow: visible; }
.example-plot path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.grid-lines path { stroke: #d5d3e2; stroke-width: 1; }
.axis-label text { font: 11px Manrope, sans-serif; fill: #534f6b; }
.measured-line, .projection-base, .projection-alt, .water-left, .water-right { stroke-width: 3; }
.measured-line { stroke: #27273e; }
.history-dots { fill: #27273e; }
.projection-base { stroke: #5c429d; stroke-dasharray: 8 5; }
.projection-alt { stroke: #147774; stroke-dasharray: 2 5; }
.plot-legend { gap: 4px 13px; }
.plot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.plot-legend i { width: 15px; border-top: 3px solid; }
.key-observed { color: #27273e; }
.key-base { color: #5c429d; border-top-style: dashed !important; }
.key-alt { color: #147774; border-top-style: dotted !important; }
.example-action {
    margin-top: 16px;
    min-height: 42px;
    border: 1px solid #bdb8d3;
    border-radius: 99px;
    padding: 7px 15px;
    background: white;
    color: #30234e;
    font-size: .83rem;
    font-weight: 750;
}
.example-action:hover { background: #ece8fa; }
.example-reading { margin-top: 14px; font-weight: 650; font-size: .93rem; }
.example-notes { margin-top: 12px; font-size: .78rem; color: var(--muted); }
.example-notes summary { cursor: pointer; text-decoration: underline; }
.example-notes p { margin-top: 8px; }
.water-figure { background: linear-gradient(138deg,#e4f4f5,#fff 74%); }
.water-right, .key-right { color: #2855a7; stroke: #2855a7; }
.water-left, .key-left { color: #8f3865; stroke: #8f3865; stroke-dasharray: 6 4; }
.plot-legend .key-left { border-top-style: dashed; }
.cursor-guide { stroke: #718a9e; stroke-dasharray: 2 3; }
.right-dot { fill: #2855a7; }
.left-dot { fill: #8f3865; }
.right-dot, .left-dot { stroke: white; stroke-width: 2; }

@media (prefers-reduced-motion: no-preference) {
    .myopia-figure[data-show-future] .example-plot [data-projection] { animation: draw-scenarios .85s var(--ease) both; }
    .water-figure[data-entered] .water-right, .water-figure[data-entered] .water-left { animation: draw-scenarios 1s var(--ease) both; }
    @keyframes draw-scenarios { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
    [data-water-cursor], .right-dot, .left-dot { transition: transform .38s var(--ease); }
}
@media (max-width: 780px) {
    .example-row { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .example-plot { margin-top: 14px; }
}

/* Optical study: the moving iris is drawn on a separate decorative surface. */
.showcase {
    color: #fcfbff;
    background: radial-gradient(ellipse at 77% 54%, #22253e 0%, #121424 50%, #101120 75%);
}
.showcase-inner { min-height: clamp(530px, 75svh, 780px); }
.showcase h1 { font-size: clamp(3rem, 5.4vw, 5.8rem); }
.showcase h1 em { color: #c9cdff; }
.showcase p { color: #d1d3e8; max-width: 37ch; }
.iris-stage {
    position: absolute;
    inset: var(--nav-height) 1% 64px 47%;
    background: url('../images/snelens-refraccion.jpg') center / cover;
    border-radius: 28px;
    overflow: clip;
}
.iris-stage.iris-ready { background: none; }
.iris-stage canvas { display: block; width: 100%; height: 100%; }
.iris-controls {
    position: absolute;
    left: 73%;
    bottom: 25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 50px;
    padding: 1px 5px 1px 17px;
    color: #f4f5ff;
    font-size: .77rem;
    font-weight: 650;
    background: linear-gradient(145deg, #ffffff24, #bacaff14);
    box-shadow: inset 0 1px 1px #fff8, inset 0 -1px 1px #c0caff42, 0 8px 20px #08081c35;
    backdrop-filter: blur(16px);
}
.motion-button {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; background: transparent; color: inherit; border-radius: 50%;
}
.motion-button span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.motion-button[data-paused=true] span { border: 0; width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }

.button, .book-toggle, .example-action, .plus, .mobile-nav summary {
    --control-tint: #e4e4fbba;
    color: #292947;
    background: linear-gradient(155deg, #ffffffef, var(--control-tint) 55%, #d8e5ffcb);
    border: 1px solid #8d96b95c;
    box-shadow: inset 0 1px 1px #fff, inset 0 -2px 3px #8589b32b, 0 3px 9px #1c245014;
    backdrop-filter: blur(12px) saturate(145%);
}
.button:hover, .book-toggle:hover, .example-action:hover {
    background: linear-gradient(145deg, #fff, #dde7ffca);
    color: #201c42;
}
.intro-actions .button, .closing .button, .plan-featured .button {
    background: linear-gradient(140deg,#fff 2%,#dee1fcde 55%,#c4f4fbdb);
    color: #191e35;
}
.billing-options { position: relative; isolation: isolate; }
.billing-options button { flex: 1; min-width: 84px; }
.billing-options [aria-pressed=true] { background: transparent; color: #22233b; }
.billing-options::before {
    content: ''; position: absolute; z-index: -1; inset: 4px auto 4px 4px;
    width: calc(50% - 4px); border-radius: inherit;
    background: linear-gradient(150deg,#fff,#e2e9ffb8);
    box-shadow: inset 0 1px 1px #fff, 0 2px 5px #44456842;
    transition: transform .3s var(--ease);
}
.billing-options:has([data-billing=annual][aria-pressed=true])::before { transform: translateX(100%); }
.billing-options [aria-pressed=false] { color: #52566e; }
.glass-range {
    appearance: none; background: transparent; cursor: pointer;
    width: 105px; height: 38px; margin: 0; accent-color: #655baf;
}
.glass-range::-webkit-slider-runnable-track {
    height: 7px; border-radius: 20px; background: linear-gradient(90deg,#817cbd,#a4dbf2);
    box-shadow: inset 0 1px 2px #24254366, 0 1px 0 #ffffff91;
}
.glass-range::-moz-range-track {
    height: 7px; border-radius: 20px; background: linear-gradient(90deg,#817cbd,#a4dbf2);
    box-shadow: inset 0 1px 2px #24254366;
}
.glass-range::-webkit-slider-thumb {
    appearance: none; width: 26px; height: 22px; margin-top: -7.5px; border-radius: 99px;
    border: 1px solid #878fb69e; background: linear-gradient(145deg,#fff,#e5ecffdf 55%,#c2edfcf0);
    box-shadow: inset 0 1px 2px #fff, 0 2px 5px #29234c44;
}
.glass-range::-moz-range-thumb {
    width: 26px; height: 22px; border-radius: 99px; border: 1px solid #878fb69e;
    background: linear-gradient(145deg,#fff,#e5ecffdf 55%,#c2edfcf0); box-shadow: 0 2px 5px #29234c44;
}
.water-slider { display: grid; gap: 0; margin-top: 15px; font-size: .8rem; font-weight: 700; }
.water-slider .glass-range { width: 100%; }
.range-ends { display: flex; justify-content: space-between; font-size: .71rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (max-width: 749px) {
    .showcase-inner { min-height: 0; padding-bottom: 0; }
    .iris-stage { position: relative; inset: auto; width: 100%; height: clamp(250px, 72vw, 390px); margin-bottom: 58px; }
    .iris-controls { left: 50%; bottom: 12px; }
}
.clinical-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 52px);
    padding: 34px 0 10px;
    border-top: 1px solid var(--line);
}
.clinical-benefits strong { display: block; font-size: 1.08rem; }
.clinical-benefits p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.iris-controls { padding: 2px; }
@media (max-width: 700px) { .clinical-benefits { grid-template-columns: 1fr; gap: 20px; } }

/* Visual tour of consultation tools */
.clinical-features { padding-top: clamp(70px, 9vw, 130px); }
.features-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.features-heading h3 { max-width: 12ch; font-size: clamp(2.35rem, 4.5vw, 4.5rem); font-weight: 650; }
.features-heading .text-link { flex: none; padding-bottom: 5px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { overflow: hidden; border-radius: 22px; background: #f1f1fa; }
.feature-art { position: relative; display: grid; place-items: center; overflow: hidden; height: clamp(250px, 27vw, 360px); }
.feature-copy { padding: 22px clamp(20px, 3vw, 36px) 30px; }
.feature-copy h4 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.feature-copy p { max-width: 42ch; margin-top: 8px; color: var(--muted); font-size: .94rem; }
.features-note { margin-top: 14px; color: var(--muted); font-size: .76rem; }
.exam-art { background: radial-gradient(ellipse at 55% 90%, #c6d4ff, transparent 70%), #eae8fa; }
.exam-sheet, .study-sheet, .report-sheet, .ocr-result {
    background: linear-gradient(145deg, #fff, #f5f7ffde);
    box-shadow: inset 0 1px 1px #fff, 0 16px 36px #303c6e25;
    border-radius: 14px;
}
.exam-sheet { width: min(72%, 360px); padding: 24px; transform: rotate(-3deg); }
.art-heading, .study-sheet > span, .ocr-ticket > span, .ocr-result > span, .report-sheet > span { display: block; font-size: .75rem; font-weight: 800; color: #525385; }
.art-heading { margin-bottom: 16px; }
.exam-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #dbe0ef; font-size: .75rem; }
.exam-line span { color: #535a76; }
.studies-art { background: radial-gradient(ellipse at 45% 75%, #cce8eb, transparent 70%), #e8f4f2; }
.study-sheet { position: absolute; width: min(46%, 230px); height: 165px; padding: 20px; }
.study-sheet-back { transform: translate(-38px, -15px) rotate(-10deg); background: #d1dafa; }
.study-sheet-front { transform: translate(32px, 17px) rotate(5deg); }
.study-preview { display: flex; align-items: end; gap: 7px; height: 80px; margin-top: 12px; border-radius: 9px; background: #e3ecfa; padding: 13px; }
.study-preview span { flex: 1; border-radius: 4px; background: #99ace5; }
.study-preview span:nth-child(1) { height: 44%; }.study-preview span:nth-child(2) { height: 75%; }.study-preview span:nth-child(3) { height: 57%; }
.ocr-art { display: flex; justify-content: center; gap: 14px; background: radial-gradient(ellipse at 50% 45%, #ded6ff, transparent 65%), #f2ebf8; }
.ocr-ticket { position: relative; width: 145px; padding: 21px 18px; overflow: hidden; background: #fff; box-shadow: 0 16px 36px #3b325020; transform: rotate(-6deg); }
.ocr-ticket b { display: block; margin: 18px 0 9px; font-size: .8rem; }
.ocr-ticket i, .report-sheet i { display: block; width: 90%; height: 4px; margin-top: 9px; border-radius: 4px; background: #cbd3e6; }
.ocr-ticket i:nth-of-type(2), .report-sheet i:nth-of-type(2) { width: 65%; }
.scan-beam { position: absolute; inset: 0 0 auto; height: 3px; background: #4388d7; box-shadow: 0 0 14px #4388d7; }
.ocr-result { width: 160px; padding: 20px 16px; }
.ocr-result strong, .ocr-result small { display: block; margin-top: 12px; }
.ocr-result strong { font-size: .82rem; }.ocr-result small { color: #535a76; font-size: .68rem; }
.report-art { background: radial-gradient(ellipse at 50% 90%, #e3cfe5, transparent 65%), #f8edf2; }
.report-sheet { width: min(58%, 270px); padding: 23px; transform: rotate(4deg); }
.report-sheet i { margin-top: 15px; }.signature-line { width: 62%; margin-top: 32px; border-top: 1px solid #8e9bb7; }
.report-sheet small { display: block; margin-top: 5px; color: #5d6480; font-size: .66rem; }
@media (prefers-reduced-motion: no-preference) {
    .feature-art:not(.is-visible) * { animation-play-state: paused !important; }
    .exam-art.is-visible .exam-line { animation: feature-focus 3.6s ease-in-out infinite; }
    .exam-line:nth-of-type(2) { animation-delay: .3s !important; }.exam-line:nth-of-type(3) { animation-delay: .6s !important; }.exam-line:nth-of-type(4) { animation-delay: .9s !important; }
    .studies-art.is-visible .study-sheet-front { animation: study-move 5s ease-in-out infinite; }
    .ocr-art.is-visible .scan-beam { animation: scan-ticket 3s ease-in-out infinite; }
    .report-art.is-visible .report-sheet { animation: report-move 5s ease-in-out infinite; }
    @keyframes feature-focus { 0%, 40%, 100% { color: #191b30; } 15% { color: #3258aa; } }
    @keyframes study-move { 0%, 100% { transform: translate(32px,17px) rotate(5deg); } 50% { transform: translate(42px,3px) rotate(8deg); } }
    @keyframes scan-ticket { 0%, 100% { transform: translateY(16px); opacity: .4; } 50% { transform: translateY(120px); opacity: 1; } }
    @keyframes report-move { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
}
@media (max-width: 700px) {
    .features-heading { align-items: start; flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-art { height: 255px; }
}

/* Header: a single floating glass surface with a compact action. */
.site-header { padding-top: 12px; }
.header-inner {
    width: min(1120px, calc(100% - 48px));
    height: 56px;
    padding: 0 8px 0 22px;
    gap: 24px;
    border: 1px solid rgba(255,255,255,.57);
    background: rgba(247,247,255,.78);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 10px 32px rgba(12,17,44,.15);
    backdrop-filter: blur(32px) saturate(175%);
    -webkit-backdrop-filter: blur(32px) saturate(175%);
}
.brand { display: flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: 122px; }
.main-nav { justify-content: center; gap: 3px; }
.main-nav a, .header-actions .login {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 99px;
    color: #26283d;
    font-size: .79rem;
    font-weight: 650;
    transition: background-color .2s, color .2s;
}
.main-nav a:hover, .header-actions .login:hover { background: rgba(255,255,255,.65); color: #302d69; }
.header-actions { gap: 4px; }
.header-actions .header-demo {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.72);
    background: linear-gradient(145deg, #fff, #e0e4fc 65%, #d6e9fc);
    color: #232441;
    box-shadow: inset 0 1px 1px #fff, 0 3px 10px #35375b26;
    font-size: .78rem;
}
.header-actions .header-demo:hover { background: #fff; color: #232441; }
@media (max-width: 920px) {
    .header-inner { width: calc(100% - 32px); padding: 0 6px 0 18px; }
    .header-actions { gap: 4px; }
    .header-actions .login { padding-inline: 10px; }
    .mobile-nav summary {
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255,255,255,.85);
        background: linear-gradient(145deg,rgba(255,255,255,.95),rgba(225,231,255,.78));
        box-shadow: inset 0 1px 1px #fff, 0 3px 10px #34365a20;
    }
    .mobile-nav nav {
        inset: calc(100% + 10px) 0 auto;
        border: 1px solid rgba(255,255,255,.7);
        background: rgba(250,250,255,.96);
        backdrop-filter: blur(26px) saturate(150%);
        -webkit-backdrop-filter: blur(26px) saturate(150%);
        box-shadow: inset 0 1px 1px #fff, 0 18px 40px #20233a24;
    }
    .mobile-nav nav a { min-height: 44px; color: #22253b; font-size: .93rem; }
}
@media (max-width: 749px) {
    .site-header { padding-top: 10px; }
    .header-inner { height: 52px; }
    .brand img { width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
    .main-nav a, .header-actions .login { transition: none; }
}

.consultation-story { padding-block: clamp(74px, 9vw, 132px) 18px; }
.story-opening { max-width: 980px; }
.story-opening h2 { font-size: clamp(2.25rem, 4.4vw, 4.5rem); font-weight: 650; }
.story-opening p { max-width: 66ch; margin-top: 23px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.13rem); }
.story-sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); margin: 50px 0 28px; }
.story-sequence > div { border-top: 1px solid #c9c9dc; padding-top: 22px; }
.story-mark { display: block; width: 27px; height: 3px; margin-bottom: 21px; background: #6254b1; border-radius: 3px; }
.story-sequence strong { display: block; font-size: 1.1rem; }
.story-sequence p { color: var(--muted); margin-top: 8px; font-size: .92rem; max-width: 32ch; }
@media (max-width: 700px) {
    .story-opening h2 br { display: none; }
    .story-sequence { grid-template-columns: 1fr; margin-top: 34px; gap: 18px; }
    .story-sequence > div { padding-top: 16px; }
    .story-mark { margin-bottom: 12px; }
}

/* Lenis owns wheel easing on precise pointers; anchors retain CSS smooth scrolling elsewhere. */
html.smooth-wheel-active { scroll-behavior: auto; }
@media (max-width: 749px) {
    .story-sequence { gap: 15px; }
    .story-sequence > div { padding-top: 14px; }
    .clinical-figure { padding: 21px; }
    .feature-art { height: clamp(225px, 65vw, 285px); }
    .narrative-sticky { overflow: hidden; }
}
/* En móvil, el iris acompaña la portada sin interrumpir la lectura. */
@media (max-width: 749px) {
    .showcase { display: block; }
    .showcase-inner {
        position: relative;
        z-index: 1;
        min-height: min(690px, 78svh);
        align-items: flex-start;
        padding-block: 42px 82px;
    }
    .iris-stage {
        position: absolute;
        inset: auto -27% -12% auto;
        width: 95%;
        height: min(390px, 100vw);
        margin: 0;
        opacity: .32;
        pointer-events: none;
    }
}
@media (max-width: 749px) {
    .showcase-inner {
        min-height: 0;
        padding-block: 45px 55px;
    }
    .iris-stage {
        inset: 3% -36% auto auto;
        width: 112%;
        height: min(430px, 115vw);
        opacity: .23;
    }
    .intro-glass {
        position: relative;
        text-shadow: 0 2px 12px rgba(9, 10, 24, .9);
    }
}

/* Acentos sutiles para orientar la lectura de los títulos. */
.title-accent { color: #504093; }
.showcase h1 em { color: #c8c7ff; }
@supports (background-clip: text) {
    .title-accent {
        background: linear-gradient(105deg, #433574 5%, #5650a0 52%, #3f668f 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }
    .showcase h1 em, .title-accent-light {
        background: linear-gradient(105deg, #dedbff, #bddbff 65%, #b2dfe7);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }
}
.story-opening { max-width: 940px; }
.story-opening p { max-width: 53ch; }
.story-sequence { margin-top: 42px; }
@media (max-width: 700px) {
    .story-opening h2 { font-size: clamp(2rem, 8vw, 3rem); }
    .story-sequence { grid-template-columns: 1fr; gap: 0; margin-block: 27px 22px; }
    .story-sequence > div { display: flex; gap: 13px; align-items: center; padding: 13px 0; }
    .story-mark { flex: none; width: 18px; margin: 0; }
    .story-sequence strong { font-size: .95rem; }
}
