/* ===========================================================================
   Choice One Rx — Components
   Buttons, cards, badges, forms, tables, header, footer, hero, callouts.
   Consumes css/tokens.css. No literal colors.
   =========================================================================== */

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--c1-teal-700);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 26px;
  min-height: 48px;               /* touch target */
  border: 1px solid var(--btn-bd);
  /* Square-ish, not pills. Pills read consumer app; institutions square up. */
  border-radius: var(--c1-r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--c1-font-body);
  font-size: var(--c1-fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--c1-dur-2) var(--c1-ease),
              box-shadow var(--c1-dur-2) var(--c1-ease),
              background var(--c1-dur-2) var(--c1-ease),
              border-color var(--c1-dur-2) var(--c1-ease),
              color var(--c1-dur-2) var(--c1-ease);
}
/* No lift on buttons. A button that jumps toward the cursor is a startup
   mannerism; weight change is the more composed signal. */
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}

/* Primary is INK, not teal. Reserving the brand color for punctuation — a
   rule, a numeral, one word — makes it read as a considered accent instead of
   a theme wash. Teal-on-white also only clears AA at teal-700, which is dark
   enough that it was competing with ink anyway. */
.btn-primary { --btn-bg: var(--c1-ink-900); }
.btn-primary:hover { --btn-bg: var(--c1-teal-900); }

.btn-teal { --btn-bg: var(--c1-teal-700); }
.btn-teal:hover { --btn-bg: var(--c1-teal-800); }

.btn-dark { --btn-bg: var(--c1-ink-900); }
.btn-dark:hover { --btn-bg: var(--c1-ink-800); }

/* On dark grounds the primary inverts to paper. */
.on-dark .btn-primary, .hero .btn-primary, .cta-band .btn-primary {
  --btn-bg: #fff; --btn-fg: var(--c1-ink-900);
}
.on-dark .btn-primary:hover, .hero .btn-primary:hover, .cta-band .btn-primary:hover {
  --btn-bg: var(--c1-teal-200); --btn-fg: var(--c1-ink-950);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--c1-text);
  --btn-bd: var(--c1-border-strong);
}
.btn-outline:hover {
  --btn-bd: var(--c1-teal-500);
  --btn-fg: var(--c1-teal-700);
  background: color-mix(in srgb, var(--c1-teal-500) 8%, transparent);
}

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--c1-text-muted); box-shadow: none; }
.btn-ghost:hover { --btn-fg: var(--c1-text); background: var(--c1-bg-sunken); }

/* On dark backgrounds */
.on-dark .btn-outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.on-dark .btn-outline:hover { --btn-bd: #fff; background: rgba(255,255,255,.12); --btn-fg: #fff; }

.btn-sm { padding: 8px 16px; min-height: 38px; font-size: var(--c1-fs-sm); }
.btn-lg { padding: 16px 32px; min-height: 56px; font-size: var(--c1-fs-md); }
.btn-block { display: flex; width: 100%; }
.btn-danger { --btn-bg: var(--c1-danger); }

/* ---- Panels (was: cards) ----------------------------------------------
   Hairline-bounded surfaces. No drop shadow, no lift, small radius. The
   previous version — bordered + shadowed + 16px radius + hover-lift — is the
   single most recognizable "template" element on the web.                   */
.card {
  background: var(--c1-surface);
  border: 1px solid var(--c1-border);
  border-radius: var(--c1-r);
  padding: var(--sp-5);
  transition: border-color var(--c1-dur-2) var(--c1-ease),
              background var(--c1-dur-2) var(--c1-ease);
}
.card-hover:hover {
  border-color: var(--c1-ink-300);
  background: var(--c1-bg-subtle);
}
.card-lg { padding: var(--sp-6); }
.card-flush { padding: 0; overflow: hidden; }

/* Feature block — no icon plate. A rule and a label carry the structure.
   The 52px tinted rounded-square holding a line icon is the other great
   template tell; it is gone. */
.feature { display: grid; gap: var(--sp-3); }
.feature h3 { font-size: var(--c1-fs-lg); }
.feature p { color: var(--c1-text-muted); }

/* Where an icon genuinely aids scanning it sits inline and unadorned, at text
   color — not in a coloured chip. */
.feature-icon {
  display: inline-grid;
  place-items: start;
  /* max-content + justify-self, or it stretches to the full grid column and
     the icon ends up floating in the middle of a 300px box. */
  width: max-content; height: auto;
  justify-self: start;
  color: var(--c1-teal-700);
  background: none;
  border: 0;
  box-shadow: none;
  margin-bottom: var(--sp-1);
}

/* Stat tile */
.stat { display: grid; gap: var(--sp-1); }
.stat-num {
  font-family: var(--c1-font-display);
  font-size: var(--c1-fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--c1-teal-700);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: var(--c1-fs-sm); color: var(--c1-text-muted); }

/* ---- Badges & pills ---------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 4px 11px;
  border-radius: var(--c1-r-pill);
  font-size: var(--c1-fs-xs);
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--c1-bg-sunken);
  color: var(--c1-text-muted);
  border: 1px solid transparent;
}
.badge-teal    { background: var(--c1-teal-50);    color: var(--c1-teal-800);   border-color: color-mix(in srgb, var(--c1-teal-500) 25%, transparent); }
.badge-success { background: var(--c1-success-bg); color: var(--c1-success); }
.badge-warn    { background: var(--c1-warn-bg);    color: var(--c1-warn); }
.badge-danger  { background: var(--c1-danger-bg);  color: var(--c1-danger); }
.badge-info    { background: var(--c1-info-bg);    color: var(--c1-info); }

/* Status dot + label, driven by --dot */
.status {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--c1-fs-sm); font-weight: 600;
  color: var(--c1-text);
}
.status::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--dot, var(--c1-status-received));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--c1-status-received)) 20%, transparent);
  flex: none;
}
.st-received  { --dot: var(--c1-status-received); }
.st-benefits  { --dot: var(--c1-status-benefits); }
.st-pa        { --dot: var(--c1-status-pa); }
.st-pa-denied { --dot: var(--c1-status-pa-denied); }
.st-financial { --dot: var(--c1-status-financial); }
.st-outreach  { --dot: var(--c1-status-outreach); }
.st-scheduled { --dot: var(--c1-status-scheduled); }
.st-shipped   { --dot: var(--c1-status-shipped); }
.st-active    { --dot: var(--c1-status-active); }
.st-refill    { --dot: var(--c1-status-refill); }
.st-inactive  { --dot: var(--c1-status-inactive); }

