/* kurumamori.com
   The app's world on the web. Tokens mirror lib/theme/tokens.dart and
   DESIGN.md is the rulebook: one indigo band per page, gold for the thread
   and good news, vermilion only in the seal, no shadows, no alarm colour.
   No JavaScript and no third-party origins (see /_headers). */

/* Shippori Mincho B1 ExtraBold (SIL OFL 1.1, see /assets/fonts/OFL.txt),
   subset to Basic Latin plus the kana and kanji the site sets in Mincho. */
@font-face {
  font-family: "Shippori Mincho B1";
  src: url("/assets/fonts/shippori-mincho-b1-800-subset.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --indigo: #1b2a4e;
  --indigo-deep: #142040;
  --on-indigo: #f6f7f9;
  --on-indigo-muted: #c3c9d8;
  --gold: #c9a227;
  --gold-on-indigo: #e2c35a;
  --gold-text: #7d600c;
  --gold-tint: rgb(201 162 39 / 0.18);
  --vermilion: #d2452b;
  --ground: #f6f7f9;
  --surface: #fff;
  --hairline: #e1e3ea;
  --ink: #1a1b21;
  --ink-2: #4a4e5c;
  --ink-3: #656a78;
  --normal-band: rgb(201 162 39 / 0.16);
  --normal-edge: #b8921c;
  --action: #1b2a4e;
  --dot: #1b2a4e;
  --band-rule: rgb(226 195 90 / 0.35);
  /* The season's normal on the band: a raised indigo between gold dashed
     edges, as the app draws the normal band on a dark ground. */
  --band-normal: color-mix(in srgb, #f6f7f9 10%, #1b2a4e);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --sans-ja: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI",
    "Yu Gothic", Meiryo, "Segoe UI", Roboto, sans-serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --page: 20px;
}

@media (min-width: 768px) {
  :root { --page: 40px; }
}

/* Night: the band keeps its indigo, the ground deepens, and indigo
   foregrounds become gold thread (the Night Thread Rule). */
@media (prefers-color-scheme: dark) {
  :root {
    --indigo-deep: #111a33;
    --on-indigo: #f2f4f8;
    --on-indigo-muted: #b9c0d1;
    --gold: #d4af3a;
    --gold-on-indigo: #e6c968;
    --gold-text: #e2c35a;
    --gold-tint: rgb(212 175 58 / 0.2);
    --vermilion: #e5603f;
    --ground: #0d1120;
    --surface: #161c2e;
    --hairline: #272e44;
    --ink: #eceef3;
    --ink-2: #b4b9c7;
    --ink-3: #959bab;
    --normal-band: #233259;
    --normal-edge: #c9a227;
    --action: #e2c35a;
    --dot: #eceef3;
  }
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
  scrollbar-color: color-mix(in srgb, var(--ink-3) 55%, transparent) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

html:lang(ja) body {
  font-family: var(--sans-ja);
  font-size: 1rem;
  line-height: 1.85;
  line-break: strict;
}

h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
:lang(ja) :is(h1, h2, h3, .hook, .lead, .year__foot p, .masthead p) { word-break: auto-phrase; }

a {
  color: var(--action);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }

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

::selection { background: var(--gold-tint); color: var(--ink); }

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--action);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

/* The charm band: indigo cloth, 七宝 brocade, closed by the gold cord ------- */

.band {
  position: relative;
  padding-bottom: 5px;
  background: var(--indigo) url("/assets/shippo-9.svg");
  color: var(--on-indigo);
}
.band--hero { background-image: url("/assets/shippo-14.svg"); }
.band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: url("/assets/cord.svg") repeat-x;
}
.band ::selection { background: rgb(226 195 90 / 0.4); color: var(--on-indigo); }
.band a { color: var(--on-indigo); }
.band :focus-visible { outline-color: var(--gold-on-indigo); }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 1.375rem;
  font-feature-settings: "palt";
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
}
.band .brand { color: var(--gold-on-indigo); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 0.4em; }
.nav a[aria-current="page"] {
  color: var(--gold-on-indigo);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
.nav .lang {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgb(195 201 216 / 0.55);
  border-radius: 6px;
}
.nav .lang:hover { border-color: var(--gold-on-indigo); text-decoration: none; }
@media (max-width: 359px) {
  .nav { gap: 0 14px; }
  .nav .lang { padding: 0 10px; }
}

/* Home: the hero ---------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-areas: "copy" "car" "year";
  gap: 36px;
  padding-block: 20px 36px;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "copy car" "year year";
    column-gap: 56px;
    row-gap: 44px;
    padding-block: 24px 40px;
  }
  .hero__car {
    align-self: end;
    justify-self: end;
    padding-left: 24px;
    border-left: 1px solid rgb(226 195 90 / 0.45);
  }
}

.hero__copy { grid-area: copy; }
.hero__copy .rule {
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--gold);
}

.wordmark { margin: 0; }
.wordmark__ja {
  display: block;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(3.25rem, 2rem + 4.6vw, 5.25rem);
  font-feature-settings: "palt";
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--gold-on-indigo);
}
.wordmark__en {
  display: block;
  margin-top: 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--on-indigo-muted);
}

.hook {
  margin-top: 28px;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.lead {
  max-width: 33em;
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.7;
}
:lang(ja) .lead { max-width: 30em; line-height: 1.85; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}
.cta__note {
  max-width: 22em;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--on-indigo-muted);
}

@media (max-width: 559px) {
  .cta .btn { width: 100%; }
}

/* The demo car and its year's saving, in the app band's grammar. */
.hero__car { grid-area: car; }
.car {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.car__name {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--gold-on-indigo);
}
.car__meta {
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--on-indigo-muted);
}
.saved {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--band-rule);
}
.saved__label, .saved__note {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--on-indigo-muted);
}
.saved__value {
  display: block;
  margin: 4px 0;
  font-size: 2.875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-on-indigo);
}

