:root {
    --ink: #082f49;
    --muted: #5d7383;
    --surface: #ffffff;
    --surface-tint: #effcff;
    --line: #bcebf0;
    --aqua: #08a6b8;
    --aqua-dark: #087f96;
    --blue: #0e5fa9;
    --shadow: 0 24px 65px rgb(8 75 105 / 16%);
}

* { box-sizing: border-box; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgb(74 211 220 / 34%), transparent 30rem),
        linear-gradient(150deg, #dffbfc 0%, #f7feff 55%, #d8f2ff 100%);
}

.page-shell {
    display: grid;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    align-items: start;
    justify-items: center;
}

.upload-card {
    width: min(100%, 650px);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 24px;
    background: rgb(255 255 255 / 92%);
    box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: .55rem; color: var(--blue); font-weight: 760; letter-spacing: -.03em; }
.brand-mark {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 57% 25%, transparent 0 .13rem, rgb(255 255 255 / 78%) .15rem .18rem, transparent .20rem),
        radial-gradient(circle at 63% 54%, transparent 0 .075rem, rgb(255 255 255 / 74%) .095rem .125rem, transparent .145rem),
        radial-gradient(circle at 41% 75%, transparent 0 .018rem, rgb(255 255 255 / 66%) .035rem .065rem, transparent .085rem),
        linear-gradient(140deg, var(--aqua), var(--blue));
    flex: 0 0 auto;
}
.intro { margin: 3rem 0 2rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--aqua-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
h1 { max-width: 13ch; margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.04; letter-spacing: -.055em; }
.lede { max-width: 48ch; margin: 1rem 0 0; color: var(--muted); line-height: 1.6; }

.drop-zone { display: flex; min-height: 220px; padding: 1.5rem; cursor: pointer; border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); background: var(--surface-tint); align-items: center; flex-direction: column; justify-content: center; text-align: center; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.drop-zone:hover, .drop-zone:focus-within { border-color: var(--aqua); background: #e4fbfc; transform: translateY(-2px); }
.drop-zone-icon { display: grid; width: 2.75rem; height: 2.75rem; margin-bottom: .85rem; border-radius: 50%; color: var(--aqua-dark); background: #c9f2f4; place-items: center; font-size: 1.55rem; font-weight: 700; }
.drop-zone-title { color: var(--ink); font-weight: 750; }
.drop-zone-copy, .file-types { margin-top: .25rem; font-size: .9rem; }
.file-types { margin-top: 1rem; color: #7c929d; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }

.selected-files { margin-top: 1rem; border: 1px solid #d8eef0; border-radius: 14px; overflow: hidden; }
.selected-files-heading, .file-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.selected-files-heading { padding: .85rem 1rem; background: #f3fcfc; color: var(--ink); font-size: .88rem; font-weight: 700; }
.text-button { padding: 0; cursor: pointer; border: 0; color: var(--aqua-dark); background: transparent; font: inherit; font-weight: 700; }
.text-button:hover { color: var(--blue); text-decoration: underline; }
.file-list { max-height: 162px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.file-item { padding: .68rem 1rem; border-top: 1px solid #e5f2f3; font-size: .86rem; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: 0 0 auto; color: var(--muted); font-size: .78rem; }

.process-button { display: flex; width: 100%; margin-top: 1.25rem; padding: 1rem 1.2rem; cursor: pointer; border: 0; border-radius: 12px; color: white; background: linear-gradient(110deg, var(--blue), var(--aqua)); box-shadow: 0 8px 16px rgb(8 124 150 / 20%); font: inherit; font-weight: 800; justify-content: center; gap: .6rem; transition: transform .18s ease, opacity .18s ease; }
.process-button:not(:disabled):hover { transform: translateY(-2px); }
.process-button:disabled { cursor: not-allowed; opacity: .46; }
.upload-status { min-height: 1.25rem; margin: .8rem 0 0; color: var(--muted); font-size: .86rem; text-align: center; }
.upload-status-success { color: #087344; }
.upload-status-error { color: #b42318; }
.privacy-note { margin: 1.5rem 0 0; color: #728894; font-size: .78rem; line-height: 1.5; text-align: center; }
.authenticated-shell { padding-top: 4.75rem; }
.account-bar { position: absolute; top: 1.35rem; right: 1.5rem; display: flex; z-index: 2; padding: .45rem .7rem; border-radius: 999px; color: var(--muted); background: rgb(255 255 255 / 48%); backdrop-filter: blur(8px); align-items: center; gap: .7rem; font-size: .75rem; }
.account-bar strong { color: var(--ink); font-weight: 750; }
.account-bar form { margin: 0; }

.login-brand { width: max-content; text-decoration: none; }
.login-card { max-width: 580px; }
.login-intro { margin-bottom: 1.75rem; }
.login-intro h1 { max-width: 12ch; }
.login-form { display: grid; gap: .65rem; }
.login-form > label:first-child { font-size: .83rem; font-weight: 780; }
.login-form input[type="email"] { width: 100%; padding: .95rem 1rem; border: 1px solid #b9dfe3; border-radius: 11px; color: var(--ink); background: white; font: inherit; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.login-form input[type="email"]:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgb(8 166 184 / 12%); }
.remember-email { display: flex; margin-top: .25rem; align-items: center; gap: .55rem; color: var(--muted); cursor: pointer; font-size: .8rem; }
.remember-email input { width: 1rem; height: 1rem; accent-color: var(--aqua-dark); }
.login-button { margin-top: .5rem; }
.field-error { margin: -.2rem 0 .2rem; color: #b42318; font-size: .8rem; }
.login-alert { margin-bottom: 1.2rem; padding: .85rem 1rem; border-radius: 11px; font-size: .84rem; line-height: 1.5; }
.login-alert-error { color: #8f241c; background: #fff1f0; }
.login-sent-card { text-align: center; }
.login-sent-card .login-brand { text-align: left; }
.login-sent-card .login-intro { margin-top: 1.5rem; }
.login-sent-card h1, .login-sent-card .lede { margin-inline: auto; }
.mail-bubble { display: grid; width: 5rem; height: 5rem; margin: 2.5rem auto 0; border-radius: 50%; color: white; background: linear-gradient(140deg, var(--aqua), var(--blue)); box-shadow: 0 14px 30px rgb(8 124 150 / 24%); place-items: center; font-size: 2rem; }
.login-secondary { display: inline-block; }

.progress-card { position: relative; overflow: hidden; }
.progress-intro { margin-bottom: 1.5rem; }
.progress-intro h1 { max-width: 15ch; }
.dive-indicator { position: relative; display: grid; width: 6.5rem; height: 6.5rem; margin: 1.25rem auto 2rem; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--aqua), var(--blue)); box-shadow: 0 14px 30px rgb(8 124 150 / 24%); place-items: center; }
.dive-indicator-mark { font-size: 3rem; line-height: 1; transform: rotate(-8deg); }
.bubble { position: absolute; border: 2px solid rgb(255 255 255 / 78%); border-radius: 50%; animation: bubble-rise 2.4s ease-in-out infinite; }
.bubble-small { top: 1.3rem; right: 1.35rem; width: .45rem; height: .45rem; }
.bubble-medium { top: .45rem; right: 1.8rem; width: .7rem; height: .7rem; animation-delay: -.8s; }
.bubble-large { top: -.7rem; right: 1rem; width: 1rem; height: 1rem; animation-delay: -1.6s; }
.progress-details { padding: 1.2rem; border: 1px solid #d8eef0; border-radius: 14px; background: var(--surface-tint); }
.progress-heading { display: flex; margin-bottom: .75rem; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; }
.progress-heading strong { flex: 0 0 auto; color: var(--ink); font-size: 1rem; }
progress { display: block; width: 100%; height: .8rem; overflow: hidden; border: 0; border-radius: 999px; background: #d8eef0; accent-color: var(--aqua); }
progress::-webkit-progress-bar { border-radius: 999px; background: #d8eef0; }
progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--aqua)); transition: width .45s ease; }
progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.progress-note { margin: .8rem 0 0; color: #728894; font-size: .78rem; line-height: 1.5; }
.upload-progress { margin-top: .8rem; }

.results-card { width: min(100%, 650px); }
.results-intro h1 { max-width: 16ch; }
.result-warning { margin: 0 0 1.5rem; padding: .85rem 1rem; border-radius: 12px; color: #7a4a08; background: #fff9ed; font-size: .86rem; line-height: 1.5; }
.result-viewer { position: relative; width: min(100%, 38rem); margin: 0 auto; }
.result-viewer[aria-busy="true"] .result-photo { opacity: .65; }
.result-viewer[aria-busy="true"] .result-photo-link { pointer-events: none; opacity: .45; }
.result-preview-frame { position: relative; }
.result-photo-navigation { display: grid; margin-top: 1.5rem; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; }
.result-nav-button { display: inline-flex; min-height: 2.8rem; padding: .65rem .9rem; border: 0; border-radius: 999px; color: white; background: linear-gradient(140deg, var(--aqua), var(--blue)); box-shadow: 0 8px 18px rgb(8 75 105 / 22%); align-items: center; justify-content: center; gap: .35rem; font-size: .78rem; font-weight: 820; line-height: 1; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.result-nav-icon { display: block; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.result-nav-button:hover { box-shadow: 0 11px 24px rgb(8 75 105 / 30%); transform: translateY(-2px); }
.result-nav-button:focus-visible, .result-page-link:focus-visible { outline: 3px solid rgb(14 95 169 / 24%); outline-offset: 3px; }
.result-pagination { display: flex; min-width: 0; align-items: center; justify-content: center; gap: .35rem; }
.result-page-link { display: grid; min-width: 1.9rem; height: 1.9rem; padding: 0 .38rem; border: 1px solid #bcebf0; border-radius: 999px; color: var(--blue); background: white; place-items: center; font-size: .7rem; font-weight: 820; line-height: 1; text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.result-page-link:hover { border-color: #72d2dc; background: #edfcfd; transform: translateY(-1px); }
.result-page-current { min-width: 2.3rem; border-color: var(--blue); color: white; background: var(--blue); box-shadow: 0 5px 13px rgb(8 95 169 / 20%); }
.result-page-gap { border-color: transparent; color: var(--aqua-dark); background: transparent; font-size: 1rem; letter-spacing: .05em; }
.result-photo-count { margin: .65rem 0 0; color: var(--muted); font-size: .72rem; font-weight: 720; text-align: center; }
.result-bubble { position: absolute; z-index: 0; border: 2px solid rgb(8 166 184 / 32%); border-radius: 50%; pointer-events: none; }
.result-bubble-one { top: -2.2rem; right: 12%; width: .9rem; height: .9rem; }
.result-bubble-two { top: -3.8rem; right: 20%; width: .5rem; height: .5rem; }
.result-bubble-three { right: -1.4rem; bottom: 12%; width: 1.7rem; height: 1.7rem; }
.result-photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d8eef0; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 30px rgb(8 75 105 / 12%); }
.result-photo-preview { display: block; overflow: hidden; background: var(--surface-tint); }
.result-photo img { display: block; width: 100%; max-height: 32rem; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .18s ease; }
.result-photo-preview:hover img { transform: scale(1.025); }
.download-all-button { width: min(100%, 30rem); margin: 1.5rem auto 0; text-decoration: none; }
.archive-status { min-height: 1.25rem; margin: .65rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: center; }
.more-photos-link { display: block; width: max-content; max-width: 100%; margin: .15rem auto 0; text-align: center; }
.result-empty { padding: 2rem; border-radius: 14px; color: var(--muted); background: var(--surface-tint); text-align: center; }
.result-next-step { margin-top: 2rem; padding: 1.5rem; border-radius: 16px; background: linear-gradient(145deg, #edfcfd, #f8feff); text-align: center; }
.result-next-step h2 { margin: 0; font-size: 1.4rem; }
.result-next-step p { margin: .65rem 0 1.2rem; color: var(--muted); line-height: 1.5; }

.preview-selection { margin: -.5rem 0 1rem; padding: .8rem 1rem; overflow: hidden; border-radius: 10px; color: var(--muted); background: var(--surface-tint); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-comparison { position: relative; z-index: 1; width: 100%; overflow: hidden; border: 8px solid white; border-radius: 28px; background: var(--surface-tint); box-shadow: 0 30px 70px rgb(8 75 105 / 24%); aspect-ratio: 4 / 3; }
.preview-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.result-photo .preview-image { max-height: none; aspect-ratio: auto; }
.preview-after { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0); }
.preview-label { position: absolute; bottom: 1rem; z-index: 3; padding: .45rem .7rem; border-radius: 999px; color: white; background: rgb(3 39 58 / 72%); font-size: .7rem; font-weight: 820; letter-spacing: .04em; pointer-events: none; }
.preview-label-before { left: 1rem; }
.preview-label-after { right: 1rem; }
.preview-slider { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; }
.preview-slider:focus-visible + .result-comparison-divider span { outline: 4px solid rgb(255 255 255 / 60%); outline-offset: 3px; }

.plans-card { width: min(100%, 760px); }
.plans-intro h1 { max-width: 15ch; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.plan-option { display: flex; min-width: 0; padding: 1.5rem; border: 1px solid #cde9ec; border-radius: 18px; background: white; box-shadow: 0 10px 28px rgb(8 75 105 / 8%); flex-direction: column; }
.plan-option-featured { border-color: #78d7df; background: linear-gradient(145deg, white, #edfcfd); }
.plan-kicker { margin: 0 0 .55rem; color: var(--aqua-dark); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.plan-option h2 { margin: 0; font-size: 1.3rem; }
.plan-price { min-height: 2.5rem; margin: .8rem 0 1rem; color: var(--muted); font-size: .78rem; }
.plan-price strong { margin-right: .25rem; color: var(--blue); font-size: 2rem; letter-spacing: -.04em; }
.plan-option ul { display: grid; margin: 0 0 1.4rem; padding: 0; color: var(--muted); gap: .6rem; font-size: .83rem; line-height: 1.45; list-style: none; }
.plan-option li::before { margin-right: .5rem; color: var(--aqua-dark); content: "✓"; font-weight: 900; }
.plan-button { width: 100%; margin-top: auto; font-size: .86rem; }
.plan-option form { margin-top: auto; }
.plan-checkout-button { cursor: pointer; border: 0; font: inherit; }
.plan-used { margin-top: auto; padding: .85rem; border-radius: 11px; color: #697c86; background: #edf2f3; font-size: .8rem; font-weight: 700; line-height: 1.4; text-align: center; }
.plan-option-disabled { border-color: #dde5e7; background: #f4f7f7; box-shadow: none; filter: grayscale(.55); opacity: .72; }
.plan-payment-note { margin: .65rem 0 0; color: #728894; font-size: .7rem; text-align: center; }

/* Error page */
.error-shell { align-items: center; }
.error-card { position: relative; overflow: hidden; text-align: center; }
.error-brand { width: max-content; text-decoration: none; }
.error-scene { position: relative; display: grid; width: 8rem; height: 8rem; margin: 2rem auto 1.5rem; overflow: hidden; border-radius: 50%; color: white; background: linear-gradient(155deg, #37c9d3, var(--blue) 72%); box-shadow: 0 16px 34px rgb(8 75 105 / 23%); place-items: center; }
.error-mask { z-index: 2; font-size: 4rem; font-weight: 300; line-height: 1; transform: rotate(-8deg); }
.error-wave { position: absolute; right: -12%; bottom: -25%; left: -12%; height: 48%; border-radius: 50% 50% 0 0; background: rgb(5 62 99 / 42%); transform: rotate(5deg); }
.error-bubble { position: absolute; z-index: 1; border: 2px solid rgb(255 255 255 / 72%); border-radius: 50%; animation: bubble-rise 2.4s ease-in-out infinite; }
.error-bubble-small { top: 2.1rem; right: 1.7rem; width: .45rem; height: .45rem; }
.error-bubble-medium { top: 1.1rem; right: 2.35rem; width: .7rem; height: .7rem; animation-delay: -.8s; }
.error-bubble-large { top: .45rem; right: 1.25rem; width: 1rem; height: 1rem; animation-delay: -1.6s; }
.error-copy h1 { max-width: 13ch; margin-inline: auto; }
.error-copy .lede { margin-inline: auto; }
.error-actions { display: flex; margin-top: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; gap: .65rem; }
.error-back-button { cursor: pointer; border: 0; background: transparent; font: inherit; }
.error-reference { margin: 1.75rem 0 0; color: #91a3ac; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Public landing page */
.landing-page { background: #f8feff; }
.landing-header, .landing-footer, .landing-hero, .landing-section, .final-cta-section { width: min(calc(100% - 2.5rem), 1180px); margin-inline: auto; }
.landing-header { display: flex; min-height: 5.5rem; align-items: center; justify-content: space-between; gap: 2rem; }
.landing-brand { color: var(--ink); font-size: 1.08rem; text-decoration: none; }
.landing-nav { display: flex; align-items: center; gap: 1.65rem; }
.landing-nav a { color: var(--muted); font-size: .88rem; font-weight: 720; text-decoration: none; }
.landing-nav a:hover { color: var(--blue); }
.landing-nav .nav-cta { padding: .7rem 1rem; border-radius: 10px; color: white; background: linear-gradient(110deg, var(--blue), var(--aqua)); box-shadow: 0 7px 16px rgb(8 124 150 / 18%); }
.landing-nav .nav-cta:hover { color: white; transform: translateY(-1px); }

.landing-hero { display: grid; min-height: 650px; padding: clamp(3rem, 8vw, 7rem) 0; align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(3rem, 7vw, 7rem); }
.hero-copy h1 { max-width: 11ch; font-size: clamp(3rem, 6.5vw, 5.6rem); line-height: .96; }
.hero-lede { max-width: 39rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; margin-top: 2rem; align-items: center; flex-wrap: wrap; gap: 1rem; }
.primary-cta { display: inline-flex; min-height: 3.35rem; padding: .9rem 1.25rem; border-radius: 12px; color: white; background: linear-gradient(110deg, var(--blue), var(--aqua)); box-shadow: 0 10px 24px rgb(8 124 150 / 22%); align-items: center; justify-content: center; gap: .65rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.primary-cta:hover { box-shadow: 0 14px 30px rgb(8 124 150 / 28%); transform: translateY(-2px); }
.secondary-cta { padding: .8rem; color: var(--blue); font-weight: 760; text-decoration: none; }
.secondary-cta:hover { text-decoration: underline; }
.hero-trust { display: flex; margin: 1.5rem 0 0; padding: 0; color: var(--muted); flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .8rem; list-style: none; }
.hero-trust span { color: var(--aqua-dark); font-weight: 900; }

.hero-visual { position: relative; }
.comparison-card { position: relative; overflow: hidden; border: 8px solid white; border-radius: 28px; background: #078aa0; box-shadow: 0 30px 70px rgb(8 75 105 / 24%); aspect-ratio: 4 / 3; transform: rotate(1.5deg); }
.comparison-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.comparison-image-before { z-index: 1; clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0); }
.comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--comparison-position); z-index: 5; width: 2px; background: rgb(255 255 255 / 88%); pointer-events: none; }
.comparison-divider span { position: absolute; top: 50%; left: 50%; display: grid; width: 2.8rem; height: 2.8rem; border: 3px solid white; border-radius: 50%; color: var(--blue); background: white; box-shadow: 0 6px 18px rgb(8 47 73 / 24%); place-items: center; font-size: 1.1rem; font-weight: 900; transform: translate(-50%, -50%); }
.comparison-label { position: absolute; bottom: 1.1rem; z-index: 3; padding: .45rem .7rem; border-radius: 999px; color: white; background: rgb(3 39 58 / 72%); font-size: .7rem; font-weight: 820; letter-spacing: .04em; pointer-events: none; }
.comparison-before { left: 1rem; }
.comparison-after { right: 1rem; }
.comparison-slider { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; }
.comparison-slider:focus-visible + .comparison-divider span { outline: 4px solid rgb(255 255 255 / 60%); outline-offset: 3px; }
.comparison-navigation { display: flex; margin-top: 1.4rem; align-items: center; justify-content: center; gap: .65rem; }
.comparison-dot { width: .65rem; height: .65rem; padding: 0; cursor: pointer; border: 0; border-radius: 999px; background: #a8dce2; box-shadow: 0 0 0 1px rgb(8 95 169 / 8%); transition: width .2s ease, background-color .2s ease, transform .2s ease; }
.comparison-dot:hover { background: #5fc3cf; transform: scale(1.12); }
.comparison-dot:focus-visible { outline: 3px solid rgb(14 95 169 / 24%); outline-offset: 4px; }
.comparison-dot-active { width: 1.65rem; background: var(--blue); }
.floating-bubble { position: absolute; border: 2px solid rgb(8 166 184 / 32%); border-radius: 50%; }
.bubble-one { top: -2.5rem; right: 12%; width: 1.2rem; height: 1.2rem; }
.bubble-two { top: -5rem; right: 20%; width: .65rem; height: .65rem; }
.bubble-three { right: -2rem; bottom: 13%; width: 2rem; height: 2rem; }

.landing-section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2, .pricing-copy h2, .final-cta-section h2 { max-width: 16ch; margin: 0; font-size: clamp(2.1rem, 4.5vw, 3.65rem); line-height: 1.04; letter-spacing: -.05em; }
.section-heading > p:last-child, .pricing-copy > p:last-child { max-width: 40rem; margin: 1rem 0 0; color: var(--muted); line-height: 1.7; }
.benefit-grid, .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.benefit-card, .review-card { padding: 1.6rem; border: 1px solid #d8eef0; border-radius: 18px; background: white; box-shadow: 0 12px 35px rgb(8 75 105 / 8%); }
.benefit-icon { display: grid; width: 2.8rem; height: 2.8rem; margin-bottom: 1.3rem; border-radius: 12px; color: var(--blue); background: #dff7f8; place-items: center; font-size: 1.4rem; font-weight: 800; }
.benefit-card h3, .step-card h3, .review-card h3, .reviews-empty h3 { margin: 0; font-size: 1.08rem; }
.benefit-card p, .step-card p { margin: .7rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.steps-section { width: 100%; max-width: none; padding-inline: max(1.25rem, calc((100% - 1180px) / 2)); color: white; background: linear-gradient(135deg, #073e62, #087f96); }
.section-heading-light .eyebrow { color: #75e4e9; }
.steps-grid { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; list-style: none; }
.step-card { min-height: 230px; padding: 1.6rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 18px; background: rgb(255 255 255 / 8%); }
.step-number { display: block; margin-bottom: 2.5rem; color: #80e9ec; font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.step-card p { color: rgb(255 255 255 / 72%); }

.pricing-section { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: clamp(2rem, 8vw, 7rem); }
.pricing-card { padding: clamp(1.7rem, 4vw, 2.5rem); border: 1px solid #bcebf0; border-radius: 22px; background: linear-gradient(145deg, white, #edfcfd); box-shadow: var(--shadow); }
.pricing-kicker { margin: 0; color: var(--aqua-dark); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.pricing-price { display: flex; margin: .7rem 0 .25rem; color: var(--blue); align-items: baseline; }
.pricing-price strong { font-size: clamp(3.4rem, 7vw, 5rem); line-height: .95; letter-spacing: -.075em; }
.pricing-currency { margin-right: .18rem; font-size: 1.55rem; font-weight: 850; transform: translateY(-1.7rem); }
.pricing-unit { margin-left: .75rem; color: var(--muted); font-size: .78rem; font-weight: 750; }
.pricing-volume { margin: .75rem 0 .2rem; font-size: 1.15rem; }
.pricing-volume strong { color: var(--blue); font-size: 1.45rem; letter-spacing: -.03em; }
.pricing-reassurance { margin: 0 0 1.5rem; color: var(--aqua-dark); font-size: .78rem; font-weight: 800; }
.pricing-tier-list { display: grid; margin: 0 0 1.5rem; overflow: hidden; border: 1px solid #cde9ec; border-radius: 14px; background: rgb(255 255 255 / 74%); }
.pricing-tier { display: grid; padding: .72rem .85rem; align-items: center; grid-template-columns: 2.6rem 1fr auto; gap: .65rem; }
.pricing-tier + .pricing-tier { border-top: 1px solid #dceff1; }
.pricing-tier strong { color: var(--blue); font-size: .78rem; letter-spacing: .04em; }
.pricing-tier span { color: var(--muted); font-size: .8rem; }
.pricing-tier b { color: var(--ink); font-size: .88rem; }
.plan-tier-list { margin-top: 0; }
.pricing-card ul { display: grid; margin: 0 0 1.5rem; padding: 0; color: var(--muted); gap: .7rem; font-size: .88rem; list-style: none; }
.pricing-card li::before { margin-right: .55rem; color: var(--aqua-dark); content: "✓"; font-weight: 900; }
.pricing-card .primary-cta { width: 100%; }

.reviews-section { border-top: 1px solid #d8eef0; }
.review-stars { margin-bottom: 1rem; color: #e59a27; letter-spacing: .08em; }
.review-card blockquote { margin: 0; color: var(--ink); line-height: 1.65; }
.review-author { margin: 1.25rem 0 0; font-weight: 800; }
.review-trip { margin: .25rem 0 0; color: var(--muted); font-size: .8rem; }
.reviews-empty { display: grid; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px dashed #91d9df; border-radius: 20px; background: #edfbfc; align-items: center; grid-template-columns: auto 1fr auto; gap: 1.5rem; }
.reviews-empty-mark { color: var(--aqua); font-family: Georgia, serif; font-size: 5rem; line-height: .7; }
.reviews-empty p { margin: .45rem 0 0; color: var(--muted); line-height: 1.55; }
.reviews-empty a { color: var(--blue); font-weight: 800; text-decoration: none; white-space: nowrap; }

.final-cta-section { display: flex; margin-bottom: 5rem; padding: clamp(2rem, 6vw, 4rem); border-radius: 26px; color: white; background: linear-gradient(125deg, #083f63, #078da0); box-shadow: 0 22px 60px rgb(8 75 105 / 22%); align-items: center; justify-content: space-between; gap: 2rem; }
.final-cta-section .eyebrow { color: #82edf0; }
.final-cta-section h2 { max-width: 18ch; }
.primary-cta-light { flex: 0 0 auto; color: var(--blue); background: white; box-shadow: none; }
.landing-footer { display: grid; padding: 2.5rem 0 3rem; border-top: 1px solid #d8eef0; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; color: var(--muted); font-size: .8rem; }
.landing-footer p { margin: 0; }
.footer-meta { display: grid; justify-items: end; gap: .55rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1rem; }
.footer-links a { color: var(--muted); font-size: .72rem; font-weight: 720; text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .2rem; }
.footer-note { text-align: right; }
.footer-version { color: #91a3ac; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .62rem; letter-spacing: .035em; text-align: right; }

/* Policy pages */
.legal-page { min-height: 100vh; background: #f8feff; }
.legal-header, .legal-shell, .legal-footer { width: min(calc(100% - 2.5rem), 1040px); margin-inline: auto; }
.legal-header { display: flex; min-height: 5.5rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.legal-back { color: var(--muted); font-size: .8rem; font-weight: 750; text-decoration: none; }
.legal-back:hover { color: var(--blue); }
.legal-shell { padding: clamp(2.5rem, 7vw, 5.5rem) 0 6rem; }
.legal-hero { max-width: 760px; margin-bottom: 3rem; }
.legal-hero h1 { max-width: 12ch; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .96; }
.legal-lede { max-width: 42rem; margin: 1.35rem 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.legal-date { display: inline-flex; margin: 1.4rem 0 0; padding: .48rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--aqua-dark); background: #edfbfc; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.legal-layout { display: grid; align-items: start; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.legal-nav { position: sticky; top: 1.5rem; padding: 1.1rem; border: 1px solid #d8eef0; border-radius: 16px; background: rgb(255 255 255 / 82%); box-shadow: 0 12px 35px rgb(8 75 105 / 7%); }
.legal-nav p { margin: 0 0 .7rem; color: var(--ink); font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.legal-nav a { display: block; padding: .42rem 0; color: var(--muted); font-size: .78rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.legal-nav a:hover { color: var(--blue); }
.legal-document { padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid #d8eef0; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.legal-summary { margin: 0 0 2.75rem; padding: 1.25rem 1.35rem; border-left: 4px solid var(--aqua); border-radius: 0 14px 14px 0; color: var(--ink); background: var(--surface-tint); font-size: .92rem; line-height: 1.65; }
.legal-summary + section,
.legal-summary + div > section:first-of-type {
    margin-top: 2.75rem;
}
.legal-document section + section { margin-top: 2.75rem; padding-top: 2.75rem; border-top: 1px solid #e3f1f2; }
.legal-document h2 { margin: 0 0 1rem; color: var(--ink); font-size: 1.35rem; letter-spacing: -.025em; }
.legal-document h3 { margin: 1.5rem 0 .55rem; color: var(--ink); font-size: .98rem; }
.legal-document p, .legal-document li { color: var(--muted); font-size: .9rem; line-height: 1.75; }
.legal-document p { margin: .75rem 0 0; }
.legal-document ul { display: grid; margin: .85rem 0 0; padding-left: 1.2rem; gap: .45rem; }
.legal-document a { color: var(--blue); font-weight: 700; text-underline-offset: .18rem; }
.legal-document strong { color: var(--ink); }
.legal-fact-grid { display: grid; margin: 1rem 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.legal-fact { padding: 1rem; border: 1px solid #d8eef0; border-radius: 13px; background: #fbfeff; }
.legal-fact strong, .legal-fact span { display: block; }
.legal-fact strong { margin-bottom: .25rem; font-size: .82rem; }
.legal-fact span { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.legal-footer { display: flex; padding: 2rem 0 3rem; border-top: 1px solid #d8eef0; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--muted); font-size: .75rem; }
.legal-footer .footer-links { justify-content: flex-end; }

@keyframes bubble-rise {
    0%, 100% { opacity: .45; transform: translateY(.35rem) scale(.85); }
    50% { opacity: 1; transform: translateY(-.35rem) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bubble { animation: none; }
    progress::-webkit-progress-value { transition: none; }
}

@media (max-width: 850px) {
    .landing-hero { min-height: auto; grid-template-columns: 1fr; }
    .hero-copy { max-width: 720px; }
    .hero-visual { width: min(100%, 580px); margin-inline: auto; }
    .benefit-grid, .steps-grid { grid-template-columns: 1fr; }
    .step-card { min-height: auto; }
    .step-number { margin-bottom: 1.5rem; }
    .pricing-section { grid-template-columns: 1fr; }
    .pricing-card { width: min(100%, 520px); }
    .review-grid { grid-template-columns: 1fr; }
    .final-cta-section { align-items: flex-start; flex-direction: column; }
    .landing-footer { grid-template-columns: 1fr; text-align: left; }
    .footer-meta { justify-items: start; }
    .footer-links { justify-content: flex-start; }
    .footer-note { text-align: left; }
    .footer-version { text-align: left; }
    .plan-grid { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-nav { position: static; display: flex; padding: .75rem 1rem; overflow-x: auto; gap: 1rem; }
    .legal-nav p { display: none; }
    .legal-nav a { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 480px) {
    .authenticated-shell { padding-top: 5.25rem; }
    .account-bar { top: 1rem; right: 1rem; left: 1rem; justify-content: flex-end; }
    .account-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .upload-card { border-radius: 18px; }
    .intro { margin-top: 2.25rem; }
    .drop-zone { min-height: 190px; }
    .preview-comparison { border-width: 6px; }
    .result-photo-navigation { grid-template-columns: 1fr 1fr; }
    .result-pagination { grid-column: 1 / -1; grid-row: 1; }
    .result-nav-previous { grid-column: 1; grid-row: 2; justify-self: start; }
    .result-nav-next { grid-column: 2; grid-row: 2; justify-self: end; }
    .landing-header { min-height: 4.5rem; }
    .landing-nav > a:not(.nav-cta) { display: none; }
    .landing-nav .nav-cta { padding: .6rem .75rem; font-size: .78rem; }
    .landing-hero { padding-top: 2.75rem; gap: 3rem; }
    .hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .secondary-cta { text-align: center; }
    .comparison-card { border-width: 6px; }
    .hero-trust { align-items: flex-start; flex-direction: column; }
    .reviews-empty { align-items: start; grid-template-columns: auto 1fr; }
    .reviews-empty a { grid-column: 2; }
    .final-cta-section { margin-bottom: 2.5rem; border-radius: 20px; }
    .legal-header { min-height: 4.5rem; }
    .legal-shell { padding-top: 2rem; }
    .legal-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
    .legal-document { border-radius: 18px; }
    .legal-fact-grid { grid-template-columns: 1fr; }
    .legal-footer { align-items: flex-start; flex-direction: column; }
}
