/* Navigator marketing site. One stylesheet, no build step. */

:root {
  --ink: #14133a;
  --ink-2: #1b1a47;
  --ink-3: #22205a;
  --cream: #fffbe9;
  --paper: #f6f1de;
  --line-dark: rgba(255, 251, 233, 0.16);
  --muted-dark: rgba(255, 251, 233, 0.84);
  --quiet-dark: rgba(255, 251, 233, 0.7);
  --muted-light: #3a3866;

  /* One colour per rule type, used the same way in every diagram. */
  --teal: #34c3a8;   /* Ship only from */
  --coral: #ff8a5c;  /* Never ship from; excluded */
  --amber: #ffc857;  /* First choice, then backup */
  --lime: #b3f782;   /* Keep orders together; the result */
  --sky: #8ce1f8;    /* Location limits */
  --teal-ink: #0b2b26;
  --coral-ink: #2e0e00;
  --amber-ink: #2b1d00;
  --sky-ink: #062a36;
  --lime-ink: #0f2400;
  --teal-on-paper: #1d6f5f;
  --coral-on-paper: #a8401a;
  --amber-on-paper: #8a5a00;
  --sky-on-paper: #1d6a80;

  /* Outcome colours, from app/routing/outcomes.ts. */
  --split: #ffbf80;
  --split-ink: #381600;
  --shopify: #dddddd;
  --shopify-ink: #4a4a4a;

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --grid: linear-gradient(rgba(255, 251, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 251, 233, 0.05) 1px, transparent 1px);
}

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

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.85;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.light :focus-visible,
.lime-band :focus-visible,
.plan.pro :focus-visible,
.plan.growth :focus-visible,
.plan.scale :focus-visible {
  outline-color: var(--ink);
}

