/* Vendora design system.
   Tokens first, then the components every page shares. Layout shells
   (marketplace, storefront, workspace) live in their own files and only
   arrange these pieces; they do not restyle them. */

:root {
  /* Brand palette */
  --navy: #10243A;
  --navy-700: #1B3550;
  --navy-50: #EDF0F4;
  --teal: #087E83;
  --teal-700: #066A6E;
  --teal-50: #E6F2F2;
  --gold: #D5A65A;
  --gold-50: #FAF3E6;
  --off-white: #F5F6F4;
  --white: #FFFFFF;
  --charcoal: #263238;
  --muted: #75818C;

  /* Neutrals derived from the palette */
  --line: #E2E5E3;
  --line-strong: #C9CFD0;
  --surface-2: #FAFBFA;

  /* Status colours: only for meaning, never for decoration */
  --success: #1E7349;  --success-50: #E8F3EC;
  --warning: #8A5A00;  --warning-50: #FBF2DE;
  --danger:  #B3261E;  --danger-50:  #FBEAE8;
  --info:    #1F5A8F;  --info-50:    #E8EFF7;
  --whatsapp: #168A45; --whatsapp-700: #12733A;

  /* Type */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: .75rem;  --fs-sm: .8125rem;  --fs-base: .9375rem;  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem; --fs-xl: 1.5rem;     --fs-2xl: 2rem;

  /* Spacing, on a 4 px grid */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  /* Shape and depth: two radii, two shadows */
  --r-sm: 6px;
  --r-md: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 58, .06);
  --shadow-md: 0 12px 32px -12px rgba(16, 36, 58, .22);

  /* Controls share one height so buttons and fields line up */
  --control: 44px;
  --control-sm: 36px;
  --control-lg: 52px;

  /* Breakpoints (for reference; CSS variables cannot be used in media queries)
     sm 640px, md 900px, lg 1200px */
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--fs-base)/1.55 var(--font);
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; }
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0; }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 var(--s2); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); }
@media (min-width: 900px) { h1 { font-size: var(--fs-2xl); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s4); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 640px) { .container { padding: 0 var(--s6); } }
@media (min-width: 1200px) { .container { padding: 0 var(--s8); } }

.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.code { font-family: var(--mono); font-size: .9em; background: var(--navy-50); color: var(--navy); padding: 1px 6px; border-radius: 4px; }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* --- icons ------------------------------------------------------------ */

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic .fill, .ic--fill { fill: currentColor; stroke: none; }
.ic--sm { width: 16px; height: 16px; }

/* --- logo ------------------------------------------------------------- */

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; }
.logo--icon img { height: 32px; }

