/* emojily.app — the app's design language on the web.
 *
 * The tokens are the app's own: AppTheme.swift for the ground, surfaces, text
 * and accent, QuadrantStyle.swift for the four mood colours. The look follows
 * the app too — glass cards on a dotted gradient, the mood the loudest thing on
 * them, Avenir Next. Shared by the landing page and the legal pages.
 */

:root {
    color-scheme: light dark;

    --bg-1: #edf0f7;
    --bg-2: #e8ebf5;
    --bg-3: #e6e8f2;
    --dot: rgba(255, 255, 255, 0.42);

    --surface: rgba(255, 255, 255, 0.58);
    --surface-strong: rgba(255, 255, 255, 0.78);
    --stroke: rgba(255, 255, 255, 0.82);
    --hairline: rgba(33, 48, 79, 0.08);
    --shadow: rgba(33, 48, 79, 0.1);
    --shadow-strong: rgba(33, 48, 79, 0.22);

    --text: #21304f;
    --text-2: #4d5e7d;
    --muted: #526385;

    --accent: #1278f5;
    --accent-pressed: #085ccf;
    --accent-soft: #b3d1fa;
    --accent-ink: #0a4fae;
    --link: #0a5fd0;
    --float-bg: rgba(255, 255, 255, 0.9);

    --card-a: #ebf2fc;
    --card-b: #fff0e8;

    --excited: #fab833;
    --calm: #4db887;
    --sad: #666bf0;
    --stressed: #e65966;
    --excited-ink: #b86a06;
    --calm-ink: #2a7d5a;
    --sad-ink: #4a4dcc;
    --stressed-ink: #c23b4a;

    --nav-bg: rgba(237, 240, 247, 0.74);
    --bezel: #111318;
    --bezel-edge: #cfd3dd;

    --font: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --maxw: 1160px;
    --gutter: 20px;
    --radius-hero: 34px;
    --radius-card: 26px;
    --radius-tile: 18px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-1: #141721;
        --bg-2: #12141f;
        --bg-3: #0f121c;
        --dot: rgba(255, 255, 255, 0.05);

        --surface: rgba(255, 255, 255, 0.07);
        --surface-strong: rgba(255, 255, 255, 0.11);
        --stroke: rgba(255, 255, 255, 0.14);
        --hairline: rgba(255, 255, 255, 0.08);
        --shadow: rgba(0, 0, 0, 0.4);
        --shadow-strong: rgba(0, 0, 0, 0.55);

        --text: #edf0f7;
        --text-2: #b3bdd1;
        --muted: #8e9ab1;

        --accent-soft: #1a2e57;
        --accent-ink: #9cc5ff;
        --link: #7ab4ff;
        --float-bg: rgba(30, 34, 46, 0.92);

        --card-a: #1a2433;
        --card-b: #291f1a;

        --excited-ink: #fac555;
        --calm-ink: #6fd0a3;
        --sad-ink: #9a9dff;
        --stressed-ink: #f58792;

        --nav-bg: rgba(20, 23, 33, 0.74);
        --bezel-edge: #2c313c;
    }
}

/* ─── Base ──────────────────────────────────────────────────────────────── */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-1);
    -webkit-font-smoothing: antialiased;
    /* Mood light spills past the edges on purpose; clip it without making a scroller. */
    overflow-x: hidden;
    overflow-x: clip;
}

/* The app's ground: a diagonal gradient under a grid of small white dots. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle, var(--dot) 1px, transparent 1.6px) 0 0 / 24px 24px,
        linear-gradient(135deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
}

/* The page's sections let their mood light spill past their own boxes, and
   main keeps it inside the window: clipped sideways only, so it still fades
   out softly above and below. */
main {
    overflow-x: hidden;
    overflow-x: clip;
}

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

