/* Swatch Tab: components. Built only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--st-page);
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: var(--st-text-body);
  line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.st-container { width: 100%; max-width: var(--st-container); margin: 0 auto; padding: 0 var(--st-space-4); }
.st-section { padding: var(--st-space-6) 0; }
.st-section--deep { background: var(--st-deep); }

/* Top strip and announcement */
.st-topbar { background: var(--st-deep); }
.st-topbar__inner { display: flex; justify-content: flex-end; align-items: center; gap: var(--st-space-2); min-height: 44px; }
.st-announce { background: var(--st-bar); }
.st-announce__inner { display: flex; align-items: center; justify-content: center; gap: var(--st-space-3); flex-wrap: wrap; padding: var(--st-space-3) var(--st-space-4); text-align: center; font-size: 15px; color: var(--st-soft); }
.st-announce strong { font-family: var(--st-font-head); color: var(--st-butter); font-weight: 700; }

/* Wordmark drawn from tiles */
.st-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--st-font-head); font-weight: 800; font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--st-text); }
.st-logo__mark { display: grid; grid-template-columns: repeat(3, 9px); gap: 2px; }
.st-logo__mark span { width: 9px; height: 9px; background: var(--st-text); }
.st-logo__mark span:nth-child(1) { background: var(--st-tangerine); }
.st-logo__mark span:nth-child(5) { background: var(--st-butter); }
.st-logo__mark span:nth-child(9) { background: var(--st-cobalt); }
.st-logo__mark span:nth-child(3), .st-logo__mark span:nth-child(7) { background: var(--st-leaf); }

/* Nav */
.st-nav { padding: var(--st-space-4) 0; }
.st-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-4); }
.st-nav__links { display: flex; gap: var(--st-space-5); list-style: none; margin: 0; padding: 0; }
.st-nav__links a { font-family: var(--st-font-head); font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--st-dim); font-size: 17px; letter-spacing: 0.02em; }
.st-nav__links a:hover, .st-nav__links a[aria-current] { color: var(--st-text); }
.st-nav__menu { width: 44px; height: 40px; border: 0; border-radius: var(--st-radius-sm); background: var(--st-card-hi); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.st-nav__menu span { display: block; width: 22px; height: 3px; background: var(--st-text); }
@media (max-width: 900px) { .st-nav__links { display: none; } }

/* Headlines */
.st-hero-title, .st-h2, .st-h3 { font-family: var(--st-font-head); font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.005em; margin: 0; }
.st-hero-title { font-size: var(--st-text-hero); }
.st-h2 { font-size: var(--st-text-h2); }
.st-h3 { font-size: var(--st-text-h3); font-weight: 700; line-height: 1.2; }
.st-hl { color: var(--st-butter); }
.st-lead { font-size: var(--st-text-lead); color: var(--st-soft); max-width: 620px; margin: var(--st-space-3) 0 0; }
.st-eyebrow { font-family: var(--st-font-head); font-style: italic; font-weight: 600; text-transform: uppercase; font-size: var(--st-text-tab); letter-spacing: 0.02em; color: var(--st-butter); margin: 0 0 var(--st-space-2); }
.st-mono { font-family: var(--st-font-mono); }

/* Buttons: flat with a pressed bottom edge */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-family: var(--st-font-head); font-weight: 700; font-size: 17px; text-decoration: none; border: 0; border-radius: var(--st-radius-sm); padding: 12px 20px; cursor: pointer; box-shadow: var(--st-press); transition: transform .08s, box-shadow .08s; }
.st-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--st-deep); }
.st-btn--primary { background: var(--st-butter); color: var(--st-ink); }
.st-btn--secondary { background: var(--st-card-hi); color: var(--st-text); }
.st-btn--ghost { background: transparent; color: var(--st-soft); box-shadow: none; padding-left: 4px; padding-right: 4px; }
.st-btn--sm { font-size: 14px; padding: 8px 12px; box-shadow: var(--st-press-sm); }
.st-btn--block { width: 100%; }
.st-btn--social { background: var(--st-card); color: var(--st-text); border: var(--st-border); box-shadow: none; font-family: var(--st-font-body); font-weight: 700; font-size: 15px; }
.st-btn__letter { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--st-teal); color: var(--st-ink); font-family: var(--st-font-head); font-weight: 800; font-size: 13px; }
.st-btn-row { display: flex; gap: var(--st-space-3); flex-wrap: wrap; margin-top: var(--st-space-4); }