.tag {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid rgb(195 201 216 / 0.6);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-indigo-muted);
  white-space: nowrap;
}

/* The year: twelve month cells read like the app's forecast strip. */
.year { grid-area: year; margin: 0; }

.year__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 10px;
}
.year__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-indigo-muted);
}
.legend li { display: inline-flex; align-items: center; gap: 6px; }

.key {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--on-indigo);
}
.key--up { width: 10px; height: 10px; background: var(--gold-on-indigo); }
.key--low { background: var(--indigo); border: 2px solid var(--on-indigo); }
.key--band {
  width: 18px;
  height: 10px;
  border-radius: 0;
  background: var(--band-normal);
  border-block: 1px dashed rgb(226 195 90 / 0.75);
}

.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--band-rule);
}

.m {
  display: flex;
  flex-direction: column;
  margin: 0 1px;
  padding: 8px 0 10px;
  text-align: center;
}
.m--now { border-radius: 0 0 6px 6px; background: rgb(201 162 39 / 0.24); }

.m__label {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--on-indigo-muted);
}
.m--now .m__label { font-weight: 700; color: var(--gold-on-indigo); }

.plot {
  display: grid;
  grid-template-rows: repeat(32, minmax(0, 1fr));
  height: 140px;
  margin: 8px 2px 0;
}
.plot--1 { grid-template-columns: 1fr; }
.plot--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plot--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* The season's normal: a raised indigo field between gold dashed edges, as
   the app draws the normal band on a dark ground. Rows run from 22.75 km/l at
   the top to 14.75 at the bottom, a quarter per row. */
.nb {
  grid-column: 1 / -1;
  background: var(--band-normal);
  border-block: 1px dashed rgb(226 195 90 / 0.7);
}
.m--win .nb { grid-row: 18 / 28; }
.m--spr .nb, .m--aut .nb { grid-row: 8 / 18; }
.m--sum .nb { grid-row: 14 / 24; }

.d {
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  place-self: center;
  background: var(--on-indigo);
}
.d--up { width: 10px; height: 10px; background: var(--gold-on-indigo); }
.d--low { background: var(--indigo); border: 2px solid var(--on-indigo); }
.d:nth-of-type(1) { grid-column: 1; }
.d:nth-of-type(2) { grid-column: 2; }
.d:nth-of-type(3) { grid-column: 3; }

.r5 { grid-row: 5; } .r6 { grid-row: 6; } .r7 { grid-row: 7; } .r8 { grid-row: 8; }
.r9 { grid-row: 9; } .r10 { grid-row: 10; } .r11 { grid-row: 11; } .r12 { grid-row: 12; }
.r13 { grid-row: 13; } .r14 { grid-row: 14; } .r15 { grid-row: 15; } .r16 { grid-row: 16; }
.r17 { grid-row: 17; } .r18 { grid-row: 18; } .r19 { grid-row: 19; } .r20 { grid-row: 20; }
.r21 { grid-row: 21; } .r22 { grid-row: 22; } .r23 { grid-row: 23; } .r24 { grid-row: 24; }
.r25 { grid-row: 25; } .r26 { grid-row: 26; } .r27 { grid-row: 27; } .r28 { grid-row: 28; }
.r29 { grid-row: 29; } .r30 { grid-row: 30; } .r31 { grid-row: 31; }

