/*
 * The MachPilot account page: where an owner sees their plan and pays for it.
 * Tokens are the product's own (design/tokens.css, source of truth .sumi/style.json): boom amber as the
 * one accent, the soil ramp for the ground, Archivo for the wordmark and headings, IBM Plex Sans for text.
 */
@font-face {
  font-family: "Archivo";
  src: url("/account/fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/account/fonts/IBMPlexSans.ttf") format("truetype");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --amber-400: #ffc23d;
  --amber-500: #fbad0a;
  --amber-ink-light: #845a00;
  --navy-800: #0f2b4a;
  --soil-50: #f7f6f3;
  --soil-100: #efebe8;
  --soil-200: #ddd8d3;
  --soil-400: #a9a49c;
  --soil-500: #867f78;
  --soil-600: #665f59;
  --soil-700: #49423d;
  --soil-850: #221812;
  --soil-900: #1a120f;
  --soil-950: #0e0a08;
  --chalk-50: #f7f6f3;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --radius-chip: 8px;
  --radius-control: 12px;
  --radius-sheet: 20px;
  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --canvas: var(--soil-50);
  --surface: #ffffff;
  --surface-sunken: var(--soil-100);
  --border: var(--soil-200);
  --border-strong: var(--soil-500);
  --ink: var(--soil-950);
  --ink-muted: var(--soil-600);
  --accent: var(--amber-500);
  --accent-hover: var(--amber-400);
  --accent-ink: var(--soil-950);
  --accent-text: var(--amber-ink-light);
  --focus: var(--navy-800);
  --danger: #b32322;
  --danger-surface: #ffeae7;
  --success: #1a763f;
  --success-surface: #e4f4ea;
  --warning: #8a4b00;
  --warning-surface: #fff1d6;
  --scrim: rgb(14 10 8 / 0.6);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: var(--soil-950);
    --surface: var(--soil-900);
    --surface-sunken: var(--soil-850);
    --border: var(--soil-700);
    --border-strong: var(--soil-500);
    --ink: var(--chalk-50);
    --ink-muted: var(--soil-400);
    --accent-text: var(--amber-400);
    --focus: var(--amber-400);
    --danger: #f6857a;
    --danger-surface: #431613;
    --success: #78d694;
    --success-surface: #10301f;
    --warning: #ffc96b;
    --warning-surface: #3a2606;
    --scrim: rgb(0 0 0 / 0.66);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--text-base) / 1.6 var(--font-text);
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border-radius: var(--radius-control);
  z-index: 10;
}
.skip:focus {
  top: var(--space-2);
}

/* --- frame ------------------------------------------------------------------------------------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) max(var(--space-4), calc((100vw - 960px) / 2));
  background: #07121f;
  color: var(--chalk-50);
}

.wordmark {
  font: 800 var(--text-md) / 1 var(--font-display);
  font-stretch: 125%;
  letter-spacing: 0.14em;
  color: var(--chalk-50);
  text-decoration: none;
}

.page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-12);
  flex: 1;
}
.page:focus {
  outline: none;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: center;
  padding: var(--space-6) var(--space-4) var(--space-8);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}
.foot a {
  color: var(--ink-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.loading {
  color: var(--ink-muted);
}

/* --- type ---------------------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 {
  font-size: var(--text-xl);
  font-weight: 800;
  font-stretch: 112%;
}
h2 {
  font-size: var(--text-lg);
  font-weight: 750;
  font-stretch: 112%;
}
h3 {
  font-size: var(--text-md);
  font-weight: 700;
}
/* Space between blocks is set where they sit, never by the browser's own margins. */
p,
dl,
dd {
  margin: 0;
}

/* The logo's arc: a short amber rule above the heading it belongs to. */
.ruled::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: var(--space-3);
}

.muted {
  color: var(--ink-muted);
}
.small {
  font-size: var(--text-sm);
}

