/* ==========================================================================
   Family OS - public site
   The pages a visitor sees before they sign in. Deliberately a different
   language to the product: the app is quiet and content-led, this is
   confident and editorial.

   Structure follows the references: a bone page floating on a deep evergreen
   ground, one floating nav, extreme scale contrast, and depth from layering
   rather than from shadow.

   Radius rule, applied everywhere: page 1.75rem, panels 1.125rem,
   fields 0.75rem, anything interactive is a pill.
   ========================================================================== */

:root {
    /* Ground and surfaces */
    --pub-ground: #0c211a;
    --pub-surface: #f4f3ef;
    --pub-surface-2: #eceae2;
    --pub-surface-3: #e2dfd4;

    /* Ink */
    --pub-ink: #10201a;
    --pub-muted: #5c6b63;
    --pub-line: #dcd8cd;

    /* One accent, locked for the whole site: the product's evergreen. */
    --pub-accent: #125e4a;
    --pub-accent-hover: #0f5240;
    --pub-accent-press: #0b4132;
    --pub-on-accent: #ffffff;

    /* Ink used on the deep ground */
    --pub-ground-ink: #eef2ef;
    --pub-ground-muted: #9fb2a8;
    --pub-ground-line: rgb(255 255 255 / 14%);

    /* Used only on the deep ground, where the dark accent would vanish. */
    --pub-accent-on-ground: #6cc9a2;

    --pub-focus: #7fd7b4;

    /* Type */
    --pub-font: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
    --pub-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);
    --pub-display-sm: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
    --pub-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);

    /* Rhythm */
    --pub-gutter: clamp(1.25rem, 0.6rem + 2.4vw, 4rem);
    --pub-section: clamp(4.5rem, 2.5rem + 7vw, 9rem);
    --pub-measure: 78rem;

    --pub-r-page: 1.75rem;
    --pub-r-panel: 1.125rem;
    --pub-r-field: 0.75rem;

    --pub-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* The visitor's system preference decides. One theme for the whole page:
   the ground stays, the sheet darkens. Sections never invert against it. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --pub-surface: #101a16;
        --pub-surface-2: #16221d;
        --pub-surface-3: #1d2b25;
        --pub-ink: #eef2ef;
        --pub-muted: #9db0a6;
        --pub-line: #24332c;
        --pub-accent: #3fae87;
        --pub-accent-hover: #4fbd96;
        --pub-accent-press: #2f9773;
        --pub-on-accent: #06150f;
        --pub-ground: #060f0c;
    }
}

:root[data-theme="dark"] {
    --pub-surface: #101a16;
    --pub-surface-2: #16221d;
    --pub-surface-3: #1d2b25;
    --pub-ink: #eef2ef;
    --pub-muted: #9db0a6;
    --pub-line: #24332c;
    --pub-accent: #3fae87;
    --pub-accent-hover: #4fbd96;
    --pub-accent-press: #2f9773;
    --pub-on-accent: #06150f;
    --pub-ground: #060f0c;
}

/* -------------------------------------------------------------- shell -- */

.pub {
    min-height: 100dvh;
    padding: clamp(0.5rem, 0.2rem + 0.8vw, 1rem);
    background: var(--pub-ground);
    color: var(--pub-ink);
    font-family: var(--pub-font);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.pub *,
.pub *::before,
.pub *::after { box-sizing: border-box; }

/* The sheet: every public page is one rounded surface on the ground. */
.pub__sheet {
    overflow: clip;
    min-width: 0;
    border-radius: var(--pub-r-page);
    background: var(--pub-surface);
}

.pub h1, .pub h2, .pub h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.pub p { margin: 0; overflow-wrap: anywhere; }
.pub img { display: block; max-width: 100%; }

.pub :where(a, button, input, select, summary):focus-visible {
    outline: 0.1875rem solid var(--pub-focus);
    outline-offset: 0.2rem;
    border-radius: var(--pub-r-field);
}

.pub__skip {
    position: absolute;
    left: -9999px;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}
.pub__skip:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--pub-accent);
    color: var(--pub-on-accent);
    font-weight: 700;
}