img,
svg {
  display: block;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.wide-only {
  display: block;
}

.narrow-only {
  display: none;
}

/* Utility switches: !important so a component's own display never wins. */
@media (max-width: 760px) {
  .wide-only {
    display: none !important;
  }
  .narrow-only {
    display: block !important;
  }
}

/* ---------- Sections ---------- */

.dark {
  background-color: var(--ink);
  background-image: var(--grid);
  background-size: 40px 40px;
  color: var(--cream);
}

.light {
  background: var(--paper);
  color: var(--ink);
}

.lime-band {
  background: var(--lime);
  color: var(--lime-ink);
}

.section {
  padding-block: 112px;
}

@media (max-width: 760px) {
  .dark {
    background-size: 32px 32px;
  }
  .section {
    padding-block: 64px;
  }
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .eyebrow {
  color: var(--teal);
}

.light .eyebrow {
  color: var(--teal-on-paper);
}

.light .eyebrow.warm {
  color: var(--coral-on-paper);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
}

.hero-title.long {
  font-size: clamp(40px, 5.6vw, 84px);
  max-width: 17ch;
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}

.h2 {
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 24px 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  max-width: 720px;
  text-wrap: pretty;
}

.dark .lede,
.dark .body {
  color: var(--muted-dark);
}

.light .lede,
.light .body {
  color: var(--muted-light);
}

.body {
  margin: 16px 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 560px;
}

.small {
  font-size: 14px;
  line-height: 1.5;
}

.dark .small {
  color: var(--quiet-dark);
}

.mono {
  font-family: var(--mono);
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  justify-content: space-between;
  align-items: flex-end;
}

.head-row .body {
  margin: 0;
  max-width: 480px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  min-height: 58px;
  padding: 0 30px;
  font-size: 18px;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-outline {
  border: 2px solid rgba(255, 251, 233, 0.4);
  color: var(--cream);
}

.light .btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 251, 233, 0.12);
  position: relative;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 76px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.nav-links a:not(.btn) {
  color: rgba(255, 251, 233, 0.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a[aria-current] {
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-links .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.nav-narrow {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-narrow .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 251, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
}

.menu-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--cream);
  text-decoration: none;
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 251, 233, 0.08);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-narrow {
    display: flex;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-row .lede {
  margin: 0;
  max-width: 620px;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero-row {
    margin-top: 20px;
    gap: 24px;
  }
}

/* The worked example: the order, the steps, the result. One copy, laid out by width. */

/* ---------- What it adds ---------- */

.gap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

/* ---------- Who it's for ---------- */

.who {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}

.who li {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  line-height: 1.45;
}

.who .label {
  color: var(--teal);
  font-size: 11px;
}

/* ---------- Promises ---------- */

.promises {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
}

.promise {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 24px;
}

.promise h3 {
  font-size: 22px;
  line-height: 1.2;
}

.promise p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-dark);
}

/* ---------- What it isn't ---------- */

@media (max-width: 760px) {
  .promises {
    margin-top: 28px;
  }
  
  
}

/* ---------- Step-by-step strip ---------- */

/* ---------- Rule cards ---------- */

/* ---------- Locations map ---------- */

/* ---------- Preview panels ---------- */

/* Location limits in the strip and on the map: skipped, not excluded. */

/* Who it's for, on paper. */
.light .who li {
  background: #fff;
  border-color: rgba(20, 19, 58, 0.14);
}

.light .who .label {
  color: var(--teal-on-paper);
}

/* ---------- Plans ---------- */

.plans {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
}

.plan {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan.free-light {
  background: #ffffff;
  border: 2px solid var(--ink);
}

.plan.pro { background: var(--teal); color: var(--teal-ink); }
.plan.growth { background: var(--sky); color: var(--sky-ink); }
.plan.scale { background: var(--amber); color: var(--amber-ink); }

.plan-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price b {
  font-family: var(--display);
  font-size: clamp(48px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 16px;
  font-weight: 500;
}

.limit {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.1);
}

.plan.free-light .limit {
  background: var(--paper);
}

.plan ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.plan.free-light ul {
  color: var(--muted-light);
}

.plan .btn {
  margin-top: auto;
}

.plan.free-light .btn { border: 2px solid var(--ink); color: var(--ink); }
.plan.pro .btn { background: var(--teal-ink); color: var(--cream); }
.plan.growth .btn { background: var(--sky-ink); color: var(--cream); }
.plan.scale .btn { background: var(--amber-ink); color: var(--cream); }

.text-link {
  font-weight: 600;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dark .text-link,
.ink-2 .text-link {
  color: var(--lime);
}

@media (max-width: 760px) {
  .plans {
    margin-top: 28px;
    gap: 12px;
  }
  .plan {
    border-radius: 16px;
    padding: 22px;
    gap: 14px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}

.faq > div:first-child {
  flex: 1 1 300px;
}

.faq-list {
  flex: 999 1 560px;
  min-width: 0;
  border-top: 2px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid rgba(20, 19, 58, 0.2);
  padding: 22px 0;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 21px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  flex: 0 0 auto;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-light);
  max-width: 680px;
}

@media (max-width: 760px) {
  .faq-list details {
    padding: 18px 0;
  }
  .faq-list details p {
    font-size: 16px;
  }
}

/* ---------- Closing band and footer ---------- */

.closing {
  padding-block: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.closing h2 {
  font-size: clamp(42px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}

.closing .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
}

.closing .row p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  max-width: 520px;
}

@media (max-width: 760px) {
  .closing {
    padding-block: 64px;
    gap: 24px;
  }
  .closing .row .btn {
    width: 100%;
  }
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
}

.site-footer .wrap.top {
  padding-top: 56px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  justify-content: space-between;
}

.site-footer .about {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer .about p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 251, 233, 0.75);
}

.site-footer .about a {
  color: var(--cream);
}

.site-footer .brand {
  font-size: 20px;
}

.site-footer .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: flex-start;
  font-size: 15px;
}

.footer-links a {
  color: rgba(255, 251, 233, 0.85);
  text-decoration: none;
}

.site-footer .wrap.legal {
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 251, 233, 0.12);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 251, 233, 0.62);
}

@media (max-width: 760px) {
  .footer-links {
    flex-direction: column;
    gap: 0;
  }
  .footer-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ---------- Pricing page ---------- */

.scale-bar {
  margin: 64px 0 0;
}

.scale-bar .ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--quiet-dark);
}

.bands {
  display: flex;
  gap: 4px;
  min-height: 132px;
}