/* ---- Forms ------------------------------------------------------------- */
.field { display: grid; gap: var(--sp-2); }
.field > label, .label {
  font-size: var(--c1-fs-sm);
  font-weight: 600;
  color: var(--c1-text);
}
.label .req { color: var(--c1-danger); margin-left: 2px; }
.hint { font-size: var(--c1-fs-sm); color: var(--c1-text-muted); }
.err  { font-size: var(--c1-fs-sm); color: var(--c1-danger); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  background: var(--c1-surface);
  color: var(--c1-text);
  border: 1px solid var(--c1-border-strong);
  border-radius: var(--c1-r);
  font-size: var(--c1-fs-base);
  transition: border-color var(--c1-dur-2) var(--c1-ease),
              box-shadow var(--c1-dur-2) var(--c1-ease),
              background var(--c1-dur-2) var(--c1-ease);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--c1-text-subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c1-ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c1-teal-500);
  box-shadow: var(--c1-ring);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--c1-danger);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--c1-bg-sunken); color: var(--c1-text-subtle); cursor: not-allowed;
}

.select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  cursor: pointer;
  font-size: var(--c1-fs-sm);
  line-height: 1.55;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--c1-teal-600);
  cursor: pointer; flex: none;
}

.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }

/* Honeypot — visually gone, never display:none (bots read that) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ---- Fieldset ---------------------------------------------------------- */
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend {
  font-family: var(--c1-font-display);
  font-size: var(--c1-fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  padding: 0;
}

/* ---- Tables ------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c1-border);
  border-radius: var(--c1-r-md);
  background: var(--c1-surface);
  box-shadow: var(--c1-shadow-1);
}
.table { width: 100%; border-collapse: collapse; font-size: var(--c1-fs-sm); }
.table th, .table td {
  padding: 13px var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--c1-border);
  vertical-align: middle;
}
.table thead th {
  background: var(--c1-bg-subtle);
  font-weight: 650;
  font-size: var(--c1-fs-xs);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c1-text-muted);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.table tbody tr { transition: background var(--c1-dur-1) var(--c1-ease); }
.table tbody tr:hover { background: var(--c1-bg-subtle); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num { font-variant-numeric: tabular-nums; }

/* ---- Callouts ---------------------------------------------------------- */
.callout {
  --co: var(--c1-info);
  --co-bg: var(--c1-info-bg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--co-bg);
  border-left: 3px solid var(--co);
  border-radius: var(--c1-r);
  font-size: var(--c1-fs-sm);
  line-height: 1.6;
}
.callout strong { color: var(--co); }
.callout-warn    { --co: var(--c1-warn);    --co-bg: var(--c1-warn-bg); }
.callout-danger  { --co: var(--c1-danger);  --co-bg: var(--c1-danger-bg); }
.callout-success { --co: var(--c1-success); --co-bg: var(--c1-success-bg); }
.callout-teal    { --co: var(--c1-teal-600); --co-bg: var(--c1-teal-50); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0;
  z-index: var(--c1-z-header);
  background: color-mix(in srgb, var(--c1-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--c1-dur-2) var(--c1-ease),
              box-shadow var(--c1-dur-2) var(--c1-ease),
              background var(--c1-dur-2) var(--c1-ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--c1-border);
  box-shadow: var(--c1-shadow-1);
  background: color-mix(in srgb, var(--c1-bg) 96%, transparent);
}

/* Utility strip above the nav — phone/fax, the things a prescriber needs fast */
.header-util {
  background: var(--c1-ink-900);
  color: color-mix(in srgb, #fff 80%, transparent);
  font-size: var(--c1-fs-xs);
}
.header-util .wrap { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; min-height: 40px; padding-block: 6px; }
.header-util a { color: #fff; text-decoration: none; font-weight: 500; }
.header-util a:hover { color: var(--c1-teal-300); }
.header-util .util-list { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.header-util .util-item { display: inline-flex; align-items: center; gap: 6px; }

.header-main { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); flex: none; }
.brand img { height: 40px; width: auto; }
.brand:focus-visible { outline-offset: 6px; }

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--c1-r-sm);
  color: var(--c1-text);
  font-size: var(--c1-fs-sm);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--c1-dur-1) var(--c1-ease), background var(--c1-dur-1) var(--c1-ease);
}
.nav a:hover { background: var(--c1-bg-sunken); color: var(--c1-teal-700); }
.nav a[aria-current="page"] { color: var(--c1-teal-700); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--c1-teal-500);
}

