/*
 * Coral Roster: components
 * Built only from tokens.css. Load tokens.css first.
 */

/* Base */
.cr { margin: 0; background: var(--cr-coal); color: var(--cr-smoke); font: 400 var(--cr-text-body)/1.6 var(--cr-sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.cr *, .cr *::before, .cr *::after { box-sizing: border-box; }
.cr a { color: inherit; }
.cr img, .cr svg { max-width: 100%; }
.cr ::selection { background: var(--cr-coral); color: var(--cr-on-coral); }
.cr :focus-visible { outline: 2px solid var(--cr-coral); outline-offset: 3px; }
.cr-wrap { width: 100%; max-width: var(--cr-wrap); margin: 0 auto; padding: 0 var(--cr-gutter); }
.cr-column { max-width: var(--cr-column); }
.cr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark: spaced caps inside a coral box */
.cr-mark { display: inline-flex; align-items: center; gap: 0; padding: 5px 5px 4px 10px; background: var(--cr-coral); color: var(--cr-on-coral); font: 700 15px/1 var(--cr-display); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; border-radius: var(--cr-radius-sm); white-space: nowrap; }
.cr-mark i { margin: 0 .62em 0 .3em; width: 6px; height: 6px; border-radius: 50%; background: var(--cr-on-coral); display: inline-block; }

/* Nav */
.cr-nav { position: relative; z-index: 3; padding: var(--cr-space-6) 0 var(--cr-space-5); }
.cr-nav__in { display: flex; align-items: center; gap: var(--cr-space-6); }
.cr-nav__links { display: flex; gap: var(--cr-space-5); list-style: none; margin: 0; padding: 0; }
.cr-nav__links a { font: 500 var(--cr-text-small)/1 var(--cr-sans); color: var(--cr-ash); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color var(--cr-fast) var(--cr-ease), border-color var(--cr-fast) var(--cr-ease); }
.cr-nav__links a:hover, .cr-nav__links a[aria-current] { color: var(--cr-chalk); border-color: var(--cr-coral); }
.cr-nav__end { margin-left: auto; display: flex; align-items: center; gap: var(--cr-space-4); }
@media (max-width: 760px) { .cr-nav__links { display: none; } .cr-nav { padding-top: var(--cr-space-5); } }

/* Labels and headings */
.cr-label { display: inline-block; font: 600 var(--cr-text-micro)/1.3 var(--cr-sans); letter-spacing: var(--cr-tracking-label); text-transform: uppercase; color: var(--cr-copper); }
.cr-label--ash { color: var(--cr-ash); }
.cr-hero { font: 700 var(--cr-text-hero)/1.08 var(--cr-display); letter-spacing: var(--cr-tracking-big); color: var(--cr-coral); margin: var(--cr-space-4) 0 var(--cr-space-5); text-wrap: balance; }
.cr-h2 { font: 700 var(--cr-text-h2)/1.12 var(--cr-display); letter-spacing: var(--cr-tracking-big); color: var(--cr-coral); margin: var(--cr-space-3) 0 var(--cr-space-4); text-wrap: balance; }
.cr-h2--chalk { color: var(--cr-chalk); }
.cr-h3 { font: 600 var(--cr-text-h3)/1.25 var(--cr-display); color: var(--cr-chalk); margin: 0 0 var(--cr-space-2); }
.cr-lead { font-size: var(--cr-text-lead); line-height: 1.6; color: var(--cr-smoke); margin: 0 0 var(--cr-space-5); max-width: var(--cr-column); }
.cr-muted { color: var(--cr-ash); font-size: var(--cr-text-small); }
.cr-em { color: var(--cr-chalk); font-weight: 600; }

/* Buttons */
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 22px; border: 2px solid var(--cr-coral); border-radius: var(--cr-radius); background: var(--cr-coral); color: var(--cr-on-coral); font: 600 15px/1 var(--cr-display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--cr-fast) var(--cr-ease), border-color var(--cr-fast) var(--cr-ease), color var(--cr-fast) var(--cr-ease); }
.cr-btn:hover { background: var(--cr-coral-dark); border-color: var(--cr-coral-dark); }
.cr-btn--ghost { background: transparent; border-color: var(--cr-smoke); color: var(--cr-chalk); }
.cr-btn--ghost:hover { background: var(--cr-chalk); border-color: var(--cr-chalk); color: var(--cr-coal); }
.cr-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.cr-btn--block { width: 100%; }
.cr-btns { display: flex; flex-wrap: wrap; gap: var(--cr-space-3); }
.cr-arrow { display: inline-flex; align-items: center; gap: .45em; font: 600 15px/1 var(--cr-display); color: var(--cr-chalk); text-decoration: none; white-space: nowrap; }
.cr-arrow::after { content: ""; width: 14px; height: 2px; background: var(--cr-coral); transition: width var(--cr-fast) var(--cr-ease); }
.cr-arrow:hover::after { width: 24px; }

/* Stage: the first screen. Text column left, drawn machine parts right */
.cr-stage { position: relative; isolation: isolate; overflow: hidden; background: var(--cr-coal); min-height: 640px; }
.cr-stage__body { position: relative; z-index: 2; padding-top: var(--cr-space-6); padding-bottom: var(--cr-space-8); }
.cr-machine { position: absolute; z-index: 0; top: -40px; right: -6%; bottom: -40px; width: 64%; transform: perspective(1100px) rotateY(-28deg) rotateX(6deg); transform-origin: right center; opacity: .9; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,0,0,.55) 22px 26px),
    repeating-linear-gradient(90deg, var(--cr-shelf) 0 3px, var(--cr-copper-dark) 3px 5px, var(--cr-steel) 5px 9px, var(--cr-copper-dark) 9px 10px, var(--cr-coal-2) 10px 18px, var(--cr-steel-2) 18px 19px, var(--cr-shelf) 19px 26px),
    linear-gradient(180deg, var(--cr-steel) 0%, var(--cr-shelf) 60%, var(--cr-coal) 100%);
  background-blend-mode: multiply, normal, normal; }