/* --- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--control); padding: 0 var(--s5);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 var(--fs-base)/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--accent { background: var(--teal); color: #fff; }
.btn--accent:hover { background: var(--teal-700); color: #fff; }
.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy-50); color: var(--navy); }
.btn--danger { background: var(--white); color: var(--danger); border-color: #E7B9B5; }
.btn--danger:hover { background: var(--danger-50); color: var(--danger); }
.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: var(--whatsapp-700); color: #fff; }
.btn--wa-outline { background: var(--white); color: var(--whatsapp-700); border-color: #B9DCC7; }
.btn--wa-outline:hover { border-color: var(--whatsapp); color: var(--whatsapp-700); }
.btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--teal-700); font-weight: 600; }
.btn--link:hover { color: var(--navy); text-decoration: underline; }

.btn--sm { min-height: var(--control-sm); padding: 0 var(--s3); font-size: var(--fs-sm); }
.btn--lg { min-height: var(--control-lg); padding: 0 var(--s6); font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: var(--control); }
.btn--icon.btn--sm { width: var(--control-sm); }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--secondary.is-loading::after, .btn--ghost.is-loading::after { border-color: var(--line-strong); border-top-color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.btn-row--center { justify-content: center; }

/* --- forms ------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); min-width: 0; }
.field:last-child { margin-bottom: 0; }
.label, .field > label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.label .opt, .field > label .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--danger); }
.hint { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.field-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.field-grid .field { margin: 0; }
@media (min-width: 640px) {
  .field-grid--2 { grid-template-columns: 1fr 1fr; }
  .field-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .field-grid .span-all { grid-column: 1 / -1; }
}

.input, input[type=text], input[type=search], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; min-height: var(--control); padding: 10px 12px;
  background: var(--white); color: var(--charcoal);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--fs-base); line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9AA3AB; }
input:hover, select:hover, textarea:hover { border-color: #AEB6BB; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 126, 131, .16); }
input[aria-invalid="true"], .field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: var(--fs-sm); color: var(--danger); margin: 0; }
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375818C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { opacity: .5; }

.input-group {
  display: flex; align-items: stretch; background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden;
}
.input-group:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 126, 131, .16); }
.input-group > span { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--muted); white-space: nowrap; font-size: var(--fs-base); background: var(--surface-2); padding-right: 10px; border-right: 1px solid var(--line); }
.input-group input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }

.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; font-size: var(--fs-base); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.check b { display: block; color: var(--navy); font-weight: 600; }
.check small { display: block; color: var(--muted); font-size: var(--fs-sm); }

.search {
  position: relative; display: flex; align-items: center;
}
.search .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; }

/* Selectable cards: delivery choices, layouts, plans */
.choice {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choice + .choice { margin-top: var(--s2); }
.choice:hover { border-color: #AEB6BB; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal); }
.choice input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; flex: none; }
.choice .grow { flex: 1; min-width: 0; }
.choice .grow small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.choice .end { font-weight: 600; color: var(--navy); white-space: nowrap; }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s5);
}
@media (min-width: 900px) { .card { padding: var(--s6); } }
.card--flush { padding: 0; overflow: hidden; }
/* A flush card with drop-down menus in it: let the menus show past its edge,
   and round the table's own corners instead of clipping them. */
.card--menus { overflow: visible; }
.card--menus thead th:first-child { border-top-left-radius: var(--r-md); }
.card--menus thead th:last-child { border-top-right-radius: var(--r-md); }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  margin-bottom: var(--s4);
}
.card__head h2, .card__head h3 { margin: 0; font-size: var(--fs-md); }
.card__head a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card--flush .card__head { padding: var(--s4) var(--s5); margin: 0; border-bottom: 1px solid var(--line); }
.card__foot { padding: var(--s3) var(--s5); border-top: 1px solid var(--line); background: var(--surface-2); }

/* --- badges ----------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 4px;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--navy-50); color: var(--navy);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge--plain::before { display: none; }
.badge--success { background: var(--success-50); color: var(--success); }
.badge--warning { background: var(--warning-50); color: var(--warning); }
.badge--danger  { background: var(--danger-50);  color: var(--danger); }
.badge--info    { background: var(--info-50);    color: var(--info); }
.badge--teal    { background: var(--teal-50);    color: var(--teal-700); }
.badge--gold    { background: var(--gold-50);    color: #8A6420; }
.badge--neutral { background: #EEF0EF; color: #5B656E; }

/* --- alerts and toasts -------------------------------------------------- */

