/* Fraunces (SIL OFL 1.1, see /static/fonts/OFL.txt): a variable serif with
   weight and optical-size axes, Latin subset. Headings only; body text stays
   on the system UI font. */
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Eggplant, Sage & Coral, dark only: the site is locked to dark mode
     whatever the visitor's system setting. Eggplant (--brand, --deep*) is the
     brand and leads; sage (--band) is background contrast only; coral
     (--accent) is for actions only (buttons, the selected plan term). */
  --bg: #171216;
  --surface: #221a20;
  --band: #8fa58a;
  --text: #f1e8ee;
  --muted: #b9a8b4;
  --brand: #e3b3d2;
  --brand-ink: #2a1f27;
  --brand-soft: #3a2335;
  --logo-coral: #fc6d67; /* the logo's "PAW & PRACTICE" lettering */
  --accent: var(--logo-coral);
  --accent-ink: #1f141c;
  --accent-text: var(--logo-coral);
  --sage: #8fa58a;
  --deep: #2e1529;
  --deep-raise: #3d1f37;
  --deep-shade: #22101e;
  --border: #3a2f37;
  --field-bg: #2d232b;
  --field-border: #806e7a;
  --error: #ff8a80;
  --radius: 14px;
  --shadow: none;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
/* The sage band is too light for dark-mode text: read dark-on-sage inside
   it, while cards, tags and tables inside keep their dark surfaces and light
   text. */
.band {
  --text: #1e1a1d;
  --muted: #2f3a2c;
  --brand: #3a1833;
  --border: rgb(30 40 28 / 0.3);
  color: var(--text);
}
.band :is(.card, .tags li, .table-scroll, .term-toggle, .media-placeholder) {
  --text: #f1e8ee;
  --muted: #b9a8b4;
  --brand: #e3b3d2;
  --border: #3a2f37;
  color: var(--text);
}

/* Eggplant surfaces (header, hero, footer, .deep): the same tokens, re-pointed
   so everything inside reads light-on-eggplant. Actions use a lighter coral
   with dark ink, which stands out from the eggplant. */
.deep, .site-header, .hero, .site-footer {
  --bg: var(--deep);
  --surface: var(--deep-raise);
  --text: #ffffff;
  --muted: #e6d8e2;
  --brand: #ffffff;
  --brand-soft: rgb(255 255 255 / 0.1);
  --accent: var(--logo-coral);
  --accent-ink: #2a1f27;
  --accent-text: var(--logo-coral);
  --border: rgb(255 255 255 / 0.14);
  --shadow: none;
  background: var(--bg);
  color: var(--text);
}
.site-footer { --bg: var(--deep-shade); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, .h1 { font-family: var(--font-display); font-optical-sizing: auto; line-height: 1.15; margin: 0 0 0.5em; }
h1, .h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h1, h2, .h1 { color: var(--brand); }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

section { padding: 72px 0; }
.band { background: var(--band); }
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-display); font-weight: 600; color: var(--text); text-decoration: none; font-size: 1.2rem; white-space: nowrap; }
.brand img { flex: none; }
/* Last resort on very narrow screens or large text: truncate, never wrap. */
.brand span { overflow: hidden; text-overflow: ellipsis; }
.masthead .brand span { color: var(--logo-coral); font-variant: small-caps; }
nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav a:not(.btn) { color: var(--text); text-decoration: none; }
nav a:not(.btn):hover, nav a[aria-current=page]:not(.btn) { color: var(--accent-text); }

/* Masthead (the public site's header, where scroll-driven animations are
   supported). At the top of the page the header is --masthead-extra taller
   and carries the full logo. It sticks at a negative top, so that extra band
   scrolls away and the usual 64px bar stays; over the same stretch of scroll
   the logo shrinks and fades while the mark and name fade in. The header's
   height never changes, so nothing below it moves, and no JS is involved.
   Elsewhere the logo stays hidden and the plain bar is unchanged. */
