/*
  lighthouseweather.fyi — one stylesheet for every page.

  The palette is the app icon's: a night sky deepening to indigo and violet, a dusk glow along the
  horizon, the lantern's warm beam, and the tower's red. Words are set in Charter, as the app sets
  them (Source Serif 4 where Charter isn't installed); figures and interface text in the system font.
*/

/* Source Serif 4 (SIL Open Font License), served from this site, for systems without Charter.
   A browser only fetches it where Charter isn't installed. */
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/source-serif-4-italic-latin.woff2") format("woff2");
}

:root {
    --night-950: #07081a;
    --night-900: #0c0e2a;
    --night-850: #111337;
    --night-800: #181a46;
    --indigo-700: #262770;
    --violet-600: #4a3f8f;
    --violet-500: #6c58ad;
    --rose-400: #cf93b4;
    --peach-300: #f4b98d;
    --gold-200: #ffdca6;
    --beam: #fff3da;
    --tower-red: #e0524c;
    --alert-red: #e5484d;

    --ink: #f5f4fc;
    --ink-2: rgba(245, 244, 252, 0.76);
    --ink-3: rgba(245, 244, 252, 0.56);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(255, 255, 255, 0.055);
    --glass-strong: rgba(255, 255, 255, 0.09);

    --serif: "Charter", "Bitstream Charter", "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --page: 1180px;
    --gutter: clamp(20px, 5vw, 48px);
    --radius: 22px;
    --header: 64px;

    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 12px);
}

body {
    margin: 0;
    background: var(--night-900);
    color: var(--ink);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }

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

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

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

