/* Ringolo site (formerly Calorify): a light theme built on the app's brand tokens, with the dark theme for
   visitors who prefer dark. Brand ring: gradient #00CCB3 -> #66E666 (BrandColorTokens.calorieRing) plus the
   blue "this meal" segment (#338CFF light, #66B3F2 dark). Text accents use primaryStrong #1968A9 on light. */

:root {
    --night: #F4F5F7;
    --deck: #FFFFFF;
    --raise: #EBEEF1;
    --rim: #E1E4E9;
    --rim-hi: #CDD2D9;
    --frost: #16161D;
    --text: #3C3C46;
    --haze: #5F5F6B;
    --teal: #00CCB3;
    --green: #66E666;
    --accent: #1968A9;
    --accent-hover: #124E80;
    --brand-blue: #338CFF;
    --ring-track: #EBEEF1;
    --fat: #FAB34D;
    --pill-ink: #8A5100;
    --pill-bg: rgba(250, 179, 77, 0.16);
    --pill-rim: rgba(176, 110, 0, 0.4);
    --nav-bg: rgba(244, 245, 247, 0.86);
    --glow: rgba(0, 204, 179, 0.16);
    --shadow-phone: 0 0 0 1px rgba(22, 22, 29, 0.12), 0 34px 70px -30px rgba(22, 22, 29, 0.45), 0 80px 120px -70px rgba(22, 22, 29, 0.3);
    --shadow-card: 0 0 0 1px rgba(22, 22, 29, 0.1), 0 30px 60px -26px rgba(22, 22, 29, 0.4);
    --app-bg: #141417;
    --ring: linear-gradient(135deg, var(--teal), var(--green));

    --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --max: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --nav-h: 64px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --night: #070B12;
        --deck: #0C121B;
        --raise: #111925;
        --rim: #1B2430;
        --rim-hi: #2A3646;
        --frost: #EDF1F5;
        --text: #C9D1DA;
        --haze: #9AA6B4;
        --accent: #00CCB3;
        --accent-hover: #66E666;
        --brand-blue: #66B3F2;
        --ring-track: rgba(255, 255, 255, 0.16);
        --pill-ink: #FAB34D;
        --pill-bg: rgba(250, 179, 77, 0.1);
        --pill-rim: rgba(250, 179, 77, 0.45);
        --nav-bg: rgba(7, 11, 18, 0.82);
        --glow: rgba(0, 204, 179, 0.22);
        --shadow-phone: 0 0 0 1px #2E3947, 0 34px 70px -24px rgba(0, 0, 0, 0.85), 0 80px 120px -60px rgba(0, 0, 0, 0.7);
        --shadow-card: 0 0 0 1px var(--rim-hi), 0 30px 60px -20px rgba(0, 0, 0, 0.8);

        color-scheme: dark;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

p,
li,
dd,
summary {
    text-wrap: pretty;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

a {
    color: var(--accent);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--accent-hover);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

[id] {
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--frost);
    color: var(--night);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.display {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--frost);
    letter-spacing: -0.022em;
    line-height: 1.04;
    text-wrap: balance;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--haze);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2.5px solid var(--teal);
    flex: none;
}

/* Brand: ring mark and "Ringolo" wordmark (brand notes §2). Lockups never mirror in RTL. */

.mark {
    flex: none;
    overflow: visible;
}

.mark-track,
.mark-arc,
.mark-seg {
    fill: none;
    stroke-width: 132;
}

.mark-track {
    stroke: var(--ring-track);
}

.mark-arc,
.mark-seg {
    stroke-linecap: round;
}

.mark-seg {
    stroke: var(--brand-blue);
}

/* The wordmark is a static SVG of paths (img/wordmark-light.svg, img/wordmark-dark.svg), drawn from Nunito Black
   with the i's tittle in the brand blue; no web font is loaded. Its viewBox is centred on the cap-height centre:
   width = 5.0922 x cap height, height = 1.5532 x cap height, cap top 0.2766 x cap height below the top. */
.wordmark {
    display: block;
    flex: none;
}

.wordmark img {
    width: auto;
    height: calc(var(--cap) * 1.5532);
}