a {
    color: var(--link);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

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

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

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

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

/* ─── Type ──────────────────────────────────────────────────────────────── */

/* AppSectionTitle: uppercased, tracked out, muted, small. */
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.display {
    font-size: clamp(3rem, 1.7rem + 5.4vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
    line-height: 1.04;
}

.lead {
    font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
    line-height: 1.55;
    color: var(--text-2);
}

/* The release notes' version: heavy type in a gradient ink, the app speaking for itself. */
.gradient-ink {
    background: linear-gradient(100deg, var(--accent) 10%, var(--sad) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ─── Surfaces ──────────────────────────────────────────────────────────── */

/* AppSurfaceCard: a flat translucent surface, a hairline stroke, a small shadow. */
.card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-card);
    box-shadow: 0 3px 12px var(--shadow);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
}

/* The mood hero's richer fill: the card gradient, blue into peach. */
.card-hero {
    background: linear-gradient(135deg, var(--card-a), var(--card-b));
    border: 1px solid var(--stroke);
    border-radius: var(--radius-hero);
    box-shadow: 0 8px 32px var(--shadow);
}

/* A tile for something with a colour: the surface, a 14 % wash of the mood and a 55 % stroke of it. */
.tile {
    --mood: var(--accent);
    width: 56px;
    height: 56px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 30px;
    line-height: 1;
    border-radius: var(--radius-tile);
    background:
        linear-gradient(color-mix(in srgb, var(--mood) 14%, transparent), color-mix(in srgb, var(--mood) 14%, transparent)),
        var(--surface-strong);
    border: 1px solid color-mix(in srgb, var(--mood) 55%, transparent);
}

.mood-excited { --mood: var(--excited); }
.mood-calm { --mood: var(--calm); }
.mood-sad { --mood: var(--sad); }
.mood-stressed { --mood: var(--stressed); }

/* Chips for facts: accent ink on accentSoft. */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

/* PremiumBadge: the one PREMIUM capsule. */
.premium-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 32%, transparent);
}

.btn-primary:hover {
    background: var(--accent-pressed);
}

.btn-ghost {
    background: var(--surface-strong);
    color: var(--text);
    border: 1px solid var(--stroke);
    box-shadow: 0 3px 12px var(--shadow);
}

.btn-ghost:hover {
    transform: translateY(-1px);
}

.store-badge {
    display: inline-block;
    border-radius: 12px;
    line-height: 0;
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

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

/* ─── Navigation ────────────────────────────────────────────────────────── */

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

.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 2px 8px var(--shadow);
}

.nav-links {
    display: flex;
    gap: 26px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--text-2);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-inner .btn {
    min-height: 40px;
    padding: 0 18px;
    font-size: 15px;
}

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

    .nav-inner .btn {
        margin-left: auto;
    }
}

/* ─── Phone ─────────────────────────────────────────────────────────────── */

/* The app's own captures in a drawn frame: a dark bezel, the screen inset and rounded. */
.phone {
    --w: 300px;
    position: relative;
    width: var(--w);
    max-width: 100%;
    padding: calc(var(--w) * 0.035);
    border-radius: calc(var(--w) * 0.16);
    background: var(--bezel);
    box-shadow:
        0 0 0 1.5px var(--bezel-edge),
        0 40px 70px -24px var(--shadow-strong),
        0 14px 28px -12px var(--shadow);
}

.phone img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--w) * 0.125);
    background: var(--bg-2);
}

/* ─── Mood light ────────────────────────────────────────────────────────── */

/* MoodAurora: blurred blobs in mood colours, drifting slowly. Not clipped —
   a blur cut off at a box's edge shows the box. */
.aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.aurora span {
    position: absolute;
    width: var(--size, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--mood);
    filter: blur(80px);
    opacity: 0.38;
    animation: drift 26s ease-in-out infinite alternate;
}

