/* RingWise design system v0.2, built on the RingWise Brand System v1.0 (2026-10-10)
   One foundation every leg page inherits. A leg changes only its tokens
   (legs/<slug>/brand/tokens.css, concatenated into assets/legs.css at build):
   --accent (primary), --accent-ink, --accent-2 (secondary), --spark (decorative accent), --paper, --ink.
   Layout concept: one 72rem column on a pale neutral; call cards (transcript + text summary) carry the subject.
   Single light theme on purpose: the kit specifies solid primaries on pale neutrals. */

:root {
  color-scheme: light;
  /* RingWise parent palette (kit: Charcoal / Lichen / Amber / Warm paper) */
  --paper: #F7F4EC;
  --ink: #252B28;
  --accent: #252B28;      /* primary: buttons with white labels, headings */
  --accent-ink: #FFFFFF;
  --accent-2: #D8DFD7;    /* secondary: quiet panels */
  --spark: #D99B35;       /* accent: decorative only */
  --surface: #FFFFFF;
  --placeholder: #8A5A00; /* staging-only marker */
  /* type (kit: Manrope headings, Arimo body) */
  --font-display: "Manrope", Arial, Helvetica, sans-serif;
  --font-body: "Arimo", Arial, Helvetica, sans-serif;
  --h-weight: 700;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
  /* space & shape */
  --gap: 1.5rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --radius: 8px;
  --max: 72rem;
}

/* Derived tokens are recomputed inside every brand scope so they follow that brand's ink and paper. */
:root, .ringwise, [class*="leg-"] {
  --muted: color-mix(in srgb, var(--ink) 84%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 16%, var(--paper));
  --panel: color-mix(in srgb, var(--accent-2) 45%, var(--paper));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.55 var(--font-body); }
.ringwise, .page-scope { background: var(--paper); color: var(--ink); min-height: 100vh; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; color: var(--accent); }
h1 { font-size: var(--step-4); font-weight: var(--h-weight); }
h2 { font-size: var(--step-3); font-weight: var(--h-weight); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; max-width: 65ch; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }
.section { padding-block: var(--section); }
.stack { display: grid; gap: var(--gap); }
.eyebrow { font: 700 var(--step--1)/1.2 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--spark); margin-right: 0.5rem; vertical-align: 0.1em; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }

/* header: supplied logo files only, never retyped */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; padding-block: 0.75rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; text-decoration: none; padding: 0.25rem 0; }
.logo img { display: block; width: auto; }
.logo-parent img { height: 48px; }
.logo-leg img { height: 80px; }   /* endorsed lockup: kit minimum 80px high */
@media (max-width: 639px) { .logo-leg img { height: 48px; } } /* compact file swaps in via <picture>; endorsed lockup repeats in the footer */
.logo-text { font: 700 1.4rem/1 var(--font-display); color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-size: var(--step--1); font-weight: 700; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* buttons: primary fill + white label; ordinary radius, not pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.2rem; border-radius: var(--radius);
  font: 700 var(--step-0)/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* hero */
.hero .wrap { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; } }
.hero-copy { display: grid; gap: 1.3rem; min-width: 0; }
.hero h1 .second { color: var(--ink); opacity: 0.72; }