.wrap {
    width: min(var(--page), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.serif { font-family: var(--serif); }
.serif-italic { font-family: var(--serif); font-style: italic; }

/* ------------------------------------------------------------------ header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header);
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(12, 14, 42, 0.72);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: saturate(150%) blur(18px);
    backdrop-filter: saturate(150%) blur(18px);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font: 600 21px/1 var(--serif);
    letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-header nav { margin-left: auto; }
.nav-links {
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links a {
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-menu { display: none; margin-left: auto; position: relative; }
.nav-menu summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--line);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul {
    position: absolute;
    right: 0;
    top: 50px;
    min-width: 200px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 16px;
    background: rgba(17, 19, 55, 0.96);
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.nav-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}
.nav-menu a:hover { background: var(--glass-strong); }

/* ------------------------------------------------------------------ buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font: 600 16px/1 var(--sans);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-soon {
    background: linear-gradient(180deg, #fff8ea, #ffe2b4);
    color: #2a1d3f;
    box-shadow: 0 10px 30px rgba(255, 210, 150, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: default;
}
.btn-soon:hover { transform: none; }
.btn-soon img { width: 28px; height: 28px; border-radius: 7px; }
.btn-soon small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.66;
    margin-bottom: 3px;
}
.btn-soon span { display: block; line-height: 1.05; }

.btn-ghost {
    color: var(--ink);
    background: var(--glass);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--glass-strong); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header) + clamp(40px, 8vh, 96px)) 0 0;
    background:
        radial-gradient(120% 70% at 50% 100%, rgba(244, 185, 141, 0.55) 0%, rgba(207, 147, 180, 0.32) 28%, rgba(108, 88, 173, 0.2) 48%, transparent 70%),
        linear-gradient(180deg, #07081a 0%, #0e1033 30%, #1e1f5c 58%, #4a3f8f 82%, #8c6aa8 100%);
}

.stars {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    z-index: -1;
    width: var(--s, 18px);
    height: var(--s, 18px);
    color: #fff;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
    animation: twinkle var(--d, 5s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.72); }
}

.hero-copy {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 860px;
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
}
.eyebrow img { width: 22px; height: 22px; border-radius: 6px; }

.hero h1 {
    font: 600 clamp(42px, 7.4vw, 88px)/1.02 var(--serif);
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.hero h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(100deg, #fff6e3 10%, var(--gold-200) 45%, var(--peach-300) 75%, var(--rose-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.06em;
}

.lede {
    max-width: 700px;
    margin: 24px auto 0;
    color: var(--ink-2);
    font-size: clamp(17px, 1.9vw, 20px);
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.promise {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink-3);
    font-size: 14px;
    font-weight: 500;
}
.promise li { display: inline-flex; align-items: center; gap: 7px; }
.promise svg { width: 15px; height: 15px; color: var(--gold-200); }

/* The stage: the lighthouse on its clouds, its beam turning, and the phone. */
.hero-stage {
    position: relative;
    z-index: 2;
    height: clamp(560px, 64vw, 760px);
    margin-top: clamp(28px, 5vw, 56px);
}

.lighthouse {
    position: absolute;
    z-index: 1;
    left: calc(50% - clamp(250px, 34vw, 470px));
    bottom: clamp(80px, 10vw, 128px);
    height: clamp(300px, 40vw, 470px);
    aspect-ratio: 290 / 776;
}
/* Its foot stands in the clouds, which thin out below it. */
.lighthouse img {
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 97%);
    mask-image: linear-gradient(180deg, #000 80%, transparent 97%);
}

.beam {
    position: absolute;
    left: 48.3%;
    top: 18%;
    width: 240vw;
    height: 60vw;
    transform-origin: 0 50%;
    translate: 0 -50%;
    clip-path: polygon(0 49.2%, 100% 0, 100% 100%, 0 50.8%);
    background: linear-gradient(90deg, rgba(255, 243, 218, 0.62) 0%, rgba(255, 228, 190, 0.26) 14%, rgba(255, 210, 170, 0.08) 38%, transparent 62%);
    mix-blend-mode: screen;
    filter: blur(2px);
    animation: sweep 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes sweep {
    0% { rotate: -30deg; }
    100% { rotate: -2deg; }
}

.lantern-glow {
    position: absolute;
    left: 48.3%;
    top: 18%;
    width: 220%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(255, 244, 220, 0.85) 0%, rgba(255, 220, 170, 0.35) 12%, rgba(255, 200, 150, 0.1) 30%, transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: glow 4.5s ease-in-out infinite;
}
@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.clouds {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    height: clamp(90px, 12vw, 150px);
    background: url("/images/clouds.webp") repeat-x;
    background-size: auto 100%;
    pointer-events: none;
}
.clouds-back {
    bottom: clamp(70px, 9vw, 110px);
    background-image: url("/images/clouds-dark.webp");
    background-position: 30% 0;
    opacity: 0.9;
    animation: drift 120s linear infinite;
}
.clouds-front {
    z-index: 4;
    bottom: -2px;
    height: clamp(120px, 16vw, 200px);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    animation: drift 180s linear infinite reverse;
}
@keyframes drift {
    from { background-position-x: 0; }
    to { background-position-x: -2048px; }
}

/* Under the clouds the page goes on in the night. */
.hero::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0; right: 0; bottom: 0;
    height: clamp(60px, 9vw, 120px);
    background: linear-gradient(180deg, transparent, var(--night-900));
    pointer-events: none;
}

/* ------------------------------------------------------------------ phone */

.phone {
    position: relative;
    margin: 0;
    width: var(--w, 300px);
    aspect-ratio: 886 / 1920;
    padding: calc(var(--w, 300px) * 0.036);
    border-radius: calc(var(--w, 300px) * 0.165);
    background: linear-gradient(145deg, #3b3d4a, #15161d 40%, #2a2b35);
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
        inset 0 0 0 calc(var(--w, 300px) * 0.012) #0b0b10,
        0 40px 80px -20px rgba(6, 6, 30, 0.75),
        0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.phone > img, .phone > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--w, 300px) * 0.13);
    background: #1a1c3a;
}

.phone--hero {
    --w: clamp(250px, 27vw, 340px);
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 0;
    translate: -50% 0;
}

/* ------------------------------------------------------------------ sections */

section { position: relative; }

.section {
    padding: clamp(80px, 11vw, 150px) 0;
}

.kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--gold-200);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    font: 600 clamp(34px, 5vw, 58px)/1.06 var(--serif);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--gold-200); }

.section-lede {
    max-width: 680px;
    margin-top: 20px;
    color: var(--ink-2);
    font-size: clamp(17px, 1.7vw, 19px);
    text-wrap: pretty;
}

.centered { text-align: center; }
.centered .section-lede { margin-inline: auto; }

/* The case against cards. */
.manifesto {
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(24px, 4vw, 56px);
}
.manifesto .section-title { max-width: 920px; margin-inline: auto; }

