/* RC-030: one design system across the RibbonCut app (preview). Loaded LAST on every app page (after ds.css and
   polish.css) and on the home page, so it only restyles: no markup, wording, prices, rules or flows change here.
   Customers' generated websites never load this file.
   1. ONE main-action colour: ribbon navy #0B2545 (the first stop of the Oct 21 ribbon gradient), white text, 15.9:1.
      Every "the one thing to tap" button uses it: task-frame main button, plan Next-up, /start Next, pricing CTAs,
      checkout, account, welcome. Orange stays a brand accent (progress, the ribbon line, focus ring), never a button.
   2. ONE answer-card style: white on cream, hairline edge, soft shadow; the selected card alone gets the strong
      navy edge and a pale-blue fill (+ the radio dot). Same for task-frame cards, /start answers, setup answers,
      and /welcome answers.
   3. Lighter cards everywhere else: hairline edge, one quiet shadow, no heavy outlines.
   Colour plan (contrast pairs measured, Spencer-approved): qa/spencer-plans/RC-030-colors.md. The background picks the variant,
   never the colour: light/tinted bands use --action (navy, >=13.3:1 on every tint); dark bands (.cta:not(.card), .db-hero) use
   --action-on-dark (white fill, navy label). At most one strong border per screen; "Up next" beside another highlight is a
   hairline plus its text label. */
:root{
  --action:#0B2545;--action-hover:#163A66;--action-ink:#fff;
  --action-shadow:0 1px 2px rgba(11,37,69,.18),0 6px 16px -8px rgba(11,37,69,.45);
  --card:#fff;--card-line:#E6DCCB;--card-line-hover:#C9BEA9;
  --card-shadow:0 1px 2px rgba(64,40,20,.05),0 2px 8px -2px rgba(64,40,20,.06);
  --card-sel-line:#0B2545;--card-sel-bg:#F4F7FB;
  --card-r:16px;
  --action-on-dark:#fff;--action-on-dark-ink:#0B2545;--action-on-dark-hover:#F1F4F9;
  --field-line:#767D8E;--field-line-hover:#5B6478;--placeholder:#646B7C;
  --focus:#E2550A;--focus-on-dark:#fff;--ring:0 0 0 2px #fff,0 0 0 4px var(--focus);
  --p-edge:var(--card-line);--p-edge2:var(--card-line);--p-shadow:var(--card-shadow);--tile-edge:var(--card-line);--tile-shadow:var(--card-shadow)}
.fl,.fl-sheet{--edge:var(--card-line);--sel:var(--card-sel-bg);--fl-shadow:var(--card-shadow)}
.tl{--tile-edge:var(--card-line);--tile-shadow:var(--card-shadow)}

/* ---------------------------------------------------------------- 1. the one main action */
.btn-primary,.d-btn.pri,.d-btn.acc,.btn-accent,.fl-btn,.tl-go,.fs-pri,.intake .nav2 .btn-primary{
  background:var(--action)!important;background-image:none!important;color:var(--action-ink)!important;border-color:var(--action)!important;box-shadow:var(--action-shadow)}
.btn-primary:hover,.d-btn.pri:hover,.d-btn.acc:hover,.btn-accent:hover,.fl-btn:hover,.tl-go:hover{background:var(--action-hover)!important;border-color:var(--action-hover)!important;color:var(--action-ink)!important}
/* fields: the ds.css border is the base; selects and the home sign-up fields carry their own (weaker) border rules, so the
   field-line token is restated here at a specificity that wins (>=3:1 on every light surface; measured in the colour plan) */