.band {
  min-width: 0;
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.band strong {
  font-family: var(--display);
  font-size: 26px;
}

.band span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.band .range {
  display: none;
}

.band.free { flex: 2 1 0; background: var(--cream); color: var(--ink); border-radius: 14px 4px 4px 14px; }
.band.pro { flex: 3 1 0; background: var(--teal); color: var(--teal-ink); }
.band.growth { flex: 3 1 0; background: var(--sky); color: var(--sky-ink); }
.band.scale { flex: 3 1 0; background: var(--amber); color: var(--amber-ink); border-radius: 4px 14px 14px 4px; }

.ticks {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 251, 233, 0.8);
}

.ticks span {
  min-width: 0;
  display: flex;
}

.ticks .t-free { flex: 2 1 0; justify-content: space-between; }
.ticks .t-pro { flex: 3 1 0; justify-content: flex-end; }
.ticks .t-growth { flex: 3 1 0; justify-content: flex-end; }
.ticks .t-scale { flex: 3 1 0; justify-content: flex-end; }
.ticks .edge { transform: translateX(50%); }

@media (max-width: 760px) {
  .scale-bar {
    margin-top: 32px;
  }
  .bands {
    flex-direction: column;
    min-height: 0;
  }
  .band {
    flex-direction: row;
    align-items: baseline;
    padding: 16px;
    min-height: 72px;
  }
  .band strong {
    font-size: 22px;
    flex: 1;
  }
  .band span {
    font-size: 13px;
  }
  .band .range {
    display: inline;
    flex: 0 0 auto;
    order: -1;
    width: 72px;
    font-weight: 500;
    font-size: 12px;
  }
  .band.free { border-radius: 12px 12px 4px 4px; }
  .band.scale { border-radius: 4px 4px 12px 12px; }
  .ticks {
    display: none;
  }
}

.table-box {
  margin-top: 40px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
}

.table-box table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.table-box thead tr {
  background: var(--ink);
  color: var(--cream);
}

.table-box th,
.table-box td {
  text-align: left;
  padding: 16px 24px;
}

.table-box thead th {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  width: 15%;
}

.table-box thead th:first-child {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  width: 40%;
}

.table-box thead .pro { color: var(--teal); }
.table-box thead .growth { color: var(--sky); }
.table-box thead .scale { color: var(--amber); }

.table-box tbody tr {
  border-top: 1px solid rgba(20, 19, 58, 0.12);
}

.table-box tbody th {
  font-weight: 500;
}

.table-box td {
  font-weight: 600;
}

.table-box .none {
  color: #6a6890;
  font-weight: 400;
}

.tick {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--ink) center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5L5.5 11L12 3' fill='none' stroke='%23b3f782' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  vertical-align: middle;
}

@media (max-width: 760px) {
  .table-box {
    margin-top: 16px;
    border-radius: 14px;
  }
  .table-box table {
    min-width: 560px;
    font-size: 14px;
  }
  .table-box th,
  .table-box td {
    padding: 12px 14px;
  }
  .table-box thead th {
    font-size: 17px;
  }
}

.month {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.month strong {
  font-weight: 600;
}

.month span {
  font-size: 14px;
}

.month.over {
  background: var(--ink-2);
  border: 2px solid var(--amber);
}

.month.over span,
.month.fine span {
  color: rgba(255, 251, 233, 0.8);
}

.month.paused {
  background: var(--coral);
  color: var(--coral-ink);
}

.month.fine {
  background: var(--ink-2);
  border: 2px solid var(--lime);
}

.notes {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 251, 233, 0.8);
}

.notes p {
  margin: 0;
}

/* ---------- Landing and help pages ---------- */

.facts-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
}

.facts-list li {
  background: #fff;
  border-top: 6px solid var(--coral);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  line-height: 1.5;
}

.facts-list .label {
  color: var(--coral-on-paper);
  font-size: 11px;
}

.source {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-light);
}

.source a,
.article a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 96px);
}

.article .eyebrow a {
  color: inherit;
}

.article h1 {
  margin-top: 16px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.article h2 {
  margin-top: 40px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

.article p,
.article li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-light);
}

.article p {
  margin: 14px 0 0;
}

.article .lede {
  font-size: clamp(18px, 1.6vw, 21px);
}

.article ul,
.article ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.article li + li {
  margin-top: 6px;
}

.article strong {
  color: var(--ink);
  font-weight: 600;
}

