@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Steed Code. One field, one horse, one motion. */
:root {
  --field: #0b7a43;
  --white: #fff;
  --soft: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.32);
  --edge: max(clamp(20px, 5vw, 72px), (100vw - 1800px) / 2);   /* wider than 1800 px, the page stays centered */
  --gutter: 2vw;
}
* { box-sizing: border-box; }
html { background: var(--field); color: var(--white); -webkit-text-size-adjust: 100%; }
/* A column as tall as the window at least, so a short page still ends with its footer at the bottom. */
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; font: 400 clamp(16px, 0.45vw + 12px, 19px)/1.5 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0; text-wrap: pretty; }
.soft { color: var(--soft); }
.small { font-size: 0.85em; }
/* The big type: h3, the titles of the policy and account pages, the plan's numbers and the share left. */
h3, .doc h1, .gait b, .facts b, .big b { font-weight: 500; font-size: clamp(34px, 4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.first { display: grid; grid-template-rows: auto 1fr auto; min-height: min(100svh, 1100px); padding-bottom: clamp(28px, 7vh, 72px); }
header { display: flex; justify-content: space-between; align-items: center; padding: clamp(18px, 2.6vw, 32px) var(--edge); }
.name { display: flex; align-items: center; gap: 0.5em; font-weight: 500; font-size: 1.15em; letter-spacing: -0.01em; text-decoration: none; }
.name svg { width: 2.5em; height: auto; fill: currentColor; }
.pill { padding: 0.55em 1.1em; border: 0; background: var(--white); color: var(--field); font-weight: 500; text-decoration: none; }
header nav { display: flex; align-items: center; gap: 1.4em; }
header nav > a:not(.pill) { text-decoration: none; }

/* The pitch on the left, the horse on the right, both standing on one line. */
.stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: var(--gutter); padding: 0 var(--edge); }
.pitch { align-self: center; padding: 2vh 0 6vh; }
h1 { margin: 0 0 0.35em; font-weight: 500; font-size: clamp(44px, 6.6vw, 104px); line-height: 0.98; letter-spacing: -0.04em; }
.pitch p { max-width: 30em; font-size: 1.15em; }
button { font: inherit; cursor: pointer; }
.buy { display: inline-block; padding: 0.8em 1.2em; border: 1px solid var(--white); border-radius: 0; background: var(--white); color: var(--field); font-weight: 500; white-space: nowrap; text-decoration: none; }
.buy.ghost { background: transparent; color: var(--white); }
.buy:disabled { opacity: 0.6; cursor: wait; }
.note { margin-top: 0.8em; font-size: 0.85em; }
.pitch .buy { margin-top: 1.6em; }
section .buy { justify-self: start; }

.horse { display: block; width: 100%; height: auto; fill: currentColor; }
[data-stride] .f { display: none; }
[data-stride] .f.on { display: inline; }

.ground { border-top: 1px solid var(--white); }

/* Below the line, every block shares two columns: a label in the first third, the content across the rest. */
section, .doc, footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gutter); padding-right: var(--edge); padding-left: var(--edge); }
section { padding-top: 3em; padding-bottom: 3em; border-top: 1px solid var(--line); }
.first + section { border-top: 0; padding-top: 1em; }
h2 { margin: 0; font-weight: 500; font-size: 1em; }
section > div { display: grid; gap: 1em; }
/* The plans: three gaits, each horse at its own pace; Canter's numbers under them on the same rules. */
.gaits, .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2em; }
.gait, .facts p { padding: 1em 0 1.4em; border-top: 1px solid var(--line); }
.gait svg { display: block; width: auto; height: 2.6em; margin-bottom: 0.5em; fill: currentColor; }
.gait.soon { color: var(--soft); }
.gait.soon svg { opacity: 0.6; }
.gait b, .facts b { display: block; margin-bottom: 0.15em; white-space: nowrap; }
.four { display: flex; gap: 2px; height: 1em; margin-top: 0.5em; }
.four svg { height: 100%; width: auto; fill: currentColor; }
.rates { width: 100%; margin-top: 1em; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates caption { padding-bottom: 0.6em; text-align: left; color: var(--soft); }
.rates th, .rates td { padding: 0.55em 0 0.55em 1em; border-top: 1px solid var(--line); font-weight: 400; text-align: right; }
.rates th:first-child { padding-left: 0; text-align: left; }
.rates thead th { color: var(--soft); font-size: 0.85em; }

pre { margin: 0; padding: 1.1em 1.3em; overflow-x: auto; background: rgba(0, 0, 0, 0.2); font: 400 0.84em/1.7 "JetBrains Mono", ui-monospace, Menlo, monospace; }
h3 { margin: 0; }
footer { margin-top: auto; padding-top: 2em; padding-bottom: 2em; border-top: 1px solid var(--line); color: var(--soft); }
footer > div { display: grid; gap: 0.5em; justify-items: start; }
footer > span, footer > div > * { font-size: 0.85em; }
footer nav { display: flex; gap: 1.2em; }

/* The terms, privacy and refund pages: the title on the left, the text on the right. */
.doc { padding-top: clamp(24px, 6vh, 64px); padding-bottom: 4em; }
.doc h1 { margin-bottom: 0.3em; }
.doc > div:last-child { display: grid; gap: 0.8em; align-content: start; max-width: 40em; }
.doc h2 { margin-top: 1.4em; }
.doc ul { margin: 0; padding-left: 1.2em; }
.doc li + li { margin-top: 0.4em; }
.doc b { font-weight: 500; }

/* The account page: sign in, then the seat's week, its days, its key and its billing. */
[hidden] { display: none !important; }
.doc.head { padding-bottom: 1em; }
.doc.head > p { align-self: end; }
.signin { display: grid; gap: 1em; justify-items: start; align-content: start; }
.signin form { display: flex; flex-wrap: wrap; gap: 0.6em; width: 100%; max-width: 32em; }
input { flex: 1 1 14em; min-width: 0; padding: 0.8em 1em; border: 1px solid var(--line); border-radius: 0; background: rgba(0, 0, 0, 0.12); color: var(--white); font: inherit; }
input::placeholder { color: var(--soft); }
input:focus { border-color: var(--white); outline: none; }
.said:empty { display: none; }
.row { display: flex; flex-wrap: wrap; gap: 0.6em; }
code { font: 400 0.88em "JetBrains Mono", ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.big { font-size: 1.15em; }
/* What is left of the week is the white ground; the horse runs at its edge. */
.meter { position: relative; height: 12px; margin-top: 3.2em; border-top: 1px solid var(--line); }
.fill { height: 100%; border-top: 1px solid var(--white); margin-top: -1px; background: linear-gradient(90deg, var(--white) 0 1px, transparent 1px) 0 0 / 24px 100% repeat-x; }
.runner { position: absolute; bottom: 100%; width: 4.2em; height: auto; transform: translateX(-100%); fill: currentColor; }
.chart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; align-items: end; height: 9em; border-bottom: 1px solid var(--white); }
.chart div { display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; justify-content: flex-start; cursor: default; }
.chart div:hover { background: rgba(255, 255, 255, 0.08); }
.chart i, .legend i { display: block; background: var(--white); }
.chart .glm, .legend .glm { background: rgba(255, 255, 255, 0.45); }
.axis { display: flex; justify-content: space-between; gap: 1em; margin-top: -0.4em; }
.legend { display: flex; align-items: center; gap: 0.4em; }
.legend i { width: 0.8em; height: 0.8em; }
.legend .glm { margin-left: 0.6em; }
.scroll { overflow-x: auto; }
.scroll th { white-space: nowrap; }

.first > *, .stage > *, section > *, section > div > *, .doc > *, footer > * { min-width: 0; }

@media (max-width: 860px) {
  .gaits { gap: 0 1em; }
  .facts { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; }
  .pitch { padding: 4vh 0 2vh; }
  .horse { width: 78%; margin-left: auto; }
  section, .doc, footer { grid-template-columns: 1fr; gap: 1em; }
}