.brand-logo { display: none; }
@supports (animation-timeline: scroll()) {
  .masthead { --masthead-extra: 56px; top: calc(-1 * var(--masthead-extra)); }
  .masthead .header-inner { position: relative; padding-top: var(--masthead-extra); min-height: calc(64px + var(--masthead-extra)); }
  .masthead .brand-logo {
    display: block; position: absolute; left: 16px; top: 8px;
    width: auto; height: calc(var(--masthead-extra) + 48px);
    transform-origin: left bottom;
    animation: masthead-logo linear both;
    animation-timeline: scroll(root); animation-range: 0 var(--masthead-extra);
  }
  .masthead :is(.brand-mark, .brand span) {
    animation: masthead-name linear both;
    animation-timeline: scroll(root); animation-range: 0 var(--masthead-extra);
  }
  /* The nav lives in the bar, so lift it to the masthead's middle at the
     top. Only the Menu button moves, never .nav-menu itself: a translate
     there would become the panel's containing block. */
  .masthead :is(.nav-wide, .nav-menu > summary) {
    animation: masthead-nav linear both;
    animation-timeline: scroll(root); animation-range: 0 var(--masthead-extra);
  }
  @media (prefers-reduced-motion: reduce) {
    .masthead .brand-logo { animation-name: masthead-logo-fade; }
    .masthead :is(.nav-wide, .nav-menu > summary) { animation: none; }
  }
}
/* The logo is gone by halfway; the mark and name come in after it, so the two
   never overlap. */
@keyframes masthead-logo { 50% { opacity: 0; } to { opacity: 0; transform: scale(0.4); } }
@keyframes masthead-logo-fade { 50%, to { opacity: 0; } }
@keyframes masthead-nav { from { translate: 0 calc(var(--masthead-extra) / -2); } }
@keyframes masthead-name { from, 50% { opacity: 0; } to { opacity: 1; } }

/* Phones: a Menu disclosure in place of the inline links. The panel drops
   below the sticky header, full width. */
.nav-menu { display: none; flex: none; border: 0; padding: 0; }
.nav-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary { background: var(--surface); }
.nav-menu > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; gap: 0; padding: 4px 16px 20px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
/* Chrome still lays out a closed <details>' content; keep it out of the page. */
.nav-menu:not([open]) .nav-menu-panel { display: none; }
.nav-menu-panel a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
.nav-menu-panel .btn { margin-top: 16px; width: 100%; }
@media (max-width: 960px) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
}
/* Narrow phones (or large text): the Menu button is icon-only; "Menu" stays
   as its accessible name. */
@media (max-width: 400px) {
  .nav-menu > summary { padding: 10px; }
  .nav-menu > summary span {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: 999px;
  padding: 12px 22px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-small { padding: 6px 16px; font-size: 0.95rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }
.center .cta-row { justify-content: center; }

/* Photos and photo placeholders */
.media { display: block; width: 100%; border-radius: var(--radius); object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.media-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--brand-soft) 0 12px, var(--surface) 12px 24px);
  border: 2px dashed var(--border);
}
.media-placeholder .icon { width: 36px; height: 36px; opacity: 0.8; }
.media-brief { font-size: 0.85rem; font-style: italic; max-width: 32ch; background: var(--surface); padding: 2px 8px; border-radius: 6px; }

/* Hero: copy beside a photo (.hero-media-right, .hero-media-left) or
   centered on its own (.hero-center). */