/* Compact lockup: mark D = 1.5 x cap height, vertically centred on the caps, gap 0.35 D. */
.lockup {
    --d: 28px;
    --cap: calc(var(--d) / 1.5);
    direction: ltr;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: calc(var(--d) * 0.35);
    min-height: 44px;
    text-decoration: none;
}

.lockup .mark {
    width: var(--d);
    height: var(--d);
}

/* Full (stacked) lockup: wordmark cap height 0.30 D, 0.18 D below the mark. */
.lockup--stacked {
    --d: 48px;
    --cap: calc(var(--d) * 0.3);
    flex-direction: column;
    gap: calc(var(--d) * 0.18 - var(--cap) * 0.2766);
}

/* Navigation */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 1px solid var(--rim);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--haze);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--frost);
}

.nav-links a[aria-current="page"] {
    background: var(--raise);
}

.nav-get {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ring);
    color: #04140F;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-get:hover {
    color: #04140F;
    filter: brightness(1.08);
}

.lockup + .nav-get {
    margin-left: auto;
}

/* Apple's official App Store badge, unaltered (img/app-store-badge.svg). Height stays at or above Apple's
   40 px minimum, and neighbours keep at least a quarter of the badge height as clear space. */

.store-badge {
    display: inline-block;
    border-radius: 8px;
    line-height: 0;
}

.store-badge img {
    width: auto;
    height: 54px;
}

/* A text link to the App Store for pages in languages the badge file doesn't cover. */
.cta-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--frost);
    color: var(--night);
    font-weight: 700;
    text-decoration: none;
}

.cta-button:hover {
    color: var(--night);
    opacity: 0.9;
}

/* Hero */

.hero {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(32px, 6vw, 88px) var(--gutter) clamp(24px, 4vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
    font-size: clamp(3rem, 7.4vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 10ch;
}

.ring-stop {
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-left: 0.07em;
    vertical-align: baseline;
}

.ring-stop circle {
    fill: none;
    stroke-width: 132;
}

.ring-stop .stop-track {
    stroke: var(--ring-track);
}

.ring-stop .stop-arc,
.ring-stop .stop-seg {
    stroke-linecap: round;
}

.ring-stop .stop-seg {
    stroke: var(--brand-blue);
}

.lede {
    margin-top: 28px;
    max-width: 34rem;
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.55;
    color: var(--text);
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.hero-note {
    max-width: 30ch;
    color: var(--haze);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.hero-former {
    margin-top: 14px;
    color: var(--haze);
    font-size: 0.875rem;
    line-height: 1.45;
}

.hero-media {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 560px);
    aspect-ratio: 1;
    justify-self: center;
    container-type: inline-size;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow), rgba(102, 230, 102, 0.05) 60%, transparent);
    filter: blur(20px);
}

/* The brand ring (one ring, never concentric): viewBox 600, r 270, stroke 36. With pathLength 100 the
   main arc is visible 0-250 degrees and the blue segment 258-310 degrees, round caps included. */

.brand-ring {
    overflow: visible;
}

.hero .brand-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.brand-ring circle {
    fill: none;
    stroke-width: 36;
}

.brand-ring .ring-track {
    stroke: var(--ring-track);
}

.brand-ring .ring-arc,
.brand-ring .ring-seg {
    stroke-linecap: round;
}

.brand-ring .ring-arc {
    stroke-dasharray: 67.322 32.678;
    stroke-dashoffset: -1.061;
}

.brand-ring .ring-seg {
    stroke: var(--brand-blue);
    stroke-dasharray: 12.322 87.678;
    stroke-dashoffset: -72.728;
}

.hero .ring-arc {
    animation: ring-draw 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.hero .ring-seg {
    animation: seg-draw 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.45s both;
}

@keyframes ring-draw {
    from {
        stroke-dasharray: 0 100;
    }
}

@keyframes seg-draw {
    from {
        stroke-dasharray: 0 100;
        opacity: 0;
    }
}

/* Phone frames and screen fragments */

.phone {
    --pw: clamp(220px, 23vw, 292px);
    position: relative;
    width: var(--pw);
    flex: none;
    padding: calc(var(--pw) * 0.028);
    border-radius: calc(var(--pw) * 0.155);
    background: linear-gradient(155deg, #2A3441 0%, #0A0E14 22%, #0A0E14 78%, #232C38 100%);
    box-shadow: var(--shadow-phone);
}

.phone picture {
    display: block;
}

.phone img {
    width: 100%;
    border-radius: calc(var(--pw) * 0.128);
    background: var(--app-bg);
}

.phone--hero {
    --pw: clamp(130px, 19vw, 224px);
    z-index: 1;
}

/* The phone is 40% of the ring's width, as on the approved hero board. */
@supports (width: 1cqi) {
    .phone--hero {
        --pw: 40cqi;
    }
}

.phone--hero img {
    background: var(--night);
}

.shot-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--app-bg);
    box-shadow: var(--shadow-card);
}

.shot-card img {
    width: 100%;
}

/* Groups and features */

.group {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(72px, 10vw, 136px) var(--gutter) 0;
}

.group-head {
    max-width: 46rem;
}

.group-head h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.group-head > p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--haze);
    font-size: 1.1875rem;
    max-width: 38rem;
}