/* Dropdown */
.nav-group { position: relative; }
.nav-group > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; border-radius: var(--c1-r-sm);
  background: transparent; color: var(--c1-text);
  font-size: var(--c1-fs-sm); font-weight: 550; cursor: pointer;
  transition: color var(--c1-dur-1) var(--c1-ease), background var(--c1-dur-1) var(--c1-ease);
}
.nav-group > button:hover { background: var(--c1-bg-sunken); color: var(--c1-teal-700); }
.nav-group > button::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--c1-dur-2) var(--c1-ease);
}
.nav-group[data-open="true"] > button::after { transform: rotate(-135deg) translate(-2px,-2px); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 240px; padding: var(--sp-2);
  background: var(--c1-surface);
  border: 1px solid var(--c1-border);
  border-radius: var(--c1-r-md);
  box-shadow: var(--c1-shadow-3);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--c1-dur-2) var(--c1-ease-out),
              transform var(--c1-dur-2) var(--c1-ease-out),
              visibility var(--c1-dur-2);
}
.nav-group[data-open="true"] .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--c1-r-sm); }
.nav-menu a span { display: block; font-size: var(--c1-fs-xs); color: var(--c1-text-muted); font-weight: 400; }
.nav-menu a[aria-current="page"]::after { display: none; }

.header-cta { display: flex; align-items: center; gap: var(--sp-2); flex: none; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--c1-border-strong);
  border-radius: var(--c1-r-sm);
  background: var(--c1-surface); cursor: pointer;
}
.burger span { position: relative; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: background var(--c1-dur-2) var(--c1-ease); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--c1-dur-2) var(--c1-ease-out);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(400px, 88vw);
  z-index: var(--c1-z-drawer);
  background: var(--c1-surface);
  border-left: 1px solid var(--c1-border);
  box-shadow: var(--c1-shadow-4);
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--c1-dur-3) var(--c1-ease-out), visibility var(--c1-dur-3);
}
.drawer[data-open="true"] { transform: none; visibility: visible; }
.drawer-scrim {
  position: fixed; inset: 0; z-index: calc(var(--c1-z-drawer) - 1);
  background: var(--c1-overlay);
  opacity: 0; visibility: hidden;
  transition: opacity var(--c1-dur-3) var(--c1-ease), visibility var(--c1-dur-3);
}
.drawer-scrim[data-open="true"] { opacity: 1; visibility: visible; }
.drawer nav { display: grid; gap: 2px; margin-top: var(--sp-5); }
.drawer nav a {
  padding: 14px var(--sp-3); border-radius: var(--c1-r-sm);
  color: var(--c1-text); text-decoration: none; font-weight: 550;
}
.drawer nav a:hover { background: var(--c1-bg-sunken); color: var(--c1-teal-700); }
.drawer .drawer-label {
  margin-top: var(--sp-4); padding: 0 var(--sp-3);
  font-size: var(--c1-fs-xs); font-weight: 650; letter-spacing: var(--c1-tracking-wide);
  text-transform: uppercase; color: var(--c1-text-subtle);
}