.hero { padding: 72px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-media-left { grid-template-columns: 1fr 1.15fr; }
.hero-media-left .hero-media { order: -1; }
.hero-center { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.hero-center .lead { margin-inline: auto; }
.hero-center .cta-row, .hero-center .hero-points { justify-content: center; }
.eyebrow { color: var(--accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.hero-copy { min-width: 0; }
.hero-points { list-style: none; padding: 0; margin: 1.25em 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px 20px; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; }
.hero-points .icon { color: var(--accent-text); vertical-align: -0.25em; transform: translateY(0.2em); }
@media (max-width: 860px) {
  .hero-inner, .hero-media-left { grid-template-columns: 1fr; gap: 32px; }
  .hero-media-left .hero-media { order: 0; }
}

/* Hero carousel: a scroll-snap track of hero slides. Without JS it scrolls
   by swipe or scrollbar; site.js adds the arrow and dot controls. */
.carousel { padding: 0; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.carousel-track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 72px 0 56px; }
.carousel-controls { display: none; align-items: center; justify-content: center; gap: 16px; padding-bottom: 32px; }
.js .carousel-track { scrollbar-width: none; }
.js .carousel-track::-webkit-scrollbar { display: none; }
.js .carousel-controls { display: flex; }
.carousel-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.carousel-dots { display: flex; gap: 10px; }
.carousel-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--muted); background: transparent; cursor: pointer; }
.carousel-dot[aria-current=true] { background: var(--accent); border-color: var(--accent); }
.carousel-btn:focus-visible, .carousel-dot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Copy beside a photo, inside a section */
.media-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.media-split.media-left { grid-template-columns: 1fr 1.1fr; }
.media-split.media-left > .media { order: -1; }
@media (max-width: 860px) {
  .media-split, .media-split.media-left { grid-template-columns: 1fr; gap: 32px; }
  .media-split.media-left > .media { order: 0; }
}

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.card-icon .icon { width: 22px; height: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.grid-3 > .media { height: 100%; aspect-ratio: auto; min-height: 220px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 16px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--surface); color: var(--text); padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.checklist .icon { color: var(--brand); transform: translateY(0.2em); }

/* Steps: a numbered timeline, across on wide screens and down on narrow. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: none; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 60px; right: -20px; height: 2px; background: var(--border);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-left: 64px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .steps li:not(:last-child)::after { top: 54px; bottom: -22px; left: 22px; right: auto; width: 2px; height: auto; }
}

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Contact */
.contact-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }
.contact-intro > .media { margin-top: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: baseline; }
.contact-list .icon { color: var(--accent-text); transform: translateY(0.2em); }
.contact-details { margin: 8px 0 24px; gap: 16px; }
.contact-details strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* Forms: fields sit on a tinted fill with a firm border, so it's clear at a
   glance how many there are. */
.form { display: grid; gap: 4px; }
.form .label-text { display: block; }
.form label { display: grid; gap: 6px; font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; align-content: start; }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-weight: normal; color: var(--text);
  background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
.form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.form :is(input, select, textarea):focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); background: var(--surface); }
.form [aria-invalid=true] { border-color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px 16px; }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: normal; margin: 0; }
.field-error { color: var(--error); font-weight: 500; font-size: 0.875rem; }
.alert { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); padding: 10px 14px; border-radius: 10px; }
.success { border-color: var(--brand); background: var(--brand-soft); }
.success h3 { display: flex; gap: 10px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* htmx request state */
.when-busy { display: none; }
.htmx-request .when-busy { display: inline; }
.htmx-request .when-idle { display: none; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.team-card { padding: 16px 16px 24px; }
.team-card .media { margin-bottom: 16px; }
.team-card h3 { margin-bottom: 0.15em; }
.team-role { color: var(--accent-text); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.6em; }
.team-copy p:not(.team-role) { color: var(--muted); font-size: 0.95rem; }
.team-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 32px; align-items: start; padding: 24px; }
.team-card-featured .media { margin-bottom: 0; }
/* Featured cards alternate: the photo moves to the right on even rows. */
.team-card-featured:nth-child(even) { grid-template-columns: 1fr minmax(0, 320px); }
.team-card-featured:nth-child(even) .media { order: 2; }
.team-card-featured .team-copy p:not(.team-role) { font-size: 1rem; }
@media (max-width: 860px) { .team-card-featured, .team-card-featured:nth-child(even) { grid-template-columns: 1fr; gap: 16px; } .team-card-featured:nth-child(even) .media { order: 0; } }

/* 404 */
.notfound-media { max-width: 560px; margin: 0 auto 1.5em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; }
.site-footer p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; }
.footer-logo { display: block; width: 117px; height: auto; margin-bottom: 14px; }
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px !important; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.site-footer nav { display: block; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Pricing. Prices render for both terms; the .term-toggle radios pick one
   within the nearest .plans (month to month unless 12-month is checked). */
.when-annual { display: none; }
.plans:has(.term-monthly:checked) .when-monthly { display: revert; }
.plans:has(.term-annual:checked) .when-annual { display: revert; }
.plans:has(.term-annual:checked) .when-monthly { display: none; }
.term-toggle {
  display: flex; width: fit-content; margin: 0 auto 12px; padding: 4px; gap: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow);
}
.term-toggle label { position: relative; cursor: pointer; }
.term-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.term-toggle span { display: block; padding: 8px 20px; border-radius: 999px; font-weight: 600; }
.term-toggle input:checked + span { background: var(--accent); color: var(--accent-ink); }
.term-toggle input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.terms-note { text-align: center; color: var(--muted); margin-bottom: 28px; }
.save-badge { display: block; color: var(--text); font-weight: 600; }
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .checklist { margin: 0 0 1.5em; font-size: 0.95rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price { margin: 0; }
.price strong { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--brand); letter-spacing: -0.02em; }
.save-note { color: var(--accent-text); font-weight: 600; font-size: 0.95rem; margin: 0; }
.best-for { margin-top: 0.75em; }
.extra-hours { margin: 2em 0 0; }
.scope { max-width: 760px; margin: 0 auto; }
.exclusions { margin: 0; padding-left: 1.2em; }
.exclusions li { margin-bottom: 4px; }

