/*
 * Maintenance Mike, the website.
 *
 * The colours, the two typefaces, the radii and the motion curves are the
 * app's own (app/src/theme/tokens.ts in the app repository), so the site and
 * the app read as one thing. Workwear navy does the work, hard-hat yellow is
 * the one warm note and is spent sparingly, and the only other colour on the
 * page is the crew.
 *
 * Order: tokens, base, shared pieces, then each section top to bottom, then
 * the phone and its screens, then motion.
 */

/* ---------------------------------------------------------------- fonts -- */

@font-face {
    font-family: "Barlow Semi Condensed";
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Semi Condensed";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2");
}

@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/hanken-grotesk-400.woff2") format("woff2");
}

@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/hanken-grotesk-600.woff2") format("woff2");
}

@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/hanken-grotesk-700.woff2") format("woff2");
}

/* --------------------------------------------------------------- tokens -- */

:root {
    --navy: #15254D;
    --navy-deep: #0C1733;
    --yellow: #F0B418;
    --yellow-wash: #FDF1CF;

    --ink: #0D1321;
    --ink-2: #535A68;
    --ink-3: #656C7B;
    --page: #FFFFFF;
    --ground: #F4F5F7;
    --inset: #EAECF0;
    --disc: #EEF0F4;
    --line: #E3E6EB;
    --line-strong: #CBD0D8;
    --wash: #E4E9F4;
    --success: #127A3E;
    --success-wash: #E7F5EC;

    /* Ink on navy. */
    --on-navy: #FFFFFF;
    --on-navy-2: #C3CCE3;
    --navy-line: rgba(255, 255, 255, 0.14);

    --display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --ease: cubic-bezier(0.2, 0, 0, 1);
    --ease-enter: cubic-bezier(0, 0, 0.2, 1);
    --ease-emph: cubic-bezier(0.05, 0.7, 0.1, 1);

    --shadow-sm: 0 1px 3px rgba(21, 37, 77, 0.08);
    --shadow-md: 0 4px 12px rgba(21, 37, 77, 0.10);
    --shadow-lg: 0 18px 48px rgba(21, 37, 77, 0.18);

    --gutter: 24px;
    --top: 72px;
}

/* ----------------------------------------------------------------- base -- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--top) + 8px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2.125rem, 4.4vw, 3.5rem);
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: min(100% - 2 * var(--gutter), 1180px);
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
}

/* -------------------------------------------------------- shared pieces -- */

/* The label over a section, with the roof from the mark in front of it. */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--navy);
    font-family: var(--display);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: var(--on-navy-2);
}

.roof {
    flex: none;
    width: 26px;
    fill: var(--yellow);
}

.section {
    padding-block: clamp(72px, 10vw, 128px);
}

.section__head {
    max-width: 680px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section__lead {
    max-width: 56ch;
    margin-top: 18px;
    color: var(--ink-2);
    font-size: 1.125rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.mark {
    flex: none;
    width: 34px;
    height: 34px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(240, 180, 24, 0.35);
}

.pill:active {
    transform: scale(0.98);
}

/* The store buttons. Not links until the listings exist. */
.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 8px 22px 8px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--on-navy);
    text-decoration: none;
}

.store .ic {
    width: 26px;
    height: 26px;
    color: var(--yellow);
}

.store__text {
    display: grid;
    line-height: 1.15;
}

.store__text small {
    color: var(--on-navy-2);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.store__text b {
    white-space: nowrap;
    font-family: var(--display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.store--live {
    border-color: var(--page);
    background: var(--page);
    color: var(--navy);
    transition: transform 160ms var(--ease);
}

.store--live .ic {
    color: var(--navy);
}

.store--live .store__text small {
    color: var(--ink-2);
}

.store--live:hover {
    transform: translateY(-2px);
}

/* ------------------------------------------------------------- top bar -- */

.top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--top);
    color: var(--on-navy);
    transition: background-color 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.top__in {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.top__nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 0.9375rem;
    font-weight: 600;
}

.top__nav a {
    padding-block: 8px;
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 160ms var(--ease);
}

.top__nav a:hover {
    opacity: 1;
}

/* Past the hero the bar turns into a page-coloured strip and the M goes navy. */
.top.is-stuck {
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
    box-shadow: 0 1px 0 var(--line);
    backdrop-filter: saturate(1.4) blur(10px);
}

.top.is-stuck .mark polygon:last-child {
    fill: var(--navy);
}

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 620px at 78% 62%, #1F3468 0%, rgba(31, 52, 104, 0) 62%),
        var(--navy);
    color: var(--on-navy);
}

.hero__in {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 32px;
    align-items: end;
    min-height: min(100svh, 880px);
    padding-top: calc(var(--top) + 32px);
}

.hero__copy {
    align-self: center;
    padding-block: 24px 88px;
}

/*
 * Sized so the longest line it ever shows, "Book an electrician", fits its
 * column without wrapping: that line is 7.47em wide. The headline changes
 * every few seconds, and a line that wraps for one trade and not the next
 * would shove the whole page down and up again.
 */
.hero__title {
    font-size: min(5rem, calc((100vw - 80px) * 0.069));
    line-height: 0.94;
    letter-spacing: -0.015em;
    text-wrap: nowrap;
}

.hero__title > span {
    display: block;
}

/* The trade in the headline. It changes, so it gets the one warm colour. */
.swap {
    display: inline-block;
    color: var(--yellow);
}

.swap__word {
    display: inline-block;
    transition: transform 320ms var(--ease-emph), opacity 200ms var(--ease);
}

.swap__word.is-leaving {
    opacity: 0;
    transform: translateY(-0.28em);
    transition: transform 180ms cubic-bezier(0.3, 0, 1, 1), opacity 160ms linear;
}

.swap__word.is-entering {
    opacity: 0;
    transform: translateY(0.36em);
    transition: none;
}

.hero__lead {
    max-width: 52ch;
    margin-top: 28px;
    color: var(--on-navy-2);
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.hero .stores {
    margin-top: 36px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--navy-line);
    color: var(--on-navy-2);
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__facts li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--yellow);
    transform: rotate(45deg);
}

