/* ZeitScore landing page - the logo's palette: ink, cream, race red and the cap's green. System fonts only (no
   external requests), the wordmark in a heavy italic like the logo. */

:root {
    --ink: #16161a;
    --ink-2: #222228;
    --ink-3: #2e2e36;
    --cream: #f7f4ea;
    --paper: #fffdf7;
    --line: #e4dfd0;
    --text: #1b1b1f;
    --muted: #5d5b55;
    --light: #c9c6bd;
    --red: #d0282d;
    --red-2: #b31f24;
    --green: #6cc04a;
    --flash: #fff1b8;
    --radius: 14px;
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Black", "Arial Black", "Segoe UI", system-ui, sans-serif;
    --mono: "Cascadia Mono", "SF Mono", Consolas, "Roboto Mono", monospace;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; text-decoration: none; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .brand:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: .5em 1.1em; font-size: .92rem; }

/* Header */
.top {
    position: sticky; top: 0; z-index: 10;
    background: rgba(22, 22, 26, .92); backdrop-filter: saturate(1.4) blur(10px);
    color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; }
.wordmark { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 1.5rem; letter-spacing: -.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--light); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: #fff; }

/* Hero */
.hero {
    color: #fff;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(208, 40, 45, .35), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(108, 192, 74, .18), transparent 60%),
        var(--ink);
    padding: 88px 0 96px;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kicker {
    display: inline-block; margin: 0 0 1em;
    font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.kicker.dark { color: var(--red); }
.hero h1 {
    font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.4rem);
    letter-spacing: -.035em; line-height: 1.02; margin-bottom: .45em;
}
.hero h1 em { font-style: italic; color: var(--red); }
.lead { font-size: 1.15rem; color: #dcd9d0; max-width: 34em; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-facts {
    list-style: none; padding: 0; margin: 40px 0 0;
    display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--light); font-size: .95rem;
}
.hero-facts b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; line-height: 1.2; }

/* The live board illustration */
.board {
    background: var(--paper); color: var(--text); border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
    overflow: hidden; transform: rotate(1.2deg);
}
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--ink-2); color: #fff; }
.board-title { font-weight: 700; font-size: .95rem; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(108, 192, 74, .7); animation: pulse 1.8s infinite; }
.board table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.board th { text-align: left; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #f1ede1; padding: 8px 12px; }
.board td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.board .r { text-align: right; }
.board .rk { font-weight: 800; width: 3em; }
.board .t { font-family: var(--mono); font-weight: 600; }
.board .g { font-family: var(--mono); color: var(--muted); }
.board tr.dim td { color: #9a968c; }
.board tr.flash td, .ph-row.flash { animation: flash 4s ease-in-out infinite; }
.board-foot { display: flex; justify-content: space-between; padding: 10px 18px; font-size: .78rem; color: var(--muted); background: #f1ede1; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 192, 74, .7); }
    70% { box-shadow: 0 0 0 8px rgba(108, 192, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 192, 74, 0); }
}
@keyframes flash {
    0%, 55%, 100% { background: transparent; }
    65%, 80% { background: var(--flash); }
}

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.sub { font-size: 1.1rem; color: var(--muted); }
.sub.light { color: #cfccc3; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(40, 32, 10, .1); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+1) .icon { background: var(--red); }
.card:nth-child(3n+2) .icon { background: var(--ink); }
.card:nth-child(3n) .icon { background: #3f8f2a; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.format { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.format:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.format:not(:nth-child(3n+1)) { padding-left: 28px; }
.format p { color: var(--muted); margin: 0; font-size: .98rem; }
.tag {
    display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--red); margin-bottom: 8px;
}

/* MyZeitScore */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; }
.checks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #cfccc3; }
.checks li b { color: #fff; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2316161a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.phone {
    justify-self: center; width: 300px; padding: 12px; border-radius: 40px; background: #0b0b0d;
    box-shadow: 0 0 0 2px #3a3a42, 0 40px 90px rgba(0, 0, 0, .55); transform: rotate(-2deg);
}
.phone-screen { border-radius: 30px; overflow: hidden; background: #f4f6fa; color: #121521; min-height: 540px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 18px 14px; background: #0f1424; color: #fff; }
.ph-brand { font-family: var(--font-display); font-style: italic; font-weight: 900; }
.ph-event { padding: 16px 18px; background: #1a2238; color: #fff; }
.ph-event b { display: block; font-size: 1.05rem; }
.ph-event span { font-size: .82rem; color: #a3aabd; }
.ph-search { margin: 14px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #dfe3ec; color: #8a90a2; font-size: .88rem; }
.ph-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #e3e7ef; background: #fff; }
.ph-row .rk { font-weight: 900; font-size: 1.05rem; }
.ph-row .nm { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.ph-row small { display: block; font-weight: 500; color: #8a90a2; font-size: .75rem; }
.ph-row .tm { font-family: var(--mono); font-weight: 700; font-size: .9rem; }
.ph-row.dim .nm, .ph-row.dim .tm { color: #8a90a2; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.num {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%;
    background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 1.2rem;
}
.steps li:last-child .num { background: var(--red); }

/* Contact */
.cta { padding: 0 0 96px; }
.cta-inner {
    display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
    background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: 48px;
    box-shadow: 10px 10px 0 var(--red);
}
.cta-inner img { width: 150px; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.cta .hero-actions { margin-top: 8px; }

/* Footer */
.foot { background: var(--ink); color: var(--light); font-size: .9rem; padding: 28px 0; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Narrower screens */
@media (max-width: 980px) {
    .hero-inner, .split { grid-template-columns: 1fr; gap: 48px; }
    .board { transform: none; }
    .cards, .formats, .steps { grid-template-columns: repeat(2, 1fr); }
    .format, .format:not(:nth-child(3n+1)) { padding: 24px 24px 24px 0; border-right: 0; }
    .format:nth-child(odd) { border-right: 1px solid var(--line); }
    .format:nth-child(even) { padding-left: 24px; }
    .nav { display: none; }
    .top-inner { justify-content: space-between; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .hero { padding: 56px 0 64px; }
    .section { padding: 64px 0; }
    .cards, .formats, .steps { grid-template-columns: 1fr; }
    .format, .format:nth-child(even) { padding: 22px 0; border-right: 0 !important; }
    .board td, .board th { padding: 8px; }
    .board .g { display: none; }
    .cta { padding-bottom: 64px; }
    .cta-inner { grid-template-columns: 1fr; padding: 28px; gap: 24px; box-shadow: 6px 6px 0 var(--red); }
    .cta-inner img { width: 110px; }
    .btn:not(.btn-sm) { white-space: normal; text-align: center; }
    .wordmark { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
