/* ============================================================
   AI PLUMBER — site.css
   THE single, canonical design system for aiplumber.dev.
   One system only. The Material Design 3 legacy palette is
   DEPRECATED and must not be used anywhere.

   Every page links exactly this file + /js/nav.js and contains
   NO inline <header> / <footer>. To change the chrome, edit
   nav.js (markup/links) and this file (styling) — never a page.
   ============================================================ */

/* ---- Webfonts ------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,500&display=swap');

/* ============================================================
   1. TOKENS  —  the only source of truth for color + type
   ============================================================ */
:root {
  /* — Surfaces / background — */
  --ap-bg:          #050505;   /* page background, near-black     */
  --ap-surface-1:   #0E0E0E;   /* cards, panels                   */
  --ap-surface-2:   #161616;   /* raised / nested surfaces        */

  /* — Accents — */
  --ap-coral:       #F0A088;   /* primary accent / CTA            */
  --ap-teal:        #6FD9BE;   /* secondary accent                */
  --ap-cyan:        #00E5FF;   /* tertiary / data accent          */

  /* — Text — */
  --ap-text:        #E8E8E3;   /* primary off-white               */
  --ap-muted:       #9A9A93;   /* secondary / muted               */

  /* — Lines (1px, hard) — */
  --ap-border:        rgba(232, 232, 227, 0.12);
  --ap-border-strong: rgba(232, 232, 227, 0.26);
  --ap-hairline:      1px;

  /* — Type families — */
  --ap-font-display: 'Space Grotesk', system-ui, sans-serif;  /* headlines/labels, UPPERCASE */
  --ap-font-body:    'Inter', system-ui, sans-serif;          /* body 300–600 */
  --ap-font-accent:  'Fraunces', Georgia, serif;              /* display ITALIC accent only */

  /* — Type scale — */
  --ap-text-xs:    11px;
  --ap-text-sm:    13px;
  --ap-text-base:  16px;
  --ap-text-lg:    19px;
  --ap-text-xl:    24px;
  --ap-display-sm: 32px;
  --ap-display:    48px;
  --ap-display-lg: 72px;

  /* — Tracking — */
  --ap-track-tight:  -0.02em;   /* large display                  */
  --ap-track-body:    0em;
  --ap-track-label:   0.14em;   /* uppercase Space Grotesk labels */

  /* — Chrome metrics — */
  --ap-header-h:   64px;
  --ap-maxw:       1200px;
  --ap-z-header:   50;

  /* — Motion — */
  --ap-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ap-dur: 160ms;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ap-header-h) + env(safe-area-inset-top, 0px) + 24px); }
html.ap-locked { overflow: hidden; }   /* scroll-lock while the drawer is open */

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;                /* app-shell full height */
  padding-top: calc(var(--ap-header-h) + env(safe-area-inset-top, 0px)); /* clear fixed header + notch */
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: var(--ap-font-body);
  font-weight: 400;
  font-size: var(--ap-text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;  /* no tap-highlight flash */
  -webkit-overflow-scrolling: touch;          /* momentum scroll */
  overscroll-behavior-y: none;
  animation: ap-page-in var(--ap-dur) var(--ap-ease) both;  /* subtle page-transition feel */
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-family: var(--ap-font-display); font-weight: 600; line-height: 1.04; letter-spacing: var(--ap-track-tight); }

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--ap-coral); color: var(--ap-bg); }

:focus-visible { outline: 2px solid var(--ap-cyan); outline-offset: 2px; }

/* ---- helper type roles ---- */
.ap-label {
  font-family: var(--ap-font-display);
  text-transform: uppercase;
  letter-spacing: var(--ap-track-label);
  font-size: var(--ap-text-xs);
  font-weight: 500;
  color: var(--ap-muted);
}
.ap-accent { font-family: var(--ap-font-accent); font-style: italic; font-weight: 400; }

/* ============================================================
   3. BUTTON / CTA COMPONENT
   ============================================================ */