.m__rit {
  min-height: 2.6em;
  margin-top: 8px;
  padding-inline: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gold-on-indigo);
}

.year__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-indigo-muted);
}
.year__foot p:first-child { color: var(--on-indigo); max-width: 62em; }
.rituals { display: none; }

@media (max-width: 899px) {
  /* Too narrow for words: each ritual month keeps a gold mark in its cell,
     and the line under the strip names them. */
  .m__rit {
    width: 12px;
    min-height: 0;
    height: 3px;
    margin: 8px auto 0;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  .m__rit:not(:empty) { background: var(--gold-on-indigo); }
  .rituals { display: block; }
  .plot { height: 124px; }
}
.key--rit { width: 12px; height: 3px; border-radius: 0; background: var(--gold-on-indigo); vertical-align: middle; margin-right: 6px; }

@media (max-width: 419px) {
  .m__label .u { display: none; }
  .plot { margin-inline: 1px; }
  .d { width: 8px; height: 8px; }
  .d--up { width: 9px; height: 9px; }
}

/* Home: the sections, each one time scale ---------------------------------- */

.feature { padding-top: 72px; }
@media (min-width: 960px) {
  .feature { padding-top: 104px; }
}

.feature__grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .feature__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
    align-items: start;
  }
  .feature__text { padding-top: 32px; }
}

.feature h2, .pair h2, .beta h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.feature__text p, .pair__item > p, .beta__text p {
  max-width: 31em;
  margin-top: 16px;
}
:lang(ja) :is(.feature__text p, .pair__item > p, .beta__text p) { max-width: 29em; }

.planned {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.fig {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
}
.fig--start { justify-items: start; }
.cap {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}
/* The month a mock belongs to in the year above: the app's gold tag. */
.tag-gold {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 1px;
}

/* The tank: the wide moment of the page. */
.feature--wide .feature__grid { align-items: end; }
.feature--wide .fig { margin-top: 40px; }
@media (min-width: 960px) {
  .feature--wide .fig { grid-column: 1 / -1; margin-top: 48px; }
}

.pair {
  display: grid;
  gap: 72px;
  padding-top: 72px;
}
@media (min-width: 960px) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 72px;
    padding-top: 104px;
  }
}
.pair__item .fig { margin-top: 28px; justify-items: stretch; }

/* Mock app UI: app scale, the app's own tokens. Illustrations only. -------- */

.app {
  width: 100%;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
}

.screen {
  max-width: 24.375rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--ground);
}

.mband {
  container-type: inline-size;
  position: relative;
  padding: 14px 20px 5px;
  background: var(--indigo) url("/assets/shippo-9.svg");
  color: var(--on-indigo);
}
.mband::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: url("/assets/cord.svg") repeat-x;
}
.mband__car { display: flex; align-items: center; gap: 8px; }
.mband__name {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--gold-on-indigo);
}
.muted { font-size: 0.8125rem; line-height: 1.4; color: var(--on-indigo-muted); }
.mband__pair {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 12px;
}
.mband__pair > div { min-width: 0; }
.vr { flex: none; width: 1px; align-self: stretch; background: rgb(226 195 90 / 0.45); }
@container (max-width: 300px) {
  .mband__pair { flex-direction: column; align-items: flex-start; gap: 12px; }
  .vr { display: none; }
  .fc .fc__day, .fc .fc__val { white-space: normal; text-align: center; line-height: 1.15; }
}

.disp { font-size: 2.875rem; font-weight: 700; line-height: 1; }
.disp .u, .headl .u { font-size: 1.25rem; font-weight: 700; }
.headl { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.mband .disp, .mband .headl { margin-block: 2px 4px; color: var(--on-indigo); }
.mband .headl { margin-top: 4px; white-space: nowrap; }

.fc {
  display: flex;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--band-rule);
}
.fc li {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 2px;
  padding: 8px 0;
}
.fc__day {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--on-indigo-muted);
}
.fc__bar {
  display: flex;
  align-items: flex-end;
  width: 12px;
  height: 34px;
  margin-top: 6px;
  border-radius: 2px;
  background: rgb(246 247 249 / 0.12);
}
.fc__bar i { display: block; width: 100%; border-radius: 2px; background: var(--gold-on-indigo); }
.fc__val {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--on-indigo);
}
.fc .fc--fill { border-radius: 6px 6px 0 0; background: rgb(201 162 39 / 0.24); }
.fc--fill .fc__val { color: var(--gold-on-indigo); }
.f22 { height: 22%; } .f30 { height: 30%; } .f37 { height: 37%; } .f44 { height: 44%; }
.f52 { height: 52%; } .f56 { height: 56%; } .f100 { height: 100%; }