@media (prefers-color-scheme: dark) {
    .aurora span {
        opacity: 0.22;
    }
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(var(--dx, 40px), var(--dy, -30px)) scale(1.08); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ─── Landing page ──────────────────────────────────────────────────────── */

.section {
    position: relative;
    padding-block: clamp(56px, 7vw, 100px);
}

.section-head {
    display: grid;
    gap: 16px;
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

/* Hero */

.hero {
    position: relative;
    padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
    isolation: isolate;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero-text {
    display: grid;
    gap: 24px;
    justify-items: start;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-facts li::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
        var(--calm);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
}

.hero-visual .phone {
    --w: min(330px, 74vw);
    transform: rotate(2deg);
}

.float {
    position: absolute;
    z-index: 2;
    animation: bob 6s ease-in-out infinite;
}

.float .tile {
    width: 68px;
    height: 68px;
    font-size: 36px;
    border-radius: 22px;
    box-shadow: 0 10px 24px var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.float-1 { top: 6%; left: 4%; animation-delay: -1s; }
.float-2 { top: 18%; right: 0; animation-delay: -3s; }
.float-3 { top: 46%; left: -3%; animation-delay: -4.5s; }
.float-4 { bottom: 20%; right: 2%; animation-delay: -2s; }

.float-card {
    background: var(--float-bg);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
}

.float-card .tile {
    width: 44px;
    height: 44px;
    font-size: 24px;
    border-radius: 14px;
    box-shadow: none;
}

.float-card small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.float-5 { bottom: 4%; left: -8%; animation-delay: -3.6s; }

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

    .hero-text {
        justify-items: center;
        text-align: center;
    }

    .hero-actions,
    .hero-facts {
        justify-content: center;
    }

    .hero-visual {
        min-height: 0;
        padding-block: 12px 24px;
    }
}

@media (max-width: 560px) {
    .float-1,
    .float-4 {
        display: none;
    }

    .float-2 { right: -2%; }
    .float-3 { left: -4%; }
    .float-5 { left: -4%; bottom: 2%; }

    .float .tile {
        width: 56px;
        height: 56px;
        font-size: 30px;
        border-radius: 18px;
    }
}

/* How it works */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 24px;
}

.step h3 {
    font-size: 22px;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-2);
}

.step-number {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
}

.step-visual {
    min-height: 168px;
    display: grid;
    place-items: center;
    padding: 16px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
    border: 1px solid var(--hairline);
}

.mini-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 260px;
}

.mini-picker span {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    font-size: 24px;
    border-radius: 14px;
    background:
        linear-gradient(color-mix(in srgb, var(--mood) 12%, transparent), color-mix(in srgb, var(--mood) 12%, transparent)),
        var(--surface-strong);
    border: 1px solid color-mix(in srgb, var(--mood) 34%, transparent);
}

.mini-picker .picked {
    outline: 2.5px solid var(--accent);
    outline-offset: 1px;
    transform: scale(1.06);
}

.mini-tags {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 260px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
}

.tag.on {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--accent-ink);
}

.mini-note {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    color: var(--text-2);
    font-size: 14px;
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 260px;
    text-align: center;
}

.mini-calendar b {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.mini-calendar span {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    font-size: 19px;
    border-radius: 10px;
}

.mini-calendar .today {
    background: var(--accent-soft);
}

.mini-calendar .empty {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    opacity: 0.6;
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
    }
}

/* Feature rows */

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}

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

.feature-copy {
    display: grid;
    gap: 20px;
    justify-items: start;
}

.feature-visual {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.checks {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.checks li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--text-2);
}

.checks li::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.4 3.4L17 9' fill='none' stroke='%231278f5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat,
        var(--accent-soft);
}

.checks strong {
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 900px) {
    .feature {
        grid-template-columns: 1fr;
    }

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

    .feature-copy {
        max-width: 620px;
    }
}

/* Recap */

.recap-visual .phone {
    --w: min(310px, 72vw);
    transform: rotate(-2deg);
}

.recap-visual .float-card {
    position: absolute;
    bottom: 12%;
    left: 2%;
    z-index: 2;
}

@media (max-width: 560px) {
    .recap-visual .float-card {
        left: -2%;
        bottom: 6%;
    }
}

/* Home Screen, with the medium Today widget as TodayMoodWidget draws it. */

.homescreen {
    position: relative;
    width: min(460px, 100%);
    padding: clamp(22px, 5vw, 36px);
    border-radius: 44px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.55), transparent 42%),
        linear-gradient(155deg, #aac4ff 0%, #d7c8ff 42%, #ffc9dc 78%, #ffe2c7 100%);
    box-shadow: 0 30px 60px -24px var(--shadow-strong);
    display: grid;
    gap: 18px;
}

