/* pricing.css — ON1 /pricing canonical aggregator
 *
 * Aesthetic flavor: MENU-CARD-BISTRO (36th distinct surface).
 *
 * Mental image: a French bistro's à-la-carte menu card. Cream
 * menu-paper background with a barely-warm tan tint, hand-bound
 * frame at the page edge, copperplate-script "track" names, ruled
 * price columns with dotted leader-lines connecting product names
 * to prices in a thin column on the right. Section dividers are
 * ornament-flanked thin rules ("§"). Body lines in Familjen Grotesk
 * for body, IBM Plex Mono for prices, Chakra Petch for the
 * masthead. Chalkboard-green ink accent for the "subscribe" CTA.
 *
 * Distinct from:
 *   - 27th (monospace-quote-sheet, nrs-api-pricing.css): typewriter
 *     carbon-copy, single-product quote-sheet, dot-matrix forms.
 *   - 35th (gazette-broadsheet, e.g. regulator-updates): newspaper
 *     column-grid, drop caps, ALL-CAPS section heads.
 *   - 30th (invoice-deluxe-watermark, tender-csv-tier-upgrade): cream
 *     ledger with gold-leaf foil + ruled tax-form comparison ledger.
 * Bistro card differs because it's an EXECUTIVE MENU — multiple
 * product groups read side-by-side as one CARTE, dotted lead-lines
 * tie name to price like in a real menu, not single-product invoice.
 *
 * No innerHTML in companion JS; this file is the visual contract only.
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* paper / ink */
  --paper:        #f4ead6;       /* cream menu card                    */
  --paper-2:      #efe2c6;       /* slightly toasted                   */
  --paper-edge:   #e1d2af;       /* fold-shadow band                   */
  --paper-foil:   #faf2e0;       /* foil-stamp paler tone              */

  --ink:          #2a221b;       /* warm bistro brown-black            */
  --ink-mute:     #6a5b48;       /* muted body ink                     */
  --ink-fade:     #756654;       /* faded copy / metadata (AA-bumped)  */
  --ink-rule:     #b5a98a;       /* dotted leader / dividers           */

  /* chalkboard-green CTA accent */
  --green:        #2d5a3b;
  --green-hot:    #3f7a52;
  --green-dim:    #76906a;

  /* claret accent for badges / "popular" stamps */
  --claret:       #8a2c2f;
  --claret-hot:   #b53739;

  /* fixture / warning */
  --warn-bg:      #f5e1a3;
  --warn-ink:     #6a4d10;
  --warn-rule:    #b6921f;

  /* gold-leaf flag-gold tile equivalent */
  --gilt:         #c89c4c;

  --font-display: "Chakra Petch", monospace;
  --font-mono:    "IBM Plex Mono", monospace;
  --font-body:    "Familjen Grotesk", system-ui, sans-serif;
  --font-script:  "Pinyon Script", "Cormorant Garamond", serif;

  --shadow:       0 1px 2px rgba(42, 34, 27, 0.06);
  --shadow-hi:    0 8px 28px rgba(42, 34, 27, 0.10);
}

html, body { height: 100%; }

body.bistro-page {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 14%, rgba(180, 150, 90, 0.10) 0, transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(120, 90, 50, 0.08) 0, transparent 32%),
    var(--paper);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  padding: 0 0 4rem 0;
  position: relative;
}

/* faint paper grain via repeating mini-strokes */
body.bistro-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(120, 90, 50, 0.018) 0px,
      rgba(120, 90, 50, 0.018) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

/* ----- fixture banner ----- */
.fixture-banner {
  display: block;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-bottom: 1px solid var(--warn-rule);
  padding: 0.55rem 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- masthead ----- */
.bistro-masthead {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--ink-rule);
  position: relative;
}
.bistro-masthead::after {
  content: "§";
  position: absolute;
  left: 50%;
  bottom: -0.85rem;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 0.65rem;
  color: var(--ink-fade);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.bistro-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 0.75rem;
}
.bistro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.bistro-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--green);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}
.bistro-lede {
  max-width: 56ch;
  margin: 1.25rem auto 0;
  color: var(--ink-mute);
  font-size: 0.98rem;
}
.bistro-nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.bistro-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  letter-spacing: 0.04em;
}
.bistro-nav a:hover {
  color: var(--green);
  border-bottom-color: var(--green-dim);
}