/* --- pieces -------------------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: var(--space-6) var(--space-5);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.section {
  margin-top: var(--space-10);
}
.section > * + * {
  margin-top: var(--space-4);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px var(--space-3);
  border-radius: var(--radius-chip);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--surface-sunken);
  color: var(--ink);
}
.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.chip.good {
  background: var(--success-surface);
  color: var(--success);
}
.chip.warn {
  background: var(--warning-surface);
  color: var(--warning);
}
.chip.bad {
  background: var(--danger-surface);
  color: var(--danger);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
}
.facts dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.facts dd {
  margin: var(--space-1) 0 0;
  font-weight: 600;
}

.notice {
  border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.notice.bad {
  background: var(--danger-surface);
  border-color: transparent;
  color: var(--danger);
}
.notice.good {
  background: var(--success-surface);
  border-color: transparent;
  color: var(--success);
}
.card > .notice {
  margin-top: var(--space-4);
}

/* --- controls ------------------------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 var(--text-base) / 1 var(--font-text);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.button:hover {
  background: var(--surface-sunken);
}
/* A link dressed as a button reads as a button: no underline. */
a.button {
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.button.primary:hover {
  background: var(--accent-hover);
}
.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}
.button.wide {
  width: 100%;
}

.link-button {
  min-height: 44px;
  padding: 0 var(--space-3);
  background: none;
  border: 1px solid rgb(247 246 243 / 0.4);
  border-radius: var(--radius-control);
  color: var(--chalk-50);
  font: 600 var(--text-sm) / 1 var(--font-text);
  cursor: pointer;
}

.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-weight: 600;
}
.field input {
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: 400 var(--text-md) / 1.2 var(--font-text);
  width: 100%;
}
.field .row {
  display: flex;
  gap: var(--space-2);
}
.field .row input {
  flex: 1;
  min-width: 0;
}
.field-error {
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 500;
}
.field-error:empty {
  display: none;
}