.ap-btn {
  --_fg: var(--ap-text);
  --_bd: var(--ap-border-strong);
  --_bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--ap-font-display);
  font-weight: 500;
  font-size: var(--ap-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ap-track-label);
  line-height: 1;
  padding: 13px 20px;
  color: var(--_fg);
  background: var(--_bg);
  border: var(--ap-hairline) solid var(--_bd);
  border-radius: 0;                 /* hard edges, always */
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ap-dur) var(--ap-ease),
              color var(--ap-dur) var(--ap-ease),
              border-color var(--ap-dur) var(--ap-ease);
}
.ap-btn:hover { --_bd: var(--ap-text); }
.ap-btn:active { transform: translateY(1px); }

/* Primary CTA — coral outline that fills on hover. This is the
   ONLY treatment for "Book a Review". Never relabel it. */
.ap-btn--cta { --_fg: var(--ap-coral); --_bd: var(--ap-coral); }
.ap-btn--cta:hover { --_fg: var(--ap-bg); --_bg: var(--ap-coral); --_bd: var(--ap-coral); }
.ap-btn--cta .ap-btn__arrow { font-family: var(--ap-font-body); }

/* Solid coral */
.ap-btn--solid { --_fg: var(--ap-bg); --_bg: var(--ap-coral); --_bd: var(--ap-coral); }
.ap-btn--solid:hover { --_bg: #f4b29e; --_bd: #f4b29e; }

/* Teal secondary */
.ap-btn--teal { --_fg: var(--ap-teal); --_bd: var(--ap-teal); }
.ap-btn--teal:hover { --_fg: var(--ap-bg); --_bg: var(--ap-teal); --_bd: var(--ap-teal); }

/* Ghost */
.ap-btn--ghost { --_fg: var(--ap-muted); --_bd: var(--ap-border); }
.ap-btn--ghost:hover { --_fg: var(--ap-text); --_bd: var(--ap-text); }

/* Sizes */
.ap-btn--sm { padding: 9px 14px; font-size: 10px; }
.ap-btn--lg { padding: 17px 28px; font-size: var(--ap-text-sm); }

/* Disabled */
.ap-btn[disabled], .ap-btn--disabled {
  opacity: 0.4; pointer-events: none; cursor: not-allowed;
}

/* ============================================================
   4. HEADER  (injected by nav.js into #ap-header-root)
   ============================================================ */
.ap-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--ap-z-header);
  height: calc(var(--ap-header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);   /* respects notch / status bar */
  background: color-mix(in srgb, var(--ap-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: var(--ap-hairline) solid var(--ap-border);
}
.ap-header__inner {
  max-width: var(--ap-maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.ap-logo {
  font-family: var(--ap-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
  color: var(--ap-text);
  white-space: nowrap;
  transition: color var(--ap-dur) var(--ap-ease);
}
.ap-logo:hover { color: var(--ap-coral); }

.ap-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.ap-nav a,
.ap-nav__trigger {
  position: relative;
  font-family: var(--ap-font-display);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--ap-text-sm);
  font-weight: 500;
  color: var(--ap-muted);
  padding: 4px 0;
  white-space: nowrap;
  transition: color var(--ap-dur) var(--ap-ease);
}
.ap-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--ap-coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ap-dur) var(--ap-ease);
}
.ap-nav a:hover { color: var(--ap-text); }
.ap-nav a[aria-current="page"] { color: var(--ap-coral); }
.ap-nav a[aria-current="page"]::after,
.ap-nav a:hover::after { transform: scaleX(1); }

/* ---- dropdown group (Resources) ---- */
.ap-nav__group { position: relative; display: flex; align-items: center; }
.ap-nav__trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; line-height: 1;
}
.ap-nav__trigger:hover { color: var(--ap-text); }
.ap-nav__trigger[aria-current="page"] { color: var(--ap-coral); }
.ap-nav__caret { display: inline-flex; }
.ap-nav__caret svg {
  width: 13px; height: 13px;
  transition: transform var(--ap-dur) var(--ap-ease);
}
.ap-nav__group:hover .ap-nav__caret svg,
.ap-nav__group.is-open .ap-nav__caret svg { transform: rotate(180deg); }

.ap-nav__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 248px;
  background: var(--ap-bg);
  border: var(--ap-hairline) solid var(--ap-border-strong);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.55);
  padding: 6px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ap-dur) var(--ap-ease),
              transform var(--ap-dur) var(--ap-ease),
              visibility var(--ap-dur) var(--ap-ease);
  z-index: 2;
}
.ap-nav__group:hover .ap-nav__panel,
.ap-nav__group:focus-within .ap-nav__panel,
.ap-nav__group.is-open .ap-nav__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* hover bridge so the gap above the panel doesn't drop it */
.ap-nav__group::after {
  content: ''; position: absolute; top: 100%; right: 0;
  width: 100%; height: 16px;
}
.ap-nav__panel a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  text-transform: none; letter-spacing: 0;
  transition: background var(--ap-dur) var(--ap-ease);
}
.ap-nav__panel a::after { content: none; }
.ap-nav__panel a:hover { background: color-mix(in srgb, var(--ap-text) 6%, transparent); }
.ap-nav__panel-label {
  font-family: var(--ap-font-display);
  font-size: var(--ap-text-sm); font-weight: 500;
  color: var(--ap-text);
}
.ap-nav__panel a:hover .ap-nav__panel-label,
.ap-nav__panel a[aria-current="page"] .ap-nav__panel-label { color: var(--ap-coral); }
.ap-nav__panel-desc {
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-xs); color: var(--ap-muted);
}