/* Plan comparison: a "Details" disclosure holding a table. */
details.compare { border: 0; padding: 0; margin-top: 28px; }
details.compare > summary {
  list-style: none; width: fit-content; margin: 0 auto; padding: 10px 22px;
  border: 2px solid currentColor; border-radius: 999px; color: var(--brand);
}
details.compare > summary::-webkit-details-marker { display: none; }
details.compare > summary::after { content: " ▾"; }
details.compare[open] > summary::after { content: " ▴"; }
.compare .when-open, .compare[open] .when-closed { display: none; }
.compare[open] .when-open { display: inline; }
.table-scroll { overflow-x: auto; margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.compare-table thead th { font-family: var(--font-display); font-size: 1.05rem; vertical-align: bottom; width: 20%; }
.compare-sub { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: normal; color: var(--muted); }
.compare-table tbody th[scope=row] { text-align: left; font-weight: normal; }
.compare-table .compare-group { text-align: left; background: var(--brand-soft); color: var(--brand); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-table .yes { color: var(--brand); }
.compare-table .no { color: var(--muted); opacity: 0.6; }
.compare-table tbody:last-child tr:last-child > * { border-bottom: 0; }

/* Storybook: the brand kit */
.brand-gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.brand-gallery li { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 20px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: center; }
.brand-gallery img { width: 120px; height: 120px; object-fit: contain; }
.brand-gallery code { font-size: 0.85rem; }
.brand-gallery span { font-size: 0.8rem; color: var(--muted); }

/* Storybook: the icon set */
.icon-gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.icon-gallery li { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.icon-gallery .icon { width: 28px; height: 28px; color: var(--brand); }
.icon-gallery code { font-size: 0.8rem; color: var(--muted); }

/* Phones: keep the comparison table within the screen. */
@media (max-width: 480px) {
  .compare-table { min-width: 0; font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .compare-table tbody th[scope=row] { padding-left: 12px; }
  .compare-table thead th { font-size: 0.85rem; width: 22%; }
  .compare-sub { font-size: 0.72rem; }
}