select,.signup input,.signup select{border-color:var(--field-line)!important}
select:hover,.signup input:hover,.signup select:hover{border-color:var(--field-line-hover)!important}
select:focus,.signup input:focus,.signup select:focus{border-color:var(--brand)!important}
.fl-btn:disabled,.d-btn.pri[disabled],.btn-primary[disabled]{background:#E6E0D4!important;border-color:#E6E0D4!important;color:#4A5468!important;box-shadow:none}
.fl-btn,.tl-go,.fs-pri{border-radius:var(--card-r)}
/* the Free plan's unlock button stays a quiet outline (pricing honesty: no new upsell emphasis; polish.css set this) */
.tl-free .d-btn,.tl-free .d-btn:hover{background:#fff!important;color:var(--brand)!important;border:1.5px solid var(--brand)!important;box-shadow:none!important}
/* dark bands use the on-dark variant of the main action (navy on navy would vanish). Only the dark marketing band
   (.cta without .card; the guide's .cta.card is a light brandSoft card and keeps the navy main action) and the classic
   plan's dark hero, whose "Continue" is the main action there, and the classic /launch navy readybar ("Open my launch plan" and
   the domain-ask bar; Typo 700fa9f / Spencer 12:50: white variant, not a navy fill). */
.cta:not(.card) .btn-primary,.cta:not(.card) .btn-accent,.db-next .go,.readybar .rb-go{background:var(--action-on-dark)!important;background-image:none!important;color:var(--action-on-dark-ink)!important;border-color:var(--action-on-dark)!important}
.cta:not(.card) .btn-primary:hover,.cta:not(.card) .btn-accent:hover,.db-next:hover .go,.readybar:hover .rb-go{background:var(--action-on-dark-hover)!important;border-color:var(--action-on-dark-hover)!important;color:var(--action-on-dark-ink)!important}
/* focus: one ring everywhere (white gap + the focus orange, >=3:1 on white, cream and next to navy) */
.fl-btn:focus-visible,.tl-go:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
:focus-visible,input:focus,select:focus,textarea:focus,.field:focus,.d-field:focus{outline-color:var(--focus)!important}
/* on a dark band the ring is the white variant (orange reads only 3.0:1 on the lighter hero stop); band-colour gap */
.cta:not(.card),.db-hero{--ring:0 0 0 2px #0B2545,0 0 0 4px var(--focus-on-dark)}
.cta:not(.card) :focus-visible,.db-hero :focus-visible,.cta:not(.card) input:focus,.cta:not(.card) select:focus{outline-color:var(--focus-on-dark)!important}

/* plan: the Next-up card is a light card with the ribbon as a thin top line; its button is the main-action navy */
.tl-next{background:var(--card);color:var(--ink);border:1px solid var(--card-line);box-shadow:var(--card-shadow);overflow:hidden;padding-top:21px}
.tl-next::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--grad-ribbon)}
.tl-next small{color:var(--accent-ink)}
.tl-next h2{color:var(--brand)}
.tl-next p{color:var(--ink2)}
.tl-next .ic{background:var(--brandSoft);color:var(--brand);top:21px}
.tl-next .tl-go:focus-visible{outline-color:var(--focus)}
@keyframes tl-glow{50%{box-shadow:0 0 0 6px rgba(255,107,26,.25),var(--card-shadow)}}

/* ---------------------------------------------------------------- 2. one answer-card style */
.fl-pc,.fl-c,.intake .opt,.d-opt,.hopt{
  background:var(--card)!important;border:1px solid var(--card-line)!important;border-radius:var(--card-r)!important;box-shadow:var(--card-shadow)!important}
@media (hover:hover){.fl-pc:hover,.fl-c:hover,.intake .opt:hover,.d-opt:hover,.hopt:hover{border-color:var(--card-line-hover)!important}}
.fl-pc[aria-checked=true],.fl-c[aria-checked=true],.fl-own[aria-checked=true],.intake .opt[aria-pressed="true"],.d-opt[aria-pressed=true],.hopt:has(input:checked){
  border-color:var(--card-sel-line)!important;background:var(--card-sel-bg)!important;box-shadow:0 0 0 1px var(--card-sel-line),var(--card-shadow)!important}
.fl-c .ic{background:var(--brandSoft);color:var(--brand)}
.fl-c .ic .ico{width:22px;height:22px}
/* "something else" answers: same card, dashed hairline, no shadow */
.fl-own,.intake .opt-else{background:rgba(255,255,255,.6)!important;border:1px dashed #B9AE99!important;box-shadow:none!important}
/* at most one chip per answer card: only "Best pick" keeps its pill; the other tags (Available, Strong fit, OK fit, warnings)
   read as plain coloured words beside it, so nothing is hidden and no word changes */
.fl-chips{gap:4px 12px;align-items:center}
.fl-chip{font-weight:650}
.fl-chip:not(.c-best){background:none!important;padding:var(--s1,4px) 0}
.fl-chip.c-ok{color:#166534}.fl-chip.c-fit{color:var(--brand)}.fl-chip.c-warn{color:#8a3f05}

/* ---------------------------------------------------------------- 3. lighter cards */
.fl-bub,.fl-row,.fl-cp,.fl-plist,.fl-slot.has,.tile,.tl-card,.tl-prog,.rv,.tl-links,.d-card,.bt,.card,.fs-cel .unl,
.fl .fl-rows,.tl-rv .rv,#ws .card,#chat .msg,#ws .handoff,.tier,.student-strip{border-color:var(--card-line)!important}
.fl-bub,.fl-cp,.tile,.tl-card,.tl-prog,.rv,.tl-links,.d-card,.bt,.fl .fl-rows,.tl-rv .rv{box-shadow:var(--card-shadow)!important}
.card:not(.auth){box-shadow:var(--card-shadow)}
.auth.card,.auth .card{border:1px solid var(--card-line);box-shadow:var(--card-shadow),0 12px 32px -16px rgba(64,40,20,.18)}
/* one strong border per screen: the Next-up card already marks this task, so its tile is a hairline + the "Up next" label */
.tile.t-next{border:1px solid var(--card-line)!important;padding:16px}
.tile.t-next .ti{background:var(--brandSoft);color:var(--brand)}
/* classic plan: the hero's Up-next card marks the current task; its row is a hairline + an "Up next" label (plan.html) */
.task.cur{border:1px solid var(--card-line)!important;background:#fff!important;box-shadow:var(--card-shadow)!important}
.task.cur .ti{background:var(--brandSoft);color:var(--brand)}
.d-chip.upnext{background:var(--brandSoft);color:var(--brand)}
.db-next.hl{box-shadow:0 8px 24px rgba(8,26,51,.35)!important}
.fl-ask,.ap-ask{border:1px solid var(--card-line-hover);box-shadow:var(--card-shadow)}

/* WCAG AA (4.5:1) on the few spots the automated screenshot check flagged on the baseline */
.bill-toggle .save{color:#166534}
.src-dim{color:#5B6478}

/* ---------------------------------------------------------------- 4. one icon set (templates/app/_glyph.html) */
.gi{display:inline-block;width:1.15em;height:1.15em;flex:none;vertical-align:-.2em}
.fl-c .ic .gi{width:22px;height:22px;vertical-align:0}
.fl-lock .gi{width:18px;height:18px;margin-right:2px;color:var(--ink2)}
.btn .gi{width:18px;height:18px}
/* Tell me more: a drawn chevron (the ▾/▴ text glyph that flow.js swaps is hidden), turned by aria-expanded */
.fl-more .chev{font-size:0;background:var(--brandSoft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/14px no-repeat}
.testmode .gi{width:18px;height:18px;vertical-align:-3px;margin-right:2px}
h1 .gi,h2 .gi{width:.9em;height:.9em;vertical-align:-.08em;color:var(--brand)}
.tip .gi,.k-tip .gi{width:16px;height:16px;vertical-align:-3px;color:var(--accent-ink)}

/* ---------------------------------------------------------------- 5. /welcome and pricing use the same components */
/* /welcome: each answer is a full-width answer card (56px tall, the whole card is the tap target); one main button */
.welcome .hopts{gap:8px}
.welcome .hopt{min-height:56px;padding:14px 16px;gap:12px;font-size:17px;font-weight:600;color:var(--ink)}
.welcome .hopt input{width:20px;height:20px;flex:none}
.welcome .htext{margin:8px 0 4px}
.welcome .htext input{min-height:48px}
.welcome .wacts{flex-direction:column;align-items:stretch;gap:8px}
.welcome .wacts .btn{min-height:56px;font-size:17px;border-radius:var(--card-r)}
/* pricing (/pricing and the home pricing section): light tier cards; "Recommended" is a border only, no glow */
.tier{background:var(--card)!important;border:1px solid var(--card-line)!important;box-shadow:var(--card-shadow)!important}
.tier.feat{border:2px solid transparent!important;background:linear-gradient(var(--card),var(--card)) padding-box,var(--grad-ribbon) border-box!important;box-shadow:var(--card-shadow)!important}
.tier .btn{min-height:52px;border-radius:var(--card-r);font-size:16px}
.tier .btn-ghost{background:var(--card);color:var(--brand);border:1px solid var(--card-line-hover)}
.student-strip{background:var(--card);box-shadow:var(--card-shadow)}
.student-strip .btn{min-height:48px}
/* phone: /welcome's answer cards sit straight on the cream page (no card inside a card) */
@media (max-width:560px){.auth.card.welcome{background:transparent;border:0;box-shadow:none;padding:8px 2px 0;margin-top:16px}}