.cr-machine::before { content: ""; position: absolute; left: 0; right: 0; top: 7%; height: 120px;
  background: radial-gradient(circle at 50% 18px, var(--cr-steel-2) 0 9px, var(--cr-steel) 10px 12px, transparent 13px) 0 0 / 104px 120px repeat-x,
              linear-gradient(90deg, transparent 47px, var(--cr-steel) 47px 57px, transparent 57px) 0 0 / 104px 120px repeat-x; }
.cr-machine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--cr-coal) 100%); }
.cr-stage::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, var(--cr-coal) 0%, rgba(27,27,28,.92) 36%, rgba(27,27,28,.4) 66%, rgba(27,27,28,.1) 100%); pointer-events: none; }
@media (max-width: 760px) { .cr-machine { width: 110%; right: -40%; opacity: .35; } .cr-stage { min-height: 0; } }

/* Underline search / single-line field */
.cr-find { position: relative; display: flex; align-items: center; max-width: 320px; border-bottom: var(--cr-underline); }
.cr-find input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 32px 10px 0; color: var(--cr-chalk); font: 500 16px/1.2 var(--cr-sans); }
.cr-find input::placeholder { color: var(--cr-smoke); }
.cr-find input:focus { outline: none; }
.cr-find:focus-within { border-color: var(--cr-coral); }
.cr-find svg { position: absolute; right: 0; width: 20px; height: 20px; stroke: var(--cr-smoke); fill: none; stroke-width: 2; }