/* call cards: the product, shown */
.calls { display: grid; gap: 0.9rem; min-width: 0; }
.call { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: 0.7rem; min-width: 0; min-height: 27rem; align-content: start; }
.call .sms { margin-top: auto; }
.call-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; font: 700 0.78rem/1.2 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.call-meta .who { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent); }
.call-meta .who img { width: 20px; height: 20px; }
.turn { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.5rem; font-size: 0.97rem; line-height: 1.45; }
.turn .speaker { font: 700 0.7rem/1.75 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.turn.agent .speaker { color: var(--accent); }
.sms { font: 400 0.86rem/1.45 var(--font-body); background: var(--panel); border-radius: 6px; padding: 0.6rem 0.75rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sms::before { content: "Notification · "; font-weight: 700; }
.calls .call:nth-child(2) { margin-left: clamp(0rem, 3vw, 2.5rem); }
.calls .call:nth-child(3) { margin-left: clamp(0rem, 1.5vw, 1.25rem); }

/* legs grid: symbol + plain-text name (kit: standalone symbol allowed with readable name nearby) */
.legs-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .legs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .legs-grid { grid-template-columns: repeat(4, 1fr); } }
.leg-card { background: var(--surface); padding: 1.4rem 1.3rem 1.3rem; display: grid; gap: 0.6rem; align-content: start; text-decoration: none; min-width: 0; position: relative; color: var(--ink); }
.leg-card:hover { background: var(--paper); }
.leg-card .mark { width: 40px; height: 40px; }
.leg-card h3 small { display: block; font: 400 var(--step--1)/1.3 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: 0.25rem; }
.leg-card p { color: var(--muted); font-size: 0.95rem; }
.leg-card .go { font-weight: 700; font-size: var(--step--1); margin-top: 0.3rem; color: var(--accent); text-decoration: underline; }
.leg-card .badge { position: absolute; top: 1.2rem; right: 1.2rem; }
.leg-card.ask { background: var(--panel); }
.badge { font: 700 0.7rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.35rem 0.5rem; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }

/* steps (a real sequence) */
.steps { display: grid; gap: var(--gap); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; padding-top: 1.1rem; border-top: 3px solid var(--accent); }
.steps li::before { content: "Step " counter(step); font: 700 0.78rem/1 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* placeholder slot: never invented numbers */
.placeholder { border: 2px dashed var(--placeholder); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.5rem; background: var(--surface); }
.placeholder .tag { font: 700 0.75rem/1 var(--font-body); color: var(--placeholder); text-transform: uppercase; letter-spacing: 0.06em; }
.ph { color: var(--placeholder); font-weight: 700; }

/* pains + features */
.trio { display: grid; gap: var(--gap); }
@media (min-width: 800px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio > div { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features > div { background: var(--surface); padding: 1.4rem; display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.features h3::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--spark); margin-right: 0.55rem; vertical-align: 0.15em; }

/* pricing */
.pricing { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.plan.featured { border: 2px solid var(--accent); }
.plan .kind { font: 700 0.75rem/1 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.plan .price { font: 700 var(--step-2)/1 var(--font-display); }
.plan ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.price-notes { display: flex; gap: 0.5rem 1.5rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin-top: 1.25rem; }

/* bands */
.band { background: var(--panel); }
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band h2 { color: var(--accent-ink); }
.cta-band .lede, .cta-band .muted { color: var(--accent-ink); opacity: 0.88; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-ghost { border-color: var(--accent-ink); color: var(--accent-ink); }
.cta-band .btn-ghost:hover { background: transparent; }
.cta-band .ph { color: var(--accent-ink); text-decoration: underline wavy var(--spark); }
.cta-band .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.head { display: grid; gap: 0.75rem; margin-bottom: 2rem; }

/* legs index list */
.leg-rows { display: grid; border-top: 1px solid var(--line); }
.leg-row { display: grid; gap: 0.5rem 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; color: var(--ink); }
@media (min-width: 800px) { .leg-row { grid-template-columns: 48px 15rem 1fr auto; } }
.leg-row .mark { width: 48px; height: 48px; }
.leg-row h3 small { display: block; font: 400 var(--step--1)/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; }
.leg-row p { color: var(--muted); }
.leg-row .go { font-weight: 700; white-space: nowrap; color: var(--accent); text-decoration: underline; }

/* footer: endorsed lockup repeats here (kit rule for compact mobile headers) */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer .foot-logo img { height: 80px; width: auto; display: block; }
.site-footer .foot-logo.parent img { height: 48px; }
.site-footer .foot-text { display: grid; gap: 0.35rem; }
.staging-note { background: var(--spark); color: #252B28; font: 700 0.78rem/1.3 var(--font-body); text-align: center; padding: 0.45rem 1rem; }

/* forms (signup + mocks) */
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 40%, var(--paper)); border-radius: 6px; padding: 0.65rem 0.75rem; width: 100%; }
.choice-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.choice img { width: 36px; height: 36px; grid-row: span 2; }
.choice strong { color: var(--accent); font: 700 var(--step-1)/1.2 var(--font-display); }
.choice span { color: var(--muted); font-size: 0.92rem; grid-column: 2; }
.choice:not(:has(img)) strong, .choice:not(:has(img)) span { grid-column: 1 / -1; }
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.choice[aria-pressed="true"] strong::after { content: "  ✓ Selected"; font: 700 0.75rem/1 var(--font-body); color: var(--ink); }
.progress { display: flex; gap: 0.4rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font: 700 0.75rem/1 var(--font-body); color: var(--muted); }
.progress li { padding: 0.45rem 0.6rem; border-radius: 4px; border: 1px solid var(--line); }
.progress li.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.progress li.done { color: var(--ink); text-decoration: line-through; }
pre.payload { font: 0.8rem/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; overflow-x: auto; margin: 0; }

/* pricing details (2026-10-10 pricing proposal) */
.plan .mins { font-weight: 700; font-variant-numeric: tabular-nums; }
.setup-head { margin-top: 2rem; margin-bottom: 0.75rem; font-size: var(--step-0); }
.setup-grid { display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .setup-grid { grid-template-columns: 1fr 1fr; } }
.setup-opt { display: grid; gap: 0.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; min-width: 0; }
.founder { background: var(--surface); border: 1.5px solid var(--spark); border-radius: var(--radius); padding: 0.75rem 1rem; max-width: 65ch; }
.pricing + .setup-head + .setup-grid + .price-notes + .muted { margin-top: 1rem; }
.plan .price .per { display: block; margin-top: 0.3rem; font: 700 var(--step--1)/1.2 var(--font-body); color: var(--muted); }

.summary-card { background: var(--panel); border-radius: 8px; padding: 1rem 1.25rem; }
.summary-card h3 { margin: 0 0 0.75rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.sum-row span { color: var(--muted); }

#contact-form label { display: block; font-weight: 600; font-size: 0.92rem; }
#contact-form input, #contact-form select, #contact-form textarea { display: block; width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
#contact-form textarea { resize: vertical; }
.form-status { font-weight: 600; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #b42318; }

.billing-toggle { display: inline-flex; background: var(--panel); border-radius: 999px; padding: 0.25rem; gap: 0.25rem; margin: 0 0 1.25rem; }
.billing-toggle .bt { border: 0; background: transparent; border-radius: 999px; padding: 0.5rem 1.1rem; font: 700 0.9rem var(--font-body); color: var(--muted); cursor: pointer; }
.billing-toggle .bt.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.billing-toggle .bt .save { font-size: 0.75rem; color: #1a7f37; font-weight: 700; margin-left: 0.3rem; }