.ap-header__cta { margin-left: 8px; }

/* Hamburger — hidden on desktop */
.ap-burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: var(--ap-hairline) solid var(--ap-border-strong);
  border-radius: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ap-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ap-text);
  transition: transform var(--ap-dur) var(--ap-ease), opacity var(--ap-dur) var(--ap-ease);
}
.ap-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ap-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ap-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- responsive collapse @ 768px ---- */
@media (max-width: 768px) {
  .ap-nav, .ap-header__cta { display: none; }
  .ap-burger { display: flex; }
}

/* ---- forced mobile (for spec frames at any width) ---- */
.ap-header--mobile .ap-nav,
.ap-header--mobile .ap-header__cta { display: none; }
.ap-header--mobile .ap-burger { display: flex; }

/* ============================================================
   MOBILE DRAWER  (full-height, slides in from the right, 250ms)
   Replaces the old slide-down panel. Injected inside the header.
   ============================================================ */
.ap-drawer {
  position: fixed;
  inset: 0;
  z-index: calc(var(--ap-z-header) + 10);
  visibility: hidden;
  pointer-events: none;
}
.ap-drawer.is-open { visibility: visible; pointer-events: auto; }

.ap-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(5, 5, 5, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 250ms var(--ap-ease);
}
.ap-drawer.is-open .ap-drawer__scrim { opacity: 1; }

.ap-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 380px);
  background: var(--ap-bg);
  border-left: var(--ap-hairline) solid var(--ap-border-strong);
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 22px
           calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 250ms var(--ap-ease);
  will-change: transform;
}
.ap-drawer.is-open .ap-drawer__panel { transform: translateX(0); }

.ap-drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: var(--ap-hairline) solid var(--ap-border);
}
.ap-drawer__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: var(--ap-hairline) solid var(--ap-border-strong);
  border-radius: 0; color: var(--ap-text); cursor: pointer;
  transition: color var(--ap-dur) var(--ap-ease), border-color var(--ap-dur) var(--ap-ease);
}
.ap-drawer__close svg { width: 20px; height: 20px; }
.ap-drawer__close:hover { color: var(--ap-coral); border-color: var(--ap-coral); }

.ap-drawer__nav { display: flex; flex-direction: column; margin-top: 6px; flex: 1; }
.ap-drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;                 /* thumb-friendly tap target */
  padding: 4px 2px;
  font-family: var(--ap-font-display);
  text-transform: uppercase;
  letter-spacing: var(--ap-track-label);
  font-size: var(--ap-text-lg);
  font-weight: 500;
  color: var(--ap-text);
  border-bottom: var(--ap-hairline) solid var(--ap-border);
  transition: color var(--ap-dur) var(--ap-ease), padding-left var(--ap-dur) var(--ap-ease);
}
.ap-drawer__nav a::after {
  content: '\2192'; font-family: var(--ap-font-body);
  color: var(--ap-muted); opacity: 0;
  transition: opacity var(--ap-dur) var(--ap-ease);
}
.ap-drawer__nav a:hover { color: var(--ap-coral); padding-left: 8px; }
.ap-drawer__nav a:hover::after { opacity: 1; }
.ap-drawer__nav a[aria-current="page"] { color: var(--ap-coral); }
.ap-drawer__nav a[aria-current="page"]::after { content: '\2022'; color: var(--ap-coral); opacity: 1; }