.modes {
    margin-top: 28px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--rim);
}

.modes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 88px;
    padding: 0 18px;
    border-radius: 10px;
    color: var(--frost);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.modes a:hover {
    background: var(--rim-hi);
    color: var(--frost);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
    padding: clamp(56px, 8vw, 104px) 0;
}

.feature + .feature {
    border-top: 1px solid var(--rim);
}

.group-head + .feature {
    padding-top: clamp(40px, 6vw, 72px);
}

.feature--flip .feature-copy {
    order: 2;
}

.feature-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.4;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--pill-rim);
    background: var(--pill-bg);
    color: var(--pill-ink);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
}

.tagline {
    margin-top: 14px;
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.feature-copy > p:not(.tagline):not(.plan),
.mini > p:not(.tagline) {
    margin-top: 20px;
    max-width: 34rem;
}

.dots {
    margin-top: 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    max-width: 34rem;
}

.dots li {
    position: relative;
    padding-left: 28px;
}

.dots li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2.5px solid var(--teal);
}

.plan {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--rim);
    max-width: 34rem;
    color: var(--haze);
    font-size: 0.9375rem;
}

.plan-key {
    display: block;
    color: var(--frost);
    font-weight: 600;
}

.quotes {
    margin-top: 24px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.quotes li {
    padding: 10px 16px;
    border-radius: 18px 18px 18px 6px;
    background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--rim-hi);
    color: var(--frost);
}

.quotes li:nth-child(2) {
    margin-left: 28px;
}

.quotes li:nth-child(3) {
    margin-left: 56px;
}

.feature-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-media:has(.shot-card) {
    justify-content: flex-start;
    padding: 0 0 0 4%;
    min-height: 0;
}

.feature-media .shot-card {
    position: absolute;
    right: 0;
    bottom: -4%;
    width: min(58%, 330px);
    z-index: 2;
}

.feature-media .shot-card--wide {
    width: min(64%, 360px);
}

/* A screen fragment as the main image, with a second card overlapping it */
.feature-media:has(.shot-card--main) {
    padding: 0 0 clamp(96px, 12vw, 150px);
}

.feature-media .shot-card--main {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(80%, 420px);
}

.feature-media .shot-card--main + .shot-card {
    bottom: 0;
}

/* The daily ring, annotated */

.feature--ring {
    grid-template-columns: 1fr;
    gap: 40px;
}

.annotated {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 72px;
    align-items: stretch;
}

.annotated-shot {
    border-radius: 24px;
    overflow: hidden;
    background: var(--app-bg);
    box-shadow: var(--shadow-card);
}

.callouts {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.callouts li {
    position: absolute;
    top: var(--at);
    left: 0;
    max-width: 25rem;
    transform: translateY(-0.8em);
    color: var(--haze);
    font-size: 1rem;
    line-height: 1.5;
}

.callouts li::before {
    content: "";
    position: absolute;
    top: 0.8em;
    right: calc(100% + 12px);
    width: 64px;
    border-top: 1px dashed var(--rim-hi);
}

.callouts li::after {
    content: "";
    position: absolute;
    top: calc(0.8em - 5px);
    right: calc(100% + 76px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 204, 179, 0.18);
}

.callouts strong {
    display: block;
    color: var(--frost);
    font-size: 1.0625rem;
}

/* Water and streaks */

.pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: clamp(24px, 4vw, 48px);
}