/* Hero */
.st-hero { padding: var(--st-space-6) 0 var(--st-space-5); }
.st-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--st-space-5); align-items: center; }
@media (max-width: 900px) { .st-hero__grid { grid-template-columns: 1fr; } }

/* The signature: tabbed cards */
.st-card { background: var(--st-card); border-radius: var(--st-radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.st-card__tab { display: flex; justify-content: space-between; gap: var(--st-space-2); padding: 8px 16px; font-family: var(--st-font-head); font-style: italic; font-weight: 600; text-transform: uppercase; font-size: var(--st-text-tab); color: var(--st-text); background: var(--st-tangerine); }
.st-card__tab--butter { background: var(--st-butter); color: var(--st-ink); }
.st-card__tab--cobalt { background: var(--st-cobalt); }
.st-card__tab--leaf { background: var(--st-leaf); color: var(--st-ink); }
.st-card__tab--berry { background: var(--st-berry); }
.st-card__tab--teal { background: var(--st-teal); }
.st-card__body { padding: var(--st-space-3) var(--st-space-3) var(--st-space-4); flex: 1; }
.st-card__title { font-family: var(--st-font-head); font-weight: 700; text-transform: uppercase; font-size: 19px; line-height: 1.2; margin: 0 0 var(--st-space-2); }
.st-card__text { color: var(--st-soft); margin: 0; font-size: 15px; }
.st-card__foot { display: flex; justify-content: flex-end; padding: 0 var(--st-space-3) var(--st-space-3); }
.st-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--st-space-3); }
.st-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .st-cards, .st-cards--3 { grid-template-columns: 1fr; } }

/* Swatch tiles: flat squares, no gaps, no radius */
.st-swatch { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); border-radius: var(--st-radius-tile); }
.st-swatch > span { aspect-ratio: 1.6; }
.st-swatch--square > span { aspect-ratio: 1; }
.st-swatch__label { display: grid; place-items: center; font-family: var(--st-font-head); font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--st-ink); }
.st-row-head { display: flex; justify-content: space-between; align-items: center; gap: var(--st-space-3); flex-wrap: wrap; margin-bottom: var(--st-space-4); }
.st-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--st-space-3); }
@media (max-width: 900px) { .st-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Swatch background helpers */
.sw-tangerine { background: var(--st-tangerine); } .sw-butter { background: var(--st-butter); }
.sw-cobalt { background: var(--st-cobalt); } .sw-leaf { background: var(--st-leaf); }
.sw-berry { background: var(--st-berry); } .sw-teal { background: var(--st-teal); }
.sw-brick { background: var(--st-brick); } .sw-plum { background: var(--st-plum); }
.sw-cream { background: var(--st-cream); } .sw-sky { background: var(--st-sky); }
.sw-moss { background: var(--st-moss); } .sw-rose { background: var(--st-rose); }
.sw-deep { background: var(--st-deep); } .sw-card { background: var(--st-card-hi); }

/* Week board: the product visual */
.st-board { background: var(--st-card); border-radius: var(--st-radius); overflow: hidden; }
.st-board__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.st-board__day { font-family: var(--st-font-mono); font-size: 12px; text-transform: uppercase; color: var(--st-dim); padding: 8px 6px; text-align: center; background: var(--st-deep); }
.st-board__cell { aspect-ratio: 1; display: grid; place-items: end start; padding: 5px; font-family: var(--st-font-head); font-weight: 700; font-size: 11px; color: var(--st-ink); text-transform: uppercase; line-height: 1; overflow: hidden; }

/* Badges */
.st-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--st-font-mono); font-size: 12px; text-transform: uppercase; padding: 3px 8px; border-radius: var(--st-radius-sm); background: var(--st-card-hi); color: var(--st-soft); white-space: nowrap; }
.st-badge--butter { background: var(--st-butter); color: var(--st-ink); }
.st-badge--leaf { background: var(--st-leaf); color: var(--st-ink); }
.st-badge__chip { width: 10px; height: 10px; }

/* Steps list */
.st-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--st-space-3); counter-reset: step; }
.st-steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--st-space-3); align-items: start; counter-increment: step; }
.st-steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; font-family: var(--st-font-head); font-weight: 800; font-size: 20px; background: var(--st-butter); color: var(--st-ink); }
.st-steps li:nth-child(2)::before { background: var(--st-cobalt); color: var(--st-text); }
.st-steps li:nth-child(3)::before { background: var(--st-leaf); }
.st-steps h3 { margin: 0 0 4px; font-family: var(--st-font-head); text-transform: uppercase; font-size: 18px; }
.st-steps p { margin: 0; color: var(--st-soft); }