/* The stage: the phone, with one of the crew standing beside it. */
.hero__stage {
    position: relative;
    align-self: end;
    height: clamp(420px, 46vw, 620px);
}

.hero__roof {
    position: absolute;
    left: 50%;
    top: -6%;
    width: 150%;
    max-width: none;
    transform: translateX(-50%);
    fill: rgba(255, 255, 255, 0.045);
}

.hero__crew {
    position: absolute;
    right: -11%;
    bottom: 0;
    z-index: 3;
    width: 74%;
    aspect-ratio: 1;
}

.hero__crew img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(7%);
    transition: opacity 260ms var(--ease), transform 420ms var(--ease-emph);
    filter: drop-shadow(0 18px 28px rgba(5, 10, 28, 0.45));
}

.hero__crew img.is-active {
    opacity: 1;
    transform: none;
}

/* The yellow rule the crew stands on. */
.hero__ground {
    position: absolute;
    inset: auto 0 0;
    z-index: 4;
    height: 8px;
    background: var(--yellow);
    transform-origin: left;
}

/* --------------------------------------------------------------- trades -- */

.trades__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 48px 28px;
}

.trade__disc {
    position: relative;
    display: block;
    width: min(100%, 168px);
    aspect-ratio: 1;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--disc);
    transition: background-color 240ms var(--ease);
}

/* He stands a little proud of the disc, head above the rim, as in the app. */
.trade__disc img {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 112%;
    max-width: none;
    transform: translateX(-50%);
    clip-path: inset(-20% 0 0 0 round 0 0 50% 50% / 0 0 44.6% 44.6%);
    transition: transform 320ms var(--ease-emph);
}

.trade:hover .trade__disc {
    background: var(--yellow-wash);
}

.trade:hover .trade__disc img {
    transform: translateX(-50%) translateY(-4px) scale(1.03);
}

.trade h3 {
    margin-bottom: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
}

.trade p {
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ---------------------------------------------------------------- story -- */

.story {
    background: var(--ground);
}

.story__grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: clamp(32px, 7vw, 112px);
    align-items: start;
}

.story__phone {
    position: sticky;
    top: max(calc(var(--top) + 24px), calc(50svh - 20em));
    display: flex;
    justify-content: center;
}

.step {
    position: relative;
    min-height: 52svh;
    padding-left: 92px;
    opacity: 0.34;
    transition: opacity 320ms var(--ease);
}

.step:last-child {
    min-height: 30svh;
}

.step.is-active {
    opacity: 1;
}

.step__num {
    position: absolute;
    left: 0;
    top: -0.12em;
    width: 64px;
    color: var(--line-strong);
    font-family: var(--display);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color 320ms var(--ease);
}

/* The roof settles over the number of the step being read. */
.step__num::before {
    content: "";
    position: absolute;
    left: -4px;
    top: -14px;
    width: 44px;
    height: 17px;
    background: var(--yellow);
    clip-path: polygon(50% 0, 100% 100%, 85.3% 100%, 50% 30.8%, 14.7% 100%, 0 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 240ms var(--ease), transform 320ms var(--ease-emph);
}

.step.is-active .step__num {
    color: var(--navy);
}

.step.is-active .step__num::before {
    opacity: 1;
    transform: none;
}

.step h3 {
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 3vw, 2.375rem);
}

.step p {
    max-width: 46ch;
    color: var(--ink-2);
    font-size: 1.125rem;
}

/* ---------------------------------------------------------------- rates -- */

.rates__in {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(40px, 7vw, 104px);
    align-items: center;
}

.ticks {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.ticks li {
    position: relative;
    padding-left: 34px;
    color: var(--ink-2);
}

.ticks li b {
    color: var(--ink);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.42em;
    width: 18px;
    height: 10px;
    border: solid var(--navy);
    border-width: 0 0 3px 3px;
    border-radius: 1px;
    transform: rotate(-45deg) scale(0.8);
    transform-origin: left bottom;
}

/* The two prices, set out like the slip a tradesman leaves on the counter. */
.slip {
    justify-self: center;
    width: min(100%, 420px);
    border-radius: 24px;
    background: var(--page);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-1.6deg);
}