.mini {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3.4vw, 40px);
    border-radius: 28px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim);
    overflow: hidden;
}

.mini > .shot-card--flat {
    margin-top: auto;
}

.mini > p:not(.tagline) {
    margin-bottom: 32px;
}

.group-head + .pair {
    margin-top: clamp(32px, 5vw, 48px);
}

/* Text-only cards (no screen fragment under the copy) */
.pair--text .mini > p:not(.tagline) {
    margin-bottom: 0;
}

.pair--text .mini .dots {
    margin-top: 20px;
}

/* Reports tabs and facts */

.tabs,
.facts {
    margin-top: 24px;
    display: grid;
    gap: 16px;
    max-width: 34rem;
}

.tabs div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
}

.tabs dt {
    justify-self: start;
    padding: 4px 12px;
    border-radius: 9px;
    background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--rim-hi);
    color: var(--frost);
    font-size: 0.875rem;
    font-weight: 700;
}

.tabs dd {
    color: var(--text);
}

.facts div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rim);
}

.facts dt {
    color: var(--frost);
    font-weight: 700;
    font-size: 0.9375rem;
}

.langs {
    margin-top: 10px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.langs li {
    padding: 2px 10px;
    border-radius: 8px;
    background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--rim);
    color: var(--frost);
    font-size: 0.9375rem;
}

.feature-media--pair {
    gap: 20px;
}

.feature-media--pair .phone {
    --pw: clamp(180px, 18vw, 236px);
}

.feature-media--pair .phone + .phone {
    margin-top: 72px;
}

/* Widgets */

.feature-media:has(.shot-card--widgets) {
    justify-content: center;
    padding: 0;
}

.feature-media .shot-card--widgets {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 380px);
}

/* Free and Premium */

.compare-wrap {
    margin-top: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    padding-bottom: 8px;
}

.premium-list {
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-radius: 24px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim);
}

.premium-list li {
    position: relative;
    padding: 16px 24px 16px 58px;
    color: var(--text);
}

.premium-list li + li {
    border-top: 1px solid var(--rim);
}

.premium-list li::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 21px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--teal);
}

.premium-list strong {
    display: block;
    color: var(--frost);
    font-size: 1.0625rem;
}

.compare-notes {
    display: grid;
    gap: 16px;
    color: var(--haze);
    font-size: 0.9375rem;
}

.compare-notes p:first-child {
    color: var(--text);
    font-size: 1.0625rem;
}

/* FAQ */

.faq {
    margin-top: 36px;
    max-width: 50rem;
    border-top: 1px solid var(--rim);
}

.faq details {
    border-bottom: 1px solid var(--rim);
}

.faq summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 16px 56px 16px 0;
    color: var(--frost);
    font-size: 1.1875rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before,
.faq summary::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 16px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--accent);
    transition: transform 0.2s ease;
}

.faq summary::after {
    transform: rotate(90deg);
}

.faq details[open] summary::after {
    transform: rotate(0deg);
}

.faq details p {
    padding: 0 56px 24px 0;
    max-width: 44rem;
}

.faq-more {
    margin-top: 28px;
    max-width: 50rem;
    color: var(--haze);
}

/* Finale */

.finale {
    position: relative;
    max-width: var(--max);
    margin: clamp(72px, 10vw, 136px) auto 0;
    padding: clamp(48px, 7vw, 96px) var(--gutter);
    display: grid;
    place-items: center;
    text-align: center;
    min-height: min(640px, 92vw);
}

.finale-ring {
    position: absolute;
    width: min(600px, 92vw);
    aspect-ratio: 1;
    height: auto;
}

.finale .ring-arc,
.finale .ring-seg {
    transition: stroke-dasharray 1.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}

.finale .ring-seg {
    transition-delay: 1.2s;
}