.alert {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s3) var(--s4); border-radius: var(--r-sm);
  border: 1px solid; font-size: var(--fs-base); margin-bottom: var(--s5);
}
.alert .ic { margin-top: 1px; }
.alert p { margin: 0; }
.alert--success { background: var(--success-50); color: var(--success); border-color: #C5E1D0; }
.alert--danger  { background: var(--danger-50);  color: var(--danger);  border-color: #F0C9C5; }
.alert--warning { background: var(--warning-50); color: var(--warning); border-color: #EFDDB2; }
.alert--info    { background: var(--info-50);    color: var(--info);    border-color: #C9DAEB; }

.toasts {
  position: fixed; z-index: 90; left: 50%; bottom: var(--s6); transform: translateX(-50%);
  display: flex; flex-direction: column; gap: var(--s2); width: min(440px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r-sm);
  background: var(--navy); color: #fff; box-shadow: var(--shadow-md);
  font-weight: 500; pointer-events: auto;
  animation: toast-in .25s var(--ease);
}
.toast .ic { color: #7FD3C4; }
.toast--danger .ic { color: #F4A79F; }
.toast button { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; padding: 2px; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* --- tabs ------------------------------------------------------------- */

.tabs {
  display: flex; gap: var(--s1); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s5);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--s3) var(--s3); margin-bottom: -1px;
  color: var(--muted); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--navy); }
.tabs a.is-active { color: var(--navy); border-bottom-color: var(--teal); }
.tabs .count { font-size: var(--fs-xs); background: var(--navy-50); color: var(--navy); border-radius: 4px; padding: 0 6px; }

/* --- tables ----------------------------------------------------------- */

.table { font-size: var(--fs-sm); }
.table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .04em;
  padding: var(--s3) var(--s4); background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .r { text-align: right; }
.table .who b { display: block; color: var(--navy); font-weight: 600; }
.table .who span, .table .sub { display: block; color: var(--muted); font-size: var(--fs-xs); }
.table a.row-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.table a.row-link:hover { color: var(--teal-700); }
.table .thumb { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; background: var(--navy-50); flex: none; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.table .with-thumb { display: flex; align-items: center; gap: var(--s3); min-width: 180px; }
.table-wrap { overflow-x: auto; }

/* On phones each row becomes a small card, labelled from data-label. */
@media (max-width: 720px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack tbody tr:hover td { background: none; }
  .table--stack td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: var(--s3); text-align: right; }
  .table--stack td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-xs); text-align: left; flex: none; }
  .table--stack td[data-label=""]::before, .table--stack td:not([data-label])::before { content: none; }
  .table--stack td.lead { display: block; text-align: left; padding-bottom: var(--s2); }
  .table--stack td.lead::before { content: none; }
  .table--stack .r { text-align: right; }
}

/* --- KPI tiles -------------------------------------------------------- */

.kpis { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } }
.kpi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s4); min-width: 0; display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; color: inherit;
}
a.kpi:hover { border-color: var(--line-strong); color: inherit; }
.kpi__label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.kpi__label .ic { width: 16px; height: 16px; color: var(--teal); }
.kpi__value { font-size: var(--fs-xl); font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi__note { font-size: var(--fs-xs); color: var(--muted); }
.kpi--alert { border-color: #EFDDB2; background: #FFFCF5; }
.kpi--alert .kpi__label .ic { color: var(--warning); }

/* --- empty, error and loading states ----------------------------------- */

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--s10) var(--s5); color: var(--muted);
}
.empty__icon {
  width: 48px; height: 48px; border-radius: var(--r-md); margin-bottom: var(--s4);
  display: grid; place-items: center; background: var(--navy-50); color: var(--navy);
}
.empty h3 { margin-bottom: var(--s1); }
.empty p { max-width: 36em; margin: 0 0 var(--s4); }
.empty p:last-child { margin-bottom: 0; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--teal);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- dialogs ---------------------------------------------------------- */

.dialog {
  border: 0; padding: 0; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  width: min(440px, calc(100% - 32px)); color: var(--charcoal);
}
.dialog::backdrop { background: rgba(16, 36, 58, .45); }
.dialog__body { padding: var(--s6); }
.dialog__body h2 { font-size: var(--fs-lg); }
.dialog__actions { display: flex; justify-content: flex-end; gap: var(--s2); padding: var(--s4) var(--s6); background: var(--surface-2); border-top: 1px solid var(--line); flex-wrap: wrap; }
.dialog[open] { animation: dialog-in .2s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } }
.dialog__close {
  position: absolute; top: var(--s3); right: var(--s3); z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; color: var(--navy);
}

/* --- pagination ------------------------------------------------------- */