/* The months to pay for, chosen once for every plan. */
.periods {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.periods button {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: 600 var(--text-sm) / 1 var(--font-text);
  cursor: pointer;
}
.periods button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.plans {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: var(--space-5);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: var(--space-5);
}
.plan.current {
  border: 2px solid var(--accent);
}
/* A button that reads as a link inside a sentence — "Not your business? Sign out". */
.link-inline {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* The plan tapped in the app, picked out when the page opens from it. */
.plan.chosen {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgb(251 173 10 / 0.28);
}
.plan.chosen:focus {
  outline: none;
}
.plan .chip {
  align-self: flex-start;
}
.plan .price {
  font: 800 var(--text-xl) / 1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.plan .per {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.plan .why {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.plan .button {
  margin-top: auto;
}

/* --- payments ---------------------------------------------------------------------------------- */

.payments {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  overflow: hidden;
}
.payments li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) var(--space-5);
}
.payments li + li {
  border-top: 1px solid var(--border);
}
.payments .what {
  min-width: 0;
}
.payments .amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- dialogs ------------------------------------------------------------------------------------- */

dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  color: var(--ink);
}
dialog::backdrop {
  background: var(--scrim);
}
dialog .inner {
  padding: var(--space-6) var(--space-5);
}
dialog .inner > * + *,
.receipt > * + * {
  margin-top: var(--space-3);
}
dialog .actions {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
}

.receipt table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.receipt th,
.receipt td {
  text-align: left;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.receipt td:last-child,
.receipt th:last-child {
  text-align: right;
}
.receipt .total td {
  font-weight: 800;
  border-bottom: 0;
}
.receipt .parties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.policy {
  max-width: 72ch;
}
.policy h2 {
  margin-top: var(--space-8);
}
.policy p {
  margin: var(--space-3) 0 0;
}
.policy ul {
  margin: var(--space-3) 0 0;
  padding-left: var(--space-5);
}
.policy li + li {
  margin-top: var(--space-2);
}
.policy .back {
  margin-top: var(--space-10);
}
.policy .updated {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.policy a {
  color: inherit;
  text-underline-offset: 3px;
}

/* --- pricing ------------------------------------------------------------------------------------- */

/*
 * The Pricing page belongs to the website, so it stands on machpilot.in's ground in every browser: the
 * soil ramp, chalk ink and amber, the engineering-paper grid behind the heading, and the plans laid
 * on it as rate cards. Same tokens as everything above; only the dark values are chosen for it.
 */
:root.site-dark {
  --canvas: var(--soil-950);
  --surface: var(--soil-900);
  --surface-sunken: var(--soil-850);
  --border: rgb(247 246 243 / 0.1);
  --border-strong: var(--soil-500);
  --ink: var(--chalk-50);
  --ink-2: #c3bcb7;
  --ink-muted: var(--soil-400);
  --accent-text: var(--amber-400);
  --focus: var(--amber-400);
  color-scheme: dark;
}

.pricing {
  --pr-gutter: var(--space-5);
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .pricing {
    --pr-gutter: var(--space-8);
  }
}
@media (min-width: 1100px) {
  .pricing {
    --pr-gutter: var(--space-12);
  }
}

.pr-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pr-gutter);
}

/* The website's own bar: the name, where else to go, and the way in. */
.pr-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
  padding-block: var(--space-3);
  padding-inline: max(var(--pr-gutter), calc((100% - 1200px) / 2 + var(--pr-gutter)));
  border-bottom: 1px solid var(--border);
  background: rgb(14 10 8 / 0.95);
  backdrop-filter: blur(12px);
}
.pr-bar .wordmark {
  margin-right: auto;
}
.pr-bar nav {
  display: flex;
  gap: var(--space-6);
}
.pr-bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.pr-bar nav a:hover,
.pr-bar nav a[aria-current="page"] {
  color: var(--ink);
}
.pr-bar nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.pr-signin {
  min-height: 44px;
  background: transparent;
}
@media (max-width: 719px) {
  .pr-wide {
    display: none !important;
  }
}
@media (max-width: 479px) {
  .pr-bar nav {
    display: none;
  }
}

/* The heading on engineering paper, fading into the ground before the plans. */
.pr-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 calc(var(--space-12) * 2.5);
}
.pr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(247 246 243 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(247 246 243 / 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
  mask-image: linear-gradient(to bottom, #000 35%, transparent);
}
/* On a wide screen the heading takes the left and what to know before choosing the right, so the
   plans begin within the first screen. */
.pr-hero-grid {
  display: grid;
  gap: var(--space-8);
}
.pr-hero-side .pr-facts {
  margin-top: 0;
}
@media (min-width: 1000px) {
  .pr-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: var(--space-12);
    align-items: end;
  }
  .pr-hero-side .pr-facts {
    flex-direction: column;
  }
}
.pr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 var(--text-xs) / 1 var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.pr-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.pricing h1 {
  margin-top: var(--space-5);
  font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.pricing h1 span {
  display: block;
  color: var(--ink-muted);
}
.pr-lede {
  margin-top: var(--space-6);
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.pr-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}
.pr-facts li,
.pr-covers li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
}
.tick {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The period, chosen once for every card. Shown only where the browser can act on it (see below). */
.pr-periods {
  display: none;
  min-width: 0;
  margin: var(--space-10) 0 0;
  padding: 0;
  border: 0;
}
.pr-periods-label {
  padding: 0;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-muted);
}
.pr-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
}
.pr-seg label {
  position: relative;
  display: inline-flex;
}
.pr-seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pr-seg span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-chip);
  font-weight: 600;
  color: var(--ink-2);
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.pr-seg label:hover input:not(:checked) + span {
  color: var(--ink);
  background: var(--surface-sunken);
}
.pr-seg input:checked + span {
  background: var(--ink);
  color: var(--canvas);
}
.pr-seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* The plans, laid over the edge of the heading: rate cards of one height. */
.pr-plans {
  position: relative;
  margin-top: calc(var(--space-12) * -1.5);
}
.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--space-5);
}
.pr-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  box-shadow: 0 24px 60px -32px rgb(0 0 0 / 0.9);
}
.pr-card h2 {
  font-size: var(--text-lg);
  color: var(--ink);
}
.pr-for {
  margin-top: var(--space-2);
  min-height: 3.2em;
  color: var(--ink-muted);
}
.pr-price {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.pr-amount {
  font: 800 clamp(2.25rem, 1.9rem + 1.2vw, 3rem) / 1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pr-per {
  margin-top: var(--space-2);
  font-weight: 500;
  color: var(--ink-2);
}
.pr-each {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.pr-none {
  color: var(--ink-muted);
}
.pr-choose {
  margin-top: var(--space-6);
}
.pr-choose:hover {
  border-color: var(--accent);
}
.pr-covers {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.pr-empty {
  color: var(--ink-2);
}

/*
 * With :has(), the chosen period alone shows on every card. Without it — an old browser — every period
 * stays listed under the price, so nothing is ever hidden that cannot be shown again.
 */
@supports selector(:has(*)) {
  .pr-periods {
    display: block;
  }
  .pricing:has(.pr-periods) .pr-option {
    display: none;
    min-height: 6.75rem;
  }
  .pricing:has(#period-0:checked) .pr-option[data-period="0"],
  .pricing:has(#period-1:checked) .pr-option[data-period="1"],
  .pricing:has(#period-2:checked) .pr-option[data-period="2"],
  .pricing:has(#period-3:checked) .pr-option[data-period="3"],
  .pricing:has(#period-4:checked) .pr-option[data-period="4"],
  .pricing:has(#period-5:checked) .pr-option[data-period="5"],
  .pricing:has(#period-6:checked) .pr-option[data-period="6"],
  .pricing:has(#period-7:checked) .pr-option[data-period="7"] {
    display: block;
  }
}

/* What follows the plans: one rhythm, wider between sections than within them. */
.pr-section {
  margin-top: calc(var(--space-12) * 2);
}
.pricing .pr-section h2.ruled {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pr-sub {
  margin-top: var(--space-3);
  max-width: 60ch;
  color: var(--ink-muted);
}
.pr-included {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-6) var(--space-10);
  margin-top: var(--space-8);
}
@media (min-width: 1100px) {
  .pr-included {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pr-included dt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--ink);
}
/* The site's diamond bullet. */
.pr-included dt::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--accent);
}
.pr-included dd {
  margin-top: var(--space-2);
  color: var(--ink-muted);
}

.pr-steps {
  display: grid;
  gap: var(--space-8);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .pr-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
  }
}
/* A step's number, stencilled in amber outline, as on the website. */
.pr-step-no {
  display: block;
  font: 800 2.75rem / 1 var(--font-display);
  font-stretch: 112%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.pr-steps h3 {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--ink);
}
.pr-steps p {
  margin-top: var(--space-2);
  max-width: 36ch;
  color: var(--ink-muted);
}

/* As on the website: the heading holds the left, the questions the right. */
@media (min-width: 1000px) {
  .pr-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: var(--space-12) calc(var(--space-12) * 1.5);
    align-items: start;
  }
  .pr-faq-head {
    position: sticky;
    top: 104px;
  }
  .pr-faq .pr-questions {
    margin-top: 0;
  }
}
.pr-faq-head a {
  color: var(--accent-text);
}
.pr-questions {
  margin-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.pr-questions details {
  border-bottom: 1px solid var(--border);
}
.pr-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.pr-questions summary::-webkit-details-marker {
  display: none;
}
.pr-questions summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-weight: 400;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.pr-questions summary:hover {
  color: var(--accent-text);
}
.pr-questions details[open] > summary::after {
  transform: rotate(45deg);
  border-color: var(--accent);
}
.pr-questions p {
  max-width: 68ch;
  padding: 0 var(--space-10) var(--space-5) 0;
  color: var(--ink-2);
}
.pr-questions a {
  color: var(--accent-text);
}

.pr-ask {
  display: grid;
  gap: var(--space-6);
  margin: calc(var(--space-12) * 2) 0 var(--space-12);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  background: var(--surface);
}
@media (min-width: 900px) {
  .pr-ask {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--space-10);
  }
}
.pr-ask h2 {
  font-size: var(--text-lg);
  color: var(--ink);
}
.pr-ask p {
  margin-top: var(--space-2);
  max-width: 60ch;
  color: var(--ink-muted);
}
.pr-ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.pr-ask-actions .button {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.pricing .foot a[aria-current="page"] {
  color: var(--ink);
}
.pr-legal {
  flex-basis: 100%;
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

@media (min-width: 720px) {
  .card {
    padding: var(--space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* A receipt prints on its own, on paper colours. */
@media print {
  body > *:not(dialog) {
    display: none !important;
  }
  dialog {
    position: static;
    width: 100%;
    max-height: none;
    border: 0;
    color: #000;
    background: #fff;
  }
  dialog::backdrop {
    display: none;
  }
  dialog .actions {
    display: none;
  }
}