.js .finale:not(.is-drawn) .ring-arc {
    stroke-dasharray: 0 100;
}

.js .finale:not(.is-drawn) .ring-seg {
    stroke-dasharray: 0 100;
    opacity: 0;
}

.finale-copy {
    position: relative;
    max-width: min(380px, 66vw);
}

.finale h2 {
    font-size: clamp(2rem, 4.6vw, 3.25rem);
}

.finale p {
    margin: 16px auto 26px;
    color: var(--haze);
}

.finale .store-badge {
    margin: 0 auto;
}

/* Footer */

.site-footer {
    margin-top: clamp(48px, 8vw, 96px);
    border-top: 1px solid var(--rim);
    background: var(--deck);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px var(--gutter) 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px 32px;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 8px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--frost);
    text-decoration: underline;
}

.footer-links a[aria-current="page"] {
    color: var(--frost);
    text-decoration: underline;
}

.footer-fine {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--rim);
    color: var(--haze);
    font-size: 0.8125rem;
}

/* Support page */

.support {
    max-width: 52rem;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--gutter) 24px;
}

.support-head h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.support-head .lede {
    margin-top: 18px;
}

.support-former {
    margin-top: 14px;
    color: var(--haze);
    font-size: 0.9375rem;
}

.support-jump {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.support-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--rim-hi);
    color: var(--frost);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.support-jump a:hover {
    background: var(--rim-hi);
    color: var(--frost);
}

.support-card {
    margin-top: 24px;
    padding: clamp(22px, 3.4vw, 36px);
    border-radius: 24px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim);
}

.support-head + .support-card {
    margin-top: 48px;
}

.support-card h2 {
    margin-bottom: 14px;
    color: var(--frost);
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.support-card p + p,
.support-card ol + p,
.support-card ul + p {
    margin-top: 14px;
}

.support-card strong {
    color: var(--frost);
}

.steps,
.steps-plain,
.link-list {
    margin: 14px 0 0;
    padding-left: 1.4rem;
    display: grid;
    gap: 10px;
}

.steps li::marker {
    color: var(--accent);
    font-weight: 700;
}

.steps-plain li::marker,
.link-list li::marker {
    color: var(--accent);
}

/* Guides and comparison pages */

.guide {
    max-width: 50rem;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--gutter) 24px;
}

.guide--wide {
    max-width: 64rem;
}

.guide-head h1 {
    font-size: clamp(2.25rem, 5.6vw, 3.75rem);
}

.guide-head .lede {
    margin-top: 18px;
    max-width: 40rem;
}

.lang-switch {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--rim-hi);
    color: var(--frost);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.lang-switch a:hover {
    background: var(--rim-hi);
    color: var(--frost);
}

.lang-switch a[aria-current="page"] {
    background: var(--frost);
    box-shadow: none;
    color: var(--night);
}

.guide-section {
    margin-top: 56px;
}

.guide-section > h2,
.guide-cta h2 {
    margin-bottom: 14px;
    color: var(--frost);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.guide-section > p {
    max-width: 42rem;
}

.guide-section > p + p {
    margin-top: 14px;
}

.guide-section > ul + p {
    margin-top: 20px;
}

.guide-section > .support-card {
    margin-top: 0;
}

.guide-steps {
    margin-top: 22px;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 22px;
}

.guide-steps li {
    position: relative;
    padding-left: 56px;
    counter-increment: step;
}

.guide-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid var(--teal);
    color: var(--frost);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
}

.guide-steps h3 {
    color: var(--frost);
    font-size: 1.1875rem;
    line-height: 1.35;
}

.guide-steps p {
    margin-top: 6px;
    max-width: 40rem;
}

.guide-section .faq {
    margin-top: 8px;
}

.guide-cta {
    margin-top: 64px;
    padding: clamp(22px, 3.4vw, 36px);
    border-radius: 24px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.guide-cta h2 {
    margin-bottom: 6px;
}

.guide-cta p {
    color: var(--haze);
}

.vs-scroll {
    margin-top: 24px;
    overflow-x: auto;
    border-radius: 20px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim);
}

.vs {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 0.9875rem;
    line-height: 1.5;
}

