:root {
    --orange: #e8573d;
    --bg: #f5f0e8;
    --paper: #fffdf9;
    --text: #1f2a44;
    --muted: #5c6475;
    --border: rgba(31, 42, 68, 0.08);
    --track: #1f2a44;     /* the route line, its stations and the logo */
    --station: #ffffff;   /* inside each station */
    --cta-bg: #1f2a44;
    --cta-text: #ffffff;
    --shadow: rgba(31, 42, 68, 0.22);
    --phone-edge: rgba(31, 42, 68, 0.2);

    /* The route: a line down the left, stations centred on it. */
    --gutter: 6rem;       /* content starts this far in */
    --rail: 2.5rem;       /* line centre, from the route's left edge */
    --line: 10px;
    --dot: 34px;
    --top: 4.5rem;        /* space above the first station */
    --gap: 5rem;          /* space between stations */
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1320;
        --paper: #182036;
        --text: #eef0f5;
        --muted: #a3abbd;
        --border: rgba(255, 255, 255, 0.08);
        --track: #d9dde6;
        --station: #0e1320;
        --cta-bg: #eef0f5;
        --cta-text: #1f2a44;
        --shadow: rgba(0, 0, 0, 0.5);
        --phone-edge: rgba(255, 255, 255, 0.14);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Logo: the icon's route, drawn so it follows the theme */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 2.5rem;
}

a.brand:hover {
    text-decoration: none;
}

.mark {
    width: 64px;
    height: auto;
    flex-shrink: 0;
}

.mark .track { stroke: var(--track); }
.mark .ring { fill: var(--track); }
.mark .hole { fill: var(--station); }
.mark .halo { fill: var(--orange); opacity: 0.3; }
.mark .pin-ring { fill: var(--station); }
.mark .pin { fill: var(--orange); }

/* Hero */

.hero {
    max-width: 1040px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 32ch;
    margin-bottom: 2rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.cta .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(232, 87, 61, 0.35);
}

/* Phone: a Lock Screen with a live countdown */

.phone {
    position: relative;
    width: 330px;
    aspect-ratio: 9 / 19.5;
    display: flex;
    flex-direction: column;
    border-radius: 54px;
    border: 11px solid #0a0d16;
    background: linear-gradient(180deg, #2a3557 0%, #1b2238 100%);
    color: #fff;
    text-align: center;
    padding: 2.2rem 0.9rem 0;
    box-shadow: 0 30px 70px var(--shadow), 0 0 0 1px var(--phone-edge);
}

.phone .island { width: 34%; height: 26px; background: #000; border-radius: 20px; margin: -1.3rem auto 1.2rem; }
.phone .date { font-weight: 600; opacity: 0.85; font-size: 0.95rem; }
.phone .time { font-size: 5rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.phone .controls { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 2.2rem; display: flex; justify-content: space-between; }
.phone .controls span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.phone .home { position: absolute; left: 35%; right: 35%; bottom: 0.6rem; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.8); }

/* Live Activities sit at the bottom of the Lock Screen, above the torch and camera. */
.activity {
    margin: auto 0 6.25rem;
    background: rgba(10, 13, 22, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 0.9rem 1rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.activity .top { display: flex; justify-content: space-between; gap: 0.75rem; font-weight: 700; font-size: 0.88rem; }
.activity .top span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity .top span:last-child { flex-shrink: 0; color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.activity .mid { display: flex; justify-content: space-between; align-items: end; margin-top: 0.35rem; }
.activity .count { font-size: 2.3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.activity small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.7rem; }
.activity .times { text-align: right; font-weight: 600; }
.activity .late { color: #ff8a6b; }
.activity .where { margin-top: 0.6rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 0.4rem; }
.activity .where::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fb950; }

/* The route */

.route {
    max-width: 1040px;
    margin: 0 auto;
    padding: var(--top) 1.5rem 1rem calc(var(--gutter) + 1.5rem);
}

.stop {
    position: relative;
    margin-bottom: var(--gap);
}

/* The line, drawn stop to stop so it starts under the hero and ends at the terminus. */
.stop::after {
    content: "";
    position: absolute;
    left: calc(var(--rail) - var(--gutter) - var(--line) / 2);
    top: 1rem;
    bottom: calc(-1 * var(--gap) - 1rem);
    width: var(--line);
    background: var(--track);
}

.stop:first-child::after {
    top: calc(-1 * var(--top));
    border-radius: 999px 999px 0 0;
}

.stop:last-child::after {
    display: none;
}

.stop::before {
    content: "";
    position: absolute;
    left: calc(var(--rail) - var(--gutter) - var(--dot) / 2);
    top: 0.1rem;
    width: var(--dot);
    height: var(--dot);
    border-radius: 50%;
    background: var(--station);
    border: 8px solid var(--track);
    z-index: 1;
}

.stop.here::before {
    background: var(--orange);
    border-color: var(--station);
    box-shadow: 0 0 0 7px rgba(232, 87, 61, 0.3);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    50% { box-shadow: 0 0 0 15px rgba(232, 87, 61, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .stop.here::before { animation: none; }
}

.stop.with-shot {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
}

.stop h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0.25rem 0 0.75rem;
}

.stop p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 42ch;
}

.shot {
    width: 270px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 24px 60px var(--shadow), 0 0 0 1px var(--border);
}

.card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.extras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.extras .card { padding: 1.25rem 1.4rem; }
.extras h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.extras p { font-size: 0.95rem; }

.faq {
    padding: 1.5rem 1.75rem;
    margin-top: 1.25rem;
    max-width: 680px;
}

.faq h3 { font-size: 1.02rem; margin-top: 1.1rem; }
.faq h3:first-child { margin-top: 0; }
.faq p { font-size: 0.97rem; max-width: none; }

/* Privacy policy */

.policy {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.policy h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 0.4rem;
}

.policy .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.policy h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin-top: 2rem; margin-bottom: 0.4rem; }
.policy p { color: var(--muted); }

/* Footer */

footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

footer p + p { margin-top: 0.3rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Phones */

@media (max-width: 760px) {
    :root { --gutter: 3.25rem; --rail: 1.1rem; --line: 8px; --dot: 28px; --top: 3rem; --gap: 3.5rem; }

    .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; }
    .brand { margin-bottom: 1.75rem; }
    .phone { width: min(330px, 88vw); margin: 0 auto; }
    .phone .time { font-size: 4.4rem; }
    .activity .top { font-size: 0.84rem; }

    .stop::before { border-width: 7px; }
    .stop.with-shot { grid-template-columns: 1fr; gap: 1.5rem; }
    .shot { width: min(230px, 100%); border-radius: 24px; }
    .extras { grid-template-columns: 1fr; }
    .faq { padding: 1.25rem; }
}