/* Roster: the signature. Giant coral words, each a link with a small copper count */
.cr-roster { list-style: none; margin: var(--cr-space-5) 0 0; padding: 0; }
.cr-roster a, .cr-roster > li > span { display: inline-flex; align-items: flex-start; gap: .06em; font: 600 var(--cr-text-roster)/1.04 var(--cr-display); letter-spacing: var(--cr-tracking-big); color: var(--cr-coral); text-decoration: none; transition: color var(--cr-fast) var(--cr-ease), transform var(--cr-fast) var(--cr-ease); }
.cr-roster a:hover { color: var(--cr-chalk); transform: translateX(10px); }
.cr-roster sup { font: 600 var(--cr-text-small)/1 var(--cr-sans); letter-spacing: .04em; color: var(--cr-copper); margin-top: .7em; }
.cr-roster--sm a, .cr-roster--sm > li > span { font-size: var(--cr-text-h2); line-height: 1.2; }
.cr-roster--chalk a { color: var(--cr-chalk); }
.cr-roster--chalk a:hover { color: var(--cr-coral); }

/* Sections */
.cr-section { padding: var(--cr-space-8) 0; border-top: var(--cr-line); }
.cr-section--flush { border-top: 0; }
.cr-section__head { max-width: 720px; margin-bottom: var(--cr-space-6); }
.cr-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--cr-space-7); align-items: start; }
@media (max-width: 860px) { .cr-split { grid-template-columns: 1fr; gap: var(--cr-space-5); } }

/* Columns: text under a short copper rule, never boxed */
.cr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cr-space-6); }
.cr-col { padding-top: var(--cr-space-4); border-top: 2px solid var(--cr-copper); }
.cr-col p { margin: 0; color: var(--cr-smoke); }
.cr-col__num { display: block; font: 600 var(--cr-text-micro)/1 var(--cr-sans); letter-spacing: var(--cr-tracking-label); color: var(--cr-copper); margin-bottom: var(--cr-space-4); }
@media (max-width: 860px) { .cr-cols { grid-template-columns: 1fr; gap: var(--cr-space-5); } }

/* Stats */
.cr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cr-space-5); }
.cr-stat__num { display: block; font: 700 clamp(36px, 4.6vw, 64px)/1 var(--cr-display); letter-spacing: var(--cr-tracking-big); color: var(--cr-chalk); }
.cr-stat__num em { font-style: normal; color: var(--cr-coral); }
.cr-stat p { margin: var(--cr-space-2) 0 0; color: var(--cr-ash); font-size: var(--cr-text-small); }
@media (max-width: 760px) { .cr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Quote */
.cr-quote { margin: 0; padding-left: var(--cr-space-5); border-left: 3px solid var(--cr-coral); }
.cr-quote p { font: 500 clamp(22px, 2.4vw, 30px)/1.35 var(--cr-display); color: var(--cr-chalk); margin: 0 0 var(--cr-space-4); }
.cr-quote cite { font-style: normal; font-size: var(--cr-text-small); color: var(--cr-ash); }

/* Lists */
.cr-list { list-style: none; margin: 0 0 var(--cr-space-5); padding: 0; }
.cr-list li { position: relative; padding: 9px 0 9px 26px; border-bottom: var(--cr-line); }
.cr-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 2px; background: var(--cr-copper); }
.cr-list li.is-no { color: var(--cr-ash); }
.cr-list li.is-no::before { background: var(--cr-rule); }

/* Tags */
.cr-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--cr-rule); border-radius: var(--cr-radius-sm); font: 600 var(--cr-text-micro)/1 var(--cr-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cr-smoke); white-space: nowrap; }
.cr-tag--coral { border-color: var(--cr-coral); color: var(--cr-coral); }
.cr-tag--open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cr-ok); }