.article-end {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 19, 58, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.article-end p {
  margin: 0;
  font-size: 15px;
  max-width: 360px;
}

/* Help: the questions listed beside the answers on wide screens, above
   them on narrow ones. Plain links on hairlines, no cards. */
.help-top {
  max-width: 760px;
  padding-top: clamp(48px, 7vw, 96px);
}

.help-top h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.help-top .lede {
  margin: 16px 0 0;
}

.help-top a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 72px;
  padding-block: 40px clamp(48px, 7vw, 96px);
}

.help-layout .article {
  padding-block: 0;
}

.help-toc {
  font-size: 14px;
  line-height: 1.4;
}

/* The rule is drawn inside the rail's padding, so it lines up with the text. */
.help-toc::before {
  content: "";
  display: block;
  border-top: 2px solid var(--ink);
}

.help-toc-head {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-on-paper);
}

.help-toc ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.help-toc li + li {
  margin-top: 4px;
}

.help-toc a {
  color: inherit;
  text-decoration: none;
}

.help-toc li a {
  color: var(--muted-light);
}

.help-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article h2.help-group {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.article h2.help-group:first-child {
  margin-top: 0;
}

.article .line-list.help-guides {
  margin: 8px 0 0;
  padding-left: 0;
}

.article .line-list.help-guides li {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  margin-top: 0;
}

.article .line-list.help-guides li:first-child {
  border-top: 0;
}

.article .line-list.help-guides a.k {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

@media (min-width: 1000px) {
  .help-layout {
    grid-template-columns: 250px minmax(0, 760px);
  }
  .help-toc {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    /* Room for the focus ring, which the scroll box would otherwise clip. */
    margin-left: -8px;
    padding: 0 8px 8px;
  }
}

@media (max-width: 760px) {
  .article .line-list.help-guides li {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .facts-list {
    margin-top: 24px;
  }
  .article p,
  .article li {
    font-size: 16px;
  }
}

.plans-note {
  margin: 28px 0 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  color: #3d3b66;
}

/* ---------- Plain-English first screen ---------- */

.hero .btn-row {
  margin-top: 32px;
  align-items: flex-start;
}

/* ---------- Coming soon ----------
   The App Store listing isn't live yet. Each block sits between
   <!--soon CLASS|LABEL--> and <!--/soon--> on one line; docs/MARKETING_SITE.md
   has the one command that turns them back into Install buttons. */

.soon {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
}

.soon-note {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid currentColor;
}

.soon-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.soon-link {
  white-space: nowrap;
}

.light .soon-link,
.lime-band .soon-link {
  background: var(--ink);
  color: var(--cream);
}

.soon-mail {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.plan .soon {
  margin-top: auto;
}

.plan.free-light .soon-link { background: var(--ink); color: var(--cream); }
.plan.pro .soon-link { background: var(--teal-ink); color: var(--cream); }
.plan.growth .soon-link { background: var(--sky-ink); color: var(--cream); }
.plan.scale .soon-link { background: var(--amber-ink); color: var(--cream); }

/* ---------- Worked examples ---------- */

/* ---------- First steps ---------- */

/* ---------- Glossary ---------- */

.gloss {
  margin: 32px 0 0;
}

.gloss dt {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
}

.gloss dd {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-light);
}

/* ---------- Over-limit months (one copy for every width) ---------- */

.months-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px 20px;
}

.months-list .who {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.months-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.months-list .m {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--quiet-dark);
  margin-bottom: 4px;
}

.months-list .month {
  padding: 12px 14px;
}

/* Small caps labels: written in sentence case in the HTML, so they read
   normally without the stylesheet; shown in capitals here. */

.article h3 {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.3;
}

/* The worked example sits on a paper section on Home: keep its own colours. */

/* Anchored sections land with a little room above them. */
[id] {
  scroll-margin-top: 24px;
}

/* Plan cards are narrow in the four-across row: let the button wrap there. */
.plan .soon-link {
  white-space: normal;
}

/* A page's opening paragraph, straight under its title. */
.hero > .lede {
  margin-top: 32px;
  max-width: 680px;
}

@media (max-width: 760px) {
  .hero > .lede {
    margin-top: 20px;
  }
}

/* ---------- Site structure (Nov 2026): menu, app windows, rule sentences, lists ----------
   Home, How it works and the six use-case pages are built from these. The design
   source is the Claude Design canvas "Navigator site, direction B", boards
   "New structure". */

/* Use cases menu: opens on hover only. The link itself goes to Home's use-case
   tiles, so keyboard and touch users reach the same six pages there (and in
   the footer) with no extra tab stops and nothing to dismiss. */
.drop-wrap {
  position: relative;
}

.drop-wrap > a::after {
  content: " ▾";
  font-size: 12px;
}

.drop {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 6;
  min-width: 300px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.drop-wrap > a {
  display: inline-block;
  padding-block: 10px;
}

.drop-wrap:hover .drop {
  display: block;
}

.nav-links .drop a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links .drop a:hover {
  background: #f1ead0;
  opacity: 1;
}

.nav-links .drop a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--teal-on-paper);
}

.drop :focus-visible {
  outline-color: var(--ink);
}

.menu-group {
  padding: 14px 0 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet-dark);
}