@media (max-width: 1040px) {
  .nav, .header-cta .btn:not(.btn-primary) { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-util .util-list .util-hide-sm { display: none; }
  .header-cta .btn { display: none; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c1-ink-900);
  color: #fff;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: -40% -20% auto -20%; height: 140%;
  background:
    radial-gradient(58% 46% at 78% 18%, color-mix(in srgb, var(--c1-teal-500) 42%, transparent), transparent 68%),
    radial-gradient(46% 40% at 12% 88%, color-mix(in srgb, var(--c1-teal-700) 45%, transparent), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  /* fine grid, keeps the dark field from reading as a flat slab */
  content: '';
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.82); }
.hero .eyebrow { color: var(--c1-teal-300); }
.hero-inner { padding-block: clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; gap: var(--sp-7); align-items: center; grid-template-columns: 1.08fr .92fr; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.on-dark { color: #fff; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: rgba(255,255,255,.8); }
.on-dark a:not(.btn) { color: var(--c1-teal-300); }

/* Dual audience split — the provider / patient fork */
.split-cta { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .split-cta { grid-template-columns: 1fr; } }
.split-cta .card {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.split-cta .card h3 { color: #fff; font-size: var(--c1-fs-lg); }
.split-cta .card p { color: rgba(255,255,255,.75); font-size: var(--c1-fs-sm); }
.split-cta .card:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); }

/* ---- Sticky mobile action bar -----------------------------------------
   Primary actions must survive 375px. Never display:none a primary action. */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--c1-z-sticky);
  display: none;
  gap: var(--sp-2);
  padding: 10px var(--sp-4) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--c1-surface) 96%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c1-border);
  box-shadow: 0 -4px 20px rgba(12,26,35,.1);
}
.action-bar .btn { flex: 1; padding-inline: var(--sp-2); font-size: var(--c1-fs-sm); }
@media (max-width: 720px) {
  .action-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---- Logo strip / seals ------------------------------------------------ */
.seals { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-7); }
.seals img { height: 64px; width: auto; opacity: .9; }
.seal-item { display: flex; align-items: center; gap: var(--sp-3); }
.seal-item .seal-txt { font-size: var(--c1-fs-xs); color: var(--c1-text-muted); max-width: 20ch; line-height: 1.4; }

/* ---- Accordion --------------------------------------------------------- */
.acc { border: 1px solid var(--c1-border); border-radius: var(--c1-r-md); overflow: hidden; background: var(--c1-surface); }
.acc + .acc { margin-top: var(--sp-3); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer; list-style: none;
  font-family: var(--c1-font-display); font-weight: 600; font-size: var(--c1-fs-md);
  transition: background var(--c1-dur-1) var(--c1-ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--c1-bg-subtle); }
.acc summary::after {
  content: ''; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--c1-teal-600); border-bottom: 2px solid var(--c1-teal-600);
  transform: rotate(45deg) translate(-2px,-2px);
  transition: transform var(--c1-dur-2) var(--c1-ease);
}
.acc[open] summary::after { transform: rotate(-135deg); }
.acc .acc-body { padding: 0 var(--sp-5) var(--sp-5); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--c1-ink-950);
  color: rgba(255,255,255,.72);
  font-size: var(--c1-fs-sm);
  padding-block: var(--sp-8) var(--sp-5);
  margin-top: auto;
}
.site-footer h4 {
  color: #fff; font-size: var(--c1-fs-xs); font-weight: 650;
  letter-spacing: var(--c1-tracking-wide); text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--c1-teal-300); }
.footer-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.footer-grid li { margin: 0; }
.footer-brand img { height: 38px; margin-bottom: var(--sp-4); }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  font-size: var(--c1-fs-xs); color: rgba(255,255,255,.55);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }

/* ---- Toast ------------------------------------------------------------- */
.toast-host {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4);
  z-index: var(--c1-z-toast);
  display: grid; gap: var(--sp-2);
  max-width: min(400px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: start; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c1-surface);
  border: 1px solid var(--c1-border);
  border-left: 3px solid var(--c1-teal-500);
  border-radius: var(--c1-r);
  box-shadow: var(--c1-shadow-3);
  font-size: var(--c1-fs-sm);
  animation: toast-in var(--c1-dur-3) var(--c1-ease-out);
}
.toast.is-err { border-left-color: var(--c1-danger); }
.toast.is-ok  { border-left-color: var(--c1-success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---- Empty state ------------------------------------------------------- */
.empty {
  display: grid; gap: var(--sp-3); justify-items: center; text-align: center;
  padding: var(--sp-8) var(--sp-5);
  color: var(--c1-text-muted);
}
.empty .empty-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: var(--c1-r-lg);
  background: var(--c1-bg-sunken); color: var(--c1-text-subtle);
}
.empty h3 { font-size: var(--c1-fs-lg); color: var(--c1-text); }