/* Pricing */
.cr-switch { display: inline-flex; border-bottom: var(--cr-underline); gap: var(--cr-space-5); margin-bottom: var(--cr-space-6); }
.cr-switch button { background: none; border: 0; padding: 10px 0; margin-bottom: -2px; border-bottom: 2px solid transparent; color: var(--cr-ash); font: 600 15px/1 var(--cr-display); cursor: pointer; }
.cr-switch button[aria-pressed="true"] { color: var(--cr-chalk); border-color: var(--cr-coral); }
.cr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cr-space-6); }
.cr-plan { display: flex; flex-direction: column; padding-top: var(--cr-space-5); border-top: 2px solid var(--cr-rule); }
.cr-plan--pick { border-top-color: var(--cr-coral); }
.cr-plan__name { font: 700 clamp(34px, 3.6vw, 48px)/1 var(--cr-display); letter-spacing: var(--cr-tracking-big); color: var(--cr-chalk); margin: var(--cr-space-3) 0 var(--cr-space-3); }
.cr-plan--pick .cr-plan__name { color: var(--cr-coral); }
.cr-plan__price { font: 600 28px/1 var(--cr-display); color: var(--cr-chalk); margin: 0 0 var(--cr-space-2); }
.cr-plan__price small { font: 400 var(--cr-text-small)/1 var(--cr-sans); color: var(--cr-ash); }
.cr-plan p { margin: 0 0 var(--cr-space-5); }
.cr-plan .cr-list { flex: 1; }
@media (max-width: 900px) { .cr-plans { grid-template-columns: 1fr; gap: var(--cr-space-7); } }

/* Table */
.cr-table-wrap { overflow-x: auto; }
.cr-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--cr-text-small); }
.cr-table th, .cr-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: var(--cr-line); }
.cr-table thead th { font: 600 var(--cr-text-micro)/1 var(--cr-sans); letter-spacing: var(--cr-tracking-label); text-transform: uppercase; color: var(--cr-copper); }
.cr-table td { color: var(--cr-smoke); }
.cr-table td:first-child { color: var(--cr-chalk); font-weight: 500; }
.cr-yes { color: var(--cr-coral); font-weight: 600; }

/* FAQ */
.cr-faq details { border-bottom: var(--cr-line); }
.cr-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--cr-space-4); padding: 20px 0; font: 600 var(--cr-text-h3)/1.3 var(--cr-display); color: var(--cr-chalk); }
.cr-faq summary::-webkit-details-marker { display: none; }
.cr-faq summary::after { content: "+"; color: var(--cr-coral); font-weight: 500; font-size: 26px; line-height: 1; }
.cr-faq details[open] summary::after { content: "\2212"; }
.cr-faq details p { margin: 0 0 22px; max-width: 680px; }

/* Forms */
.cr-form { display: grid; gap: var(--cr-space-5); }
.cr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cr-space-4); }
@media (max-width: 560px) { .cr-form__row { grid-template-columns: 1fr; } }
.cr-field { display: grid; gap: 6px; }
.cr-field label, .cr-field legend { font: 600 var(--cr-text-micro)/1.2 var(--cr-sans); letter-spacing: var(--cr-tracking-label); text-transform: uppercase; color: var(--cr-copper); padding: 0; }
.cr-input, .cr-select, .cr-textarea { width: 100%; background: transparent; border: 0; border-bottom: var(--cr-underline); border-radius: 0; padding: 10px 0; color: var(--cr-chalk); font: 500 17px/1.3 var(--cr-sans); transition: border-color var(--cr-fast) var(--cr-ease); }
.cr-textarea { min-height: 96px; resize: vertical; border: 1px solid var(--cr-rule); border-bottom: var(--cr-underline); padding: 10px 12px; }
.cr-input::placeholder, .cr-textarea::placeholder { color: var(--cr-ash); }
.cr-input:focus, .cr-select:focus, .cr-textarea:focus { outline: none; border-bottom-color: var(--cr-coral); }
.cr-select { appearance: none; padding-right: 28px; background: linear-gradient(45deg, transparent 50%, var(--cr-coral) 50%) right 8px center / 7px 7px no-repeat, linear-gradient(-45deg, transparent 50%, var(--cr-coral) 50%) right 1px center / 7px 7px no-repeat; background-position: calc(100% - 7px) 55%, 100% 55%; }
.cr-select option { background: var(--cr-coal-2); color: var(--cr-chalk); }
.cr-pass { position: relative; }
.cr-pass .cr-input { padding-right: 60px; }
.cr-pass button { position: absolute; right: 0; bottom: 10px; background: none; border: 0; color: var(--cr-coral); font: 600 13px/1 var(--cr-sans); cursor: pointer; }
.cr-help { font-size: 13px; color: var(--cr-ash); margin: 0; }
.cr-field--error .cr-input { border-bottom-color: var(--cr-coral); }
.cr-error { font-size: 13px; color: var(--cr-coral); margin: 0; }
.cr-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--cr-smoke); }
.cr-check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 2px solid var(--cr-smoke); border-radius: var(--cr-radius-sm); display: grid; place-content: center; cursor: pointer; }
.cr-check input:checked { background: var(--cr-coral); border-color: var(--cr-coral); }
.cr-check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--cr-on-coral); border-bottom: 2px solid var(--cr-on-coral); transform: rotate(-45deg) translate(1px, -1px); }
.cr-or { display: flex; align-items: center; gap: var(--cr-space-3); color: var(--cr-ash); font-size: 13px; }
.cr-or::before, .cr-or::after { content: ""; flex: 1; height: 1px; background: var(--cr-rule); }
.cr-panel { background: var(--cr-coal-2); border-top: 3px solid var(--cr-coral); padding: clamp(24px, 4vw, 44px); border-radius: 0 0 var(--cr-radius) var(--cr-radius); }