.menu-panel a.sub {
  padding-left: 16px;
  font-size: 16px;
}

/* Text beside a picture; the picture drops under the text when there's no room. */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: center;
}

.split > .text {
  flex: 1 1 400px;
  min-width: 0;
}

.split > .visual {
  flex: 1 1 520px;
  min-width: 0;
}

.split.top {
  align-items: flex-start;
}

.split > .visual.narrow {
  flex-basis: 380px;
  max-width: 520px;
}

.split .h2 {
  max-width: 16ch;
}

/* A drawn app window: the chrome, a title row, then a table or rows. */
.app-window {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 19, 58, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.app-window .chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f1efe6;
  border-bottom: 1px solid #e6e3d6;
  font-size: 13px;
  font-weight: 600;
  color: #5a5880;
}

.app-window .chrome::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 40px;
  border-radius: 50%;
  background: #d9d6c8;
  box-shadow: 16px 0 #d9d6c8, 32px 0 #d9d6c8;
}

.app-title {
  margin: 0;
  padding: 18px 20px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  align-items: baseline;
}

.app-title strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.app-title span,
.app-sub {
  font-size: 13px;
  color: #5a5880;
}

.app-sub {
  margin: 0;
  padding: 0 20px 10px;
  font-size: 15px;
  color: var(--muted-light);
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.app-table th {
  padding: 8px 10px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5880;
}

.app-table td {
  padding: 13px 10px;
  vertical-align: top;
  border-top: 1px solid #e6e3d6;
}

.app-table th:first-child,
.app-table td:first-child {
  padding-left: 20px;
}

.app-table th:last-child,
.app-table td:last-child {
  padding-right: 20px;
}

.app-table .num {
  font-family: var(--mono);
  font-weight: 600;
  color: #5a5880;
}

.app-table .loc {
  font-weight: 600;
}

.app-table .log-why {
  color: var(--muted-light);
}

.app-table.big {
  font-size: 16px;
}

.app-table.big td {
  padding-block: 15px;
  vertical-align: middle;
}

.app-table tr.ships td {
  background: #eef9e2;
}

.kind {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e3f7d1;
  color: #234d00;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.res {
  font-weight: 600;
}

.res.ok {
  color: #1f6a00;
}

.res.no {
  color: #8a2d1a;
}

.res.next {
  color: #5a5880;
  font-weight: 500;
}

.app-rows {
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
}

.app-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #e6e3d6;
  font-size: 16px;
}

.app-rows li span:first-child {
  color: var(--muted-light);
}

.app-rows li span:last-child {
  font-weight: 600;
}

figure.shot {
  margin: 0;
}

figure.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--quiet-dark);
}

/* On a phone, each table row becomes a short card: one line per cell, labelled. */
@media (max-width: 640px) {
  .app-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .app-table tr {
    display: block;
    padding: 12px 20px;
    border-top: 1px solid #e6e3d6;
  }
  .app-table td,
  .app-table.big td,
  .app-table td:first-child,
  .app-table td:last-child {
    display: block;
    padding: 2px 0;
    border: 0;
  }
  .app-table tr.ships {
    background: #eef9e2;
  }
  /* Home's log shows its first three orders on a phone. */
  .app-table tr.log-more {
    display: none;
  }
  .app-table td[data-label]::before {
    content: attr(data-label) ": ";
    content: attr(data-label) ": " / "";
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a5880;
  }
}

