@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --denim: #1f3158;
    --denim-deep: #16233f;
    --denim-soft: #33487a;
    --thread: #f4b731;
    --chalk: #f4f6fb;
    --white: #ffffff;
    --ink: #17213a;
    --muted: #55607a;
    --line: #d7dcea;
    --measure: 68ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--chalk);
    color: var(--ink);
    font: 400 1.0625rem/1.6 "Atkinson", system-ui, sans-serif;
}

h1, h2, h3 { font-family: "Bricolage", system-ui, sans-serif; line-height: 1.1; letter-spacing: -0.015em; }

a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* Masthead */
.masthead { background: var(--denim); color: var(--white); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font: 700 1.2rem "Bricolage", sans-serif; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.masthead nav { display: flex; gap: 1.4rem; font-size: 0.98rem; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

/* Hero: the order row is the point of the page */
.hero { background: var(--denim); color: var(--white); padding-block: 3.5rem 0; overflow: hidden; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; max-width: 18ch; margin: 0; }
.hero p { max-width: 54ch; font-size: 1.2rem; color: #dbe2f3; margin: 1.5rem 0 0; }
.hero .actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

.hero .soon { margin: 0; padding: 0.55rem 0.9rem; border: 2px dashed var(--thread); border-radius: 6px; color: var(--white); font-size: 1rem; font-weight: 700; }

.sheet-frame { margin-top: 3rem; background: var(--white); color: var(--ink); border-radius: 10px 10px 0 0; box-shadow: 0 -2px 0 var(--denim-soft); overflow-x: auto; }
.sheet { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 0.97rem; }
.sheet caption { text-align: left; padding: 0.7rem 1rem; color: var(--muted); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.sheet thead th { background: #e9edf6; font-weight: 700; white-space: nowrap; }
.sheet td.number { text-align: right; }
.sheet .custom { white-space: pre-line; }
.sheet tr.new td { background: #fff6dc; animation: arrive 700ms 500ms ease-out backwards; }

@keyframes arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* A running stitch stands in for section rules */
.stitch { height: 0; border: 0; border-top: 3px dashed var(--thread); margin: 0; }

main section { padding-block: 4rem; }
main h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 1.25rem; max-width: 22ch; }
main p { max-width: var(--measure); }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 700 3rem/1 "Bricolage", sans-serif; color: var(--denim-soft); margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.3rem; margin: 0 0 0.4rem; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
.split ul { margin: 0; padding-left: 1.2rem; }
.split li { margin-bottom: 0.55rem; }

.plans { border-collapse: collapse; width: 100%; margin-top: 1.5rem; }
.plans th, .plans td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th { font-family: "Bricolage", sans-serif; font-size: 1.25rem; }

.dark { background: var(--denim-deep); color: var(--white); }
.dark p { color: #dbe2f3; }

/* Policy pages */
.page { padding-block: 3rem 4rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 0.6rem; }
.page .updated { color: var(--muted); margin: 0 0 2.5rem; }
.page h2 { font-size: 1.5rem; margin: 2.4rem 0 0.6rem; }
.page h3 { font-size: 1.15rem; margin: 1.6rem 0 0.3rem; }
.page p, .page li { max-width: var(--measure); }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.4rem; }
.page table { border-collapse: collapse; margin-block: 1rem; }
.page th, .page td { border: 1px solid var(--line); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }

footer { background: var(--denim-deep); color: #dbe2f3; font-size: 0.97rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; padding-block: 2rem; }
footer p { margin: 0; max-width: 60ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }

@media (max-width: 800px) {
    .steps, .split { grid-template-columns: 1fr; gap: 2rem; }
    main section { padding-block: 3rem; }
    .masthead .wrap { flex-wrap: wrap; }
    .plans { font-size: 0.97rem; }
}

@media (prefers-reduced-motion: reduce) {
    .sheet tr.new td { animation: none; }
}