.compare {
    display: grid;
    grid-template-columns: 1fr auto 1.25fr;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    max-width: 980px;
    margin: clamp(48px, 6vw, 72px) auto 0;
}
.compare-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.compare-cards div {
    padding: 14px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 600;
}
.compare-cards div b {
    display: block;
    margin-top: 6px;
    color: var(--ink-2);
    font: 300 26px/1 var(--sans);
}
.compare-arrow { color: var(--ink-3); }
.compare-arrow svg { width: 34px; height: 34px; }
.compare-chart {
    padding: 18px 18px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(74, 63, 143, 0.5), rgba(24, 26, 70, 0.6));
    border: 1px solid var(--line-strong);
}
.compare-chart svg { width: 100%; height: auto; }
.compare-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.compare-label {
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 14px;
    text-align: center;
}

/* Feature rows: copy beside a phone, alternating sides. */
.feature {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(40px, 7vw, 110px);
    padding: clamp(56px, 8vw, 110px) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-copy { order: 2; }
.feature--wide { grid-template-columns: 0.72fr 1.28fr; gap: clamp(36px, 5vw, 72px); }

.feature-copy h3 {
    font: 600 clamp(30px, 3.8vw, 46px)/1.08 var(--serif);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.feature-copy h3 em { font-style: italic; font-weight: 500; }
.feature-copy p {
    margin-top: 20px;
    color: var(--ink-2);
    font-size: 18px;
    text-wrap: pretty;
}
.feature-copy .note { color: var(--ink-3); font-size: 15px; }

.pro-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 220, 166, 0.2), rgba(207, 147, 180, 0.2));
    border: 1px solid rgba(255, 220, 166, 0.35);
    color: var(--gold-200);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pro-tag svg { width: 13px; height: 13px; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
}
.chips svg { width: 16px; height: 16px; color: var(--gold-200); }

.feature-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
}
.feature-media::before {
    content: "";
    position: absolute;
    inset: 8% 4%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow, rgba(108, 88, 173, 0.55)), transparent);
    filter: blur(30px);
}
.feature-media .phone { --w: clamp(240px, 26vw, 320px); }

/* "What's next" readout. */
.readout {
    width: min(100%, 380px);
    padding: 26px 26px 22px;
    border-radius: 28px;
    background:
        radial-gradient(90% 60% at 80% 0%, rgba(255, 220, 166, 0.25), transparent 70%),
        linear-gradient(180deg, #3a5f9e, #2a3e78 55%, #232a5c);
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.readout-place { font: italic 500 20px/1.2 var(--serif); }
.readout-temp { margin-top: 2px; font: 200 76px/1 var(--sans); letter-spacing: -0.03em; }
.readout-cond { margin-top: 4px; font: 500 20px/1.3 var(--serif); }
.readout-range { margin-top: 4px; color: var(--ink-2); font: 500 14px/1.3 var(--sans); }
.outlooks {
    margin: 18px 0 0;
    padding: 16px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
}
.outlooks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font: italic 400 18px/1.3 var(--serif);
}
.outlooks svg { width: 20px; height: 20px; flex: none; }
.outlooks li:first-child { color: var(--ink); }
.outlooks li:not(:first-child) { color: var(--ink-2); }
.outlooks .when { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-left: auto; }

/* Every place gets its own sky. */
.skies {
    padding: clamp(70px, 9vw, 120px) 0 clamp(90px, 11vw, 140px);
    background:
        radial-gradient(60% 50% at 15% 40%, rgba(63, 115, 179, 0.28), transparent 70%),
        radial-gradient(50% 50% at 85% 60%, rgba(207, 147, 180, 0.2), transparent 70%);
}
.sky-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(14px, 2vw, 28px);
    margin: clamp(44px, 6vw, 70px) auto 0;
    padding: 0;
    list-style: none;
    max-width: 1180px;
}
.sky-strip li { display: grid; justify-items: center; gap: 14px; }
.sky-strip li:nth-child(even) { translate: 0 36px; }
.sky-strip .phone { --w: 100%; max-width: 220px; }
.sky-strip figcaption, .sky-strip .caption {
    text-align: center;
    line-height: 1.3;
}
.sky-strip .caption b { display: block; font: italic 600 19px/1.2 var(--serif); }
.sky-strip .caption span { color: var(--ink-3); font-size: 14px; }

