/* One stylesheet for every page of the funnel. The accent color comes from the offer file
   (set as --accent in the page head). Everything else is defined here. */

:root {
  --ink: #1d2a2f;
  --ink-soft: #46565c;
  --line: #dde3e5;
  --field: #b6c1c4;
  --tint: #f1f5f8;
  --error: #a3261b;
  --error-bg: #fbeceb;
  --bg: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-wide {
  max-width: 1080px;
}

/* Header and footer */
.site-header {
  padding: 22px 0;
}

/* The header lines up with the content width of wider pages. */
.page-dev .site-header .wrap {
  max-width: 1080px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-footer {
  margin-top: 24px;
  padding: 40px 0 56px;
  color: var(--ink-soft);
  font-size: 15px;
}

.site-footer p {
  margin-bottom: 0.4em;
}

/* Sales page */
.hero {
  padding: 40px 0 48px;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.cta-row {
  margin-top: 28px;
}

.cta-note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.block {
  padding: 36px 0;
}

.plain-list {
  margin: 0;
  padding-left: 1.2em;
}

.plain-list li {
  margin-bottom: 0.6em;
  padding-left: 0.2em;
}

.plain-list.muted {
  color: var(--ink-soft);
}

.price-block {
  background: var(--tint);
  padding: 48px 0;
  margin: 24px 0;
}

.price {
  margin: 4px 0 24px;
}

.price .amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.price-note {
  color: var(--ink-soft);
  font-size: 16px;
  margin-left: 8px;
}

.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 0 16px;
}

.faq details[open] {
  padding-bottom: 4px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 28px 14px 0;
  position: relative;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

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

.faq details p {
  color: var(--ink-soft);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.button:hover {
  background: color-mix(in srgb, var(--accent) 82%, #000000);
}

.button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.button-large {
  font-size: 18px;
  padding: 17px 28px;
}

.button-small {
  font-size: 15px;
  padding: 9px 16px;
}

.button-block {
  width: 100%;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Checkout, upsell, downsell and thank-you: one card, 560px wide at most on phones and tablets,
   2 columns in a 1000px card from 960px. Accent shades are mixed from the offer's --accent.
   Every colour is the accent or mixed from it, so the brief's accent colour drives the whole page.
   The --co-offer-* shades mark offers: the order bump frame, its hook line, the upsell price box. */
.page-checkout {
  background: #f7f8f8;
}

.page-checkout .site-header .wrap {
  max-width: 600px;
}

.checkout,
.fn-bank {
  --co-text: #1d2a2f;
  --co-muted: #5f6b70;
  --co-border: #d7dcde;
  --co-tint: color-mix(in srgb, var(--accent) 7%, #ffffff);
  --co-tint-line: color-mix(in srgb, var(--accent) 22%, #ffffff);
  --co-offer-line: color-mix(in srgb, var(--accent) 72%, #ffffff);
  --co-offer-ink: var(--accent);
  --co-offer-bg: #fefceb; /* warm cream so the add-on stands out next to the accent */
  padding: 0 0 64px;
}

.checkout .wrap {
  max-width: 600px;
}

.co {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 18px;
  background: #ffffff;
  border: 1px solid #e3e7e8; /* taste-skill-ignore: the checkout card edge, as in the reference checkout */
  border-radius: 18px;
  color: var(--co-text);
  font-size: 16px;
  line-height: 1.5;
}

.co [hidden] {
  display: none !important;
}

.co-h {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: var(--co-text);
}

.co-lede {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--co-muted);
}

.co-price-lead {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.co-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--co-muted);
}

.co-opts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.co-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--co-border);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.co-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--co-tint);
  box-shadow: 0 0 0 1px var(--accent); /* taste-skill-ignore: thicker edge on the chosen option, not a shadow */
}

.co-opt input,
.co-bump input,
.co-consent input {
  flex: none;
  margin: 0;
  accent-color: var(--accent);
}

.co-opt input {
  width: 20px;
  height: 20px;
}

.co-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.co-opt-price {
  font-size: 17px;
  font-weight: 700;
}

.co-opt-sub {
  font-size: 14px;
  color: var(--co-muted);
}

.co-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 14px;
}

.co-field {
  display: block;
  min-width: 0;
}

.co-field input,
.co-field select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--co-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--co-text);
  font: inherit;
  font-size: 16px;
}

.co-field select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--co-muted) 50%), linear-gradient(135deg, var(--co-muted) 50%, transparent 50%); /* taste-skill-ignore: the select arrow, drawn with two triangles */
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.co-field input:focus,
.co-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); /* taste-skill-ignore: focus ring */
}