/* Quote */
.st-quote { margin: 0; background: var(--st-card); border-left: 8px solid var(--st-berry); padding: var(--st-space-4); border-radius: 0 var(--st-radius) var(--st-radius) 0; }
.st-quote p { font-family: var(--st-font-head); font-weight: 500; font-size: 24px; line-height: 1.35; margin: 0 0 var(--st-space-3); }
.st-quote cite { font-style: normal; color: var(--st-dim); font-size: 14px; }

/* Stats */
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--st-space-3); }
.st-stat { border-top: 6px solid var(--st-tangerine); padding-top: var(--st-space-3); }
.st-stat:nth-child(2) { border-color: var(--st-cobalt); }
.st-stat:nth-child(3) { border-color: var(--st-leaf); }
.st-stat b { display: block; font-family: var(--st-font-head); font-weight: 800; font-size: 44px; line-height: 1; }
.st-stat span { color: var(--st-soft); font-size: 15px; }
@media (max-width: 640px) { .st-stats { grid-template-columns: 1fr; } }

/* Pricing */
.st-toggle { display: inline-flex; background: var(--st-deep); border-radius: var(--st-radius-sm); padding: 4px; gap: 4px; }
.st-toggle button { border: 0; background: transparent; color: var(--st-dim); font-family: var(--st-font-head); font-weight: 700; text-transform: uppercase; font-size: 14px; padding: 8px 14px; border-radius: var(--st-radius-sm); cursor: pointer; white-space: nowrap; }
.st-toggle button[aria-pressed="true"] { background: var(--st-card-hi); color: var(--st-text); }
.st-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--st-space-3); align-items: stretch; }
@media (max-width: 900px) { .st-plans { grid-template-columns: 1fr; } }
.st-plan .st-card__body { display: flex; flex-direction: column; gap: var(--st-space-3); }
.st-plan__price { font-family: var(--st-font-head); font-weight: 800; font-size: 48px; line-height: 1; }
.st-plan__price small { font-size: 16px; font-weight: 500; color: var(--st-dim); }
.st-plan__desc { color: var(--st-soft); margin: 0; }
.st-plan__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.st-plan__list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; font-size: 15px; }
.st-plan__list li::before { content: ""; width: 10px; height: 10px; background: var(--st-leaf); }
.st-plan--featured { outline: 3px solid var(--st-butter); }
.st-table-wrap { overflow-x: auto; border-radius: var(--st-radius); }
.st-table { width: 100%; border-collapse: collapse; background: var(--st-card); font-size: 15px; min-width: 560px; }
.st-table th, .st-table td { padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--st-page); }
.st-table thead th { background: var(--st-deep); font-family: var(--st-font-head); font-style: italic; text-transform: uppercase; font-size: 14px; color: var(--st-soft); }
.st-yes::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--st-leaf); }
.st-no { color: var(--st-dim); }
.st-faq { display: grid; gap: var(--st-space-2); }
.st-faq details { background: var(--st-card); border-radius: var(--st-radius); }
.st-faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--st-font-head); font-weight: 700; text-transform: uppercase; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; color: var(--st-butter); font-size: 22px; line-height: 1; }
.st-faq details[open] summary::after { content: "-"; }
.st-faq details p { margin: 0; padding: 0 20px 18px; color: var(--st-soft); }