.slip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 6px solid var(--yellow);
    background: var(--navy);
    color: var(--on-navy);
}

.slip__who {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.slip__tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.slip__rows {
    padding: 8px 28px;
}

.slip__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
}

.slip__row + .slip__row {
    border-top: 2px dashed var(--line-strong);
}

.slip__row dt {
    font-weight: 700;
}

.slip__row dt small {
    display: block;
    margin-top: 2px;
    color: var(--ink-3);
    font-size: 0.875rem;
    font-weight: 400;
}

.slip__row dd {
    color: var(--navy);
    font-family: var(--display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.slip__row dd small {
    display: block;
    margin-top: 4px;
    color: var(--ink-3);
    font-family: var(--body);
    font-size: 0.875rem;
    font-weight: 400;
}

.slip__foot {
    padding: 16px 28px;
    background: var(--ground);
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* ---------------------------------------------------------------- mikes -- */

.mikes {
    position: relative;
    background:
        radial-gradient(900px 560px at 84% 50%, #1F3468 0%, rgba(31, 52, 104, 0) 64%),
        var(--navy);
    color: var(--on-navy);
}

.mikes .section__lead {
    color: var(--on-navy-2);
}

.mikes__in {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.setup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    margin-top: 44px;
    border-top: 1px solid var(--navy-line);
}

.setup li {
    position: relative;
    padding: 26px 0 26px 52px;
    border-bottom: 1px solid var(--navy-line);
}

.setup__num {
    position: absolute;
    left: 0;
    top: 26px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
}

.setup h3 {
    margin-bottom: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
}

.setup p {
    color: var(--on-navy-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.mikes__extra {
    max-width: 56ch;
    margin-top: 28px;
    color: var(--on-navy-2);
}

.mikes__extra b {
    color: var(--on-navy);
}

.mikes__phone {
    display: flex;
    justify-content: center;
}

/* ------------------------------------------------------------------ faq -- */

.faq {
    background: var(--ground);
}

.faq__in {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.faq .section__head {
    position: sticky;
    top: calc(var(--top) + 32px);
    margin-bottom: 0;
}

.faq__list {
    border-top: 1px solid var(--line-strong);
}

.qa {
    border-bottom: 1px solid var(--line-strong);
}

.qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 24px;
    cursor: pointer;
    list-style: none;
}

.qa summary::-webkit-details-marker {
    display: none;
}

.qa h3 {
    font-size: clamp(1.3125rem, 2.2vw, 1.625rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
}

.qa__mark {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--page);
    box-shadow: var(--shadow-sm);
    transition: background-color 240ms var(--ease);
}

.qa__mark::before,
.qa__mark::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 17px;
    width: 14px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 240ms var(--ease);
}

.qa__mark::after {
    transform: rotate(90deg);
}

.qa[open] .qa__mark {
    background: var(--yellow);
}

.qa[open] .qa__mark::after {
    transform: rotate(0deg);
}

.qa > p {
    max-width: 62ch;
    padding-bottom: 28px;
    color: var(--ink-2);
}

/* ------------------------------------------------------------------ get -- */

.get {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--on-navy);
    text-align: center;
}

.get::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12%;
    width: min(1400px, 150vw);
    aspect-ratio: 68 / 26;
    background: rgba(255, 255, 255, 0.035);
    clip-path: polygon(50% 0, 100% 100%, 85.3% 100%, 50% 30.8%, 14.7% 100%, 0 100%);
    transform: translateX(-50%);
}

.get__in {
    position: relative;
    display: grid;
    justify-items: center;
}

.get .mark {
    width: 84px;
    height: 84px;
    margin-bottom: 20px;
}

.get .section__lead {
    color: var(--on-navy-2);
}

.get .stores {
    justify-content: center;
    margin-top: 36px;
    text-align: left;
}

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

.foot {
    padding-block: 40px 48px;
    border-top: 1px solid var(--navy-line);
    background: var(--navy-deep);
    color: var(--on-navy);
}

.foot__in {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px 40px;
    align-items: center;
}

.foot__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.foot__nav a {
    padding-block: 6px;
    color: var(--on-navy-2);
    text-decoration: none;
}

.foot__nav a:hover {
    color: var(--on-navy);
}

.foot__small {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--navy-line);
    color: #8E9AB8;
    font-size: 0.875rem;
}

/* ============================================================ the phone == */

/*
 * Everything inside is sized in em, so one font-size on .phone scales the
 * whole device. 16px is life size on a desktop.
 */
.phone {
    position: relative;
    flex: none;
    width: 19em;
    height: 40em;
    padding: 0.55em;
    border-radius: 3em;
    background: #0A0E1A;
    box-shadow:
        0 0 0 0.09em #2A3350 inset,
        0 2.2em 4.5em rgba(5, 10, 28, 0.38),
        0 0.6em 1.4em rgba(5, 10, 28, 0.28);
    font-size: 16px;
    font-family: var(--body);
    line-height: 1.35;
    color: var(--ink);
    user-select: none;
}

.phone__glass {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2.5em;
    background: var(--page);
    overflow: hidden;
    isolation: isolate;
}

.phone__island {
    position: absolute;
    left: 50%;
    top: 0.6em;
    z-index: 5;
    width: 5.4em;
    height: 1.5em;
    border-radius: 1em;
    background: #0A0E1A;
    transform: translateX(-50%);
}

.phone__screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(7%);
    transition: opacity 240ms var(--ease), transform 360ms var(--ease-emph), visibility 0s 360ms;
}

.phone__screen.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 240ms var(--ease), transform 360ms var(--ease-emph), visibility 0s;
}

