/* TripDays marketing site.
   The page borrows the app's own shapes: a day-timeline card in the hero,
   a boarding-pass stats strip, and features as stops along a dotted route.
   Palette derives from TripDaysTheme (#1E88A8 primary teal) plus the app's
   accent family (indigo, green, gold, sky, purple) used for plan kinds. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1E88A8;
    --primary-deep: #0A6682;
    /* Hover teal: darker than --primary so hovered links keep AA contrast */
    --link-hover: #17789A;
    --td-indigo: #5770B5;
    --td-green: #3B9B81;
    --td-gold: #D6A85C;
    --td-sky: #6FAFCF;
    --td-purple: #9A6FB0;
    --text: #17272C;
    --text-muted: #52646B;
    --text-light: #65757C;
    --bg: #F6FAFB;
    --surface: #FFFFFF;
    --surface-tint: #E8F0F2;
    --border: #DCE5E8;
    --border-soft: #E7EEF0;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 18px rgba(10, 102, 130, 0.06);
    --shadow-deep: 0 16px 40px rgba(10, 102, 130, 0.12);
    /* Plan-kind tints: light chip/tile backgrounds per accent */
    --tint-teal: #DFEEF3;
    --tint-indigo: #E4E9F6;
    --tint-green: #DFF1EB;
    --tint-gold: #F8EFDD;
    --tint-sky: #E4F1F8;
    --tint-purple: #F1E7F5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

/* Horizontal centering only: sections carry .container, and a margin
   shorthand here would zero out the vertical rhythm set on `section`. */
.container {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* Screen-reader-only text (e.g. the ticket section's heading) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

a {
    color: var(--primary-deep);
    text-decoration: none;
    transition: color 0.2s;
}

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

::selection {
    background: rgba(30, 136, 168, 0.18);
}

/* ---------------------------------------------------------------- Nav */

.site-nav {
    max-width: 1040px;
    margin: 0 auto;
    padding: 22px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.subpage-head {
    padding: 0 24px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.nav-brand:hover {
    color: var(--primary-deep);
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 8px rgba(10, 102, 130, 0.18);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-lang {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    transition: color 0.2s, border-color 0.2s;
}

.nav-lang:hover {
    color: var(--primary-deep);
    border-color: var(--primary);
}

/* ---------------------------------------------------------------- Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 0 24px 88px;
}

/* Faint dotted trail ending at a destination ring, echoing the app icon's
   switchback path; soft tint glows sit behind the day card. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 4px at 5% 90%, rgba(30, 136, 168, 0.22) 98%, transparent),
        radial-gradient(circle 4px at 11% 84%, rgba(30, 136, 168, 0.19) 98%, transparent),
        radial-gradient(circle 4px at 18% 79%, rgba(59, 155, 129, 0.18) 98%, transparent),
        radial-gradient(circle 4px at 26% 75%, rgba(87, 112, 181, 0.17) 98%, transparent),
        radial-gradient(circle 4px at 34% 72%, rgba(214, 168, 92, 0.18) 98%, transparent),
        radial-gradient(circle at 41% 70%, transparent 7px, rgba(30, 136, 168, 0.20) 8px, rgba(30, 136, 168, 0.20) 10px, transparent 11px),
        radial-gradient(circle 320px at 88% 10%, rgba(30, 136, 168, 0.07) 55%, transparent 100%),
        radial-gradient(circle 220px at 97% 85%, rgba(154, 111, 176, 0.06) 55%, transparent 100%);
}

.hero-inner {
    max-width: 1040px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    min-width: 0;
}

.hero h1 {
    font-family: 'Sora', -apple-system, sans-serif;
    font-weight: 600;
    font-size: clamp(2.25rem, 4.6vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

.hero h1 .accent {
    color: var(--primary-deep);
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 46ch;
    margin-bottom: 1.7rem;
    text-wrap: pretty;
}

/* CJK phrases (简体中文, 分摊…) wrap only at punctuation, never mid-word;
   no effect on Latin text. */
.hero h1,
.hero-meta,
.download-requirements,
.day-card-kicker {
    word-break: keep-all;
}

.hero-cta {
    margin-bottom: 1.1rem;
}

.hero-meta {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Coming-soon pill: stands in for App Store badges until release */
.coming-soon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary);
    color: var(--primary-deep);
    background: var(--surface);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.coming-soon-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--td-gold);
    flex-shrink: 0;
}

/* ------------------------------------------------- Hero day-card mock */

.hero-visual {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 400px;
}

.day-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    box-shadow: var(--shadow-deep);
    /* Stays app-like even when the mobile hero centers text */
    text-align: left;
}

.day-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.day-card-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-deep);
    margin-bottom: 2px;
}

