/* =====================================================================
   TRAVIS BAIL BONDS — brand stylesheet
   Concept: "The light's on." Sodium streetlight amber at 2 a.m.,
   roadside sign lettering, and the honest look of official paperwork.
   ===================================================================== */
:root {
  /* Brand palette */
  --night: #17181b;      /* Night — primary ink, dark surfaces */
  --night-2: #222327;
  --night-3: #2d2e33;
  --paper: #f2ece1;      /* Paper — primary background */
  --paper-2: #e8e0d1;
  --paper-3: #ddd3c1;
  --sodium: #f2a33a;     /* Sodium — the light that's on */
  --sodium-deep: #c97d14;
  --brick: #a8382a;      /* Brick — urgency, Wanted, emphasis on paper */
  --sage: #5f6b4e;       /* Sage — confirmations */
  --muted: #6b6457;
  --line: #cfc5b3;

  --deep: #17181b;       /* dark panels (stay dark in both themes) */
  --on-deep: #f2ece1;    /* text on dark panels */
  --on-sodium: #17181b;  /* text on amber */
  --edge: #17181b;       /* hard offset shadows */
  --field: var(--field);      /* form fields */

  /* Legacy aliases used by page markup */
  --bg: var(--paper);
  --surface: #f7f2e9;
  --surface-2: var(--paper-2);
  --ink: var(--night);
  --ink-2: #2b2a27;
  --accent: var(--brick);
  --accent-2: #8d2d21;
  --accent-soft: #f1ddd4;
  --lime: var(--sodium);
  --ok: var(--sage);
  --danger: var(--brick);

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: none;
  --shadow-lg: 0 24px 48px -28px rgba(23, 24, 27, .45);
  --display: "Big Shoulders Display", "Oswald", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; color: var(--night); font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.09 0 0 0 0 0.1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sodium); color: var(--on-sodium); }