/* Article */
.cr-article { max-width: 680px; }
.cr-article p, .cr-article li { font-size: 18px; line-height: 1.7; }
.cr-article p { margin: 0 0 var(--cr-space-5); }
.cr-article h2 { font: 700 clamp(26px, 2.6vw, 34px)/1.15 var(--cr-display); letter-spacing: var(--cr-tracking-big); color: var(--cr-coral); margin: var(--cr-space-7) 0 var(--cr-space-4); }
.cr-article a { color: var(--cr-chalk); text-decoration-color: var(--cr-coral); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.cr-byline { display: flex; align-items: center; gap: var(--cr-space-3); font-size: var(--cr-text-small); color: var(--cr-ash); }
.cr-byline b { color: var(--cr-chalk); font-weight: 600; }
.cr-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--cr-shelf); border: 2px solid var(--cr-copper); display: grid; place-content: center; font: 700 14px/1 var(--cr-display); color: var(--cr-chalk); }
.cr-figure { margin: var(--cr-space-6) 0; }
.cr-figure__art { background: var(--cr-coal-2); border: var(--cr-line); padding: var(--cr-space-5); overflow: hidden; }
.cr-figure figcaption { margin-top: var(--cr-space-3); font-size: 13px; color: var(--cr-ash); }
.cr-note { margin: var(--cr-space-6) 0; padding: var(--cr-space-5); background: var(--cr-coral-soft); border-left: 3px solid var(--cr-coral); }
.cr-note p { margin: 0; font-size: 16px; }
.cr-article .cr-quote { margin: var(--cr-space-6) 0; }
.cr-note strong { color: var(--cr-chalk); }

/* Footer */
.cr-footer { border-top: var(--cr-line); padding: var(--cr-space-7) 0 var(--cr-space-6); font-size: var(--cr-text-small); }
.cr-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--cr-space-5); }
.cr-footer__cols ul { list-style: none; margin: var(--cr-space-3) 0 0; padding: 0; display: grid; gap: 8px; }
.cr-footer__about { max-width: 300px; }
.cr-footer__cols a { color: var(--cr-ash); text-decoration: none; }
.cr-footer__cols a:hover { color: var(--cr-coral); }
.cr-footer__base { margin-top: var(--cr-space-7); display: flex; justify-content: space-between; gap: var(--cr-space-4); flex-wrap: wrap; color: var(--cr-ash); }
@media (max-width: 760px) { .cr-footer__cols { grid-template-columns: 1fr 1fr; } .cr-footer__cols > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .cr *, .cr *::before, .cr *::after { transition: none !important; } }
