/* Hosted pages in the Lonely Lights look: the night sky, a violet mark, a gold light (lonelylights-app docs/brand).
   Ported from design/mockups/app/base.css (the reviewed design); the modal over the app arrives with the hosted sign-in pages.
   Same-origin only; no inline styles anywhere; the layout's one nonce'd <style> maps config/platform.php's two colors onto the tokens. */
@font-face { font-family: 'Roboto'; src: url('../fonts/roboto-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../fonts/roboto-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto Mono'; src: url('../fonts/roboto-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto Mono'; src: url('../fonts/roboto-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto Flex'; src: url('../fonts/roboto-flex-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 1000; font-stretch: 25% 151%; font-style: normal; font-display: swap; }

:root {
    --void: #04050c;
    --navy: #0b1024;
    --card: #0d1330;
    --line: #232a48;
    --edge: #5b6488;
    --star: #e8ecf5;
    --dust: #8e9bbb;
    --violet: #8f8cff;
    --gold: #ffd36a;
    --alert: #ffb4b4;
    --ring: #ffd36a;
    --font: 'Roboto', system-ui, sans-serif;
    --display: 'Roboto Flex', 'Roboto', system-ui, sans-serif;
    --mono: 'Roboto Mono', ui-monospace, monospace;
    --safe-top: 0px;
    --safe-bottom: 0px;
    --tap: 3rem;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--line) var(--void); }
body { margin: 0; min-height: 100dvh; background: var(--void); color: var(--star); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, ol { margin: 0; }
a { color: var(--violet); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---- The sky: still stars, and the glow of one light behind the brand ---- */
.sky {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(42rem 26rem at 12% -6%, rgba(143, 140, 255, .16), transparent 70%),
        radial-gradient(36rem 30rem at 100% 108%, rgba(11, 16, 36, .9), transparent 70%),
        var(--void);
}
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; }
.sky::before {
    background-image:
        radial-gradient(1px 1px at 23px 41px, rgba(232, 236, 245, .85) 50%, transparent 51%),
        radial-gradient(1px 1px at 131px 97px, rgba(232, 236, 245, .55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 187px 23px, rgba(143, 140, 255, .8) 50%, transparent 51%),
        radial-gradient(1px 1px at 71px 173px, rgba(232, 236, 245, .45) 50%, transparent 51%),
        radial-gradient(1px 1px at 211px 209px, rgba(232, 236, 245, .7) 50%, transparent 51%);
    background-size: 233px 233px, 307px 307px, 419px 419px, 263px 263px, 349px 349px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .2) 100%);
}
.sky::after {
    background-image:
        radial-gradient(1.5px 1.5px at 311px 127px, rgba(255, 211, 106, .7) 50%, transparent 51%),
        radial-gradient(1px 1px at 97px 263px, rgba(232, 236, 245, .5) 50%, transparent 51%);
    background-size: 563px 563px, 397px 397px;
    opacity: .8;
}

/* ---- Layout: one column on compact windows; the brand beside the card on wide ones ---- */
.shell {
    min-height: 100dvh; display: grid; align-content: safe center; justify-items: center; gap: 1.25rem;
    padding: calc(var(--safe-top) + 1.25rem) 1rem calc(var(--safe-bottom) + 1.5rem);
}
.brand, .page { width: 100%; max-width: 28rem; }
.page { display: grid; gap: 1.25rem; }
.shell[data-layout="wide"] .brand, .shell[data-layout="wide"] .page { max-width: 34rem; }

.brand { position: relative; display: flex; align-items: center; gap: .75rem; }
.brand img { width: 2rem; height: 2rem; flex: none; }
.brand-name { font: 300 1rem/1.2 var(--display); font-stretch: 125%; letter-spacing: .04em; }
.brand-line { display: none; }
/* The lonely light: the mark's gold center, glowing. */
.brand::before {
    content: ""; position: absolute; left: 1rem; top: 50%; width: 9rem; height: 9rem; translate: -50% -50%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 211, 106, .2), rgba(255, 211, 106, .05) 55%, transparent);
    animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .55; scale: .92; } to { opacity: 1; scale: 1.06; } }

.card {
    position: relative; display: grid; gap: 1.25rem; padding: 2rem;
    background: linear-gradient(180deg, #111840, var(--card) 9rem); border: 1px solid var(--line); border-radius: 1rem;
    box-shadow: 0 1px 0 rgba(232, 236, 245, .05) inset, 0 1.5rem 3.5rem rgba(0, 0, 0, .45);
}
.card > * { min-width: 0; }
h1 { font-family: var(--display), sans-serif; font-size: 1.5rem; font-weight: 300; font-stretch: 125%; line-height: 1.25; letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: 1rem; font-weight: 500; line-height: 1.4; }
p { text-wrap: pretty; overflow-wrap: anywhere; }
.quiet { color: var(--dust); font-size: .875rem; }
/* Centered everywhere: the question, then the small button that reveals the address. */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .625rem; text-align: center; }
button.badge-link { cursor: pointer; }
.mono { font-family: var(--mono), monospace; font-size: .8125rem; overflow-wrap: anywhere; }

@media (max-width: 24rem) { .card { padding: 1.5rem 1.25rem; } }
/* Phones hide the scrollbar, as phones do. */
@media (max-width: 37.5rem) { html { scrollbar-width: none; } }

@media (min-width: 56rem) {
    .shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); align-items: center; column-gap: clamp(3rem, 7vw, 7rem);
        max-width: 72rem; margin: 0 auto; padding: 3rem 3rem;
    }
    .shell[data-layout="wide"] { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }
    .brand { max-width: none; flex-direction: column; align-items: flex-start; gap: 1.75rem; justify-self: start; }
    .brand img { width: 5rem; height: 5rem; }
    .brand::before { left: 2.5rem; top: 2.5rem; width: 26rem; height: 26rem; }
    .brand-words { display: grid; gap: .875rem; }
    .brand-name { font-size: clamp(2rem, 3.4vw, 2.875rem); font-weight: 200; line-height: 1.1; letter-spacing: .02em; max-width: 9em; }
    .brand-line { display: block; color: var(--dust); font-size: 1.125rem; max-width: 22ch; }
    .footer { padding-left: 0; }
}