.phone--hero {
    position: absolute;
    left: -3%;
    bottom: -5.5em;
    z-index: 2;
    font-size: clamp(11px, 1.22vw, 15.5px);
}

/* ---------------------------------------------------- screens: the frame -- */

.scr {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.scr p,
.scr span,
.scr div {
    margin: 0;
}

.scr b {
    font-weight: 700;
}

.scr .ic {
    flex: none;
    width: 1.25em;
    height: 1.25em;
}

.scr__status {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 2.9em;
    padding: 0.5em 1.6em 0;
    font-size: 0.78em;
    font-weight: 700;
}

.scr__status-right {
    display: flex;
    align-items: flex-end;
    gap: 0.16em;
}

.sig {
    width: 0.24em;
    border-radius: 0.1em;
    background: var(--ink);
}

.sig:nth-child(1) { height: 0.4em; }
.sig:nth-child(2) { height: 0.6em; }
.sig:nth-child(3) { height: 0.8em; }

.batt {
    width: 1.5em;
    height: 0.8em;
    margin-left: 0.3em;
    border-radius: 0.24em;
    background: var(--ink);
}

.scr__body {
    flex: 1;
    min-height: 0;
    padding: 0.5em 1.1em 0;
    overflow: hidden;
}

.scr__body--centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.6em;
    text-align: center;
}

.scr__label {
    color: var(--ink-3);
    font-size: 0.72em;
    font-weight: 600;
}

.scr__title {
    margin: 0.2em 0 0.55em !important;
    font-family: var(--display);
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.05;
}

.scr__heading {
    margin: 0.9em 0 0.6em !important;
    font-family: var(--display);
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.05;
}

.scr__hint {
    margin-bottom: 0.9em !important;
    color: var(--ink-2);
    font-size: 0.74em;
}

.scr__address {
    display: flex;
    align-items: center;
    gap: 0.3em;
    margin-top: 0.1em !important;
    font-family: var(--display);
    font-size: 1.2em;
    font-weight: 700;
}

.scr__address .ic:first-child {
    color: var(--navy);
}

.scr__search {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-top: 0.9em !important;
    padding: 0.85em 1em;
    border-radius: 0.92em;
    background: var(--inset);
    color: var(--ink-3);
    font-size: 0.8em;
}

.scr__cta {
    flex: none;
    padding: 0.7em 1.1em 1.5em;
    background: var(--page);
    box-shadow: 0 -1px 0 var(--line);
}

.scr__tabs {
    display: flex;
    flex: none;
    justify-content: space-around;
    padding: 0.55em 0.6em 1.25em;
    border-top: 1px solid var(--line);
    background: var(--page);
}

.scr__tab {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.15em;
    padding-top: 0.5em;
    color: var(--ink-3);
    font-size: 0.66em;
    font-weight: 600;
}

.scr__tab .ic {
    width: 1.9em;
    height: 1.9em;
}

.scr__tab.is-on {
    color: var(--navy);
}

.scr__tab.is-on::before {
    content: "";
    position: absolute;
    top: 0;
    width: 2em;
    height: 0.36em;
    border-radius: 1em;
    background: var(--yellow);
}

/* --------------------------------------------------- screens: the parts -- */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    height: 3.6em;
    border-radius: 1em;
    background: var(--navy);
    color: #fff;
    font-size: 0.86em;
    font-weight: 700;
}

.btn--ghost {
    background: var(--wash);
    color: var(--navy);
}

.disc {
    position: relative;
    display: block;
    flex: none;
    width: 3.9em;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--disc);
    overflow: hidden;
}

.disc img {
    position: absolute;
    left: 50%;
    top: 4%;
    width: 118%;
    max-width: none;
    transform: translateX(-50%);
}

.disc--sm {
    width: 2.9em;
}

.disc--lg {
    width: 6em;
    margin-bottom: 0.9em !important;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em 0.5em;
}

.tile {
    display: grid;
    justify-items: center;
    gap: 0.4em;
}

.tile .disc {
    width: 4.4em;
}

.tile__name {
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 0.8em !important;
    font-size: 0.72em;
}

.chip {
    padding: 0.5em 1em;
    border: 1px solid var(--line-strong);
    border-radius: 99em;
    font-weight: 600;
}