.peek { padding: 22px 20px 20px; }
.mhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 8px;
}
.mhead b { font-size: 1.0625rem; font-weight: 700; }
.mhead span { font-size: 0.8125rem; color: var(--ink-2); }

.panel {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 48px;
  padding: 8px 12px;
  border-top: 1px solid var(--hairline);
}
.row:first-child { border-top: 0; }
.row__v { font-size: 1.0625rem; font-weight: 600; text-align: right; }
.row__v .u, .cell .u { font-weight: 400; color: var(--ink-2); }
.row__k { min-width: 0; }
.row__sub { display: block; font-size: 0.8125rem; color: var(--ink-2); }
.row__note { font-size: 0.875rem; color: var(--ink-2); text-align: right; }
.row__due { font-size: 0.9375rem; font-weight: 600; text-align: right; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  background: var(--gold-tint);
}
.check svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gold-text); }

.sbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.sbar__title { font-size: 1.0625rem; font-weight: 600; }
.tb { font-size: 1rem; font-weight: 700; color: var(--action); }
.sbar .tb:last-child { justify-self: end; }
.sbody { display: grid; gap: 8px; padding: 14px 16px 22px; }
.mlabel { margin-top: 8px; font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); }
.mlabel:first-child { margin-top: 0; }

.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 16px;
  background: var(--action);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--on-indigo);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  line-height: 1.3;
}
.chip--on { background: var(--gold-tint); }

/* The recorded tank: seal, verdict, and the season's chart. */
.tank { max-width: 46rem; padding: 20px; }
.tank__top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.tank__k { font-size: 0.8125rem; color: var(--ink-2); }
.tank__v { margin-block: 6px 4px; }
.tank__verdict { font-size: 0.9375rem; color: var(--ink-2); }
.tank__chart { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.tank__reason { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
@media (min-width: 720px) {
  .tank { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: 32px; padding: 28px; }
  .tank__top { flex-direction: column; align-items: flex-start; }
  .tank__chart { margin-top: 0; padding-top: 0; padding-left: 32px; border-top: 0; border-left: 1px solid var(--hairline); }
}

.seal {
  display: grid;
  flex: none;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 4.4px solid var(--vermilion);
  border-radius: 50%;
  background: color-mix(in srgb, var(--vermilion) 6%, transparent);
  transform: rotate(-8deg);
}
.seal span {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--vermilion);
}

/* The seal lands in two frames as it scrolls into view: invisible, pressed
   at 118%, at rest. No easing. At rest wherever this is not supported. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .seal--stamp {
      animation: stamp linear both;
      animation-timeline: view();
      animation-range: entry 100% cover 30%;
    }
  }
}
@keyframes stamp {
  0%, 55% { opacity: 0; transform: rotate(-8deg) scale(1); }
  55.1%, 75% { opacity: 1; transform: rotate(-8deg) scale(1.18); }
  75.1%, 100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .c-band { fill: var(--normal-band); }
.chart .c-edge { stroke: var(--normal-edge); stroke-width: 1; stroke-dasharray: 4 3; }
.chart .c-dot { fill: var(--dot); }
.chart .c-up { fill: var(--gold); }
.chart .c-low { fill: var(--surface); stroke: var(--dot); stroke-width: 2; }
.chart .c-ko { fill: var(--surface); }
.chart .c-val { fill: var(--dot); font-size: 13px; font-weight: 700; }
.chart .c-axis { fill: var(--ink-3); font-size: 11px; }

/* Money and care. */
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { padding: 12px; }
.cell + .cell { border-left: 1px solid var(--hairline); }
.cell__k, .cell__s { font-size: 0.8125rem; color: var(--ink-2); }
.cell .headl { margin-block: 4px 2px; }
.saving {
  padding: 12px;
  border-top: 1px solid var(--hairline);
  font-weight: 600;
  color: var(--gold-text);
}
.src { display: block; font-size: 0.75rem; color: var(--ink-3); }
.care-note { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }

/* Onboarding: pick the car. */
.onb { padding: 24px 20px 20px; }
.onb__step { font-size: 0.8125rem; color: var(--ink-3); }
.onb__title { margin-top: 6px; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.onb__note { margin-top: 8px; color: var(--ink-2); }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 2px solid var(--action);
  border-radius: 6px;
  background: var(--surface);
  font-size: 1.0625rem;
}
.field svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.onb .panel { margin-top: 10px; }
.row--on { background: var(--gold-tint); }
.picked {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.onb .tb { display: inline-block; margin-top: 14px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.btn--gold { background: var(--gold); color: var(--indigo-deep); }
.band .btn--gold { color: var(--indigo-deep); }
.btn--gold:hover { background: var(--gold-on-indigo); }
.btn--primary {
  background: var(--indigo);
  color: var(--on-indigo);
  border: 1.5px solid var(--gold);
}
.btn--primary:hover { background: var(--indigo-deep); }

/* Home: the close ---------------------------------------------------------- */

.beta { padding-block: 96px 112px; }
@media (min-width: 960px) {
  .beta { padding-block: 144px 144px; }
  .beta__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: 72px;
    align-items: start;
  }
}
.beta__text .cta { margin-top: 32px; }
.beta__text .cta__note { color: var(--ink-2); }
.facts { margin-top: 40px; }
@media (min-width: 960px) {
  .facts { margin-top: 0; }
}
.facts .row__k { color: var(--ink-2); }
.facts .row__v { font-size: 1rem; }

/* Read pages: masthead and document column ------------------------------ */

.masthead { padding-block: 24px 44px; }
@media (min-width: 960px) {
  .masthead { padding-block: 40px 64px; }
}
.masthead h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.25;
}
.masthead p {
  max-width: 40em;
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--on-indigo-muted);
}