/* ----- chapter heading "Choose a track" ----- */
.bistro-chapter {
  max-width: 1080px;
  margin: 2.4rem auto 1.4rem;
  padding: 0 2rem;
  text-align: center;
}
.bistro-chapter h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.bistro-chapter-sub {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--green);
  margin-top: 0.25rem;
}

/* ----- tracks (the menu cards) ----- */
.carte {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 880px) {
  .carte { grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
}

.track-card {
  background: var(--paper-foil);
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem 1.4rem 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.track-card.is-flag-gold {
  border-top: 4px solid var(--gilt);
}
.track-card.is-flag-claret {
  border-top: 4px solid var(--claret);
}
.track-card.is-flag-green {
  border-top: 4px solid var(--green);
}
.track-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.6rem;
  border-bottom: 1px dotted var(--ink-rule);
}
.track-card-name {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--green);
  letter-spacing: 0.01em;
  line-height: 1;
}
.track-card-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
}
.track-card-stamp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--ink-rule);
  color: var(--ink-mute);
}
.track-card-stamp.is-hot {
  background: var(--claret);
  color: var(--paper);
  border-color: var(--claret);
}
.track-card-stamp.is-cool {
  background: var(--paper);
  color: var(--green);
  border-color: var(--green-dim);
}
.track-value {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink-mute);
}
.track-value strong { color: var(--ink); }

/* ----- tier list (ruled menu lines with dotted leaders) ----- */
.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
}
.tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 0.5rem;
}
.tier-name {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: baseline;
}
.tier-name::after {
  content: "";
  flex: 1;
  margin: 0 0.4rem 0.18rem;
  height: 0;
  border-bottom: 1px dotted var(--ink-rule);
}
.tier-name-label { font-weight: 600; }
.tier-name-detail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-fade);
  margin-left: 0.4rem;
}
.tier-price {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tier-price-cadence {
  font-size: 0.74rem;
  color: var(--ink-fade);
  margin-left: 0.18rem;
}

/* ----- track footer (CTA + cross-links) ----- */
.track-card-foot {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--paper-edge);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.cta-subscribe {
  display: inline-block;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 1px solid var(--green);
  transition: background 0.15s ease, color 0.15s ease;
}
.cta-subscribe:hover { background: var(--green-hot); border-color: var(--green-hot); }
.cta-subscribe.is-secondary {
  background: transparent;
  color: var(--green);
}
.cta-subscribe.is-secondary:hover {
  background: var(--green);
  color: var(--paper);
}
.track-card-foot .crosslink {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-rule);
  padding-bottom: 1px;
}
.track-card-foot .crosslink:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.track-card-foot .crosslink::before {
  content: "-> ";
  color: var(--ink-fade);
}

/* ----- "other surfaces" panel ----- */
.other-card {
  grid-column: 1 / -1;
  background: var(--paper-foil);
  border: 1px solid var(--paper-edge);
  border-top: 4px solid var(--ink);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.other-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 0;
}
@media (min-width: 700px) {
  .other-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
.other-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
}
.other-row .other-name {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: baseline;
}
.other-row .other-name::after {
  content: "";
  flex: 1;
  margin: 0 0.4rem 0.18rem;
  height: 0;
  border-bottom: 1px dotted var(--ink-rule);
}
.other-row .other-detail {
  font-size: 0.78rem;
  color: var(--ink-fade);
  font-family: var(--font-mono);
  margin-left: 0.4rem;
  font-weight: 400;
}
.other-row .other-price {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink);
  white-space: nowrap;
}
.other-row a.other-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}
.other-row a.other-link:hover .other-name { color: var(--green); }

/* ----- footer ----- */
.bistro-footer {
  max-width: 1080px;
  margin: 3rem auto 0;
  padding: 1.6rem 2rem 0;
  border-top: 1px solid var(--ink-rule);
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.86rem;
}
.bistro-footer .bistro-foot-title {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.bistro-footer code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--paper-2);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--paper-edge);
}
.bistro-foot-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.bistro-foot-links a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-rule);
}
.bistro-foot-links a:hover { color: var(--green); border-bottom-color: var(--green); }

/* utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