.day-card-title {
    font-family: 'Sora', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.avatar-stack {
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    margin-left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
}

.avatar--a { background: var(--tint-teal); color: var(--primary-deep); }
.avatar--m { background: var(--tint-gold); color: #7A5A1E; }
.avatar--more { background: var(--surface-tint); color: var(--text-muted); }

/* Timeline rows: time column, kind dot on a dashed connector, then text */
.day-plans {
    list-style: none;
    position: relative;
}

.day-plans::before {
    content: "";
    position: absolute;
    left: 61px;
    top: 14px;
    bottom: 14px;
    border-left: 2px dashed var(--border);
}

.plan {
    display: grid;
    grid-template-columns: 44px 12px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 9px 0;
}

.plan-time {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.plan-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 3px var(--surface);
}

.plan-dot--sky { background: var(--td-sky); }
.plan-dot--lodging { background: var(--td-purple); }
.plan-dot--activity { background: var(--primary); }
.plan-dot--food { background: var(--td-gold); }

.plan-body {
    min-width: 0;
}

.plan-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.plan-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.35;
}

/* Nested sub-spot row: hollow dot, quieter text */
.plan--nested {
    padding: 2px 0 8px;
}

.plan--nested .plan-dot {
    width: 8px;
    height: 8px;
    margin-left: 2px;
    background: var(--surface);
    border: 2px solid var(--primary);
}

.plan--nested .plan-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Ideas shelf: dashed chips read as "not scheduled yet" */
.day-ideas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.ideas-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
}

.idea-chip {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 999px;
    padding: 4px 11px;
}

/* Floating expense chip, anchored near the dinner row */
.float-chip {
    position: absolute;
    right: -16px;
    bottom: 76px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-deep);
    animation: chip-float 5s ease-in-out infinite alternate;
}

.float-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--td-gold);
    flex-shrink: 0;
}

@keyframes chip-float {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* ---------------------------------------------------------------- Main */

main {
    padding-bottom: 72px;
}

section {
    margin-bottom: 96px;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-family: 'Sora', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.7rem;
    letter-spacing: -0.015em;
    color: var(--text);
    text-wrap: balance;
}

/* ------------------------------------------------ Ticket stats strip */

.ticket {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    box-shadow: var(--shadow-soft);
}

/* Punched notches, like a paper ticket */
.ticket::before,
.ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    transform: translateY(-50%);
}

.ticket::before { left: -12px; }
.ticket::after { right: -12px; }

.ticket-cell {
    text-align: center;
    padding: 2px 12px;
}

.ticket-cell + .ticket-cell {
    border-left: 2px dashed var(--border);
}

.ticket-cell .num {
    display: block;
    font-family: 'Sora', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--primary-deep);
    margin-bottom: 0.2rem;
}

.ticket-cell .label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ------------------------------------------------- Feature route stops */

.route h2 {
    text-align: center;
    margin-bottom: 2.25rem;
}

.stops {
    list-style: none;
    max-width: 660px;
    margin: 0 auto;
    position: relative;
}

.stops::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 22px;
    bottom: 22px;
    border-left: 2px dashed var(--border);
}

.stop {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    position: relative;
}

.stop-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg);
}