/* ---------------------------------------------------------------- nav -- */

.pubnav {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--pub-gutter);
    min-height: 4.5rem;
    padding: 1rem var(--pub-gutter);
}

.pubnav__brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 2.75rem;
    gap: 0.625rem;
    color: inherit;
    text-decoration: none;
}

.pubnav__mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    background: linear-gradient(150deg, var(--pub-accent), #0a3f31);
    color: #fff;
}
.pubnav__mark svg { width: 1.25rem; height: 1.25rem; }

.pubnav__word {
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.pubnav__word b { font-weight: 800; }

/* Centre group. A single row at every desktop width. */
.pubnav__links {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.3125rem;
    border-radius: 999px;
}

.pubnav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.9375rem;
    border-radius: 999px;
    color: var(--pub-muted);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pubnav__links a[aria-current="page"] {
    background: var(--pub-surface-2);
    color: var(--pub-ink);
}

.pubnav__end {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
}

.pubnav__theme {
    flex: 0 0 auto;
}

.pubtheme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pubtheme label {
    display: block;
    color: var(--pub-muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.pubtheme select {
    width: auto;
    min-width: 6.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--pub-muted);
    border-radius: var(--pub-r-field);
    background-color: var(--pub-surface);
    color: var(--pub-ink);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
}

/* Mobile: the centre group becomes a scrollable strip under the brand row. */
.pubnav__toggle { display: none; }

@media (max-width: 60rem) {
    .pubnav {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .pubnav__links {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .pubnav__links::-webkit-scrollbar { display: none; }
    .pubnav__end { margin-left: auto; }
    .pubnav__theme {
        order: 4;
        width: 100%;
    }
    .pubtheme { justify-content: space-between; }
}

/* ------------------------------------------------------------ buttons -- */

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0 1.375rem;
    border: 0;
    border-radius: 999px;
    background: var(--pub-accent);
    color: var(--pub-on-accent);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.pub-btn--ghost {
    background: transparent;
    color: var(--pub-ink);
    box-shadow: inset 0 0 0 1px var(--pub-line);
}

.pub-btn--onground {
    background: var(--pub-surface);
    color: var(--pub-ink);
}

.pub-btn--lg { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; }

/* The arrow sits in its own chip, as in the references. */
.pub-btn__chip {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: -0.5rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 18%);
}
.pub-btn__chip svg { width: 0.8125rem; height: 0.8125rem; }
.pub-btn--ghost .pub-btn__chip,
.pub-btn--onground .pub-btn__chip { background: rgb(0 0 0 / 8%); }

@media (prefers-reduced-motion: no-preference) {
    .pub-btn { transition: background-color 0.18s var(--pub-ease), transform 0.18s var(--pub-ease); }
    .pub-btn:hover { background: var(--pub-accent-hover); }
    .pub-btn--ghost:hover { background: var(--pub-surface-2); }
    .pub-btn--onground:hover { background: #fff; }
    .pub-btn:active { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
    .pub-btn:hover { background: var(--pub-accent-hover); }
}

/* --------------------------------------------------------------- hero -- */

.pubhero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    padding: clamp(1rem, 0.4rem + 2vw, 3rem) var(--pub-gutter) clamp(3rem, 1.5rem + 5vw, 6rem);
}

.pubhero__copy { min-width: 0; display: grid; gap: 1.5rem; justify-items: start; }

.pubhero h1 {
    font-size: var(--pub-display);
    max-width: 19ch;
}

.pubhero__lead {
    max-width: 42ch;
    color: var(--pub-muted);
    font-size: var(--pub-lead);
    font-weight: 500;
}

.pubhero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Right side: the real product surface, layered. */
.pubhero__stage {
    position: relative;
    min-width: 0;
    isolation: isolate;
}

/* -------------------------------------------------- product preview -- */
/* A real, small rendering of the product's own surfaces. Not a picture of
   the app and not a drawing of one, so it cannot drift out of date. */

.pubapp {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    padding: 1.125rem;
    border: 1px solid var(--pub-line);
    border-radius: var(--pub-r-panel);
    background: var(--pub-surface);
    box-shadow: 0 30px 60px -30px rgb(9 32 24 / 45%);
}

.pubapp__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pub-line);
}
.pubapp__day { font-size: 0.9375rem; font-weight: 800; letter-spacing: -0.02em; }
.pubapp__count {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--pub-surface-2);
    color: var(--pub-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.pubapp__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--pub-surface-2);
}
.pubapp__row[data-hue="calendar"] { --row-hue: #3767d6; }
.pubapp__row[data-hue="meals"] { --row-hue: #12674a; }
.pubapp__row[data-hue="chores"] { --row-hue: #0d7a84; }
.pubapp__row[data-hue="tasks"] { --row-hue: #7040cc; }

.pubapp__tick {
    display: grid;
    place-items: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 999px;
    background: var(--row-hue, var(--pub-accent));
    color: #fff;
}
.pubapp__tick svg { width: 0.75rem; height: 0.75rem; }
.pubapp__row[data-state="open"] .pubapp__tick {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--pub-line);
}

.pubapp__body { min-width: 0; display: grid; gap: 1px; }
.pubapp__title { font-size: 0.875rem; font-weight: 700; }
.pubapp__meta { color: var(--pub-muted); font-size: 0.75rem; font-weight: 600; }
.pubapp__who {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--row-hue, var(--pub-accent));
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
}

/* The floating card that overlaps the preview, as the card does in ref 1. */
.pubhero__chip {
    position: absolute;
    z-index: 2;
    left: -1.25rem;
    bottom: -1.75rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--pub-r-panel);
    background: var(--pub-accent);
    color: var(--pub-on-accent);
    box-shadow: 0 24px 48px -24px rgb(9 32 24 / 60%);
}
.pubhero__chip b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pubhero__chip span { font-size: 0.75rem; font-weight: 700; opacity: 0.85; }

@media (max-width: 60rem) {
    .pubhero { grid-template-columns: minmax(0, 1fr); }
    .pubhero h1 { max-width: 18ch; }
    /* No room to float it over a narrow card without covering a row, so it
       takes its own place under the card instead. */
    .pubhero__chip { position: static; justify-self: start; margin-top: 0.75rem; }
}

/* ------------------------------------------------------------- bands -- */

.pubband {
    padding: var(--pub-section) var(--pub-gutter);
}

/* The first band on an inner page sits right under the nav. */
.pubband--open { padding-top: clamp(2rem, 1rem + 3vw, 4rem); }

.pubband--ground {
    background: var(--pub-ground);
    color: var(--pub-ground-ink);
}
.pubband--ground h2 { color: var(--pub-ground-ink); }
.pubband--tint { background: var(--pub-surface-2); }

.pubband__inner { max-width: var(--pub-measure); margin-inline: auto; }

.pubband__head { display: grid; gap: 1rem; max-width: 46ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.pubband__head h1, .pubband__head h2 { max-width: 26ch; font-size: var(--pub-display-sm); }
.pubband__head p { color: var(--pub-muted); font-size: var(--pub-lead); }
.pubband--ground .pubband__head p { color: var(--pub-ground-muted); }

.pubeyebrow {
    color: var(--pub-accent);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Statement band: one sentence, set large. Its own layout family. */
.pubstatement {
    max-width: 24ch;
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.pubstatement em {
    font-style: normal;
    color: var(--pub-accent);
}
.pubband--ground .pubstatement em,
.pubsignin__aside .pubstatement em { color: var(--pub-accent-on-ground); }

/* ------------------------------------------------------------- bento -- */
/* Exactly as many cells as there are areas. Two of them carry a visual so
   the grid is not a wall of text tiles. */

.pubbento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 0.875rem;
}

.pubcell {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    min-width: 0;
    padding: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
    border: 1px solid var(--pub-line);
    border-radius: var(--pub-r-panel);
    background: var(--pub-surface);
}
.pubcell h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.pubcell p { color: var(--pub-muted); font-size: 0.9375rem; }

.pubcell--wide { grid-column: span 3; }
.pubcell--third { grid-column: span 2; }

/* The two feature cells carry real colour, not another white card. Span is
   never set here: it belongs to --wide / --third so the two cannot conflict. */
.pubcell--feature {
    border-color: transparent;
    background: linear-gradient(150deg, var(--pub-accent), #0a3f31);
    color: #fff;
}
.pubcell--feature p { color: rgb(255 255 255 / 78%); }
.pubcell--feature { padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); }

.pubcell__glyph { color: var(--pub-accent); }
.pubcell__glyph svg { width: 1.5rem; height: 1.5rem; }
.pubcell--feature .pubcell__glyph { color: #fff; }

@media (max-width: 60rem) {
    .pubbento { grid-template-columns: minmax(0, 1fr); }
    .pubcell, .pubcell--wide, .pubcell--third, .pubcell--feature { grid-column: auto; }
}

/* ------------------------------------------------------------- steps -- */
/* Hairline connectors, taken from the right rail of the first reference. */

.pubsteps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--pub-ground-line);
}

.pubstep {
    display: grid;
    gap: 0.625rem;
    align-content: start;
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) clamp(1rem, 0.5rem + 1.5vw, 2rem);
    border-right: 1px solid var(--pub-ground-line);
}
.pubstep:last-child { border-right: 0; }
.pubstep h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }
.pubstep p { color: var(--pub-ground-muted); font-size: 0.9375rem; }

@media (max-width: 48rem) {
    .pubsteps { grid-template-columns: minmax(0, 1fr); }
    .pubstep { border-right: 0; border-bottom: 1px solid var(--pub-ground-line); }
    .pubstep:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------- quote -- */

.pubcentre {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}
.pubcentre h2 { font-size: var(--pub-display-sm); }
.pubcentre p { color: var(--pub-muted); font-size: var(--pub-lead); }
.pubband--ground .pubcentre p { color: var(--pub-ground-muted); }

.pubquote {
    display: grid;
    gap: 1.5rem;
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}
.pubquote blockquote {
    margin: 0;
    font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.pubquote figcaption { color: var(--pub-muted); font-size: 0.9375rem; font-weight: 600; }
.pubquote figcaption b { display: block; color: var(--pub-ink); font-weight: 800; }

/* ----------------------------------------------------------- pricing -- */

.pubplans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    align-items: start;
}

.pubplan {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
    border: 1px solid var(--pub-line);
    border-radius: var(--pub-r-panel);
    background: var(--pub-surface);
}

/* The recommended plan carries the accent, so the choice is legible at a
   glance without a badge shouting about it. */
.pubplan--lead {
    border-color: transparent;
    background: linear-gradient(160deg, var(--pub-accent), #0a3f31);
    color: #fff;
}
.pubplan--lead .pubplan__note,
.pubplan--lead .pubplan__list { color: rgb(255 255 255 / 80%); }
.pubplan--lead .pubplan__price small { color: rgb(255 255 255 / 70%); }

.pubplan__name { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.pubplan__price { display: flex; align-items: baseline; gap: 0.375rem; }
.pubplan__price b { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pubplan__price small { color: var(--pub-muted); font-size: 0.875rem; font-weight: 700; }
.pubplan__note { color: var(--pub-muted); font-size: 0.9375rem; }

.pubplan__list { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; color: var(--pub-muted); font-size: 0.9375rem; }
.pubplan__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem; align-items: start; }
.pubplan__list svg { width: 1rem; height: 1rem; margin-top: 0.2rem; color: var(--pub-accent); }
.pubplan--lead .pubplan__list svg { color: #fff; }

/* --------------------------------------------------------- downloads -- */

.pubdownloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

.pubget {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem 1rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--pub-line);
    border-radius: var(--pub-r-panel);
    background: var(--pub-surface);
    color: inherit;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}
.pubget__glyph {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: var(--pub-surface-2);
    color: var(--pub-ink);
}
.pubget__glyph svg { width: 1.375rem; height: 1.375rem; }
.pubget__name { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.pubget__meta { color: var(--pub-muted); font-size: 0.8125rem; font-weight: 600; }
.pubget--available { border-color: var(--pub-accent); text-decoration: none; }
.pubdownload-help { max-width: 60ch; margin-top: 1.5rem; color: var(--pub-muted); }
.pub .app-version { padding-inline: 0; color: var(--pub-muted); }

.pubget:disabled { cursor: default; }
.pubget:disabled .pubget__glyph { color: var(--pub-muted); }

@media (prefers-reduced-motion: no-preference) {
    .pubget { transition: border-color 0.18s var(--pub-ease), transform 0.18s var(--pub-ease); }
    .pubget:not(:disabled):hover { border-color: var(--pub-accent); transform: translateY(-2px); }
}

/* ------------------------------------------------------------ signin -- */

.pubsignin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: stretch;
    min-height: min(42rem, 78dvh);
}

.pubsignin__panel {
    display: grid;
    align-content: center;
    gap: 1.5rem;
    justify-items: start;
    padding: clamp(2rem, 1rem + 4vw, 4.5rem) var(--pub-gutter);
}
.pubsignin__panel h1 { font-size: var(--pub-display-sm); }
.pubsignin__panel > p { max-width: 40ch; color: var(--pub-muted); font-size: var(--pub-lead); }

/* Reassurance about where the password actually lives. Kept as a quiet
   note, not a warning: it is good news, not an alert. */
.pubnote {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.125rem;
    border-left: 3px solid var(--pub-accent);
    border-radius: 0 var(--pub-r-field) var(--pub-r-field) 0;
    background: var(--pub-surface-2);
}
.pubnote b { font-size: 0.9375rem; font-weight: 800; }
.pubnote p { color: var(--pub-muted); font-size: 0.875rem; }

.pubsignin__aside {
    display: grid;
    align-content: center;
    gap: 1.25rem;
    padding: clamp(2rem, 1rem + 4vw, 4.5rem) var(--pub-gutter);
    background: var(--pub-ground);
    color: var(--pub-ground-ink);
}
.pubsignin__aside .pubstatement { max-width: 18ch; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.25rem); }
.pubsignin__aside p { color: var(--pub-ground-muted); }

@media (max-width: 60rem) {
    .pubsignin { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}

/* ------------------------------------------------------------ footer -- */

.pubfoot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem var(--pub-gutter);
    padding: 2rem var(--pub-gutter);
    border-top: 1px solid var(--pub-line);
    color: var(--pub-muted);
    font-size: 0.875rem;
    font-weight: 600;
}
.pubfoot nav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-inline: -0.625rem; }
.pubfoot a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding-inline: 0.625rem; color: inherit; text-decoration: none; }
.pubfoot a:hover { color: var(--pub-ink); text-decoration: underline; }
.pubfoot__end { margin-left: auto; }

/* ------------------------------------------------------------ motion -- */
/* Entry only, and only where it builds hierarchy: the hero reads top down,
   and section content arrives as it is reached. Nothing loops. */

/* Transform only, never opacity. Content that is invisible until an animation
   finishes is a blank page anywhere the timeline does not run: an occluded tab,
   a screenshot, print. The movement is the enhancement; the text is not. */
@media (prefers-reduced-motion: no-preference) {
    .pub-rise {
        animation: pub-rise 0.7s var(--pub-ease) both;
    }
    .pub-rise:nth-child(2) { animation-delay: 0.06s; }
    .pub-rise:nth-child(3) { animation-delay: 0.12s; }
    .pub-rise:nth-child(4) { animation-delay: 0.18s; }

    @supports (animation-timeline: view()) {
        .pub-reveal {
            animation: pub-rise linear both;
            animation-timeline: view();
            animation-range: entry 5% cover 26%;
        }
    }
}

@keyframes pub-rise {
    from { transform: translateY(1.5rem); }
    to { transform: none; }
}

@media (forced-colors: active) {
    .pub-btn, .pubcell, .pubplan, .pubget, .pubapp, .pubnote { border: 1px solid CanvasText; }
}