.chip.is-on {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.tag {
    margin-left: 0.5em !important;
    padding: 0.1em 0.5em;
    border-radius: 0.5em;
    background: var(--yellow);
    color: var(--navy);
    font-family: var(--body);
    font-size: 0.62em;
    font-weight: 700;
    vertical-align: 0.2em;
}

.star {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.15em;
    vertical-align: -0.12em;
    fill: var(--yellow);
}

.mike {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 0.6em !important;
    padding: 0.7em;
    border: 1.5px solid var(--line);
    border-radius: 1em;
    background: var(--page);
}

.mike.is-picked {
    border-color: var(--navy);
    background: #F6F8FC;
}

.mike__main {
    flex: 1;
    min-width: 0;
}

.mike__name {
    font-family: var(--display);
    font-size: 1.05em;
    font-weight: 700;
}

.mike__meta,
.mike__rate {
    color: var(--ink-2);
    font-size: 0.66em;
}

.mike__rate b,
.mike__meta b {
    color: var(--ink);
}

.mike__tick {
    display: grid;
    flex: none;
    place-items: center;
    width: 1.5em;
    height: 1.5em;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    color: transparent;
}

.mike__tick .ic {
    width: 0.95em;
    height: 0.95em;
    stroke-width: 3;
}

.mike.is-picked .mike__tick {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.field {
    margin: 0.4em 0 0.9em !important;
    padding: 0.85em 1em;
    border: 1.5px solid var(--navy);
    border-radius: 0.92em;
    font-size: 0.8em;
}

.field--tall {
    align-self: stretch;
    min-height: 6.4em;
    margin-top: 1.2em !important;
    border-color: var(--line-strong);
    color: var(--ink-2);
    text-align: left;
}

.caret {
    display: inline-block;
    width: 0.12em;
    height: 1.1em;
    margin-left: 0.15em;
    background: var(--navy);
    vertical-align: -0.2em;
}

.choice {
    display: flex;
    gap: 0.8em;
    margin-bottom: 0.6em !important;
    padding: 0.8em 0.9em;
    border: 1.5px solid var(--line);
    border-radius: 1.1em;
    color: var(--ink-2);
    font-size: 0.72em;
}

.choice b {
    color: var(--ink);
    font-size: 1.12em;
}

.choice__dot {
    flex: none;
    width: 1.4em;
    height: 1.4em;
    margin-top: 0.1em !important;
    border: 0.14em solid var(--line-strong);
    border-radius: 50%;
}

.choice.is-on {
    border-color: var(--navy);
    background: #F6F8FC;
}

.choice.is-on .choice__dot {
    border: 0.42em solid var(--navy);
}

.card {
    margin: 0.9em 0 !important;
    padding: 0.2em 0.9em;
    border-radius: 1em;
    background: var(--ground);
}

.card__title {
    padding: 0.7em 0 0.1em;
    font-family: var(--display);
    font-size: 1.05em;
    font-weight: 700;
}

.row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
    padding: 0.75em 0;
    font-size: 0.8em;
    font-variant-numeric: tabular-nums;
}

.row + .row {
    border-top: 1px solid var(--line);
}

.row--quiet {
    padding-top: 0;
    border-top: 0 !important;
    color: var(--ink-3);
    font-size: 0.68em;
}

.row--total b {
    font-family: var(--display);
    font-size: 1.7em;
    line-height: 1;
}

.note {
    display: flex;
    gap: 0.8em;
    margin-bottom: 1.1em !important;
    padding: 0.9em;
    border-radius: 1.1em;
    background: var(--yellow-wash);
    font-size: 0.7em;
    color: var(--ink-2);
}

.note b {
    color: var(--ink);
    font-size: 1.1em;
}

.note__icon {
    color: var(--navy);
}

.note__icon .ic {
    width: 1.6em;
    height: 1.6em;
}

.secure {
    display: flex;
    align-items: center;
    gap: 0.4em;
    color: var(--success);
    font-size: 0.7em;
    font-weight: 600;
}

/* The map behind the tracking sheet. */
.map {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.map svg {
    width: 100%;
    height: 100%;
}

.map__route {
    stroke-dasharray: 600;
    stroke-dashoffset: 0;
}

.map__mike {
    offset-path: path("M210 78 V170 H90 V330 H210 V428");
    offset-rotate: 0deg;
    offset-distance: 16%;
}

.sheet {
    margin-top: auto !important;
    padding: 0.6em 1.1em 1.6em;
    border-radius: 1.6em 1.6em 0 0;
    background: var(--page);
    box-shadow: 0 -0.5em 1.6em rgba(21, 37, 77, 0.14);
}

.sheet__grip {
    display: block;
    width: 2.6em;
    height: 0.3em;
    margin: 0 auto 0.9em;
    border-radius: 1em;
    background: var(--line-strong);
}

.sheet__row {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.sheet__row > div {
    flex: 1;
}

.sheet__title {
    font-family: var(--display);
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.1;
}

.sheet__meta {
    color: var(--ink-2);
    font-size: 0.7em;
}

.eta {
    display: grid;
    justify-items: center;
    padding: 0.4em 0.8em;
    border-radius: 0.9em;
    background: var(--wash);
    color: var(--navy);
    font-size: 0.66em;
    font-weight: 600;
    line-height: 1.1;
}

.eta__num {
    font-family: var(--display);
    font-size: 2.3em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.progress {
    height: 0.36em;
    margin-top: 1em !important;
    border-radius: 1em;
    background: var(--inset);
    overflow: hidden;
}

.progress i {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: 1em;
    background: var(--navy);
    transform-origin: left;
}

.stars {
    margin-top: 0.4em !important;
    font-size: 2.1em;
    line-height: 1;
}

.stars .star {
    margin: 0 0.04em;
}

/* The Mike's side: a job arriving. */
.job {
    margin-bottom: 1em !important;
    padding: 0.9em;
    border: 1.5px solid var(--navy);
    border-radius: 1.2em;
    background: var(--page);
    box-shadow: 0 0.5em 1.4em rgba(21, 37, 77, 0.12);
}

.job__flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.3em 0.8em 0.3em 0.6em;
    border-radius: 99em;
    background: var(--yellow);
    color: var(--navy);
    font-size: 0.68em;
    font-weight: 700;
}

.job__what {
    margin: 0.5em 0 0.2em !important;
    font-family: var(--display);
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.1;
}

.job__where {
    display: flex;
    align-items: center;
    gap: 0.3em;
    margin-bottom: 0.3em !important;
    color: var(--ink-2);
    font-size: 0.72em;
}

.job__actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0.5em;
    margin-top: 0.5em !important;
}

.job__accept {
    position: relative;
    overflow: hidden;
}

.job__accept-done {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    background: var(--success);
    opacity: 0;
}

.done {
    display: flex;
    align-items: center;
    gap: 0.9em;
    margin-top: 0.5em !important;
    padding: 0.8em 0.9em;
    border-radius: 1em;
    background: var(--ground);
    color: var(--ink-2);
    font-size: 0.72em;
}

.done b {
    color: var(--ink);
    font-size: 1.1em;
}

.done__tick {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: var(--success-wash);
    color: var(--success);
}

/* =============================================================== motion == */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
}

@keyframes stage-in {
    from {
        opacity: 0;
        transform: translateY(12%);
    }
}

@keyframes crew-in {
    from {
        opacity: 0;
        transform: translateX(14%);
    }
}

@keyframes ground-in {
    from {
        transform: scaleX(0);
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.72);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(1.2em);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes draw {
    from {
        stroke-dashoffset: 600;
    }
}

@keyframes drive {
    from {
        offset-distance: 0%;
    }
    to {
        offset-distance: 86%;
    }
}

@keyframes fill {
    from {
        transform: scaleX(0.1);
    }
}

@keyframes star-in {
    from {
        fill: var(--inset);
        transform: scale(0.6);
    }
    60% {
        transform: scale(1.25);
    }
}

@keyframes job-arrive {
    0%,
    4% {
        opacity: 0;
        transform: translateY(-1.4em) scale(0.96);
    }
    12%,
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes job-press {
    0%,
    44% {
        transform: none;
    }
    48% {
        transform: scale(0.95);
    }
    52%,
    100% {
        transform: none;
    }
}

@keyframes job-accepted {
    0%,
    50% {
        opacity: 0;
    }
    54%,
    94% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes ring {
    0%,
    100% {
        transform: rotate(0);
    }
    3%,
    9% {
        transform: rotate(-14deg);
    }
    6%,
    12% {
        transform: rotate(14deg);
    }
    15% {
        transform: rotate(0);
    }
}

.rise {
    animation: rise 720ms var(--ease-emph) both;
    animation-delay: calc(var(--d, 0) * 80ms + 120ms);
}

.phone--hero {
    animation: stage-in 900ms var(--ease-emph) 240ms both;
}

.hero__crew {
    animation: crew-in 900ms var(--ease-emph) 480ms both;
}

.hero__ground {
    animation: ground-in 900ms var(--ease) 200ms both;
}

.phone--hero .tile {
    animation: pop 420ms var(--ease-emph) both;
    animation-delay: calc(var(--i) * 70ms + 900ms);
}

/* Things arrive as they scroll into view. Only when the script is there to reveal them. */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms var(--ease), transform 700ms var(--ease-emph);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* The slip keeps its tilt once it has arrived. */
.js .slip.reveal {
    transform: translateY(22px) rotate(-4deg);
}

.js .slip.reveal.is-in {
    transform: rotate(-1.6deg);
}

/* Each screen plays its own small moment when it becomes the one on show. */
.phone--story .is-active .tile {
    animation: pop 380ms var(--ease-emph) both;
    animation-delay: calc(var(--i) * 50ms + 120ms);
}

.phone--story .is-active .mike {
    animation: slide-up 420ms var(--ease-emph) both;
}

.phone--story .is-active .mike:nth-of-type(2) { animation-delay: 80ms; }
.phone--story .is-active .mike:nth-of-type(3) { animation-delay: 160ms; }

.is-active .caret {
    animation: blink 1s steps(1) infinite;
}

.phone--story .is-active .choice,
.phone--story .is-active .card,
.phone--story .is-active .note {
    animation: slide-up 420ms var(--ease-emph) 100ms both;
}

.is-active .map__route {
    animation: draw 1400ms var(--ease) 200ms both;
}

.is-active .map__mike {
    animation: drive 9s linear 600ms both;
}

.is-active .progress i {
    animation: fill 9s linear 600ms both;
}

.is-active .stars .star {
    animation: star-in 420ms var(--ease-emph) both;
}

.is-active .stars .star:nth-child(1) { animation-delay: 300ms; }
.is-active .stars .star:nth-child(2) { animation-delay: 420ms; }
.is-active .stars .star:nth-child(3) { animation-delay: 540ms; }
.is-active .stars .star:nth-child(4) { animation-delay: 660ms; }
.is-active .stars .star:nth-child(5) { animation-delay: 780ms; }

/* The Mike's phone loops: a job arrives, he accepts, and it starts again. */
.is-playing .job {
    animation: job-arrive 7s var(--ease-emph) infinite;
}

.is-playing .job__flag .ic {
    animation: ring 7s var(--ease) infinite;
    transform-origin: 50% 10%;
}

.is-playing .job__accept {
    animation: job-press 7s var(--ease) infinite;
}

.is-playing .job__accept-done {
    animation: job-accepted 7s var(--ease) infinite;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .js .slip.reveal {
        transform: rotate(-1.6deg);
    }
}

/* ========================================================== smaller screens == */

@media (max-width: 1080px) {
    .top__nav {
        display: none;
    }

    .top .pill {
        margin-left: auto;
    }

    .trades__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    :root {
        --gutter: 20px;
        --top: 60px;
    }

    body {
        font-size: 1rem;
    }

    .hero__in {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        padding-top: calc(var(--top) + 28px);
    }

    .hero__copy {
        padding-block: 8px 0;
    }

    .hero__title {
        font-size: min(4.5rem, calc((100vw - 2 * var(--gutter)) * 0.128));
    }

    /* Three quarters of the phone shows; the rest is below the yellow rule. */
    .hero__stage {
        height: calc(31em + 12px);
        margin-top: 28px;
        font-size: min(3.3vw, 14px);
    }

    .phone--hero {
        left: 0;
        bottom: -9em;
        font-size: inherit;
    }

    .hero__crew {
        right: -20%;
        width: min(80%, 400px);
    }

    .trades__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 20px;
    }

    /*
     * On a phone the story keeps its own phone pinned under the top bar and
     * the steps pass beneath it, one at a time.
     */
    .story__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .story__phone {
        top: var(--top);
        z-index: 2;
        margin-inline: calc(-1 * var(--gutter));
        padding-block: 14px 18px;
        background: linear-gradient(var(--ground) 92%, rgba(244, 245, 247, 0));
    }

    .phone--story {
        font-size: min(13px, calc((58svh - 32px) / 40));
    }

    .step {
        min-height: 46svh;
        padding: 20px 0 0 64px;
    }

    .step:last-child {
        min-height: 36svh;
    }

    .step__num {
        top: 14px;
        width: 48px;
        font-size: 3.25rem;
    }

    .step__num::before {
        width: 34px;
        height: 13px;
        top: -10px;
    }

    .step p {
        font-size: 1rem;
    }

    .rates__in,
    .mikes__in,
    .faq__in {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq .section__head {
        position: static;
    }

    .phone--mike {
        font-size: 14px;
    }

    .foot__in {
        grid-template-columns: minmax(0, 1fr);
    }

    .foot__nav {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .wordmark {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }

    .mark {
        width: 30px;
        height: 30px;
    }

    .pill {
        min-height: 40px;
        padding: 0 16px;
    }

    .trades__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trade h3 {
        font-size: 1.3125rem;
    }

    .setup {
        grid-template-columns: minmax(0, 1fr);
    }

    .store {
        flex: 1 1 150px;
        gap: 9px;
        padding: 8px 12px;
    }

    .store .ic {
        width: 22px;
        height: 22px;
    }

    .store__text b {
        font-size: 1.1875rem;
    }

    .eyebrow {
        font-size: 0.8125rem;
    }

    .slip__row dd {
        font-size: 2.5rem;
    }
}

/* ============================================================ policy pages == */

/* The hidden attribute wins over any display a class sets. */
[hidden] {
    display: none !important;
}

.doc__head {
    position: relative;
    padding-block: calc(var(--top) + clamp(40px, 6vw, 72px)) clamp(40px, 6vw, 64px);
    border-bottom: 8px solid var(--yellow);
    background:
        radial-gradient(900px 480px at 86% 100%, #1F3468 0%, rgba(31, 52, 104, 0) 64%),
        var(--navy);
    color: var(--on-navy);
}

.doc__head h1 {
    font-size: clamp(2.5rem, 6.4vw, 4.5rem);
    line-height: 0.96;
}

.doc__lead {
    max-width: 58ch;
    margin-top: 20px;
    color: var(--on-navy-2);
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.doc__date {
    margin-top: 20px;
    color: var(--on-navy-2);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.doc__grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
    padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px);
}

.doc__toc {
    position: sticky;
    top: calc(var(--top) + 24px);
    max-height: calc(100svh - var(--top) - 48px);
    overflow-y: auto;
    font-size: 0.9375rem;
}

.doc__toc p {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doc__toc ol {
    border-left: 2px solid var(--line);
}

.doc__toc a {
    display: block;
    margin-left: -2px;
    padding: 6px 0 6px 16px;
    border-left: 2px solid transparent;
    color: var(--ink-2);
    line-height: 1.35;
    text-decoration: none;
}

.doc__toc a:hover {
    border-left-color: var(--yellow);
    color: var(--navy);
}

.doc__body {
    max-width: 74ch;
}

.doc__body section {
    scroll-margin-top: calc(var(--top) + 16px);
}

.doc__body section + section {
    margin-top: 56px;
}

.doc__body h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.doc__body h3 {
    margin-top: 30px;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
}

.doc__body p,
.doc__body ul,
.doc__body ol {
    margin-top: 14px;
    color: var(--ink-2);
}

.doc__body ul,
.doc__body ol {
    padding-left: 1.3em;
}

.doc__body ul {
    list-style: disc;
}

.doc__body ol {
    list-style: decimal;
}

.doc__body li + li {
    margin-top: 8px;
}

.doc__body li::marker {
    color: var(--navy);
}

.doc__body b {
    color: var(--ink);
}

.doc__body a {
    color: var(--navy);
    font-weight: 600;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.doc__body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--inset);
    color: var(--ink);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875em;
}

/* The short version, ahead of the long one. */
.doc__summary {
    margin-bottom: 56px;
    padding: 28px 32px 30px;
    border-left: 6px solid var(--yellow);
    border-radius: 0 20px 20px 0;
    background: var(--ground);
}

.doc__summary h2 {
    font-size: 1.5rem;
}

.doc__summary ul {
    margin-top: 16px;
}

.doc__summary li {
    color: var(--ink);
}

/* Names and numbers, set out as a card. */
.doc__card {
    margin-top: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    overflow: hidden;
}

.doc__card > div {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 20px;
}

.doc__card > div + div {
    border-top: 1px solid var(--line);
}

.doc__card dt {
    color: var(--ink-3);
    font-size: 0.9375rem;
}

.doc__card dd {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.doc__table {
    margin-top: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    overflow-x: auto;
}

.doc__table table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.doc__table th {
    padding: 12px 18px;
    background: var(--ground);
    color: var(--navy);
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.doc__table td {
    padding: 13px 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    vertical-align: top;
}

.doc__table td:first-child {
    color: var(--ink);
    font-weight: 600;
}

.doc__button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.doc__button:hover {
    background: var(--navy-deep);
}

.doc__button:active {
    transform: scale(0.98);
}

/* The policy links in the footer. */
.foot__legal {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 6px 24px;
    padding-top: 20px;
    border-top: 1px solid var(--navy-line);
    font-size: 0.875rem;
}

.foot__legal a,
.foot__legal button {
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--on-navy-2);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.foot__legal a:hover,
.foot__legal button:hover {
    color: var(--on-navy);
    text-decoration: underline;
}

.foot__small a {
    color: var(--on-navy-2);
}

/* ============================================================ cookie banner == */

.consent {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 60;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100svh - 32px);
    padding: 22px 24px 20px;
    border-top: 6px solid var(--yellow);
    border-radius: 20px;
    background: var(--page);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(21, 37, 77, 0.06);
    overflow-y: auto;
    animation: consent-in 420ms var(--ease-emph) both;
}

@keyframes consent-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

.consent h2 {
    font-size: 1.5rem;
}

.consent h2:focus {
    outline: none;
}

.consent p {
    margin-top: 8px;
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.consent p a {
    color: var(--navy);
    font-weight: 600;
    text-underline-offset: 3px;
}

.consent__choices {
    display: grid;
    gap: 2px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
}

.consent__opt {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.875rem;
    line-height: 1.45;
    cursor: pointer;
}

.consent__opt input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--navy);
}

.consent__opt b {
    display: block;
    color: var(--ink);
    font-size: 0.9375rem;
}

/* Accept and Deny are the same size, side by side. Neither is the small one. */
.consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.consent__btn {
    min-height: 48px;
    padding: 0 16px;
    border: 2px solid var(--navy);
    border-radius: 14px;
    background: var(--page);
    color: var(--navy);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.consent__btn:hover {
    background: var(--wash);
}

.consent__btn:active {
    transform: scale(0.98);
}

.consent__btn--solid {
    background: var(--navy);
    color: #fff;
}

.consent__btn--solid:hover {
    background: var(--navy-deep);
}

.consent__btn--quiet {
    grid-column: 1 / -1;
    min-height: 40px;
    border-color: transparent;
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 860px) {
    .doc__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .doc__toc {
        position: static;
        max-height: none;
        padding: 20px 22px;
        border-radius: 16px;
        background: var(--ground);
    }

    .doc__summary {
        padding: 22px 22px 24px;
    }

    .doc__card > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

@media (max-width: 560px) {
    .consent {
        left: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 18px 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent {
        animation: none;
    }
}