.doc { padding-block: 48px 96px; }
@media (min-width: 960px) {
  .doc { padding-block: 64px 128px; }
}
@media (min-width: 1024px) {
  .doc--toc {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: 72px;
    align-items: start;
  }
  .toc { position: sticky; top: 24px; }
}

.toc {
  margin-bottom: 40px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.toc h2 { margin-bottom: 8px; font-size: 0.875rem; color: var(--ink-2); }
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--hairline);
}
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover { color: var(--action); text-decoration: underline; }

.prose { max-width: 42rem; }
:lang(ja) .prose { max-width: 40em; }
.prose h2 {
  margin: 56px 0 12px;
  font-size: 1.375rem;
  scroll-margin-top: 24px;
}
.prose > h2:first-child, .prose > section:first-child > h2 { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.0625rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul { padding-left: 1.25em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--ink-3); }
.prose .lede { font-size: 1.125rem; }
:lang(ja) .prose .lede { font-size: 1.0625rem; }
.prose .panel { margin: 8px 0 24px; }
.prose .row {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  justify-content: start;
}
.prose .row__v { font-size: 1rem; text-align: left; overflow-wrap: anywhere; }
@media (max-width: 559px) {
  .prose .row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 10px; }
  .prose .row__k { font-size: 0.875rem; color: var(--ink-2); }
}

.steps { padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  position: relative;
  margin: 12px 0;
  padding-left: 2.4em;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0.15em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--gold-tint);
}

.table {
  width: 100%;
  margin: 8px 0 24px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  border-spacing: 0;
  border-collapse: separate;
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.table th, .table td {
  padding: 12px;
  border-top: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  border-top: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.table tbody th { font-weight: 700; }
@media (min-width: 640px) {
  .table tbody th { white-space: nowrap; }
}
@media (max-width: 639px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tr { display: block; padding: 12px; border-top: 1px solid var(--hairline); }
  .table tbody tr:first-child { border-top: 0; }
  .table th, .table td { display: block; padding: 0; border: 0; }
  .table td { margin-top: 6px; }
  .table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    color: var(--ink-3);
  }
}

/* Footer ------------------------------------------------------------------ */

.foot {
  padding-block: 40px 48px;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.foot__grid { display: grid; gap: 20px 48px; }
@media (min-width: 768px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
.foot .brand { min-height: 0; color: var(--gold-text); font-size: 1.25rem; }
.foot p { margin-top: 6px; }
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.foot ul a[aria-current="page"] { color: var(--ink-2); text-decoration: none; }
@media (min-width: 768px) {
  .foot ul { justify-content: flex-end; max-width: 34rem; }
}