.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); font-size: var(--fs-sm); color: var(--muted); }

/* --- product media ----------------------------------------------------- */

.media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  background: var(--navy-50); border-radius: var(--r-sm);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.media__none { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #9AA8B5; }

/* --- utilities for page headers ----------------------------------------- */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.page-head h1 { margin: 0; }
.page-head p { margin: var(--s1) 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: var(--s2); }
.back:hover { color: var(--navy); }
.back .ic { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- plans and pricing (templates/_pricing.html) -------------------------
   Shared by the homepage, /pricing and the seller's billing page. */
.cycle-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.cycle-toggle button { border: 0; background: none; font: 600 var(--fs-sm)/1 var(--font); color: var(--muted); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.cycle-toggle button span { font-weight: 600; color: var(--teal-700); margin-left: 4px; }
.cycle-toggle button.is-on { background: var(--navy); color: var(--white); }
.cycle-toggle button.is-on span { color: #8FD3CC; }
.plan-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: var(--s3); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6); color: var(--charcoal); }
.plan-card--flagged { padding-top: var(--s8); }
.plan-card--popular { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.plan-card__flag { position: absolute; top: -1px; left: var(--s6); background: var(--teal); color: var(--white); font-size: var(--fs-xs); font-weight: 600; padding: 4px 10px; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.plan-card__name { font-size: var(--fs-lg); margin: 0; color: var(--navy); }
.plan-card__desc { margin: 0; color: var(--muted); font-size: var(--fs-sm); min-height: 2.6em; }
.plan-card__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.plan-card__price b { font-size: var(--fs-2xl); color: var(--navy); letter-spacing: -.01em; }
.plan-card__price span { color: var(--muted); }
.plan-card__price small { flex-basis: 100%; color: var(--teal-700); font-weight: 600; font-size: var(--fs-sm); }
.plan-card__offer { margin: 0; display: flex; gap: 6px; align-items: center; background: var(--gold-50); color: #7A5617; font-size: var(--fs-sm); font-weight: 600; padding: 6px 10px; border-radius: var(--r-sm); }
.plan-card__limit { margin: 0; display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: var(--fs-sm); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.plan-card__limit .ic, .plan-card__list .ic { color: var(--teal); flex: none; }
.plan-card__summary { margin: 0; color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.plan-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); font-size: var(--fs-sm); flex: 1; }
.plan-card__list li { display: flex; gap: var(--s2); align-items: flex-start; }
.plan-card__list .ic { margin-top: 3px; }
.plan-card__cta { margin-top: var(--s2); }

/* A subscription receipt: one plain sheet that prints well. */
.receipt-page { background: var(--off-white); }
.receipt { max-width: 560px; margin: var(--s10) auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s8); }
.receipt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-bottom: var(--s6); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.receipt__head h1 { margin: 0; font-size: var(--fs-xl); text-align: right; color: var(--navy); }
.receipt__head p { margin: 0; text-align: right; color: var(--muted); font-family: var(--mono); }
.receipt .facts { margin: 0; display: flex; flex-direction: column; }
.receipt .facts div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.receipt .facts dt { color: var(--muted); }
.receipt .facts dd { margin: 0; text-align: right; font-weight: 500; }
.receipt .facts__total { border-top: 2px solid var(--navy); border-bottom: 0 !important; }
.receipt .facts__total dt, .receipt .facts__total dd { color: var(--navy); font-weight: 700; font-size: var(--fs-md); }
.receipt__foot { margin: var(--s6) 0 0; color: var(--muted); font-size: var(--fs-xs); text-align: center; }
.receipt__actions { margin: var(--s5) 0 0; display: flex; gap: var(--s3); justify-content: center; }
@media (max-width: 600px) { .receipt { margin: 0; border-radius: 0; border-width: 0 0 1px; padding: var(--s6) var(--s4); } }
@media print { .receipt__actions { display: none; } .receipt { border: 0; margin: 0; } .receipt-page { background: #fff; } }