.widget {
    --u: 1.18px;
    width: 100%;
    display: grid;
    gap: calc(11 * var(--u));
    padding: calc(14 * var(--u)) calc(16 * var(--u));
    border-radius: calc(24 * var(--u));
    background: #f5f7fa;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(33, 48, 79, 0.16);
    color: #29334a;
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    font-size: calc(22 * var(--u));
    font-weight: 700;
    letter-spacing: calc(1.3 * var(--u));
}

.widget-icon {
    width: calc(30 * var(--u));
    height: calc(30 * var(--u));
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #dbe3f2;
    color: #9eabc4;
}

.widget-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.widget-week div {
    display: grid;
    gap: calc(8 * var(--u));
    justify-items: center;
}

.widget-week .face {
    height: calc(34 * var(--u));
    display: grid;
    place-items: center;
    font-size: calc(28 * var(--u));
    line-height: 1;
}

.widget-week .open {
    width: calc(26 * var(--u));
    height: calc(26 * var(--u));
    border-radius: 50%;
    border: 1px solid #dee6f2;
    background: rgba(255, 255, 255, 0.5);
}

.widget-week small {
    font-size: calc(12 * var(--u));
    font-weight: 700;
    letter-spacing: calc(0.6 * var(--u));
    color: #b3bfd4;
}

.widget-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(10 * var(--u));
}

.widget-buttons span {
    display: grid;
    place-items: center;
    min-height: calc(36 * var(--u));
    border-radius: 999px;
    font-size: calc(22 * var(--u));
    background: color-mix(in srgb, var(--mood) 18%, transparent);
}

.homescreen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    background: rgba(33, 48, 79, 0.28);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.control-glyph {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #21304f;
}

.siri-bubble {
    padding: 10px 16px;
    border-radius: 20px 20px 6px 20px;
    background: rgba(255, 255, 255, 0.86);
    color: #21304f;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(33, 48, 79, 0.12);
}

.visual-note {
    margin-top: 16px;
    max-width: 460px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    .homescreen {
        background:
            radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 42%),
            linear-gradient(155deg, #3a4a7a 0%, #4d3f7a 42%, #7a3f5c 78%, #7a5a42 100%);
    }

    .widget {
        background: #1a1c21;
        border-color: rgba(255, 255, 255, 0.12);
        color: #ebedf5;
    }

    .widget-icon {
        background: rgba(255, 255, 255, 0.06);
        border-color: #2e3342;
        color: #738099;
    }

    .widget-week .open {
        border-color: #2e3645;
        background: rgba(255, 255, 255, 0.04);
    }

    .widget-week small {
        color: #616b80;
    }
}

@media (max-width: 480px) {
    .widget {
        --u: 0.86px;
    }

    .homescreen-row {
        flex-direction: column;
        align-items: stretch;
    }

    .siri-bubble {
        align-self: flex-end;
    }
}

/* Calendar and search */

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

.pair-item {
    display: grid;
    justify-items: center;
    gap: 24px;
    text-align: center;
}

.pair-item .phone {
    --w: min(300px, 70vw);
}

.pair-item:nth-child(2) {
    margin-top: clamp(0px, 6vw, 72px);
}

.pair-item h3 {
    font-size: 24px;
}

.pair-item p {
    color: var(--text-2);
    max-width: 380px;
}

.pair-item .copy {
    display: grid;
    gap: 8px;
    justify-items: center;
}

@media (max-width: 760px) {
    .pair {
        grid-template-columns: 1fr;
    }

    .pair-item:nth-child(2) {
        margin-top: 0;
    }
}

/* Insights */

.fan {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-block: 8px 24px;
    isolation: isolate;
}

.fan .phone {
    --w: min(280px, 60vw);
}

.fan .phone.side {
    --w: min(250px, 50vw);
    margin-inline: calc(var(--w) * -0.22);
    opacity: 0.97;
}

.fan .phone.left { transform: rotate(-6deg) translateY(28px); z-index: 1; }
.fan .phone.center { z-index: 2; }
.fan .phone.right { transform: rotate(6deg) translateY(28px); z-index: 1; }

.insight-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: clamp(32px, 5vw, 56px);
}

.insight-points .card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 24px;
}

.insight-points h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.insight-points p {
    color: var(--text-2);
}

