/* Comdexvir: ivory on charcoal, with the champagne light of the ribbons; SlideDeck's teal on its own card. */
:root {
    --bg: #1c1c1c;
    --bg-raised: #242424;
    --ink: #f7f1e6;
    --muted: #b9b1a3;
    --line: rgba(247, 241, 230, .12);
    --gold: #d9c59c;
    --teal: #0f6d69;
    --teal-light: #16908a;
    --radius: 20px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 16px; }

/* The header sits over the top of the page. */
.top {
    position: absolute; inset: 0 0 auto; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px clamp(16px, 4vw, 44px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: .04em; }
.brand img { height: 30px; width: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; letter-spacing: .03em; }
.top nav a:hover { color: var(--ink); }

/* The top of the page: the logo over the ribbons, which drift slowly. */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    min-height: min(92vh, 780px); padding: 110px 16px 90px;
}
.hero::before {
    content: ""; position: absolute; inset: -4%; z-index: -2;
    background: url(/img/background.webp) center / cover no-repeat;
    animation: drift 40s ease-in-out infinite alternate;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(ellipse at 50% 42%, rgba(28, 28, 28, .1), rgba(28, 28, 28, .55) 70%), linear-gradient(to bottom, transparent 62%, var(--bg));
}
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1.2%); } }
.hero-logo { display: block; width: clamp(210px, 26vw, 300px); height: auto; filter: drop-shadow(0 0 28px rgba(217, 197, 156, .18)); animation: arrive 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.expand { margin: 26px 0 0; color: var(--gold); font-size: 13px; letter-spacing: .34em; text-transform: uppercase; animation: arrive 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
.lead { max-width: 34ch; margin: 12px 0 30px; color: var(--muted); font-size: clamp(18px, 2.1vw, 21px); animation: arrive 1.1s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hero .button { animation: arrive 1.1s .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(6px); } }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px; background: var(--ink); color: #1c1c1c;
    font-weight: 600; text-decoration: none; letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { color: #1c1c1c; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 32px); }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.section h2 { margin-bottom: 30px; font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.01em; }

/* An app */
.app {
    display: grid; grid-template-columns: 96px 1fr 272px; gap: 28px; align-items: start;
    padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(15, 109, 105, .22), rgba(255, 255, 255, .03) 45%), var(--bg-raised);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.app h3 { font-size: 28px; font-weight: 600; }
.app-tag { margin: 4px 0 14px; color: var(--gold); font-weight: 500; }
.app-body > p { margin: 0 0 16px; color: var(--muted); }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 24px; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.facts strong { color: var(--ink); font-weight: 600; }
.app-get { display: grid; justify-items: center; gap: 10px; padding-left: 28px; border-left: 1px solid var(--line); text-align: center; }
.download { width: 100%; background: var(--teal); color: #fff; padding: 15px 18px; white-space: nowrap; }
.download:hover { background: var(--teal-light); color: #fff; }
.file { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.more { font-size: 15px; }
.check { width: 100%; color: var(--muted); font-size: 13px; }
.check summary { cursor: pointer; }
.check p { margin: 8px 0 0; }
.check code { display: block; margin-top: 2px; font: 12px/1.4 Consolas, "Courier New", monospace; overflow-wrap: anywhere; color: var(--ink); }

/* Installing */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 22px 76px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raised); }
.steps li::before {
    content: counter(step); position: absolute; left: 22px; top: 22px;
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--gold); color: var(--gold); font-weight: 600;
}
.steps h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }
.steps b, .note b { color: var(--ink); font-weight: 600; }
.note { margin: 22px 0 0; padding: 16px 20px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(217, 197, 156, .07); color: var(--muted); }

/* Help */
.contact { margin: -12px 0 22px; color: var(--muted); font-size: 18px; }
.contact a { font-weight: 600; }
.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raised); }
.help h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.help p { margin: 0; color: var(--muted); }
.help b { color: var(--ink); font-weight: 600; }

.foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; padding: 30px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot img { height: 24px; width: auto; opacity: .8; }
.foot p { margin: 0; text-align: center; }

/* Phones and narrow windows */
@media (max-width: 820px) {
    .app { grid-template-columns: 72px 1fr; }
    .app-icon { width: 72px; height: 72px; border-radius: 18px; }
    .app-get { grid-column: 1 / -1; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .download { max-width: 360px; }
    .steps, .help { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .hero::before { background-image: url(/img/background-small.webp); }
    .brand span { display: none; }
    .app { grid-template-columns: 1fr; }
    .steps li { padding: 20px 18px 18px 64px; }
    .steps li::before { left: 16px; top: 18px; width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The page for a missing address */
.hero-short { min-height: 100vh; }
.hero-short .hero-logo { width: clamp(120px, 16vw, 170px); }
.missing { margin-top: 28px; font-size: clamp(26px, 4vw, 36px); font-weight: 600; animation: arrive 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