.co-field input[aria-invalid="true"] {
  border-color: var(--error);
}

.co-payment {
  display: flow-root;
  min-height: 40px;
  margin: 0 0 14px;
}

.co-mock .co-field {
  margin-bottom: 12px;
}

.co-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.co-mock-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f3f3;
  font-size: 13px;
  color: var(--co-muted);
}

.co-mandate {
  margin: 2px 0 14px;
  font-size: 14px;
  color: var(--co-muted);
}

.co-bump {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 14px;
  border: 2px dashed var(--co-offer-line);
  border-radius: 12px;
  background: var(--co-offer-bg);
  cursor: pointer;
}

.co-bump:has(input:checked) {
  border-style: solid;
  border-color: var(--accent);
  background: var(--co-offer-bg);
}

.co-bump input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.co-bump-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.co-bump-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--co-offer-ink);
}

.co-bump-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 15px;
  font-weight: 700;
}

.co-bump-title > span:first-child {
  min-width: 0;
  text-wrap: balance;
}

.co-bump-price {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: var(--accent);
  font-size: 14px;
}

.co-bump-desc {
  font-size: 15.5px;
  line-height: 1.5;
  color: #44535a;
}

.co-summary {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #eceeee; /* taste-skill-ignore: receipt box edge */
  border-radius: 12px;
  background: #fbfbfb;
  font-size: 15px;
}

.co-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.co-line > span:first-child {
  min-width: 0;
  text-wrap: balance;
}

.co-line > span:last-child {
  flex: none;
}

.co-total {
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--co-border); /* taste-skill-ignore: receipt line above the total */
  font-size: 16px;
  font-weight: 700;
}

.co-note {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.co-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--co-muted);
  cursor: pointer;
}

.co-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.co-pay {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 6px 0 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  cursor: pointer;
}

.co-pay:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 80%, #000000);
}

.co-pay:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, #ffffff);
  outline-offset: 2px;
}

.co-pay:disabled {
  opacity: 0.6;
  cursor: progress;
}

.co-err {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 14px;
  text-align: center;
}

.co-guarantee {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--co-tint-line); /* taste-skill-ignore: guarantee box edge, as in the reference checkout */
  border-radius: 12px;
  background: var(--co-tint);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-wrap: balance;
}

.co-micro {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--co-muted);
}

@media (min-width: 560px) {
  .co {
    padding: 28px 26px;
  }

  .co-opts,
  .co-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.co-side-label {
  display: none;
}

/* Wide screens: choices and fields on the left, the order and the button on the right (sticky). */
@media (min-width: 960px) {
  .page-checkout .site-header .wrap,
  .checkout .wrap {
    max-width: 1048px;
  }

  .co-wide {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
    max-width: 1000px;
    padding: 36px 40px;
  }

  .co-head {
    grid-column: 1 / -1;
  }

  .co-main,
  .co-side {
    min-width: 0;
  }

  .co-side {
    position: sticky;
    top: 20px;
    padding-left: 40px;
    border-left: 1px solid #eceeee; /* taste-skill-ignore: divider between the 2 columns */
  }

  .co-side-label {
    display: block;
  }

  .co-wide .co-bump:last-child {
    margin-bottom: 0;
  }

  .checkout .fn-progress {
    max-width: 1000px;
  }
}

/* After the payment: progress line, upsell and downsell, thank-you. */
.fn-progress {
  max-width: 560px;
  margin: 0 auto 16px;
}

.fn-progress-text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--co-text);
}