/* grouped sub-items (Resources children) inside the drawer */
.ap-drawer__sub { display: flex; flex-direction: column; padding: 2px 0 8px; }
.ap-drawer__sub a {
  display: flex; align-items: center;
  min-height: 44px;
  padding: 2px 2px 2px 16px;
  font-family: var(--ap-font-display);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--ap-text-base);
  font-weight: 500;
  color: var(--ap-muted);
  border-bottom: var(--ap-hairline) solid var(--ap-border);
  transition: color var(--ap-dur) var(--ap-ease), padding-left var(--ap-dur) var(--ap-ease);
}
.ap-drawer__sub a:hover { color: var(--ap-coral); padding-left: 22px; }
.ap-drawer__sub a[aria-current="page"] { color: var(--ap-coral); }

.ap-drawer__install {
  display: none;
  margin-top: 16px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--ap-font-display); text-transform: uppercase;
  letter-spacing: var(--ap-track-label); font-size: var(--ap-text-xs);
  color: var(--ap-muted); text-align: left; padding: 8px 2px;
  align-items: center; gap: 8px;
}
.ap-drawer__install svg { width: 16px; height: 16px; }
html.ap-can-install .ap-drawer__install { display: flex; }
.ap-drawer__install:hover { color: var(--ap-coral); }

.ap-drawer__cta { margin-top: 14px; }
.ap-drawer__cta .ap-btn { width: 100%; justify-content: center; padding: 18px; font-size: var(--ap-text-sm); }

/* ============================================================
   BOTTOM TAB BAR  (PWA app shell — mobile + standalone only)
   Auto-appended to <body> by nav.js. Icons + short labels.
   ============================================================ */
.ap-bottombar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--ap-z-header);
  display: none;
  background: color-mix(in srgb, var(--ap-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-top: var(--ap-hairline) solid var(--ap-border);
  padding-bottom: env(safe-area-inset-bottom, 0px);   /* clears home indicator */
}
.ap-bottombar ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.ap-tab {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  min-height: 56px; padding: 9px 4px;
  color: var(--ap-muted);
  transition: color var(--ap-dur) var(--ap-ease);
}
.ap-tab svg { width: 22px; height: 22px; }
.ap-tab span {
  font-family: var(--ap-font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 9px; font-weight: 500;
}
.ap-tab:hover { color: var(--ap-text); }
.ap-tab[aria-current="page"] { color: var(--ap-coral); }

@media (max-width: 768px) { .ap-bottombar { display: block; } }
html.ap-standalone .ap-bottombar { display: block; }
.ap-bottombar--static { display: block !important; position: absolute; }

/* clear the bottom bar so content/footer isn't covered */
@media (max-width: 768px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
html.ap-standalone body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

/* ============================================================
   5. FOOTER  (injected by nav.js into #ap-footer-root)
   ============================================================ */
.ap-footer {
  border-top: var(--ap-hairline) solid var(--ap-border);
  background: var(--ap-bg);
}
.ap-footer__inner {
  max-width: var(--ap-maxw);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cta"
    "news  news"
    "nav   nav"
    "legal legal";
  gap: 40px 32px;
}
.ap-footer__brand { grid-area: brand; }
.ap-footer__logo {
  font-family: var(--ap-font-display);
  font-weight: 700;
  font-size: var(--ap-text-xl);
  letter-spacing: -0.01em;
  color: var(--ap-text);
}
.ap-footer__logo:hover { color: var(--ap-coral); }

.ap-footer__cta { grid-area: cta; align-self: start; }

/* ---- footer newsletter (soft conversion) ---- */
.ap-footer__news {
  grid-area: news;
  padding-top: 28px;
  border-top: var(--ap-hairline) solid var(--ap-border);
  max-width: 620px;
}
.ap-news__head {
  font-family: var(--ap-font-display);
  font-weight: 600;
  font-size: var(--ap-text-lg);
  letter-spacing: -0.01em;
  color: var(--ap-text);
}
.ap-news__sub {
  margin-top: 8px;
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-sm);
  line-height: 1.5;
  color: var(--ap-muted);
  max-width: 56ch;
}
.ap-news__form { margin-top: 18px; }
.ap-news__row { display: flex; gap: 12px; max-width: 440px; }
.ap-news__row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--ap-surface-2);
  border: var(--ap-hairline) solid var(--ap-border-strong);
  color: var(--ap-text);
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-sm);
  padding: 12px 14px;
}
.ap-news__row input::placeholder { color: var(--ap-muted); }
.ap-news__row input:focus { outline: none; border-color: var(--ap-teal); }
.ap-news__row .ap-btn { flex: none; white-space: nowrap; }
.ap-news__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  max-width: 52ch;
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-xs);
  line-height: 1.5;
  color: var(--ap-muted);
  cursor: pointer;
}
.ap-news__consent input {
  margin-top: 2px;
  width: 15px; height: 15px;
  flex: none;
  accent-color: var(--ap-coral);
  cursor: pointer;
}
.ap-news__consent a { color: var(--ap-coral); text-decoration: underline; text-underline-offset: 2px; }
.ap-news__ok {
  display: none;
  margin-top: 18px;
  color: var(--ap-teal);
  font-family: var(--ap-font-display);
  text-transform: uppercase;
  letter-spacing: var(--ap-track-label);
  font-size: var(--ap-text-xs);
}
.ap-news__ok.is-shown { display: block; }