/* A rule written the way the app shows it: a sentence with the choices as tokens. */
.rule-line {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.rule-line.small {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
  letter-spacing: 0;
}

.tok {
  display: inline-block;
  padding: 0 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(20, 19, 58, 0.24);
  white-space: nowrap;
  line-height: 1.4;
}

.dark .tok,
.ink-2 .tok {
  background: rgba(255, 251, 233, 0.1);
  border-color: rgba(255, 251, 233, 0.24);
}

/* Plain links with one line each, separated by hairlines (the other use
   cases at the foot of a use-case page). */
.ink-2 {
  background: var(--ink-2);
  color: var(--cream);
}

.ink-2 .eyebrow {
  color: var(--teal);
}

.ink-2 .lede,
.ink-2 .body {
  color: var(--muted-dark);
}

.link-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  column-gap: 48px;
}

.link-list li {
  border-top: 1px solid var(--line-dark);
}

.link-list a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0 24px;
  text-decoration: none;
}

.link-list strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.link-list .arrow {
  color: var(--lime);
}

.link-list a > span:last-child {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 251, 233, 0.78);
}

.link-list.compact strong {
  font-size: 20px;
}

.link-list.compact a > span:last-child {
  font-size: 15px;
}

/* Home: the use cases as tiles, the same picture as the App Store listing's
   first screenshot. Each tile is one link: an icon in its rule type's colour,
   a name and one line. On a phone a tile is a row, icon on the left. */
.case-grid {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.case-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 22px 22px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.case-grid a:hover,
.case-grid a:focus-visible {
  outline-color: var(--lime);
}

.case-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}

.case-icon.amber { background: rgba(255, 200, 87, 0.36); color: var(--amber-on-paper); }
.case-icon.teal { background: rgba(52, 195, 168, 0.22); color: var(--teal-on-paper); }
.case-icon.coral { background: rgba(255, 138, 92, 0.24); color: var(--coral-on-paper); }
.case-icon.sky { background: rgba(140, 225, 248, 0.45); color: var(--sky-on-paper); }
.case-icon.lime { background: rgba(179, 247, 130, 0.5); color: #3d7a12; }

.case-grid strong {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.case-what {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted-light);
  text-wrap: balance;
}

/* Two across below 1100px: four across there is too narrow for
   "Stock for walk-ins" on one line. */
@media (max-width: 1100px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .case-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 8px;
  }
  .case-grid a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 12px 14px;
  }
  .case-icon {
    grid-row: span 2;
  }
  .case-grid strong {
    margin-top: 0;
    font-size: 18px;
  }
  .case-what {
    margin-top: 2px;
    font-size: 15px;
  }
}

/* Two-column rows on hairlines: a name, then what it means. */
.line-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(20, 19, 58, 0.16);
}

.line-list li {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 6px 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(20, 19, 58, 0.16);
  align-items: baseline;
}

.line-list.wide li {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 10px 48px;
  padding: 26px 0;
}

.line-list .k {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.line-list .k small {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-light);
}

.line-list .v {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted-light);
}

.ink-2 .line-list,
.dark .line-list,
.ink-2 .line-list li,
.dark .line-list li {
  border-color: var(--line-dark);
}

.ink-2 .line-list .v,
.dark .line-list .v,
.ink-2 .line-list .k small,
.dark .line-list .k small {
  color: rgba(255, 251, 233, 0.78);
}

.name-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(20, 19, 58, 0.16);
}

.name-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(20, 19, 58, 0.16);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.step-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-bottom: 1px solid rgba(20, 19, 58, 0.16);
}

.step-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(20, 19, 58, 0.16);
  font-size: 18px;
  line-height: 1.5;
}

.step-list li {
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  min-width: 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--teal-on-paper);
}

.step-list strong {
  font-weight: 600;
}

.two-col {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px 64px;
}

/* Questions: three short answers in a row. */
.qa {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 48px;
}

.qa > div {
  padding: 20px 0;
  border-top: 1px solid rgba(20, 19, 58, 0.16);
}

.qa dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.qa dd {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted-light);
}