.fn-progress-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}

.fn-progress-bar span {
  height: 6px;
  border-radius: 3px;
  background: var(--co-tint-line);
}

.fn-progress-bar span.is-done {
  background: var(--accent);
}

.fn-progress-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--co-muted);
}

.fn-flag {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--co-offer-ink);
}

.fn-flag-plain {
  color: var(--co-muted);
}

.fn-order-id {
  text-transform: none;
  letter-spacing: 0;
}

.fn-h {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  line-height: 1.2;
  color: var(--co-text);
}

.fn-desc {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #34444a;
}

.fn-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.fn-list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.5;
}

.fn-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.fn-price {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--co-offer-line); /* taste-skill-ignore: frame of the offer price */
  border-radius: 12px;
  background: var(--co-offer-bg);
}

.fn-price-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.fn-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
}

.fn-amount {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.fn-price-note {
  font-size: 15px;
  font-weight: 600;
  color: var(--co-offer-ink);
}

.fn-card-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--co-muted);
}

.fn-skip-form {
  margin: 14px 0 0;
  text-align: center;
}

.fn-skip {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--co-muted);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.fn-skip:hover {
  color: var(--co-text);
}

.fn-skip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, #ffffff);
  outline-offset: 2px;
  border-radius: 4px;
}

.fn-link-button {
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
}

.fn-narrow p {
  font-size: 16.5px;
}

.fn-bank {
  width: min(400px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--co-border); /* taste-skill-ignore: edge of the simulated bank window */
  border-radius: 18px;
  color: var(--co-text);
  font-size: 16px;
}

.fn-bank::backdrop {
  background: rgba(29, 42, 47, 0.45);
}

.fn-bank-note {
  font-size: 13px;
  color: var(--co-muted);
}

.fn-bank-actions {
  display: grid;
  gap: 8px;
  text-align: center;
}

/* Notices: confirmation, errors */
.notice {
  padding: 32px 0 80px;
}

.notice h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.dev-hint {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Access page */
.access {
  padding: 24px 0 72px;
}

.access-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.access-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--tint);
  border-radius: var(--radius);
}

.access-label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}

.access-title {
  font-weight: 600;
}

.access-pending {
  flex: none;
  font-size: 14px;
  color: var(--ink-soft);
}

.access-meta {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0.4em;
}

/* Public demo (DEMO_MODE=1): the bar on every page and the demo-only blocks */
.demobar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
  justify-content: space-between;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 16px;
}

.demobar p {
  margin: 0;
}

.demobar-links {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

.demobar a {
  color: #ffffff;
  font-weight: 600;
}

.demobar a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .demobar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 24px;
  }
}

.demo-box {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  font-size: 16px;
}

.demo-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}

.demo-box p:last-child {
  margin-bottom: 0;
}

/* Under the checkout-style card: as wide as the card (560px, 1000px from 960px). */
.demo-below {
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .demo-below {
    max-width: 1000px;
  }
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.demo-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.access-note {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-soft);
}

.demo-email-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0 0 16px;
  font-size: 16px;
}

.demo-email-meta dt {
  color: var(--ink-soft);
}

.demo-email-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-email-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.demo-page {
  padding: 24px 0 72px;
}

.demo-page h2 {
  margin-top: 1.4em;
}

/* Local dev tools */
.devbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 20px;
}

.devbar span {
  margin-right: auto;
}

.devbar a {
  color: #ffffff;
}

.dev {
  padding: 8px 0 64px;
}

.table-scroll {
  overflow-x: auto;
}

.dev table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.dev th,
.dev td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.email-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  font-size: 15px;
}

.email-meta dt {
  font-weight: 600;
}

.email-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.email-frame {
  width: 100%;
  height: 560px;
  border: 1px solid var(--line); /* taste-skill-ignore: frame around the email preview (local tool) */
  border-radius: 8px;
  margin-top: 16px;
}

.email-text pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 15px;
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 24px 0 36px;
  }

  .cta-row .button {
    display: block;
  }

  .access-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.dev-action {
  margin: 0 0 12px;
}

/* Screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Guide pages (funnel/access/guide.js): a step list on the left, the form, the 2 ways and the steps
   on the right. One column below 960px, where the step list folds above the content. */
.page-guide {
  --gap-bg: #fff0a6; /* the yellow mark for an empty field, with --ink text (contrast 13:1) */
  --guide-tint: color-mix(in srgb, var(--accent) 6%, #ffffff);
  --guide-line: color-mix(in srgb, var(--accent) 20%, #ffffff);
}

.page-guide a:focus-visible,
.page-guide button:focus-visible,
.page-guide textarea:focus-visible,
.page-guide pre:focus-visible,
.page-guide input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.guide-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.guide-back {
  font-size: 15px;
}

.guide {
  padding: 8px 0 96px;
}

.guide h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.guide-top {
  max-width: 760px;
  margin-bottom: 28px;
}

.guide-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 20px;
}

.guide-count {
  margin: 0;
  font-size: 16px;
}

.guide-bar {
  flex: 1 1 160px;
  max-width: 280px;
  height: 8px;
  background: var(--guide-line);
  border-radius: 4px;
  overflow: hidden;
}

.guide-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.button-secondary {
  background: #ffffff;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.button-secondary:hover {
  background: var(--guide-tint, #f4f7f9);
}

.guide-layout {
  display: grid;
  gap: 24px;
}

.guide-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-nav summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.guide-nav summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--ink-soft);
}

.guide-nav[open] summary::after {
  content: "\2212";
}

.guide-nav-count {
  margin-left: auto;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-soft);
}

.guide-nav nav {
  padding-bottom: 12px;
}