.vs caption {
    padding: 16px 18px 0;
    color: var(--haze);
    font-size: 0.875rem;
    text-align: left;
}

.vs th,
.vs td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--rim);
    text-align: left;
    vertical-align: top;
}

.vs tbody tr:last-child th,
.vs tbody tr:last-child td {
    border-bottom: 0;
}

.vs thead th {
    color: var(--haze);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vs tbody th {
    width: 22%;
    color: var(--frost);
    font-weight: 650;
}

.vs .vs-us {
    background: rgba(0, 204, 179, 0.07);
}

.vs thead .vs-us {
    color: var(--accent);
}

/* Narrow screens: each row becomes a labelled block, so all three approaches stay visible side by side in
   reading order. The table keeps explicit ARIA roles, so it is still announced as a table. */
@media (max-width: 640px) {
    .vs {
        min-width: 0;
    }

    .vs thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .vs,
    .vs tbody,
    .vs tr,
    .vs th,
    .vs td {
        display: block;
        width: auto;
    }

    .vs caption {
        display: block;
        padding: 16px 16px 4px;
    }

    .vs tbody tr {
        padding: 16px;
        border-bottom: 1px solid var(--rim);
    }

    .vs tbody tr:last-child {
        border-bottom: 0;
    }

    .vs tbody th {
        width: auto;
        padding: 0 0 8px;
        border: 0;
        font-size: 1.0625rem;
    }

    .vs tbody td {
        display: grid;
        grid-template-columns: 7.25rem minmax(0, 1fr);
        gap: 12px;
        padding: 6px 0;
        border: 0;
    }

    .vs tbody td::before {
        content: attr(data-label);
        color: var(--frost);
        font-weight: 700;
        font-size: 0.875rem;
    }

    .vs tbody td.vs-us {
        background: none;
    }

    .vs tbody td.vs-us::before {
        color: var(--accent);
    }
}

.vs-notes {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    color: var(--haze);
    font-size: 0.9375rem;
}

/* Legal pages */

.legal-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--gutter) 24px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.toc-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow: auto;
    padding: 20px;
    border-radius: 20px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim);
}

.toc-sidebar h2,
.toc-sidebar h3 {
    margin-bottom: 10px;
    color: var(--haze);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-list a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.4;
    text-decoration: none;
}

.toc-list a:hover {
    background: var(--raise);
    color: var(--frost);
}

.toc-list a.is-active {
    background: var(--raise);
    color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
}

.legal-content {
    max-width: 46rem;
    color: var(--text);
}

.legal-content h1 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--frost);
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.legal-content h2 {
    margin: 44px 0 14px;
    padding-top: 28px;
    border-top: 1px solid var(--rim);
    color: var(--frost);
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    margin: 26px 0 10px;
    color: var(--frost);
    font-size: 1.1875rem;
}

.legal-content h4 {
    margin: 20px 0 8px;
    color: var(--frost);
    font-size: 1.0625rem;
}

.legal-content p {
    margin-bottom: 14px;
    line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
    margin: 10px 0 18px;
    padding-left: 1.4rem;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content li::marker {
    color: var(--accent);
}

.legal-content strong {
    color: var(--frost);
}

.legal-date {
    margin-top: 14px;
    padding-bottom: 20px;
    color: var(--haze);
}

.legal-content .legal-former {
    margin: -6px 0 20px;
    color: var(--haze);
}

.highlight-box {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim), inset 4px 0 0 var(--teal);
}

.highlight-box h3 {
    margin-top: 0;
}

.highlight-box > :last-child {
    margin-bottom: 0;
}

.highlight-box.warning {
    box-shadow: inset 0 0 0 1px var(--rim), inset 4px 0 0 var(--fat);
}

.highlight-box.success {
    box-shadow: inset 0 0 0 1px var(--rim), inset 4px 0 0 var(--green);
}

.contact-info {
    margin: 12px 0;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--deck);
    box-shadow: inset 0 0 0 1px var(--rim);
}

.contact-info p {
    margin: 0;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--rim);
    color: var(--haze);
}