/* Plans as one row of prices on hairlines. */
.plan-row {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.plan-row li {
  flex: 1 1 200px;
  padding: 20px 24px 20px 0;
  border-top: 2px solid var(--cream);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-row-name,
.plan-row-limit {
  font-size: 15px;
  color: rgba(255, 251, 233, 0.75);
}

.plan-row-name {
  font-weight: 600;
}

.plan-row-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-row-price small {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.crumb {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
}

/* Home's opening: the headline on two or three lines, then the twelve
   use-case tiles under a small title, then a small line on who it's for,
   the free plan and who makes it. */
.hero-title.home {
  max-width: 26ch;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
}

.case-title {
  margin-top: 56px;
}

.case-title + .case-grid {
  margin-top: 20px;
}

.hero .body.small {
  margin-top: 28px;
}

.paper-rule {
  border-top: 1px solid rgba(20, 19, 58, 0.12);
}

@media (max-width: 760px) {
  .line-list li,
  .line-list.wide li {
    grid-template-columns: minmax(0, 1fr);
  }
  .split {
    gap: 40px;
  }
  .link-list strong {
    font-size: 21px;
  }
}

/* Footer: two columns of links, use cases and the rest. */
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 72px;
}

.footer-cols .footer-links {
  flex-direction: column;
  gap: 12px;
}

.footer-head {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 251, 233, 0.6);
}

@media (max-width: 760px) {
  .footer-cols .footer-links {
    gap: 0;
  }
  .footer-head {
    padding-bottom: 4px;
  }
}

.menu-panel a[aria-current] {
  color: var(--lime);
  font-weight: 600;
}

/* A heading beside a list sits in a narrow column: smaller than a full-width one. */
.split.top > .text .h2 {
  font-size: clamp(30px, 3vw, 44px);
}

/* Home, How it works: the four kinds of rules as four columns, each with an
   example sentence, then the three steps as their own numbered row. */
.rule-grid {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
}

.rule-grid li {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.rule-grid h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}

.rule-grid p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted-light);
}

.steps-title {
  margin: 64px 0 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.step-row {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px 32px;
}

.step-row li {
  padding-top: 16px;
  border-top: 1px solid rgba(20, 19, 58, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
  line-height: 1.5;
}

.step-row .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--teal-on-paper);
}

.step-row strong {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 20px;
}

.step-row li > span:last-child {
  color: var(--muted-light);
}

/* A drawn storefront window: the shop's own pages with Navigator's two theme
   blocks, in their real wording. Neutral colours, so it reads as the shop's
   theme, not Navigator. */
.store-pair {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px;
  align-items: start;
}

.store-window {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid rgba(20, 19, 58, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.store-bar {
  padding: 10px 16px;
  background: #f2f2f2;
  border-bottom: 1px solid #e3e3e3;
}

.store-bar span {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  color: #666666;
}

.store-product {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
}

.store-photo {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: linear-gradient(160deg, #d9e4dd, #b9cbbf);
}

.store-window p {
  margin: 0;
}

.store-name {
  font-size: 22px;
  font-weight: 600;
}

.store-window .store-price {
  margin-top: 6px;
  font-size: 17px;
  color: #444444;
}

.store-window .store-size {
  margin-top: 16px;
  font-size: 15px;
}

/* The two Navigator blocks: plain text in the shop's own style, as they
   render; the dashed outline only points them out in the picture. */
.store-window .store-ships,
.store-window .store-check {
  margin-top: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  outline: 2px dashed #6fbf3f;
  outline-offset: 2px;
  font-size: 15px;
  line-height: 1.45;
}

.store-btn {
  margin-top: 16px;
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: #1f1f1f;
  color: #ffffff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.store-cart {
  padding: 24px;
}

.store-lines {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.store-lines li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 16px;
}

.store-window .store-check {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

.store-check .box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.store-pair figcaption {
  margin-top: 16px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
}

.dark .store-pair figcaption,
.ink-2 .store-pair figcaption {
  color: var(--muted-dark);
}

.light .store-pair figcaption {
  color: var(--muted-light);
}

.dark .store-pair .text-link,
.ink-2 .store-pair .text-link {
  color: var(--lime);
}

@media (max-width: 520px) {
  .store-product {
    grid-template-columns: minmax(0, 1fr);
  }
  .store-photo {
    aspect-ratio: 16 / 9;
  }
}