h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(3.2rem, 8.4vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h3 { font-family: var(--body); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
h4 { margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.mark { background: linear-gradient(transparent 62%, rgba(242,163,58,.55) 62%); padding: 0 .06em; }
.accent { color: var(--brick); }
.dark .accent { color: var(--sodium); }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--brick); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 104px 0; }
.section-sm { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: 44px; flex-wrap: wrap; padding-top: 22px; border-top: 2px solid var(--night); }
.dark .section-head { border-top-color: rgba(242,236,225,.25); }
.section-head p { max-width: 440px; }

/* Section label: mono, like a form field label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brick); }
.dark .eyebrow { color: rgba(242,236,225,.6); }
.dark .eyebrow::before { background: var(--sodium); color: var(--on-sodium); }

.dark { background: var(--deep); color: var(--on-deep); }
.dark .muted { color: rgba(242,236,225,.62); }

/* ============ Buttons: sign-like, squared ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; letter-spacing: .005em;
  border: 2px solid transparent; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn-primary, .btn-lime { background: var(--sodium); color: var(--on-sodium); border-color: var(--on-sodium); box-shadow: 3px 3px 0 var(--on-sodium); }
.btn-primary:hover, .btn-lime:hover { background: #f6b455; }
.dark .btn-primary, .dark .btn-lime, .cta-band .btn-lime { border-color: var(--sodium); box-shadow: none; }
.btn-dark { background: var(--night); color: var(--paper); }
.btn-dark:hover { background: var(--night-3); }
.btn-ghost { background: transparent; border-color: var(--night); color: var(--night); }
.btn-ghost:hover { background: var(--night); color: var(--paper); }
.dark .btn-ghost { border-color: rgba(242,236,225,.35); color: var(--on-deep); }
.dark .btn-ghost:hover { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--night); border-bottom: 2px solid var(--sodium); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brick); }
.dark .link-arrow { color: var(--on-deep); }

/* ============ Pills / badges: stamped labels ============ */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--night); font-size: 13px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sodium); position: relative; flex: none; box-shadow: 0 0 0 3px rgba(242,163,58,.25); color: var(--on-sodium); }
.dot.live { animation: lamp 3s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { box-shadow: 0 0 0 3px rgba(242,163,58,.25), 0 0 10px rgba(242,163,58,.6); } 50% { box-shadow: 0 0 0 3px rgba(242,163,58,.12), 0 0 4px rgba(242,163,58,.3); } }
.badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 3px 8px; border-radius: 3px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; background: var(--paper-2); color: var(--night); }
.badge-ok { background: #e3e6d6; color: #3f4a30; }
.badge-warn { background: #f8e2bd; color: #7a4a06; }
.badge-danger { background: #f1d3cc; color: #7c2318; }
.badge-accent { background: var(--night); color: var(--paper); }
.dark .badge { background: var(--night-3); color: var(--on-deep); }

/* ============ Cards: ruled, flat, papery ============ */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-dark { background: var(--night-2); border-color: var(--night-3); color: var(--on-deep); }
.card-dark .muted { color: rgba(242,236,225,.62); }
.card-lime { background: var(--sodium); border-color: var(--night); color: var(--on-sodium); }
.card-accent { background: var(--brick); border-color: transparent; color: var(--paper); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } .card { padding: 22px; } }

/* ============ Concept bar + header ============ */
.concept-bar { background: #0e0f11; color: rgba(242,236,225,.7); font-family: var(--mono); font-size: 12px; }
.concept-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.concept-bar strong { color: #f2ece1; letter-spacing: .06em; font-weight: 600; }
.concept-bar .actions { display: flex; gap: 16px; align-items: center; }
.concept-bar button, .concept-bar a { color: var(--sodium); font-weight: 500; font-size: 12px; font-family: var(--mono); }
@media (max-width: 640px) { .concept-bar .msg { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--night); }
.status-line { background: var(--deep); color: rgba(242,236,225,.75); font-size: 13px; }
.status-line .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.status-line .left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-line b { color: var(--sodium); font-weight: 600; }
.status-line a { color: var(--on-deep); font-weight: 600; font-family: var(--mono); }
#clock { font-family: var(--mono); color: var(--on-deep); }
.lang-toggle { display: inline-flex; border: 1px solid rgba(242,236,225,.3); border-radius: 3px; overflow: hidden; }
.lang-toggle button { padding: 1px 9px; font-family: var(--mono); font-size: 11.5px; color: rgba(242,236,225,.7); }
.lang-toggle button.on { background: var(--sodium); color: var(--on-sodium); font-weight: 600; }
@media (max-width: 640px) { .status-line .hide-sm { display: none; } }

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { line-height: 1; }
.logo-text b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; }
.logo-text .est { font-style: normal; }
.logo-text span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 11px; font-size: 14.5px; font-weight: 600; color: var(--night); border-bottom: 3px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--paper-3); }
.nav-links a.active { border-bottom-color: var(--sodium); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 2px solid var(--night); place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 1080px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 640px) { .nav-cta .btn-ghost { display: none; } .nav-cta .btn { height: 44px; padding: 0 14px; } }
@media (max-width: 420px) { .logo-text .est { display: none; } .logo-text b { font-size: 26px; } .nav-cta .btn span { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--paper); padding: 20px; display: none; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-menu nav a { display: flex; justify-content: space-between; padding: 14px 2px; border-bottom: 1.5px solid var(--line); font-family: var(--display); font-size: 32px; font-weight: 800; text-transform: uppercase; }
.mobile-menu .bottom { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }

/* ============ Hero ============ */
.hero { padding: 64px 0 88px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 26px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.agents-online { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.avatars { display: flex; }
.avatars .av { margin-left: -8px; border: 2px solid var(--paper); }
.avatars .av:first-child { margin-left: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Avatar: photo when available, initials fallback */
.av {
  width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; flex: none; position: relative; overflow: hidden;
  font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--paper); background: var(--night);
}
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-lg { width: 64px; height: 64px; font-size: 24px; }
.av-xl { width: 112px; height: 112px; font-size: 40px; }

/* Office board: the hero's right side */
.board { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--sodium); overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--night-3); }
.board-head .title { display: flex; align-items: center; gap: 12px; }
.board-head .title svg { width: 34px; height: 34px; }
.board-head b { font-family: var(--display); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; display: block; line-height: 1; }
.board-head small { font-family: var(--mono); font-size: 11px; color: rgba(242,236,225,.55); text-transform: uppercase; letter-spacing: .06em; }
.board-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px dashed var(--night-3); font-family: var(--mono); font-size: 13.5px; }
.board-row:last-child { border-bottom: 0; }
.board-row span:first-child { color: rgba(242,236,225,.55); text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.board-row .v { text-align: right; }
.board-row .on { color: var(--sodium); }
.board-agent { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--night-3); background: var(--night-2); }
.board-agent b { font-family: var(--body); font-size: 17px; }

/* ============ Ticker (was marquee) ============ */
.marquee { background: var(--deep); color: var(--on-deep); overflow: hidden; border-bottom: 1px solid var(--night-3); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; padding: 14px 28px; border-right: 1px solid var(--night-3); }
.marquee-track span b { color: var(--sodium); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Calculator + receipt ============ */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc-amount { font-family: var(--display); font-size: clamp(3.6rem, 8vw, 6rem); font-weight: 800; line-height: 1; margin: 10px 0 26px; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 0; background: var(--paper-3); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 3px; background: var(--sodium); border: 2px solid var(--night); cursor: grab; color: var(--on-sodium); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 3px; background: var(--sodium); border: 2px solid var(--night); cursor: grab; color: var(--on-sodium); }
.range-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--night); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { padding: 9px 16px; font-size: 14px; font-weight: 600; border-right: 1.5px solid var(--night); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--night); color: var(--paper); }
.dark .seg { border-color: rgba(242,236,225,.35); }
.dark .seg button { color: rgba(242,236,225,.7); border-color: rgba(242,236,225,.35); }
.dark .seg button.on { background: var(--sodium); color: var(--on-sodium); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brick); margin-top: 1px; flex: none; }
.breakdown { display: grid; }
.breakdown .line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(242,236,225,.18); }
.breakdown .line:last-child { border-bottom: 0; }
.breakdown .big { font-family: var(--display); font-size: 3.2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* Receipt: the estimate, printed */
.receipt {
  --lime: var(--brick);
  background: #fbf8f2; border: 0; border-radius: 0; color: var(--night); font-family: var(--mono); padding: 28px 28px 40px; position: relative;
  box-shadow: 0 18px 30px -22px rgba(23,24,27,.5); rotate: .4deg;
  margin-bottom: 12px;
}
.receipt::before { content: "TRAVIS BAIL BONDS · ESTIMATE"; display: block; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--night); }
.receipt .eyebrow { display: none; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(135deg, #fbf8f2 7px, transparent 0) 0 0/14px 10px repeat-x, linear-gradient(225deg, #fbf8f2 7px, transparent 0) 0 0/14px 10px repeat-x; }
.receipt .muted { color: var(--muted); }
.receipt .breakdown .line { border-bottom: 1px dashed var(--line); font-size: 14px; }
.receipt .breakdown .big { font-family: var(--display); }
.receipt .btn { font-family: var(--body); }
.receipt .badge { background: var(--paper-2); color: var(--night); }

/* ============ Bento (kept for layout) ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 960px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 6; } }

.stat-num { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; line-height: .95; font-variant-numeric: tabular-nums; }

/* Agent cards: portrait-led */
.agent-card { display: flex; flex-direction: column; gap: 14px; padding: 0; overflow: hidden; }
.agent-card .photo { aspect-ratio: 4 / 4.2; background: var(--deep); position: relative; display: grid; place-items: center; overflow: hidden; }
.agent-card .photo .init { font-family: var(--display); font-weight: 800; font-size: 84px; color: var(--night-3); }
.agent-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.agent-card .photo .badge { position: absolute; left: 14px; top: 14px; z-index: 1; background: var(--sodium); color: var(--on-sodium); }
.agent-card .body { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.agent-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.agent-card .foot { display: flex; gap: 8px; margin-top: auto; }
.stars { color: var(--sodium-deep); letter-spacing: 1px; font-size: 14px; }

/* Office cards */
.office { display: flex; flex-direction: column; gap: 18px; }
.office-map {
  height: 190px; border-radius: var(--radius-sm); position: relative; overflow: hidden; border: 1.5px solid var(--night);
  background:
    linear-gradient(90deg, rgba(23,24,27,.07) 1px, transparent 1px) 0 0/26px 26px,
    linear-gradient(rgba(23,24,27,.07) 1px, transparent 1px) 0 0/26px 26px,
    var(--paper-2);
}
.office-map .road { position: absolute; background: var(--surface); border: 1px solid var(--line); }
.office-map .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); width: 30px; height: 30px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--brick); border: 2px solid var(--night); }
.office-map .pin::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--paper); }
.office-map .jail { position: absolute; padding: 3px 8px; background: var(--night); color: var(--paper); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; border-radius: 2px; }
.office-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Service mini UI */
.mini { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; }
.mini .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mini .row:last-child { border-bottom: 0; }
.mini .row b { font-family: var(--mono); font-weight: 500; font-size: 13.5px; }
.toggle { width: 42px; height: 24px; border-radius: 3px; background: var(--paper-3); position: relative; transition: background .2s; flex: none; border: 1.5px solid var(--night); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 2px; background: var(--night); transition: transform .2s, background .2s; }
.toggle.on { background: var(--sodium); color: var(--on-sodium); }
.toggle.on::after { transform: translateX(17px); }