.guide-nav-stage {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.guide-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-nav-list a {
  display: block;
  padding: 9px 8px;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.guide-nav-list a:hover {
  background: var(--guide-tint);
}

.guide-nav-no {
  display: inline-block;
  min-width: 2.2em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.guide-nav-list .is-done a {
  color: var(--ink-soft);
}

.guide-nav-list .is-done .guide-nav-no {
  color: var(--accent);
  font-weight: 700;
}

.guide-nav-done {
  color: var(--accent);
  font-size: 14px;
}

.guide-section {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.guide-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-stage-no {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.guide-load {
  margin: 16px 0 8px;
}

.guide-load .guide-hint {
  margin-top: 8px;
}

.guide-load-status:empty {
  display: none;
}

.guide-load-status {
  font-size: 15px;
  font-weight: 600;
}

.guide-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.guide-field label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-weight: 600;
}

.guide-optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.guide-empty-flag {
  font-size: 13px;
  font-weight: 600;
  background: var(--gap-bg);
  padding: 1px 8px;
  border-radius: 4px;
}

.guide-hint {
  margin: 2px 0 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.guide-field input,
.guide-field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: #ffffff;
}

.guide-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.guide-field.is-empty input,
.guide-field.is-empty textarea {
  border-color: #b49b14;
  background: #fffdf0;
}

.guide-form-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 14px;
}

.guide-save {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.guide-link-button {
  background: none;
  border: 0;
  padding: 10px 0;
  font: inherit;
  font-size: 15px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.guide-print-values {
  display: none;
}

.guide-ways {
  display: grid;
  gap: 16px;
}

.guide-way {
  padding: 20px;
  border: 1px solid var(--guide-line);
  border-radius: var(--radius);
}

.guide-way h3 {
  margin-top: 0;
}

.guide-way h4,
.guide-step h4 {
  font-family: var(--sans);
  font-size: 16px;
  margin: 18px 0 6px;
}

.guide-way-steps,
.guide-rules,
.guide-done-when {
  padding-left: 1.2em;
  margin: 0 0 14px;
  font-size: 16px;
}

.guide-way-steps li,
.guide-rules li,
.guide-done-when li {
  margin-bottom: 6px;
}

.guide-command-line {
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: var(--guide-tint);
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  white-space: pre-wrap;
}

.guide-step {
  margin: 20px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 16px;
}

.guide-step.is-done {
  border-color: var(--guide-line);
  background: var(--guide-tint);
}

.guide-step h3 {
  margin-top: 0;
}

.guide-step-no {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.guide-why {
  color: var(--ink-soft);
}

.guide-prompt {
  margin: 16px 0;
}

.guide-prompt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 6px;
  font-size: 14px;
}

.guide-prompt-label {
  font-weight: 600;
}

.guide-missing {
  background: var(--gap-bg);
  padding: 0 8px;
  border-radius: 4px;
}

.guide-prompt-text,
.guide-example pre,
.guide-command pre {
  margin: 0;
  padding: 14px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-command pre {
  max-height: none;
}

.gap {
  background: var(--gap-bg);
  color: var(--ink);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.guide-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-table-scroll {
  overflow-x: auto;
  margin: 12px 0 16px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.guide-table th,
.guide-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
}

.guide-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.guide-command p {
  margin: 12px 0 6px;
  font-size: 15px;
}

.guide-example {
  margin: 14px 0;
}

.guide-example summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.guide-tick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 2px solid var(--guide-line);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.guide-tick input {
  width: 24px;
  height: 24px;
  flex: none;
  accent-color: var(--accent);
}

.guide-step.is-done .guide-tick {
  border-color: var(--accent);
  background: #ffffff;
}

.guide-end {
  margin-top: 24px;
  color: var(--ink-soft);
}

.guide-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  font-size: 15px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.guide-toast.is-on {
  opacity: 1;
}

@media (min-width: 760px) {
  .guide-ways {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .guide-nav {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border: 0;
  }

  .guide-nav summary {
    pointer-events: none;
  }

  .guide-nav summary::after,
  .guide-nav[open] summary::after {
    content: none;
  }

  .guide-content {
    max-width: 780px;
  }
}

@media (max-width: 480px) {
  .guide-step,
  .guide-way {
    padding: 16px 14px;
  }

  .guide-actions .button {
    flex: 1 1 100%;
  }

  .guide-table tbody th {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-toast {
    transition: none;
  }
}

/* Print guide: the filled prompts, conditions and examples, without buttons and form controls. */
@media print {
  .devbar,
  .guide-nav,
  .guide-back,
  .guide-actions,
  .guide-load,
  .guide-form,
  .guide-form-foot,
  .guide-progress button,
  .guide-toast,
  .guide-way .button,
  .guide-note,
  .guide-missing {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  .guide-layout {
    display: block;
  }

  .guide-print-values {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    font-size: 11pt;
  }

  .guide-print-values dt {
    font-weight: 600;
  }

  .guide-print-values dd {
    margin: 0;
    white-space: pre-wrap;
  }

  .guide-step {
    background: none;
  }

  .guide-prompt-text,
  .guide-example pre {
    max-height: none;
    overflow: visible;
    background: none;
  }

  .guide-tick input {
    accent-color: #000000;
  }
}

/* A real deadline (funnel/server/deadline.js): plain text near the button, no clock graphics. */
.countdown {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, #ffffff);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.countdown p {
  margin: 0;
}

.countdown-line {
  font-size: 17px;
}

.countdown-line strong {
  font-variant-numeric: tabular-nums;
}

.countdown-date {
  margin-top: 4px !important;
  font-size: 14px;
  color: var(--ink-soft);
}

.countdown-compact {
  margin: 0 0 16px;
}

.co-side .countdown-compact {
  margin: 12px 0;
}

.co-side .countdown-line {
  font-size: 15px;
}

.closed-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.closed-note p:last-child {
  margin-bottom: 0;
}

/* Offers sold in Poland: the invoice fields and the choice of payment method on the checkout. */
.co-invoice {
  margin: 4px 0 14px;
  font-size: 15px;
}

.co-invoice summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 0;
}

.co-invoice .co-row {
  margin-top: 8px;
}

.co-methods {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.co-methods legend {
  padding: 0;
  margin-bottom: 8px;
}

.co-method {
  flex: 1 1 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.co-method:has(input:checked) {
  border-color: var(--accent);
  background: var(--tint);
}