.stop-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.stop--teal .stop-marker { background: var(--tint-teal); }
.stop--teal .stop-dot { background: var(--primary); }
.stop--indigo .stop-marker { background: var(--tint-indigo); }
.stop--indigo .stop-dot { background: var(--td-indigo); }
.stop--green .stop-marker { background: var(--tint-green); }
.stop--green .stop-dot { background: var(--td-green); }
.stop--gold .stop-marker { background: var(--tint-gold); }
.stop--gold .stop-dot { background: var(--td-gold); }
.stop--sky .stop-marker { background: var(--tint-sky); }
.stop--sky .stop-dot { background: var(--td-sky); }
.stop--purple .stop-marker { background: var(--tint-purple); }
.stop--purple .stop-dot { background: var(--td-purple); }

.stop h3 {
    font-family: 'Sora', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.stop p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    text-wrap: pretty;
}

/* ------------------------------- Finale: privacy band + download card
   One card: the teal band on top, the download area below, the app
   icon straddling the seam. */

.finale {
    max-width: 860px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.finale-band {
    background: linear-gradient(135deg, #137EA0 0%, #0A5570 100%);
    color: #fff;
    padding: 48px 40px 58px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.finale-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 4px at 8% 82%, rgba(255, 255, 255, 0.16) 98%, transparent),
        radial-gradient(circle 4px at 16% 70%, rgba(255, 255, 255, 0.13) 98%, transparent),
        radial-gradient(circle 4px at 25% 60%, rgba(255, 255, 255, 0.11) 98%, transparent),
        radial-gradient(circle at 92% 24%, transparent 9px, rgba(255, 255, 255, 0.14) 10px, rgba(255, 255, 255, 0.14) 12px, transparent 13px),
        radial-gradient(circle 160px at 104% 110%, rgba(255, 255, 255, 0.08) 60%, transparent 100%);
}

.finale-band > * {
    position: relative;
    z-index: 1;
}

.finale-band h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.finale-band p {
    max-width: 620px;
    margin: 0 auto;
    color: #FFFFFF;
    font-size: 1.03rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.finale-download {
    padding: 0 36px 44px;
    text-align: center;
}

.finale-download .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin: -38px auto 1rem;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 5px var(--surface), var(--shadow-deep);
}

.finale-download h3 {
    font-family: 'Sora', -apple-system, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

/* ------------------------------------ Download card (404 error page) */

.download-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    max-width: 560px;
    margin: 0 auto;
}

.download-card .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: var(--shadow-deep);
}

.download-card h1,
.download-card h2,
.download-card h3 {
    font-family: 'Sora', -apple-system, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.download-card .subtitle,
.finale-download .subtitle {
    font-size: 0.975rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.download-requirements {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1.1rem;
}

.support-line {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--border-soft);
}

.support-line a {
    font-weight: 600;
}

/* App Store badges + screenshot gallery (unused until release) */
.hero-app-store-badge,
.app-badge-link {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.15s;
}

.hero-app-store-badge:hover,
.app-badge-link:hover {
    opacity: 0.85;
}

.hero-badge-img {
    height: 40px;
    width: auto;
    display: block;
}

.app-store-badges {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.app-badge {
    height: 48px;
    width: auto;
    display: block;
}

.hero-app-store-badge:focus-visible,
.app-badge-link:focus-visible {
    outline-offset: 4px;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 820px;
    margin: 0 auto;
}

.shot-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shot-item img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(10, 102, 130, 0.16));
}