/* FAQ */
.faq-item { border-bottom: 1.5px solid var(--night); }
.faq-item:first-child { border-top: 1.5px solid var(--night); }
.faq-item button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.15rem; font-weight: 700; }
.faq-item .plus { width: 32px; height: 32px; border-radius: 3px; border: 2px solid var(--night); display: grid; place-items: center; flex: none; transition: transform .2s, background .2s; font-family: var(--mono); }
.faq-item.open .plus { transform: rotate(45deg); background: var(--sodium); color: var(--on-sodium); }
.faq-item .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .ans { grid-template-rows: 1fr; }
.faq-item .ans > div { overflow: hidden; }
.faq-item .ans p { padding-bottom: 24px; color: var(--ink-2); max-width: 680px; }

/* Testimonial */
.quote { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; text-transform: uppercase; line-height: .98; }
.quote-photo { aspect-ratio: 4/5; background: var(--deep); border-radius: var(--radius-sm); position: relative; overflow: hidden; }
.quote-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Wanted: printed poster */
.wanted-card { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; background: #efe6d3 !important; color: var(--night) !important; border: 2px solid var(--night) !important; border-radius: 2px !important; }
.wanted-card .muted { color: #5a5245 !important; }
.wanted-card h3 { font-family: var(--display); font-size: 2rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.mugshot { aspect-ratio: 4/3; border: 2px solid var(--night); display: grid; place-items: center; position: relative; overflow: hidden;
  background: repeating-linear-gradient(0deg, #cfc6b3 0 20px, #d8cfbd 20px 40px); }
.mugshot svg { width: 44%; color: #8e8574; }
.mugshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.mugshot .tag { z-index: 1; }
.mugshot .tag { position: absolute; left: 10px; top: 10px; background: var(--brick); color: var(--paper); font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: .06em; padding: 2px 10px; rotate: -3deg; }
.mugshot.located { filter: grayscale(1); opacity: .6; }
.mugshot.located .tag { background: var(--sage); }
.reward { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--brick); }
.dark > .container > .section-head .reward, .dark .card-dark .reward { color: var(--sodium); }
.wanted-card .btn-lime { box-shadow: 2px 2px 0 var(--edge); border-color: var(--night); }

/* Closing CTA */
.cta-band { border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: 6%; top: 0; width: 280px; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, rgba(242,163,58,.35), rgba(242,163,58,0) 85%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}
.cta-band > * { position: relative; z-index: 1; }

/* ============ Page hero (inner) ============ */
.page-hero { padding: 64px 0 52px; }
.page-hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); max-width: 960px; }
.page-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 600px; margin-top: 22px; }
.dark .page-hero .lead, .page-hero .lead.muted { color: rgba(242,236,225,.65); }
.crumbs { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--brick); }

/* ============ Forms: like a clean official form ============ */
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--night);
  background: var(--field); color: var(--night); outline: none; transition: box-shadow .15s; font-size: 15px;
}
.textarea { height: auto; min-height: 110px; padding: 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 3px var(--sodium); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hint { font-size: 12.5px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.choice { border: 1.5px solid var(--night); border-radius: var(--radius-sm); padding: 13px 14px; background: var(--field); font-weight: 700; font-size: 14px; text-align: left; transition: background .15s; }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.choice.on { background: var(--sodium); box-shadow: 2px 2px 0 var(--edge); color: var(--on-sodium); }
.choice.on small { color: var(--ink-2); }

.notice { display: flex; gap: 12px; padding: 13px 16px; border-left: 4px solid var(--night); background: var(--paper-2); color: var(--night); font-size: 14px; }
.notice.warn { border-left-color: var(--sodium); background: #f8e7c8; }
.notice.danger { border-left-color: var(--brick); background: #f1d9d2; color: #6e1f15; }

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.stepper .s { display: grid; gap: 8px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stepper .s .bar { height: 5px; background: var(--paper-3); }
.stepper .s.done .bar { background: var(--night); }
.stepper .s.on .bar { background: var(--sodium); color: var(--on-sodium); }
.stepper .s.on { color: var(--night); font-weight: 600; }
@media (max-width: 520px) { .stepper .s span { display: none; } }

/* Upload */
.upload { border: 1.5px dashed var(--night); border-radius: var(--radius-sm); padding: 20px; text-align: center; cursor: pointer; background: var(--field); min-height: 150px; display: grid; place-items: center; position: relative; overflow: hidden; }
.upload:hover { background: #f8e7c8; }
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload input { display: none; }

/* Signature */
.sig-wrap { border: 1.5px solid var(--night); border-radius: var(--radius-sm); background: var(--field); position: relative; }
.sig-wrap canvas { width: 100%; height: 180px; display: block; touch-action: none; cursor: crosshair; }
.sig-wrap .base { position: absolute; left: 24px; right: 24px; bottom: 40px; border-bottom: 1.5px solid var(--night); pointer-events: none; }
.sig-wrap .x { position: absolute; left: 24px; bottom: 46px; color: var(--brick); font-weight: 700; pointer-events: none; }

/* Tables: ledger */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 2px solid var(--night); }
td { padding: 13px 12px; border-bottom: 1px dashed var(--line); white-space: nowrap; }
td b { font-family: var(--mono); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { height: 38px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--night); background: transparent; color: var(--night); font-weight: 600; font-size: 14px; }
.chip.on { background: var(--night); color: var(--paper); }
.dark .chip { border-color: rgba(242,236,225,.35); color: var(--on-deep); }
.dark .chip.on { background: var(--sodium); border-color: var(--sodium); color: var(--on-sodium); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; border-top: 2px solid var(--night); }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 8px 22px 0; border-bottom: 1.5px solid var(--line); cursor: pointer; transition: background .2s; }
.tl-item .time { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--muted); padding-top: 2px; }
.tl-item.on { background: linear-gradient(90deg, rgba(242,163,58,.22), transparent 70%); }
.tl-item.on .time { color: var(--night); font-weight: 600; }
.tl-item.on .time::before { content: "● "; color: var(--sodium-deep); }
@media (max-width: 520px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }

/* Phone mockup */
.phone { width: 320px; max-width: 100%; margin: 0 auto; border-radius: 44px; background: var(--deep); padding: 11px; box-shadow: 10px 10px 0 var(--sodium); }
.phone-screen { border-radius: 34px; background: #f4f1ea; height: 600px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-top { padding: 14px 20px 10px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.phone-head { text-align: center; padding: 6px 0 12px; border-bottom: 1px solid #e3ded3; }
.phone-head .av { margin: 0 auto 4px; width: 44px; height: 44px; border-radius: 50%; }
.phone-head small { font-size: 12px; color: var(--muted); }
.phone-body { flex: 1; overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.38; animation: pop .3s ease; }
.bubble.in { background: #e7e2d8; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--night); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.card-b { background: #fff; border: 1.5px solid var(--night); align-self: flex-start; border-radius: 6px; max-width: 88%; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.phone-hint { text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 16px; }

/* ============ Footer ============ */
.site-footer { background: var(--deep); color: rgba(242,236,225,.68); padding: 80px 0 32px; margin-top: 104px; position: relative; overflow: hidden; }
.footer-big { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--on-deep); font-size: clamp(3rem, 9vw, 8rem); line-height: .88; margin-bottom: 64px; }
.footer-big a { color: var(--sodium); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: var(--on-deep); font-family: var(--mono); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--sodium); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--night-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; }
.footer-bottom a { color: var(--sodium); }
.pay-logos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pay-logos span { padding: 4px 9px; border: 1px solid var(--night-3); border-radius: 3px; font-family: var(--mono); font-size: 11px; color: var(--on-deep); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ Chat widget ============ */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 7px;
  border-radius: 999px; color: #f6efe3; font-weight: 700; font-size: 14px; letter-spacing: .01em;
  background: linear-gradient(135deg, rgba(34,35,40,.92), rgba(16,17,20,.96)); border: 1px solid rgba(242,163,58,.45);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 24px -6px rgba(242,163,58,.55);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 34px -4px rgba(242,163,58,.75); }
.chat-fab:active { transform: translateY(0) scale(.98); }
.chat-orb { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.co-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #f2a33a, #ffd9a0, #a8382a, #f2a33a 70%, #ffe7c2, #f2a33a); animation: orb-spin 4s linear infinite; filter: drop-shadow(0 0 6px rgba(242,163,58,.6)); }
.co-core { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #34353b, #121316 70%); box-shadow: inset 0 0 10px rgba(242,163,58,.25); }
.co-core svg { width: 22px; height: 22px; }
.co-bubble { fill: none; stroke: #f6efe3; stroke-width: 1.6; stroke-linejoin: round; }
.co-spark { fill: #f2a33a; transform-origin: 12px 9.7px; animation: spark 2.4s ease-in-out infinite; }
.co-live { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #5fd38a; border: 2px solid #121316; box-shadow: 0 0 8px rgba(95,211,138,.8); }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes spark { 0%, 100% { transform: scale(.85) rotate(0deg); opacity: .85; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .co-ring, .co-spark { animation: none; } }
@media (max-width: 520px) { .chat-fab span.lbl { display: none; } .chat-fab { padding: 0 7px; } }
/* Mobile action bar chat button gets the same glyph */
.mbar-chat .mc-ico { width: 22px; height: 22px; display: grid; place-items: center; }
.mbar-chat .mc-ico svg { width: 22px; height: 22px; }
.mbar-chat .co-bubble { stroke: currentColor; }
.chat-panel { position: fixed; right: 20px; bottom: 86px; z-index: 81; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px); background: var(--paper); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--edge); border: 2px solid var(--night); display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; animation: pop .2s ease; }
@media (max-width: 520px) { .chat-panel { right: 16px; bottom: 84px; } }
.chat-head { background: var(--deep); color: var(--on-deep); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.chat-head small { color: rgba(242,236,225,.6); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.chat-head .x { margin-left: auto; width: 32px; height: 32px; border-radius: 3px; border: 1px solid var(--night-3); display: grid; place-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-quick { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 10px 16px; border-top: 1px solid var(--line); scrollbar-width: none; flex: none; }
.chat-quick:empty { display: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; white-space: nowrap; }
.chat-quick button { padding: 6px 11px; border-radius: 3px; border: 1.5px solid var(--night); font-size: 13px; font-weight: 600; }
.chat-quick button:hover { background: var(--sodium); color: var(--on-sodium); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1.5px solid var(--night); }
.chat-form input { flex: 1; height: 44px; border-radius: var(--radius-sm); border: 1.5px solid var(--night); padding: 0 14px; outline: none; background: var(--field); }
.chat-form input:focus { box-shadow: 0 0 0 3px var(--sodium); }
.chat-form button { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--sodium); color: var(--on-sodium); border: 1.5px solid var(--night); display: grid; place-items: center; }
.chat-foot { text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--muted); padding: 0 0 10px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #e7e2d8; border-radius: 16px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ============ Toast ============ */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--deep); color: var(--on-deep); border-left: 4px solid var(--sodium); padding: 12px 18px; border-radius: 3px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Feature tour ============ */
[data-tour] { position: relative; }
body.tour [data-tour]::before {
  content: attr(data-tour); position: absolute; top: -13px; left: 14px; z-index: 5;
  background: var(--sodium); color: var(--on-sodium); font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 9px; border: 1.5px solid var(--night); white-space: nowrap; letter-spacing: 0;
}
body.tour [data-tour] { outline: 2px dashed var(--sodium-deep); outline-offset: 6px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.wrap { flex-wrap: wrap; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.small { font-size: 14px; } .xs { font-size: 12.5px; }
.bold { font-weight: 700; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.stack { display: grid; gap: 16px; }
.sticky { position: sticky; top: 140px; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .sticky { position: static; } }

@media (max-width: 720px) { #testi { grid-template-columns: 1fr !important; } #testi .quote-photo { max-width: 320px; } }

/* ============ Dark theme ============ */
:root[data-theme="dark"] {
  --paper: #121316; --paper-2: #1c1d21; --paper-3: #2b2c31; --surface: #18191c;
  --night: #ece6da; --ink-2: #d3ccbf; --muted: #9a9384; --line: #303137;
  --brick: #e36a51; --accent-2: #f08a73; --accent-soft: #3a211c;
  --deep: #0a0b0d; --on-deep: #ece6da; --edge: #000; --field: #1c1d21;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121316; --paper-2: #1c1d21; --paper-3: #2b2c31; --surface: #18191c;
    --night: #ece6da; --ink-2: #d3ccbf; --muted: #9a9384; --line: #303137;
    --brick: #e36a51; --accent-2: #f08a73; --accent-soft: #3a211c;
    --deep: #0a0b0d; --on-deep: #ece6da; --edge: #000; --field: #1c1d21;
    color-scheme: dark;
  }
}
/* Paper objects keep light ink in both themes */
.receipt, .wanted-card, .phone-screen, .booking, .bubble.in, .bubble.card-b, .typing {
  --night: #17181b; --paper: #f2ece1; --paper-2: #e8e0d1; --paper-3: #ddd3c1; --surface: #f7f2e9;
  --muted: #6b6457; --line: #cfc5b3; --ink-2: #2b2a27; --brick: #a8382a; --field: #fbf8f2;
  color: #17181b;
}
.choice.on, .faq-item.open .plus, .chat-quick button:hover { color: var(--on-sodium); }
.theme-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; color: rgba(242,236,225,.75); padding: 1px 8px; border: 1px solid rgba(242,236,225,.3); border-radius: 3px; }
.theme-btn:hover { color: var(--sodium); border-color: var(--sodium); }
:root[data-theme="dark"] .notice.warn, :root[data-theme="dark"] .upload:hover { background: #3a2c14; color: #f6d8a8; }
:root[data-theme="dark"] .notice.danger { background: #3a1c17; color: #f4c2b6; }
:root[data-theme="dark"] .badge-ok { background: #26301c; color: #c9d6b0; }
:root[data-theme="dark"] .badge-warn { background: #3a2c14; color: #f6d8a8; }
:root[data-theme="dark"] .badge-danger { background: #3a1c17; color: #f4c2b6; }
:root[data-theme="dark"] .card-dark { background: #1f2024; border-color: #2d2e33; }
:root[data-theme="dark"] .site-header { background: #121316; border-bottom-color: #2d2e33; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notice.warn, :root:not([data-theme="light"]) .upload:hover { background: #3a2c14; color: #f6d8a8; }
  :root:not([data-theme="light"]) .notice.danger { background: #3a1c17; color: #f4c2b6; }
  :root:not([data-theme="light"]) .badge-ok { background: #26301c; color: #c9d6b0; }
  :root:not([data-theme="light"]) .badge-warn { background: #3a2c14; color: #f6d8a8; }
  :root:not([data-theme="light"]) .badge-danger { background: #3a1c17; color: #f4c2b6; }
  :root:not([data-theme="light"]) .card-dark { background: #1f2024; border-color: #2d2e33; }
  :root:not([data-theme="light"]) .site-header { background: #121316; border-bottom-color: #2d2e33; }
}

.wanted-card .reward { color: #a8382a !important; }

/* Poster buttons keep poster ink inside dark sections */
.dark .wanted-card .btn-ghost, .wanted-card .btn-ghost { color: #17181b; border-color: #17181b; background: transparent; }
.dark .wanted-card .btn-ghost:hover, .wanted-card .btn-ghost:hover { background: #17181b; color: #f2ece1; }

/* Accessibility */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--sodium); color: var(--on-sodium); padding: 10px 14px; font-weight: 700; border: 2px solid var(--edge); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sodium); outline-offset: 2px; }

/* Mobile action bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--deep); border-top: 2px solid var(--sodium); padding: 8px; gap: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mbar a, .mbar button { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; font-weight: 700; font-size: 15px; color: var(--on-deep); border: 1.5px solid var(--night-3); }
  .mbar .call { background: var(--sodium); color: var(--on-sodium); border-color: var(--sodium); }
  .mbar svg { width: 18px; height: 18px; }
  body { padding-bottom: 72px; }
  .chat-fab { display: none; }
  .chat-panel { bottom: 80px; height: min(560px, calc(100dvh - 110px)); }
}

@media (max-width: 640px) { .concept-bar #tour-btn { display: none; } .concept-bar .container { min-height: 32px; } }

/* ===== Phone polish ===== */
@media (max-width: 640px) {
  /* Segmented choices: separate chips instead of a broken joined bar when they wrap */
  .seg { border: 0; gap: 6px; overflow: visible; }
  .seg button { border: 1.5px solid var(--night) !important; border-radius: 4px; }
  .dark .seg button { border-color: rgba(242,236,225,.35) !important; }
  /* Page heroes a bit tighter */
  .page-hero { padding: 40px 0 32px; }
}

@media (max-width: 640px) { .concept-bar .pv { display: none; } .concept-bar strong { white-space: nowrap; } }

/* ===== Phone fixes: stop iOS zoom-on-focus (needs >=16px), keep toasts above the action bar ===== */
@media (max-width: 760px) {
  .input, .select, .textarea, .chat-form input, .lf-grid .input, .w-tools .input { font-size: 16px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }
}
input[data-dob] { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
input:invalid[data-dob]:not(:placeholder-shown) { border-color: var(--brick); }

/* ===== Agency-owner layer ===== */
.concept-bar .cb-left { display: flex; align-items: center; min-width: 0; }
.concept-bar .cb-left .msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concept-bar .cb-cta { background: var(--sodium); color: #17181b; font-family: var(--body); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 3px; white-space: nowrap; }
.concept-bar .cb-cta:hover { background: #f6b455; }
@media (max-width: 640px) { .concept-bar .cb-cta { font-size: 12px; padding: 5px 10px; } .concept-bar .msg { display: none; } }

.od-scrim { touch-action: none; position: fixed; inset: 0; background: rgba(10,11,13,.55); backdrop-filter: blur(2px); z-index: 120; opacity: 0; pointer-events: none; transition: opacity .25s; }
.od-scrim.open { opacity: 1; pointer-events: auto; }
.owner-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); max-width: 100%; z-index: 121; touch-action: pan-y; background: var(--paper); color: var(--night); border-left: 2px solid var(--night); transform: translateX(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: contain; }
.owner-drawer.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.od-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px; background: var(--deep); color: var(--on-deep); }
.od-head b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; text-transform: uppercase; line-height: .95; margin-top: 6px; }
.od-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sodium); }
.od-x { width: 36px; height: 36px; border: 1px solid #3a3b41; border-radius: 3px; color: #f2ece1; flex: none; display: grid; place-items: center; }
.od-body { padding: 18px 20px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; flex: 1; min-height: 0; }
.od-body > *, .od-card > * { min-width: 0; }
.od-head > div { min-width: 0; }
.od-lead { font-size: 15px; color: var(--ink-2); }
.od-card { display: grid; gap: 10px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.od-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.od-try { border: 2px solid var(--sodium); }
.od-list { list-style: none; margin: 0; padding: 0; display: grid; }
.od-list a { display: grid; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.od-list li:last-child a { border-bottom: 0; }
.od-list b { font-size: 14.5px; } .od-list span { font-size: 13px; color: var(--muted); }
.od-list a:hover b { color: var(--brick); }
.od-roi { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.od-roi b { font-size: 16px; } .od-roi .od-label { color: rgba(242,236,225,.6); }
.od-link { color: var(--sodium); font-weight: 700; font-size: 14px; }
.od-msg { font-size: 13.5px; min-height: 1.2em; margin: 0; }
.od-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.od-actions .btn { white-space: normal; text-align: center; line-height: 1.15; padding: 0 12px; }
/* Body lock while the owner panel is open (stops the page behind from sliding or scrolling) */
body.od-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
/* Phones: the panel is a full-screen sheet, pinned to all four edges */
@media (max-width: 640px) {
  .owner-drawer { left: 0; right: 0; width: 100%; border-left: 0; }
  .od-body { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .od-actions { grid-template-columns: minmax(0, 1fr); }
  .od-head { padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); }
  .od-head b { font-size: 1.55rem; }
  .od-body { padding-left: 16px; padding-right: 16px; }
  .od-card { padding: 14px; }
}

.owner-fab { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 4px; background: var(--sodium); color: #17181b; font-weight: 700; font-size: 14px; border: 2px solid #17181b; box-shadow: 3px 3px 0 #17181b; }
.owner-fab .of-dot { width: 8px; height: 8px; border-radius: 50%; background: #17181b; animation: lamp 3s ease-in-out infinite; }
@media (max-width: 760px) { .owner-fab { display: none; } }

.owner-intro { position: fixed; left: 20px; bottom: 80px; z-index: 82; width: min(360px, calc(100vw - 32px)); background: var(--deep); color: var(--on-deep); border: 2px solid var(--sodium); border-radius: var(--radius); padding: 18px; box-shadow: 8px 8px 0 rgba(0,0,0,.35); display: grid; gap: 8px; animation: pop .3s ease; }
.owner-intro b { font-size: 17px; line-height: 1.3; }
.owner-intro p { font-size: 14px; color: rgba(242,236,225,.75); }
.owner-intro .oi-x { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; color: #f2ece1; border: 1px solid #3a3b41; border-radius: 3px; }
.oi-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.owner-intro .btn-ghost { border-color: rgba(242,236,225,.35); color: #f2ece1; }
@media (max-width: 760px) { .owner-intro { left: 16px; bottom: 84px; } }