.highlight-box .legal-footer {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Responsive */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .annotated {
        grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
        gap: 56px;
    }

    .callouts li::before {
        width: 44px;
    }

    .callouts li::after {
        right: calc(100% + 56px);
    }

    .compare-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .nav-links--legal {
        display: flex;
    }

    .nav-links--legal a {
        padding: 0 10px;
    }

    .nav-get {
        margin-left: auto;
    }

    .feature {
        grid-template-columns: 1fr;
    }

    .feature--flip .feature-copy {
        order: 0;
    }

    .feature-media .phone {
        --pw: min(58vw, 260px);
    }

    .feature-media:has(.shot-card) {
        padding-left: 0;
        padding-bottom: 8%;
    }

    .feature-media .shot-card {
        width: min(56%, 300px);
        bottom: 0;
    }

    .feature-media .shot-card--wide {
        width: min(62%, 330px);
    }

    .feature-media:has(.shot-card--main) {
        padding-bottom: 30vw;
    }

    .feature-media .shot-card--main {
        width: min(88%, 400px);
    }

    .feature-media .shot-card--widgets {
        width: min(88%, 360px);
    }

    .annotated {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .annotated-shot {
        max-width: 420px;
    }

    .callouts {
        display: grid;
        gap: 18px;
    }

    .callouts li {
        position: relative;
        top: auto;
        transform: none;
        padding-left: 26px;
    }

    .callouts li::before {
        display: none;
    }

    .callouts li::after {
        right: auto;
        left: 2px;
        top: 0.55em;
    }

    .pair {
        grid-template-columns: 1fr;
    }

    .feature-media--pair .phone {
        --pw: min(40vw, 220px);
    }

    .feature-media--pair .phone + .phone {
        margin-top: 48px;
    }

    .legal-container {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        position: static;
        max-height: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
        margin-left: -10px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 1rem;
    }

    .nav-inner {
        gap: 12px;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 13.5vw, 3.5rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero .store-badge img {
        height: 48px;
    }

    .tabs div,
    .facts div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .modes {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .modes a {
        min-width: 0;
        padding: 0 6px;
    }

    .finale {
        min-height: 98vw;
        padding-left: 0;
        padding-right: 0;
    }

    .finale-ring {
        width: 98vw;
    }

    .finale-copy {
        max-width: 62vw;
    }

    .finale h2 {
        font-size: 1.625rem;
    }

    .finale p {
        margin: 10px auto 16px;
        font-size: 0.9375rem;
    }

    .finale .store-badge img {
        height: 46px;
    }

    .faq summary {
        font-size: 1.0625rem;
        padding-right: 44px;
    }

    .faq details p {
        padding-right: 0;
    }

    .quotes li:nth-child(2) {
        margin-left: 16px;
    }

    .quotes li:nth-child(3) {
        margin-left: 32px;
    }

    .guide-steps li {
        padding-left: 50px;
    }

    .guide-steps li::before {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 420px) {
    .site-nav .lockup {
        --d: 24px;
    }

    .nav-links--legal {
        gap: 0;
    }

    .nav-links--legal a {
        padding: 0 8px;
        font-size: 0.875rem;
    }
}

@media (max-width: 360px) {
    .nav-inner {
        gap: 8px;
    }

    .site-nav .lockup {
        --d: 20px;
    }

    .nav-links--legal a {
        padding: 0 6px;
        font-size: 0.8125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero .ring-arc,
    .hero .ring-seg {
        animation: none;
    }

    .finale .ring-arc,
    .finale .ring-seg {
        transition: none;
    }

    .js .finale:not(.is-drawn) .ring-arc {
        stroke-dasharray: 67.322 32.678;
    }

    .js .finale:not(.is-drawn) .ring-seg {
        stroke-dasharray: 12.322 87.678;
        opacity: 1;
    }

    .faq summary::before,
    .faq summary::after {
        transition: none;
    }
}

@media (forced-colors: active) {
    .brand-ring .ring-arc,
    .brand-ring .ring-seg,
    .mark-arc,
    .mark-seg,
    .ring-stop .stop-arc,
    .ring-stop .stop-seg {
        stroke: CanvasText;
    }

    .nav-get,
    .cta-button {
        border: 1px solid ButtonText;
    }
}
