/* DorpDash public website. Self-hosted fonts, no external resources. Tokens: see branding/README.md. */
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-variable.woff2") format("woff2"); }

:root {
    color-scheme: light dark;
    --amber: #F59E0B;
    --charcoal: #1F2937;
    --cream: #FFF4DC;
    --link: #B45309;
    --muted: #5B6472;
    --bg: #FFFFFF;
    --bg-alt: #FFF4DC;
    --card: #FFFFFF;
    --text: #1F2937;
    --border: #E5DCC8;
    --focus: #1F2937;
    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1F2937;
        --bg-alt: #19212D;
        --card: #263244;
        --text: #FFF4DC;
        --muted: #C3CAD4;
        --link: #F59E0B;
        --border: #3A485D;
        --focus: #FFF4DC;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.5em; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--charcoal); color: var(--cream); padding: .6rem 1rem; z-index: 10; border-radius: .4rem; }
.skip-link:focus { top: .5rem; }

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 44rem; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-block; line-height: 0; }
.brand img { height: 2.5rem; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: .4rem 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }

main { display: block; padding-bottom: 3rem; }
.hero { background: var(--bg-alt); padding: 3rem 0 2.5rem; }
.hero p.lead { font-size: 1.2rem; max-width: 38rem; }
.page-head { background: var(--bg-alt); padding: 2.25rem 0 1.75rem; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { margin: 0; max-width: 40rem; }
.section { padding-top: 1rem; }

.button { display: inline-block; background: var(--amber); color: #1F2937; font-weight: 600; text-decoration: none; padding: .8rem 1.4rem; border-radius: .6rem; border: 0; font: 600 1rem/1.2 var(--font-body); cursor: pointer; }
.button:hover { filter: brightness(1.06); }
.button:focus-visible { outline-color: var(--focus); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: .9rem; padding: 1.2rem 1.25rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--amber); color: #1F2937; font: 700 1.05rem/1 var(--font-head); margin-bottom: .6rem; }
.steps h3 { margin: 0 0 .3em; }
.steps p { margin: 0; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: .9rem; padding: 1.2rem 1.25rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.stores { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.store-btn { display: inline-block; padding: .6rem 1rem; border-radius: .6rem; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid var(--text); color: var(--text); background: var(--bg); }
a.store-btn:hover { background: var(--text); color: var(--bg); }
.store-btn.is-soon { border-style: dashed; border-color: var(--muted); color: var(--muted); }

.notice { border: 2px solid var(--amber); background: var(--bg-alt); border-radius: .7rem; padding: .9rem 1.1rem; margin: 0 0 1.5rem; font-weight: 600; }
.alert { border: 2px solid #B91C1C; background: var(--bg-alt); border-radius: .7rem; padding: .9rem 1.1rem; margin: 0 0 1.25rem; }
.legal h2 { margin-top: 1.8em; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; margin-bottom: 1.2rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 600; }

details { border: 1px solid var(--border); border-radius: .7rem; padding: .2rem 1rem; margin-bottom: .7rem; background: var(--card); }
summary { cursor: pointer; font-weight: 600; padding: .7rem 0; }
details[open] summary { margin-bottom: .2rem; }

form.stack { display: grid; gap: 1rem; max-width: 26rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type="email"], input[type="password"], input[type="text"], textarea, select { width: 100%; font: 400 1rem/1.4 var(--font-body); padding: .7rem .8rem; border-radius: .5rem; border: 2px solid var(--muted); background: var(--bg); color: var(--text); }
.field-error { color: #B91C1C; margin: .3rem 0 0; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .field-error { color: #FCA5A5; } .alert { border-color: #FCA5A5; } }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 1.75rem 0 2.25rem; font-size: .95rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.site-footer p { margin: 0; color: var(--muted); }
/* The badge sits in its own full-width row, centred at every width. It carries its own backdrop. */
.phoenix-badge { display: flex; justify-content: center; width: 100%; margin-top: 1.25rem; }
.phoenix-badge a { display: inline-block; line-height: 0; }
.phoenix-badge img { display: block; width: 260px; max-width: 100%; height: auto; min-width: 200px; }

/* Support form and private conversation page */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
textarea { resize: vertical; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.choices legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.choice { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; border: 2px solid var(--border); border-radius: .7rem; padding: .7rem .9rem; background: var(--card); cursor: pointer; font-weight: 400; margin: 0; }
.choice input { grid-row: 1 / span 2; align-self: center; width: 1.2rem; height: 1.2rem; }
.choice:has(input:checked) { border-color: var(--amber); }
.choice:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice-title { font-weight: 700; }
.choice-hint { color: var(--muted); font-size: .95rem; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.push-box { margin: 0 0 1.5rem; }
.push-box[hidden], .logs-option[hidden] { display: none; }
.thread { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .8rem; max-width: 42rem; }
.thread-message { border: 1px solid var(--border); border-radius: .7rem; padding: .8rem 1rem; background: var(--card); }
.thread-mine { border-color: var(--amber); }
.thread-meta { margin: 0 0 .3rem; color: var(--muted); font-size: .95rem; }
.thread-body { margin: 0; white-space: pre-wrap; }

@media (max-width: 30rem) {
    body { font-size: 1rem; }
    .hero { padding: 2rem 0 1.75rem; }
    .brand img { height: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