.shot-caption {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ----------------------------------------------------------- Footer */

footer {
    padding: 36px 24px 44px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer p {
    margin: 0.25rem 0;
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--primary-deep);
}

/* ------------------------------------------- Privacy page content */

.privacy-content {
    max-width: 820px;
    margin: 40px auto 64px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.privacy-content h1 {
    font-family: 'Sora', -apple-system, sans-serif;
    color: var(--text);
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.privacy-content .last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.privacy-content h2 {
    color: var(--primary-deep);
    font-size: 1.45rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.privacy-content h3 {
    color: var(--text);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.privacy-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9625rem;
    line-height: 1.75;
}

.privacy-content ul,
.privacy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9625rem;
    line-height: 1.75;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content strong {
    color: var(--text);
}

.privacy-content .contact-info {
    background: var(--surface-tint);
    padding: 20px 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

.privacy-content .contact-info p {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-deep);
    font-weight: 700;
}

.back-link:hover {
    color: var(--link-hover);
}

.lang-switcher-inline {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* ------------------------------------------------- 404 / standalone */

.error-content {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.error-card {
    max-width: 520px;
    width: 100%;
}

.error-card .actions {
    margin-top: 1.5rem;
}

.error-card .actions a {
    display: inline-block;
    text-decoration: none;
}

/* ------------------------------------------------------ Theme toggle */

/* Hidden until js/theme.js marks it ready, so no-JS users never see a
   non-functional control. */
.theme-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    align-items: center;
    justify-content: center;
}

.theme-toggle.theme-toggle--ready {
    display: inline-flex;
}

.theme-toggle:hover {
    background: var(--surface-tint);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* ------------------------------------------------------- Responsive */

@media (max-width: 900px) {
    .hero {
        padding-bottom: 64px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-top: 44px;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        justify-self: center;
    }

    /* Centered narrow layouts: hang the chip off the card's bottom edge
       so it never covers a plan row. */
    .float-chip {
        right: 12px;
        bottom: -16px;
    }
}

@media (max-width: 760px) {
    section {
        margin-bottom: 68px;
    }

    h2 {
        font-size: 1.45rem;
    }

    .ticket {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 22px;
        padding: 24px 20px;
    }

    .ticket-cell:nth-child(3) {
        border-left: none;
    }

    .finale-band {
        padding: 40px 24px 54px;
    }

    .finale-download {
        padding: 0 24px 36px;
    }

    .download-card {
        padding: 36px 24px;
    }

    .privacy-content {
        padding: 28px 20px;
    }

    .privacy-content h1 {
        font-size: 1.85rem;
    }
}

@media (max-width: 460px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .day-card {
        padding: 18px 16px 14px;
    }

    .float-chip {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .stop {
        gap: 14px;
    }

    .screenshot-gallery {
        gap: 14px;
    }

    .shot-caption {
        font-size: 0.75rem;
    }
}

/* -------------------------------------------------------- Dark mode
   Applied via .theme-dark on <html> by js/theme.js. Two states only:
   light (default) and dark. Values track TripDaysTheme's dark palette
   (#1D1E1F background family). */

:root.theme-dark {
    --primary: #2FA0C0;
    --primary-deep: #64BFD8;
    --link-hover: #2FA0C0;
    --text: #F0F2F3;
    --text-muted: #B3BCBF;
    --text-light: #8E989B;
    --bg: #1D1E1F;
    --surface: #292B2B;
    --surface-tint: #333638;
    --border: #3B3D3D;
    --border-soft: #333535;
    --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.45);
    --shadow-deep: 0 16px 40px rgba(0, 0, 0, 0.55);
    --tint-teal: #16303A;
    --tint-indigo: #1F2537;
    --tint-green: #18302A;
    --tint-gold: #332B18;
    --tint-sky: #1B2C34;
    --tint-purple: #2B2233;
}

.theme-dark .hero::before {
    opacity: 0.55;
}

.theme-dark .coming-soon-pill {
    color: #8FD0E4;
}

.theme-dark .avatar--m {
    color: #E3C285;
}

.theme-dark .finale-band {
    background: linear-gradient(135deg, #0E607C 0%, #073A4C 100%);
}

.theme-dark .shot-item img {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

/* App icon artwork: swap to the dark variant (light ships in <img src>) */
.theme-dark .nav-icon,
.theme-dark .download-card .app-icon,
.theme-dark .finale-download .app-icon {
    content: url('../resources/app_icon_dark.png');
}

/* ---------------------------------------------------- Accessibility */

:focus-visible {
    outline: 2px solid var(--primary-deep);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible {
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------------ Print
   Mainly for the privacy policy; chrome and controls drop out. */
@media print {
    .nav-actions,
    .theme-toggle,
    .back-link,
    .lang-switcher-inline,
    footer {
        display: none;
    }

    body {
        background: #fff;
    }

    .privacy-content {
        max-width: none;
        margin: 0;
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