/* The weather map: the Mac's window with the phone before it. */
.map-stage {
    position: relative;
    padding-bottom: 10%;
}
.mac-window {
    width: 100%;
    border-radius: 1.1% / 1.8%;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.map-stage .phone {
    --w: clamp(120px, 12.5vw, 172px);
    position: absolute;
    right: -2%;
    bottom: -2%;
}

/* Accuracy and reliability: six cards, three to a row, each row's cards one height. */
.trust {
    background:
        radial-gradient(55% 45% at 50% 0%, rgba(63, 115, 179, 0.2), transparent 70%),
        linear-gradient(180deg, var(--night-900), var(--night-850) 50%, var(--night-900));
    border-block: 1px solid var(--line);
}
.trust-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: clamp(40px, 5vw, 60px) 0 0;
    padding: 0;
    list-style: none;
}

/* The details grid. */
.details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: clamp(40px, 5vw, 60px);
}
.card {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--glass-strong), var(--glass));
    border: 1px solid var(--line);
}
.card h3 {
    margin-top: 16px;
    font: 600 21px/1.25 var(--serif);
}
.card p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.card .icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: rgba(255, 220, 166, 0.12);
    color: var(--gold-200);
}
.card .icon svg { width: 22px; height: 22px; }
.card .pro-tag { position: absolute; top: 24px; right: 22px; margin: 0; }
.card-wide { grid-column: span 2; }


.alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(229, 72, 77, 0.22);
    border: 1px solid rgba(229, 72, 77, 0.45);
    color: #ffd7d6;
    font-size: 14px;
    font-weight: 600;
}
.alert-pill svg { width: 15px; height: 15px; color: #ff8e8b; }
.alert-pill small { color: rgba(255, 215, 214, 0.7); font-size: 13px; }

.langs {
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.7;
}

/* ------------------------------------------------------------------ everywhere */

.everywhere {
    background:
        radial-gradient(70% 40% at 50% 30%, rgba(244, 185, 141, 0.16), transparent 70%),
        linear-gradient(180deg, var(--night-900), #15164a 55%, var(--night-900));
}
/* The devices stand in Apple's frames, which are shown whole: the sky behind them is drawn on past
   the picture to each side, and only that sky fades into the page. */
.family {
    position: relative;
    margin: clamp(40px, 6vw, 64px) 0 0;
}
.family img {
    width: 150%;
    max-width: none;
    margin-left: -25%;
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 8%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 8%, #000 80%, transparent 100%);
    mask-composite: intersect;
}

.platforms {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: clamp(28px, 4vw, 48px);
}
.platform {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.platform.span-3 { grid-column: span 3; }
.platform h3 { margin-top: 0; }
.platform .media {
    margin: 22px -26px -26px;
    padding: 0 26px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    flex: 1;
    min-height: 220px;
}
.platform-devices .media { align-items: center; padding-bottom: 26px; }
.platform-devices .media img { width: 100%; border-radius: 16px; }
.platform-mac .media img {
    width: min(100%, 300px);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}
.platform-watch .media { align-items: center; padding-bottom: 26px; }
.watch {
    width: 31%;
    max-width: 150px;
    aspect-ratio: 422 / 514;
    padding: 5%;
    border-radius: 30%  / 25%;
    background: linear-gradient(145deg, #3a3b44, #121218 45%, #26272f);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 20px 40px -16px rgba(0, 0, 0, 0.7);
}
.watch img { width: 100%; height: 100%; border-radius: 24% / 20%; object-fit: cover; }
.watch:nth-child(2) { translate: 0 -14px; }

/* The Now and Next widget, drawn as the app draws it. */
.widget-row { display: flex; gap: 14px; align-items: flex-end; justify-content: center; padding-bottom: 26px; }
.widget {
    width: 170px;
    aspect-ratio: 1;
    padding: 14px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(70% 50% at 85% 10%, rgba(255, 228, 160, 0.55), transparent 65%),
        linear-gradient(180deg, #4d7ec0, #3a63a6 60%, #34548f);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
    font-family: var(--sans);
    line-height: 1.15;
}
.widget .w-place { font: italic 600 14px/1.2 var(--serif); }
.widget .w-top { display: flex; align-items: center; justify-content: space-between; }
.widget .w-temp { font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
.widget .w-side { text-align: right; font-size: 12px; font-weight: 600; }
.widget .w-side svg { width: 18px; height: 18px; margin-left: auto; color: #ffd36b; }
.widget .w-cond { font: 500 13px/1.2 var(--serif); }
.widget .w-lines { margin-top: auto; display: grid; gap: 5px; font-size: 12px; font-weight: 600; }
.widget .w-lines div { display: flex; align-items: center; gap: 5px; }
.widget .w-lines svg { width: 14px; height: 14px; flex: none; }
.widget .w-next { font: italic 500 12.5px/1.2 var(--serif); }
.widget.night {
    background:
        radial-gradient(60% 40% at 80% 8%, rgba(220, 220, 255, 0.25), transparent 70%),
        linear-gradient(180deg, #232861, #1a1d4d 60%, #15173c);
}

/* ------------------------------------------------------------------ privacy band */

.privacy-band {
    background:
        radial-gradient(45% 70% at 0% 0%, rgba(255, 220, 166, 0.07), transparent 70%),
        var(--night-850);
    border-block: 1px solid var(--line);
}
.privacy-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}
.promises {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.promises li { padding: 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.promises h3 { font: 600 19px/1.3 var(--serif); margin-top: 14px; }
.promises p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
.promises .icon { color: var(--gold-200); }
.promises .icon svg { width: 24px; height: 24px; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 26px;
    color: var(--gold-200);
    font-weight: 600;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ pricing */

.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 940px;
    margin: clamp(40px, 5vw, 60px) auto 0;
}
.plan {
    padding: clamp(26px, 3.5vw, 38px);
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.plan .includes { margin: 24px 0 -10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--gold-200); font-size: 14px; font-weight: 600; }
.plan .includes + ul { border-top: 0; margin-top: 0; }
.plan-pro {
    background:
        radial-gradient(80% 50% at 100% 0%, rgba(255, 220, 166, 0.2), transparent 70%),
        linear-gradient(180deg, rgba(74, 63, 143, 0.55), rgba(24, 26, 70, 0.75));
    border-color: rgba(255, 220, 166, 0.35);
    box-shadow: 0 40px 90px -40px rgba(255, 190, 140, 0.35);
}
.plan h3 { font: 600 26px/1.2 var(--serif); }
.plan .price { margin-top: 14px; font: 300 46px/1 var(--sans); letter-spacing: -0.02em; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan .price-alt { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.plan ul { margin: 24px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 16px; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-200); }
.plan li b { color: var(--ink); font-weight: 600; }
.fine {
    margin-top: 22px;
    color: var(--ink-3);
    font-size: 14px;
    text-align: center;
}

/* ------------------------------------------------------------------ FAQ */

.faq-list { max-width: 860px; margin: clamp(36px, 5vw, 56px) auto 0; }
.faq-list details {
    border-bottom: 1px solid var(--line);
}
.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 2px;
    cursor: pointer;
    list-style: none;
    font: 600 clamp(19px, 2vw, 22px)/1.35 var(--serif);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: rotate 0.25s ease; }
.faq-list details[open] summary svg { rotate: 45deg; }
.faq-list .answer { padding: 0 2px 24px; color: var(--ink-2); font-size: 17px; max-width: 760px; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ closing */

.closing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(100px, 13vw, 170px) 0 clamp(170px, 20vw, 250px);
    text-align: center;
    background:
        radial-gradient(110% 70% at 50% 100%, rgba(244, 185, 141, 0.5) 0%, rgba(207, 147, 180, 0.28) 30%, transparent 65%),
        linear-gradient(180deg, var(--night-900) 0%, #1a1b52 50%, #4a3f8f 85%, #7d64a6 100%);
}
.closing .app-icon { width: 104px; height: 104px; margin: 0 auto 28px; border-radius: 24px; box-shadow: 0 24px 60px -16px rgba(255, 200, 150, 0.45); }
.closing .section-title { font-size: clamp(44px, 7vw, 84px); }
.closing .section-lede { margin-inline: auto; }
.closing .hero-ctas { margin-top: 30px; }
.closing .clouds-front { height: clamp(110px, 14vw, 180px); }
.closing::after {
    content: "";
    position: absolute;
    z-index: 5;
    left: 0; right: 0; bottom: 0;
    height: clamp(50px, 6vw, 80px);
    background: linear-gradient(180deg, transparent, var(--night-950));
    pointer-events: none;
}
.closing .stars { opacity: 0.8; }

/* ------------------------------------------------------------------ footer */

.site-footer {
    padding: 64px 0 40px;
    background: var(--night-950);
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 14.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-grid h2 {
    margin-bottom: 14px;
    color: var(--ink);
    font: 600 13px/1 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { margin-top: 14px; max-width: 340px; }
.footer-legal {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ legal pages */

.legal-hero {
    padding: calc(var(--header) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 5vw, 56px);
    background:
        radial-gradient(90% 80% at 50% 120%, rgba(108, 88, 173, 0.45), transparent 70%),
        linear-gradient(180deg, var(--night-950), var(--night-850));
    border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font: 600 clamp(40px, 6vw, 64px)/1.05 var(--serif); letter-spacing: -0.02em; }
.legal-hero p { margin-top: 16px; color: var(--ink-2); max-width: 680px; font-size: 18px; }
.legal-hero .updated { color: var(--ink-3); font-size: 14px; }

.legal {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(32px, 6vw, 80px);
    padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 120px);
}
/* The table scrolls within its column on narrow screens rather than widening the page. */
.legal > * { min-width: 0; }
.legal-toc {
    position: sticky;
    top: calc(var(--header) + 24px);
    align-self: start;
    font-size: 14px;
}
.legal-toc h2 { margin-bottom: 12px; color: var(--ink-3); font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }

.prose { max-width: 740px; color: var(--ink-2); font-size: 17px; }
.prose h2 {
    margin: 52px 0 14px;
    color: var(--ink);
    font: 600 clamp(24px, 3vw, 30px)/1.2 var(--serif);
    scroll-margin-top: calc(var(--header) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; color: var(--ink); font: 600 19px/1.3 var(--serif); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-200); text-underline-offset: 3px; }
.summary-box {
    margin: 0 0 40px;
    padding: 24px 26px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 220, 166, 0.1), rgba(255, 220, 166, 0.04));
    border: 1px solid rgba(255, 220, 166, 0.25);
}
.summary-box h2 { margin: 0 0 12px; font-size: 22px; }
.summary-box ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--glass); }

/* ------------------------------------------------------------------ reveal */

.js [data-reveal] {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
    .details { grid-template-columns: 1fr 1fr; }
    .card-wide { grid-column: span 2; }
    .platforms { grid-template-columns: 1fr 1fr; }
    .platform, .platform.span-3 { grid-column: span 1; }
    .platform-devices { grid-column: span 2; }
    .feature--wide { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: span 2; }
    .privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-menu { display: block; }
    .site-header .btn-sm { display: none; }

    .trust-cards { grid-template-columns: 1fr; }
    .feature, .feature.flip { grid-template-columns: 1fr; text-align: left; }
    .feature.flip .feature-copy { order: 0; }
    .feature-media { margin-top: 8px; }

    .compare { grid-template-columns: 1fr; }
    .compare-arrow { justify-self: center; rotate: 90deg; }

    .sky-strip {
        grid-template-columns: repeat(5, 62%);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 var(--gutter) 46px;
        margin-inline: calc(-1 * var(--gutter));
        scrollbar-width: none;
    }
    .sky-strip::-webkit-scrollbar { display: none; }
    .sky-strip li { scroll-snap-align: center; }
    .sky-strip li:nth-child(even) { translate: 0 0; }

    .plans { grid-template-columns: 1fr; }
    .legal { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .prose table, .prose tbody, .prose tr, .prose td { display: block; }
    .prose thead { display: none; }
    .prose tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
    .prose td { border: 0; padding: 4px 0; }
    .prose td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin: 8px 0 2px;
        color: var(--ink-3);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    .details, .platforms, .promises { grid-template-columns: 1fr; }
    .card-wide, .platform-devices { grid-column: auto; }
    .family img { width: 170%; margin-left: -35%; }
    .hero-stage { height: clamp(520px, 150vw, 640px); }
    .phone--hero { --w: min(64vw, 280px); }
    .lighthouse { left: -6%; height: min(78vw, 360px); bottom: 70px; }
    .map-stage .phone { right: -2%; }
    .widget { width: 140px; padding: 12px; border-radius: 22px; }
    .widget .w-temp { font-size: 28px; }
    .widget .w-lines { font-size: 11px; }
    .widget .w-next { font-size: 11.5px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: auto; }
    .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .beam { rotate: -16deg; }
    .js [data-reveal] { opacity: 1; translate: 0 0; }
}