.icon-button {
    flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--dust);
    background: none; border: 1px solid transparent; border-radius: 50%; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.icon-button:hover { color: var(--star); background: rgba(232, 236, 245, .08); border-color: var(--line); }
.icon-button:focus-visible { outline-offset: -2px; }

/* Open pages (the front page, the error pages): no card, the words stand in the sky. */
.shell[data-layout="open"] .card { background: none; border: 0; box-shadow: none; padding: 1rem 0; gap: 1rem; }
.shell[data-layout="open"] h1 { font-size: clamp(1.875rem, 6vw, 2.5rem); font-weight: 200; }
.shell[data-layout="open"] .card > p { color: var(--dust); font-size: 1.125rem; max-width: 30ch; }
.shell[data-layout="open"] .brand-line { display: none; }
.error-code { font: 500 .8125rem/1 var(--mono); letter-spacing: .2em; color: var(--violet); }

/* ---- Forms ---- */
form { display: grid; gap: .9375rem; }
.field { display: grid; gap: .3125rem; align-content: start; }
/* Two short fields share a row where there is room, and stack where there is not. */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .9375rem .75rem; }
label { font-size: .875rem; font-weight: 500; }
input, select {
    width: 100%; min-height: 2.75rem; padding: .5rem .875rem; font: inherit; font-size: 1rem; color: var(--star);
    background: var(--void); border: 1px solid var(--edge); border-radius: .625rem;
}
input:hover, select:hover { border-color: var(--dust); }
input:focus-visible, select:focus-visible { outline-offset: 1px; border-color: var(--ring); }
input[aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert) inset; }
input[type="date"] { font-variant-numeric: tabular-nums; }
select {
    appearance: none; padding-right: 2.5rem;
    background: var(--void) url('../images/chevron-down.svg') no-repeat right 1rem center;
}
.code-input { font-family: var(--mono), monospace; font-size: 1.25rem; letter-spacing: .3em; text-align: center; padding-left: 1.175rem; }