/* Article */
.st-article-head { max-width: var(--st-measure); margin: 0 auto; }
.st-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--st-font-mono); font-size: 13px; color: var(--st-dim); text-transform: uppercase; margin-top: var(--st-space-3); }
.st-prose { max-width: var(--st-measure); margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--st-soft); }
.st-prose h2 { font-family: var(--st-font-head); font-weight: 800; text-transform: uppercase; color: var(--st-text); font-size: 30px; line-height: 1.1; margin: var(--st-space-5) 0 var(--st-space-3); }
.st-prose h3 { font-family: var(--st-font-head); font-style: italic; font-weight: 600; text-transform: uppercase; color: var(--st-butter); font-size: 18px; margin: var(--st-space-4) 0 var(--st-space-2); }
.st-prose p { margin: 0 0 var(--st-space-3); }
.st-prose strong { color: var(--st-text); }
.st-prose a { color: var(--st-sky); }
.st-prose ul { padding: 0; list-style: none; margin: 0 0 var(--st-space-3); }
.st-prose ul li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.st-prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; background: var(--st-tangerine); }
.st-prose code { font-family: var(--st-font-mono); font-size: 0.85em; background: var(--st-card); color: var(--st-text); padding: 2px 6px; border-radius: var(--st-radius-sm); }
.st-prose blockquote { margin: var(--st-space-4) 0; padding: 0 0 0 var(--st-space-3); border-left: 8px solid var(--st-cobalt); font-family: var(--st-font-head); font-weight: 500; font-size: 24px; line-height: 1.35; color: var(--st-text); }
.st-prose figure { margin: var(--st-space-4) 0; }
.st-prose figcaption { font-family: var(--st-font-mono); font-size: 13px; color: var(--st-dim); margin-top: 8px; }
.st-callout { background: var(--st-card); border-radius: var(--st-radius); overflow: hidden; margin: var(--st-space-4) 0; }
.st-callout p { padding: var(--st-space-3); margin: 0; }
.st-author { display: flex; align-items: center; gap: 12px; }
.st-avatar { width: 44px; height: 44px; display: grid; grid-template-columns: 1fr 1fr; flex: none; }
.st-avatar span:nth-child(1) { background: var(--st-berry); } .st-avatar span:nth-child(2) { background: var(--st-butter); }
.st-avatar span:nth-child(3) { background: var(--st-cobalt); } .st-avatar span:nth-child(4) { background: var(--st-tangerine); }
.st-author b { display: block; font-family: var(--st-font-head); text-transform: uppercase; font-size: 15px; }
.st-author small { color: var(--st-dim); }

/* Forms */
.st-form { display: grid; gap: var(--st-space-3); }
.st-field { display: grid; gap: 6px; }
.st-label { font-family: var(--st-font-head); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 0.02em; }
.st-input, .st-select { width: 100%; font: inherit; color: var(--st-text); background: var(--st-deep); border: var(--st-border); border-radius: var(--st-radius-sm); padding: 12px 14px; }
.st-input::placeholder { color: var(--st-dim); }
.st-input:focus, .st-select:focus { outline: none; border-color: var(--st-butter); }
.st-input-wrap { position: relative; }
.st-input-wrap .st-input { padding-right: 72px; }
.st-input-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--st-card-hi); color: var(--st-soft); font-family: var(--st-font-mono); font-size: 12px; text-transform: uppercase; padding: 5px 8px; border-radius: var(--st-radius-sm); cursor: pointer; }
.st-help { font-size: 13px; color: var(--st-dim); }
.st-error { font-size: 13px; color: var(--st-berry); font-weight: 700; }
.st-field--error .st-input { border-color: var(--st-berry); }
.st-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--st-soft); }
.st-check input { appearance: none; width: 22px; height: 22px; margin: 0; background: var(--st-deep); border: var(--st-border); cursor: pointer; }
.st-check input:checked { background: var(--st-leaf); border-color: var(--st-leaf); }
.st-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--st-space-2); }
.st-pick label { cursor: pointer; }
.st-pick input { position: absolute; opacity: 0; }
.st-pick span { display: block; text-align: center; padding: 10px 6px; background: var(--st-deep); border: var(--st-border); border-radius: var(--st-radius-sm); font-family: var(--st-font-head); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.st-pick input:checked + span { border-color: var(--st-butter); color: var(--st-butter); }
.st-divider-text { display: flex; align-items: center; gap: 12px; color: var(--st-dim); font-family: var(--st-font-mono); font-size: 12px; text-transform: uppercase; }
.st-divider-text::before, .st-divider-text::after { content: ""; flex: 1; height: 2px; background: var(--st-line); }

/* Footer */
.st-footer { background: var(--st-deep); padding: var(--st-space-6) 0 var(--st-space-4); margin-top: var(--st-space-6); }
.st-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--st-space-4); }
.st-footer h4 { font-family: var(--st-font-head); font-style: italic; text-transform: uppercase; font-weight: 600; font-size: 14px; color: var(--st-dim); margin: 0 0 12px; }
.st-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.st-footer a { text-decoration: none; color: var(--st-soft); }
.st-footer a:hover { color: var(--st-text); }
.st-footer__bottom { display: flex; justify-content: space-between; gap: var(--st-space-3); flex-wrap: wrap; margin-top: var(--st-space-5); padding-top: var(--st-space-3); border-top: 2px solid var(--st-card); font-size: 13px; color: var(--st-dim); }
.st-footer__strip { display: grid; grid-template-columns: repeat(12, 1fr); height: 8px; margin-top: var(--st-space-3); }
@media (max-width: 800px) { .st-footer__cols { grid-template-columns: 1fr 1fr; } }

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