.ap-footer__nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 28px;
  border-top: var(--ap-hairline) solid var(--ap-border);
}
.ap-footer__nav a {
  font-family: var(--ap-font-display);
  text-transform: uppercase;
  letter-spacing: var(--ap-track-label);
  font-size: var(--ap-text-xs);
  font-weight: 500;
  color: var(--ap-muted);
  transition: color var(--ap-dur) var(--ap-ease);
}
.ap-footer__nav a:hover { color: var(--ap-coral); }

.ap-footer__legal {
  grid-area: legal;
  font-size: var(--ap-text-xs);
  color: var(--ap-muted);
  letter-spacing: 0.02em;
  padding-top: 24px;
  border-top: var(--ap-hairline) solid var(--ap-border);
}

@media (max-width: 700px) {
  .ap-footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "cta" "news" "nav" "legal";
    gap: 28px;
  }
  .ap-news__row { flex-direction: column; max-width: none; }
  .ap-news__row .ap-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   6. PRIMITIVES used by the spec page (cards, badges, swatches)
   ============================================================ */
.ap-card {
  background: var(--ap-surface-1);
  border: var(--ap-hairline) solid var(--ap-border);
  border-radius: 0;
  padding: 24px;
}
.ap-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ap-font-display);
  text-transform: uppercase;
  letter-spacing: var(--ap-track-label);
  font-size: 10px; font-weight: 500;
  padding: 5px 9px;
  border: var(--ap-hairline) solid var(--ap-border-strong);
  color: var(--ap-muted);
}
.ap-badge--coral { color: var(--ap-coral); border-color: var(--ap-coral); }
.ap-badge--teal  { color: var(--ap-teal);  border-color: var(--ap-teal); }
.ap-badge--cyan  { color: var(--ap-cyan);  border-color: var(--ap-cyan); }

.ap-input {
  width: 100%;
  background: var(--ap-surface-2);
  border: var(--ap-hairline) solid var(--ap-border-strong);
  border-radius: 0;
  color: var(--ap-text);
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-sm);
  padding: 12px 14px;
  transition: border-color var(--ap-dur) var(--ap-ease);
}
.ap-input::placeholder { color: var(--ap-muted); }
.ap-input:focus { outline: none; border-color: var(--ap-cyan); }

/* ============================================================
   7. PWA APP-FEEL POLISH
   ============================================================ */
@keyframes ap-page-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .ap-drawer__panel, .ap-drawer__scrim { transition: none; }
}