.fine-print {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 900px) {
    .insight-points {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 560px) {
    .fan .phone.side {
        display: none;
    }

    .fan .phone.center {
        --w: min(300px, 74vw);
    }
}

/* Privacy */

.privacy {
    padding: clamp(28px, 5vw, 64px);
}

.privacy-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.privacy-head .tile {
    width: 84px;
    height: 84px;
    font-size: 44px;
    border-radius: 26px;
}

.privacy-head .section-title {
    margin-bottom: 10px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.privacy-grid .card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
}

.privacy-grid .tile {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 14px;
}

.privacy-grid h3 {
    font-size: 17px;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.privacy-grid p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.5;
}

.privacy-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 900px) {
    .privacy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .privacy-head {
        grid-template-columns: 1fr;
    }
}

/* More */

.more-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.more-grid .card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 20px;
}

.more-grid .tile {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 15px;
}

.more-grid h3 {
    font-size: 18px;
    letter-spacing: 0;
}

.more-grid p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .more-grid {
        grid-template-columns: 1fr;
    }
}

/* Plans */

.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 960px;
    margin-inline: auto;
}

.plan {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: clamp(24px, 4vw, 36px);
}

.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan h3 {
    font-size: 26px;
}

.plan > p {
    color: var(--text-2);
}

.plan .checks li {
    color: var(--text);
}

.plan-foot {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .plans {
        grid-template-columns: 1fr;
    }
}

/* FAQ */

.faq {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin-inline: auto;
}

.faq details {
    padding: 0;
    border-radius: 22px;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    font-weight: 700;
}

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

.faq summary::after {
    content: "";
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 13.5l5 5 5-5' fill='none' stroke='%231278f5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px no-repeat,
        var(--accent-soft);
    transition: transform 0.25s ease;
}

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

.faq details > div {
    padding: 0 22px 22px;
    color: var(--text-2);
}

.faq details > div p + p {
    margin-top: 10px;
}

/* Closing call */

.cta {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.cta-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 14px 30px var(--shadow-strong);
}

.cta .lead {
    max-width: 560px;
}

/* Footer */

.site-footer {
    padding-block: 40px 56px;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 15px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-block;
    padding-block: 10px;
    color: var(--text-2);
    font-weight: 600;
    text-decoration: none;
}

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

/* Scroll reveal — only once the script has said it can run. */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

    .aurora span,
    .float {
        animation: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ─── Legal pages ───────────────────────────────────────────────────────── */

.page-shell {
    width: min(960px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding-block: 20px 64px;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.topbar .brand-copy {
    display: grid;
    line-height: 1.15;
}

.topbar .brand-copy strong {
    font-size: 20px;
    font-weight: 800;
}

.topbar .brand-copy span {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--stroke);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.page-shell .hero {
    padding: 0;
    margin-bottom: 20px;
}

.hero-card {
    display: grid;
    gap: 16px;
    padding: clamp(28px, 5vw, 48px);
    background: linear-gradient(135deg, var(--card-a), var(--card-b));
    border: 1px solid var(--stroke);
    border-radius: var(--radius-hero);
    box-shadow: 0 8px 32px var(--shadow);
}

.hero-card .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-card h1 {
    font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
    line-height: 1.04;
}

.hero-card .hero-copy {
    display: block;
    color: var(--text-2);
    font-size: 1.1rem;
    max-width: 680px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.highlight-chip {
    display: grid;
    gap: 2px;
    padding: 10px 16px;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--stroke);
}

.highlight-chip span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.highlight-chip strong {
    font-size: 15px;
    color: var(--text);
}

.policy-card {
    padding: clamp(24px, 5vw, 48px);
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-hero);
    box-shadow: 0 3px 12px var(--shadow);
}

.policy-grid {
    display: grid;
    gap: 32px;
}

.policy-section {
    display: grid;
    gap: 12px;
    color: var(--text-2);
}

.policy-section + .policy-section {
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}

.policy-section h2 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.policy-section ul,
.policy-section ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.3em;
}

.policy-section .subheading {
    color: var(--text);
    font-weight: 700;
}

.footer-note {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 15px;
}