/* A small link at a label's right: "Forgot your password?" beside Password. */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.badge-link {
    flex: none; padding: .25rem .625rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(232, 236, 245, .05);
    font: 500 .75rem/1.3 var(--font); color: #c5cde3; text-decoration: none; transition: color .15s, border-color .15s, background-color .15s;
}
.badge-link { display: inline-flex; align-items: center; gap: .375rem; }
.badge-link .icon { width: .875rem; height: .875rem; color: var(--dust); }
.badge-link:hover .icon { color: var(--violet); }
.badge-link:hover { color: var(--star); border-color: var(--violet); background: rgba(143, 140, 255, .14); }
/* The badge is small on purpose; its tap area is not. */
.badge-link { position: relative; }
.badge-link::after { content: ""; position: absolute; inset: -.625rem -.25rem; }

/* Two buttons side by side at every width: the main one takes the room, the other only what it needs. */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .625rem; }
.pair .button { padding-inline: 1.125rem; }


.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: var(--tap); padding: .75rem 1.5rem;
    font: 500 .75rem/1.3 var(--mono); letter-spacing: .15em; text-transform: uppercase; text-align: center; text-decoration: none;
    color: var(--void); background: var(--gold) linear-gradient(180deg, #ffe294, var(--gold) 70%); border: 1px solid var(--gold); border-radius: 999px; cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 .5rem 1.75rem rgba(255, 211, 106, .2);
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
/* The hover keeps a gradient over a solid color: swapping a gradient for a flat color can't be blended, and the button would flash see-through. */
.button:hover { background: #ffdf8f linear-gradient(180deg, #fff0bf, #ffdf8f 70%); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 .5rem 2.25rem rgba(255, 211, 106, .38); }
/* While hovered, the gold button's glow breathes, very gently. Only the gold one; never when disabled or busy. */
.button:not([class*="button-"]):hover:not(:disabled):not([aria-busy="true"]) { animation: glow 2.4s ease-in-out .15s infinite alternate; }
@keyframes glow {
    from { box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 .5rem 2.25rem rgba(255, 211, 106, .38); }
    to { box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 .5rem 2.75rem rgba(255, 211, 106, .52); }
}
.button .icon { width: 1.125rem; height: 1.125rem; }
/* The real alternative: tonal violet, as strong as a button can be without being the gold one. */
.button-second { color: var(--star); background: rgba(143, 140, 255, .14); border-color: rgba(143, 140, 255, .6); box-shadow: none; }
.button-second .icon { color: #b4b2ff; }
.button-second:hover { background: rgba(143, 140, 255, .24); border-color: #b4b2ff; box-shadow: 0 0 1.5rem rgba(143, 140, 255, .22); }
/* Help and escape routes: a quiet chip, in plain words, with its icon. */
.button-third {
    min-height: 2.75rem; gap: .5rem; padding: .5rem 1rem .5rem .75rem; font: 500 .875rem/1.3 var(--font); letter-spacing: 0; text-transform: none;
    color: #c5cde3; background: rgba(232, 236, 245, .05); border-color: var(--line); box-shadow: none;
}
.button-third .icon { color: var(--dust); }
.button-third:hover { color: var(--star); background: rgba(232, 236, 245, .1); border-color: var(--edge); box-shadow: none; }
.button-third:hover .icon { color: var(--violet); }
.button-danger { color: var(--void); background: var(--alert); border-color: var(--alert); }
.button-danger:hover { background: #ffc9c9; box-shadow: none; }
.button:disabled { opacity: .6; cursor: default; box-shadow: none; }
.button[aria-busy="true"]::before {
    content: ""; width: .875rem; height: .875rem; flex: none; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { rotate: 1turn; } }
/* A sign that stands alone above a screen's words is centered. */
.shell:not([data-layout="open"]) .card > .sign { justify-self: center; }
/* A sign centered above its words. */
.above { display: grid; justify-items: center; gap: .875rem; text-align: center; }
.above .sign { margin: 0; }
.above-words { display: grid; gap: .5rem; }
.actions { display: grid; gap: .75rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions-row .button { flex: 1 1 12rem; }

/* The narrowest phones: a long label still fits on one line. */
@media (max-width: 22.5rem) { .button:not(.button-third) { padding-inline: 1rem; letter-spacing: .08em; } }
/* Under the primary button: the alternatives side by side where they fit, then the quiet chips. */
.choices { display: grid; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.choices-row { display: flex; flex-wrap: wrap; gap: .625rem; }
.choices-row .button-second { flex: 1 1 13rem; }
.choices-quiet { gap: .5rem; }
/* A quiet button alone on its row spans the row; two share it. */
.choices-row .button-third { flex: 1 1 auto; justify-content: center; }
/* A chip that stands alone in a column (the way back to the account) keeps its own width. */
.card > .button-third, .maker .button-third { justify-self: start; }

/* ---- Notices and status ---- */
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Toasts: what just happened rises from the bottom, above everything, clear of the home bar. */
.toasts {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 1rem); display: grid; gap: .625rem; justify-items: center;
    padding: 0 1rem; pointer-events: none;
}
.toast {
    pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center;
    width: 100%; max-width: 26rem; padding: .625rem .5rem .625rem 1rem; border-radius: 1rem; font-size: .9375rem; line-height: 1.45;
    color: var(--star); background: #1a2044; border: 1px solid rgba(143, 140, 255, .55);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .55), 0 0 0 1px rgba(4, 5, 12, .6);
    animation: toast-in .32s cubic-bezier(.2, .8, .2, 1) both;
}
.toast > .icon { color: var(--violet); }
.toast.bad { background: #2a1620; border-color: rgba(255, 180, 180, .6); }
.toast.bad > .icon { color: var(--alert); }
.toast-close { width: 2.75rem; height: 2.75rem; color: var(--dust); }
.toast.leaving { animation: toast-out .22s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; translate: 0 150%; } }
@keyframes toast-out { to { opacity: 0; translate: 0 150%; } }

.sign { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1px solid var(--edge); color: var(--dust); background: var(--navy); }
.sign .icon { width: 1.625rem; height: 1.625rem; }
.sign-done { color: var(--void); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 .375rem rgba(255, 211, 106, .12), 0 0 2.5rem rgba(255, 211, 106, .35); }
.sign-done .icon { stroke-width: 2.2; }
.sign-frozen { color: var(--violet); border-color: var(--violet); box-shadow: 0 0 0 .375rem rgba(143, 140, 255, .1); }
.sign-waiting, .sign-mail, .sign-key, .sign-shield { color: var(--gold); border-color: rgba(255, 211, 106, .6); }
.sign-alert { color: var(--alert); border-color: rgba(255, 180, 180, .6); }

.wait { display: grid; gap: .5rem; }
.wait progress { appearance: none; width: 100%; height: .5rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--void); box-shadow: 0 0 0 1px var(--line); }
.wait progress::-webkit-progress-bar { background: var(--void); }
.wait progress::-webkit-progress-value { background: linear-gradient(90deg, var(--violet), var(--gold)); border-radius: 999px; }
.wait progress::-moz-progress-bar { background: linear-gradient(90deg, var(--violet), var(--gold)); }
.wait-ends { display: flex; justify-content: space-between; font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dust); }

.chip { display: inline-flex; align-items: center; padding: .25rem .625rem; border-radius: 999px; font: 500 .6875rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--dust); border: 1px solid var(--edge); }
.chip-on { color: var(--gold); border-color: rgba(255, 211, 106, .6); }
.chip-bad { color: var(--alert); border-color: rgba(255, 180, 180, .6); }
.chip-wait { color: var(--violet); border-color: rgba(143, 140, 255, .6); }

/* ---- The account ---- */
.who { display: grid; gap: .5rem; }
.rows { list-style: none; padding: 0; display: grid; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; background: rgba(4, 5, 12, .35); }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .875rem; min-height: 3.75rem; padding: .625rem 1rem; color: var(--star); text-decoration: none; }
.row:hover { background: rgba(143, 140, 255, .08); }
.row:focus-visible { outline-offset: -3px; border-radius: .75rem; }
.row > .icon { color: var(--violet); }
.row .chevron { width: 1.125rem; height: 1.125rem; color: var(--dust); }
.row-title { font-weight: 500; line-height: 1.3; }
@media (max-width: 24rem) {
    .row { grid-template-columns: auto 1fr auto; row-gap: .25rem; }
    .row .chip { grid-column: 2; grid-row: 2; justify-self: start; }
    .row .chevron { grid-row: 1 / span 2; grid-column: 3; }
}

.setup { display: grid; gap: 1.25rem; align-items: center; }
.qr { display: grid; place-items: center; width: 11rem; height: 11rem; padding: .75rem; border-radius: .75rem; background: #fff; justify-self: center; }
.qr-code { width: 100%; height: 100%; fill: #04050c; shape-rendering: crispEdges; }
.secret { padding: .875rem 1rem; border: 1px dashed var(--edge); border-radius: .625rem; background: var(--void); font-family: var(--mono), monospace; font-size: .9375rem; letter-spacing: .06em; text-align: center; word-spacing: .25em; }
@media (min-width: 34rem) { .setup { grid-template-columns: auto 1fr; } }

.codes { list-style: none; padding: 1rem 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem 1.5rem; border: 1px dashed var(--edge); border-radius: .75rem; background: var(--void); font-family: var(--mono), monospace; font-size: .9375rem; }
@media (max-width: 22rem) { .codes { grid-template-columns: 1fr; } }

.passkey-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.passkey-list li { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .625rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: rgba(4, 5, 12, .35); }
.passkey-list .icon { color: var(--violet); }
.passkey-list span:first-of-type { flex: 1; font-weight: 500; }
.panel { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid rgba(255, 180, 180, .35); border-radius: .75rem; background: rgba(255, 180, 180, .05); }

.timeline { list-style: none; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .25rem .875rem; padding: 0 0 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: .5625rem; top: 1.5rem; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .icon { color: var(--violet); margin-top: .1875rem; }
.timeline p { line-height: 1.45; }
.timeline time { grid-column: 2; color: var(--dust); font: 400 .75rem/1.4 var(--mono); }


/* A screen's title is centered on the card pages. */
.card > h1 { text-align: center; }
/* A card that only reports an outcome: its sign and words are centered. */
.shell:not([data-layout="open"]) .card > .sign { justify-self: center; }

/* The front page: the mark and the name centered at the top, one column at every width. */
.shell[data-layout="front"] { grid-template-columns: minmax(0, 1fr); max-width: none; align-content: start; padding-top: calc(var(--safe-top) + 3rem); }
.shell[data-layout="front"] .brand { display: none; }
.shell[data-layout="front"] .page { max-width: 60rem; justify-items: center; }
.shell[data-layout="front"] .card { background: none; border: 0; box-shadow: none; padding: 0; gap: 1rem; width: 100%; justify-items: center; text-align: center; }
.shell[data-layout="front"] .footer { text-align: center; padding-left: 0; }
.front-mark { width: 6rem; height: 6rem; filter: drop-shadow(0 0 2.5rem rgba(255, 211, 106, .28)); }
/* The mark drawn inline: its parts turn about the center, so it can open into an eye. */
.mark { display: block; overflow: visible; }
.mark-l { fill: var(--violet); }
.mark-light { fill: var(--gold); }
.mark-head, .mark-turn, .mark-light { transform-box: view-box; transform-origin: 128px 128px; }
.shell[data-layout="front"] h1 { font-size: clamp(2.25rem, 9vw, 3.75rem); font-weight: 200; letter-spacing: .04em; line-height: 1.1; }
.front-lede { font: 300 clamp(1.125rem, 4vw, 1.5rem)/1.35 var(--display); font-stretch: 112%; color: var(--star); }
.front-more { color: var(--dust); font-size: 1.0625rem; max-width: 44ch; }

.label { font: 500 .75rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dust); }
.homes { display: grid; gap: .875rem; justify-items: center; width: 100%; margin-top: 1.5rem; }
.home {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem; align-items: center; text-align: left;
    width: 100%; max-width: 34rem; padding: 1.25rem; border: 1px solid var(--edge); border-radius: 1.25rem;
    background: linear-gradient(160deg, rgba(52, 198, 244, .1), rgba(253, 186, 23, .06) 60%, transparent), var(--card);
    color: var(--star); text-decoration: none;
}
.home:hover { border-color: var(--violet); }
.home:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.home-mark { width: 3.5rem; height: 3.5rem; }
.home-words { display: grid; gap: .5rem; min-width: 0; }
.home-name { height: 1.25rem; width: auto; max-width: 100%; }
.home-line { color: var(--dust); font-size: .9375rem; }
.home-visit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--gold); font-weight: 500; }
.home-visit .icon { width: 1.25rem; height: 1.25rem; }
.homes-next { font-size: .875rem; }

/* Three short points, each with its own small sign: stacked on a phone, side by side on a wide window. */
.points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; width: 100%; text-align: left; }
.points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.points .sign { width: 2.5rem; height: 2.5rem; margin: 0; color: var(--violet); }
.points h2 { font: 500 1rem/1.3 var(--font); color: var(--star); margin: .125rem 0 .25rem; }
.points p { color: var(--dust); font-size: .9375rem; }
.maker { margin-top: 1rem; font-size: .875rem; }
@media (min-width: 52rem) {
    .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
    .points { align-items: start; }
    .points li { grid-template-columns: minmax(0, 1fr); gap: .75rem; align-content: start; }
}

/* Seen only by assistive tech. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The staging marker: said once, quietly, above the card on every page of a staging site. */
.staging-mark { justify-self: center; }

/* ---- Sign-up in steps: one short question at a time (public/js/signup-steps.js); together when scripts are off ---- */
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.step { display: grid; gap: .9375rem; }
.steps.js .step:not(.is-open) { display: none; }
.step-mark { padding: 0; margin-bottom: .25rem; font: 500 .6875rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dust); }
.label { font-size: .875rem; font-weight: 500; }
/* Month takes the room its names need; Day and Year share the rest. */
.dob { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: .625rem; }
.dob label { font-size: .75rem; font-weight: 400; color: var(--dust); }
.dob select { padding-right: 2rem; background-position: right .625rem center; }
.step-actions { display: grid; gap: .625rem; }
.step-actions .button-third { justify-self: start; }
/* What is wrong, in plain words, right under the field it is about. */
.field-error { color: var(--alert); font-size: .875rem; line-height: 1.4; }
/* The live answer while typing: whether a username or an email is already taken. */
.field-live { color: var(--dust); font-size: .875rem; line-height: 1.4; }
.field-live[data-state="taken"], .field-live[data-state="invalid"] { color: var(--alert); }
.field-live[data-state="available"] { color: var(--star); }
.checks { list-style: none; padding: 0; display: grid; gap: .375rem; font-size: .875rem; color: var(--dust); }
.checks li { display: flex; align-items: center; gap: .5rem; }
.checks li::before { content: ""; flex: none; width: .875rem; height: .875rem; border-radius: 50%; border: 1px solid var(--edge); }
.checks li[data-state="ok"] { color: var(--star); }
.checks li[data-state="ok"]::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 .1875rem rgba(255, 211, 106, .14); }
.checks li[data-state="no"] { color: var(--alert); }
.checks li[data-state="no"]::before { border-color: var(--alert); }

/* The account: the address and its chip share a line where they fit, and never run off a phone. */
.who-email { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; overflow-wrap: anywhere; }
.card > form > .button, .card > .button { justify-self: stretch; }

.sign-spin { border-color: var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
