/* ============================================================================
   marion-astro — design system
   Inspired interpretation of the Vercel design language (see DESIGN.md),
   adapted for an emergency-plumbing brand: stark ink-on-canvas, hairline
   structure, stacked-shadow cards, a single mesh-gradient hero, Geist type,
   monospace technical eyebrows, pill CTAs. The phone call IS the conversion.
   ========================================================================== */

:root {
  /* — surface ladder — */
  --canvas: #ffffff;
  --canvas-soft: #fafafa;
  --canvas-soft-2: #f5f5f5;

  /* — ink / text — */
  --ink: #171717;
  --body: #4d4d4d;
  --mute: #888888;
  --on-ink: #ffffff;

  /* — structure — */
  --hairline: #ebebeb;
  --hairline-strong: #d4d4d4;

  /* — functional accent (sole non-mono colour at UI scale) — */
  --link: #0070f3;
  --link-deep: #0761d1;

  /* — semantic roles (flip in dark mode) — */
  --btn-bg: #171717;          /* primary button / FAB fill */
  --btn-fg: #ffffff;
  --invert-bg: #171717;       /* dark accent bands: callout, testimonials */
  --invert-fg: #ededed;
  --invert-muted: #a8a8a8;
  --invert-border: #2e2e2e;
  --quote-bg: #1f1f1f;
  --nav-bg: rgba(255,255,255,.72);
  --tile-bg: var(--canvas-soft-2);

  /* — brand mesh gradient stops — */
  --g-develop-start: #007cf0;
  --g-develop-end:   #00dfd8;
  --g-preview-start: #7928ca;
  --g-preview-end:   #ff0080;
  --g-ship-start:    #ff4d4d;
  --g-ship-end:      #f9cb28;

  /* — elevation (stacked, never one heavy drop) — */
  --shadow-1: 0 0 0 1px rgba(0,0,0,.08);
  --shadow-2: 0 1px 1px rgba(0,0,0,.02), 0 2px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.06);
  --shadow-3: 0 2px 2px rgba(0,0,0,.04), 0 8px 8px -8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.06);
  --shadow-4: 0 2px 4px rgba(0,0,0,.04), 0 12px 24px -8px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.06);

  /* — geometry — */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 100px;

  /* — rhythm — */
  --wrap: 1180px;
  --gutter: 24px;

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ------------------------------------------------------------ dark theme -- */
:root[data-theme="dark"] {
  --canvas: #0a0a0a;
  --canvas-soft: #131313;
  --canvas-soft-2: #1c1c1c;

  --ink: #ededed;
  --body: #a1a1a1;
  --mute: #6e6e6e;
  --on-ink: #0a0a0a;

  --hairline: #262626;
  --hairline-strong: #3a3a3a;

  --link: #3291ff;
  --link-deep: #62a9ff;

  /* primary actions flip to a light fill on the dark page */
  --btn-bg: #ededed;
  --btn-fg: #0a0a0a;
  /* dark accent bands become a slightly-raised dark surface */
  --invert-bg: #161616;
  --invert-fg: #ededed;
  --invert-muted: #8f8f8f;
  --invert-border: #2a2a2a;
  --quote-bg: #1c1c1c;
  --nav-bg: rgba(10,10,10,.72);
  --tile-bg: #1c1c1c;

  /* shadows: black drops are invisible on dark — use a hairline ring + soft drop */
  --shadow-1: 0 0 0 1px rgba(255,255,255,.08);
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.07);
  --shadow-3: 0 4px 12px -4px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  --shadow-4: 0 8px 28px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.09);
}
:root[data-theme="dark"] .hero__mesh,
:root[data-theme="dark"] .callout__mesh { opacity: .42; }
:root[data-theme="dark"] .map-frame iframe { filter: grayscale(.4) invert(.92) hue-rotate(180deg) contrast(.9); }
:root[data-theme="dark"] .nav__logo img,
:root[data-theme="dark"] .footer__brand img { filter: brightness(0) invert(1); opacity: .92; }

/* ----------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--canvas);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--link-deep); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: #f2f2f2; }

/* custom scrollbar — small signal of care */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 99px; border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--mute); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }

/* --------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
.section--soft { background: var(--canvas-soft); border-block: 1px solid var(--hairline); }
.section--dark { background: var(--invert-bg); color: var(--invert-fg); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* mono technical eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--hairline-strong); }
.section--dark .eyebrow { color: #8f8f8f; }
.eyebrow--center { justify-content: center; }

/* shared section header */
.shead { max-width: 720px; margin: 0 0 48px; }
.shead--center { margin-inline: auto; text-align: center; }
.shead h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.shead p { margin-top: 16px; font-size: 18px; color: var(--body); }
.section--dark .shead p { color: #a8a8a8; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; line-height: 1;
  padding: 0 22px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { filter: brightness(.88); transform: translateY(-1px); box-shadow: 0 6px 20px -6px rgba(0,0,0,.4); }
.btn--secondary { background: var(--canvas); color: var(--ink); border-color: var(--hairline-strong); }
.btn--secondary:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn--lg { height: 52px; font-size: 16px; padding: 0 28px; }
.btn--ghost { background: transparent; color: var(--ink); padding: 0; height: auto; border-radius: 0; }
.btn--ghost:hover { color: var(--link); }
.section--dark .btn--secondary { background: transparent; color: #fff; border-color: #3a3a3a; }
.section--dark .btn--secondary:hover { border-color: #fff; color: #fff; }

/* inline arrow link */
.alink { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.alink svg { width: 14px; height: 14px; transition: transform .2s ease; }
.alink:hover { color: var(--link); }
.alink:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { max-height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav__links a {
  color: var(--body); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: var(--r-pill);
}
.nav__links a:hover { color: var(--ink); background: var(--canvas-soft-2); }
.nav__right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--ink);
}
.nav__phone svg { width: 14px; height: 14px; color: var(--link); }
.nav__toggle { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--canvas); color: var(--ink); cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.icon-btn:hover { border-color: var(--hairline-strong); background: var(--canvas-soft-2); }
.icon-btn svg { width: 17px; height: 17px; }
[data-theme-toggle] .i-sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .i-sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .i-moon { display: none; }

/* mobile nav */
@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--hairline); border-radius: var(--r-sm);
    background: var(--canvas); cursor: pointer;
  }
  .nav__toggle svg { width: 18px; height: 18px; color: var(--ink); }
  .nav__mobile {
    display: none; flex-direction: column; gap: 2px;
    padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
  }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { padding: 12px 8px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--hairline); }
  .nav__mobile a:last-child { border-bottom: 0; }
}
@media (min-width: 861px) { .nav__mobile { display: none; } }

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; overflow: hidden; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.hero__mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  z-index: 0; pointer-events: none; filter: blur(64px) saturate(1.1); opacity: .55;
  background:
    radial-gradient(38% 50% at 12% 18%, var(--g-develop-start) 0%, transparent 70%),
    radial-gradient(40% 52% at 30% 8%,  var(--g-develop-end)   0%, transparent 72%),
    radial-gradient(44% 56% at 62% 14%, var(--g-preview-start) 0%, transparent 70%),
    radial-gradient(42% 52% at 84% 6%,  var(--g-preview-end)   0%, transparent 70%),
    radial-gradient(46% 56% at 92% 30%, var(--g-ship-start)    0%, transparent 72%),
    radial-gradient(50% 60% at 70% 36%, var(--g-ship-end)      0%, transparent 74%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 86%);
}
.hero__inner { position: relative; z-index: 1; padding-block: 112px 96px; max-width: 860px; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02; letter-spacing: -.045em; color: var(--ink);
  margin: 0 0 22px;
}
.hero__title em { font-style: normal; color: var(--link); }
.hero__lead { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--body); max-width: 600px; margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--mute);
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 14px; height: 14px; color: #16a34a; }

/* breadcrumb-style mini hero for interior pages */
.subhero { position: relative; overflow: hidden; background: var(--canvas-soft); border-bottom: 1px solid var(--hairline); }
.subhero .hero__mesh { opacity: .4; height: 150%; }
.subhero__inner { position: relative; z-index: 1; padding-block: 76px 64px; }
.subhero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
.subhero p { margin-top: 14px; font-size: 18px; color: var(--body); max-width: 560px; }

/* ----------------------------------------------------------- breadcrumbs -- */
.crumbs { margin-bottom: 22px; }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
}
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li:not(:first-child)::before { content: "/"; color: var(--mute); opacity: .55; }
.crumbs a { color: var(--mute); transition: color .15s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--body); }

/* ----------------------------------------------------------------- grids -- */
.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: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- service cards -- */
.scard {
  position: relative; display: flex; flex-direction: column;
  background: var(--canvas); border-radius: var(--r-md);
  padding: 26px 24px 22px; box-shadow: var(--shadow-2);
  transition: box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
}
.scard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--g-develop-start), var(--g-preview-end), var(--g-ship-end));
  opacity: 0; transition: opacity .2s ease;
}
.scard:hover { box-shadow: var(--shadow-4); transform: translateY(-3px); }
.scard:hover::before { opacity: 1; }
.scard__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--tile-bg); border: 1px solid var(--hairline); color: var(--ink);
}
.scard__icon svg { width: 20px; height: 20px; }
.scard h3 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 8px; }
.scard h3 a { color: var(--ink); }
.scard h3 a:hover { color: var(--link); }
.scard p { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0 0 18px; flex: 1; }
.scard__cta { margin-top: auto; }

/* ----------------------------------------------------------------- stats -- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
  background: var(--canvas);
}
.stat { padding: 36px 28px; border-inline-start: 1px solid var(--hairline); }
.stat:first-child { border-inline-start: 0; }
.stat__num { font-size: clamp(34px, 5vw, 46px); font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.stat__num span { color: var(--link); }
.stat__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); margin-top: 12px; }
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 16px 20px; border-inline-start: 0; border-top: 1px solid var(--hairline);
  }
  .stat:first-child { border-top: 0; }
  .stat__num { font-size: 30px; letter-spacing: -.03em; }
  .stat__label { margin-top: 0; text-align: right; }
}

/* ------------------------------------------------------------ split block -- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 18px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
}

/* prose (markdown content) */
.prose { color: var(--body); font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 16px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 28px; letter-spacing: -.02em; }
.prose a { color: var(--link); }
.prose a:hover { text-decoration: underline; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 99px;
  background: linear-gradient(135deg, var(--g-develop-start), var(--g-preview-end));
}
.prose strong { color: var(--ink); }

/* --------------------------------------------------------------- feature -- */
.fchips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.fchip {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--canvas);
}
.fchip svg { width: 18px; height: 18px; color: var(--link); flex-shrink: 0; margin-top: 2px; }
.fchip b { color: var(--ink); font-weight: 600; font-size: 15px; display: block; }
.fchip span { font-size: 13px; color: var(--body); }
@media (max-width: 560px) { .fchips { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- callout -- */
.callout {
  background: var(--invert-bg); color: var(--invert-fg); border-radius: var(--r-xl);
  padding: 56px clamp(28px, 5vw, 64px); position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px; justify-content: space-between;
}
.callout__mesh {
  position: absolute; inset: auto -10% -60% auto; width: 70%; height: 220%; z-index: 0;
  filter: blur(70px) saturate(1.2); opacity: .5; pointer-events: none;
  background:
    radial-gradient(40% 40% at 30% 50%, var(--g-preview-start) 0%, transparent 70%),
    radial-gradient(40% 40% at 60% 40%, var(--g-preview-end) 0%, transparent 70%),
    radial-gradient(40% 40% at 80% 60%, var(--g-ship-start) 0%, transparent 70%);
}
.callout > * { position: relative; z-index: 1; }
.callout h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.035em; line-height: 1.08; }
.callout p { color: var(--invert-muted); margin-top: 12px; font-size: 17px; max-width: 460px; }
.callout .btn--primary { background: #fff; color: #171717; }
.callout .btn--primary:hover { filter: none; background: #f2f2f2; }

/* ------------------------------------------------------------------- faq -- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 8px; display: flex; gap: 16px; align-items: center;
  font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-inline-start: auto; flex-shrink: 0; width: 12px; height: 12px;
  background: currentColor; transition: transform .2s ease;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
          mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  color: var(--mute);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 8px 24px; color: var(--body); font-size: 15px; line-height: 1.7; max-width: 760px; }

/* ------------------------------------------------------------ testimonials -- */
.tsl__viewport { position: relative; }
/* soft edge fades so the peeking card melts away instead of a hard cut */
.tsl__viewport::before, .tsl__viewport::after {
  content: ''; position: absolute; top: 0; bottom: 8px; width: 56px; z-index: 1;
  pointer-events: none; opacity: 1; transition: opacity .25s ease;
}
.tsl__viewport::before { left: 0; background: linear-gradient(to right, var(--invert-bg), transparent); }
.tsl__viewport::after  { right: 0; background: linear-gradient(to left, var(--invert-bg), transparent); }
.tsl--at-start .tsl__viewport::before,
.tsl--at-end .tsl__viewport::after { opacity: 0; }

.tsl__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.tsl__track::-webkit-scrollbar { display: none; }
.tsl__track > .quote { scroll-snap-align: start; flex: 0 0 clamp(260px, 82%, 380px); }
@media (min-width: 760px) { .tsl__track > .quote { flex-basis: calc((100% - 40px) / 3); } }
/* centre cards when they all fit (no scrolling needed) */
.tsl--static .tsl__track { justify-content: center; flex-wrap: wrap; }
.tsl--static .tsl__viewport::before, .tsl--static .tsl__viewport::after { display: none; }
.tsl--static .tsl__controls { display: none; }

.tsl__controls { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

.quote {
  background: var(--quote-bg); border: 1px solid var(--invert-border); border-radius: var(--r-lg);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 16px;
}
.quote__stars { display: inline-flex; gap: 3px; color: #f5b301; }
.quote__stars svg { width: 16px; height: 16px; }
.quote p { color: #dcdcdc; font-size: 15px; line-height: 1.65; margin: 0; flex: 1; }
.quote footer {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--invert-border); padding-top: 16px; margin-top: 2px;
}
.quote__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--g-develop-start), var(--g-develop-end));
}
.quote__meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.quote__meta b { color: #fff; font-size: 14px; font-weight: 600; }
.quote__meta small { font-family: var(--font-mono); font-size: 11px; color: var(--mute); letter-spacing: .02em; }

.tsl__nav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--quote-bg); border: 1px solid var(--invert-border); color: #fff;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, opacity .2s ease, transform .15s ease;
}
.tsl__nav svg { width: 20px; height: 20px; }
.tsl__nav:hover:not(:disabled) { background: #2a2a2a; border-color: #555; transform: translateY(-1px); }
.tsl__nav:active:not(:disabled) { transform: translateY(0); }
.tsl__nav:disabled { opacity: .28; cursor: default; }

/* ------------------------------------------------------------- directory -- */
.dir__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 860px) { .dir__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dir__grid { grid-template-columns: 1fr; } }
.dir__item { background: var(--canvas); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: background .15s ease; }
.dir__item:hover { background: var(--canvas-soft); }
.dir__item span { color: var(--ink); font-weight: 500; font-size: 15px; }
.dir__item small { font-family: var(--font-mono); font-size: 11px; color: var(--mute); }
.dir__item svg { width: 14px; height: 14px; color: var(--mute); opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.dir__item:hover svg { opacity: 1; transform: translateX(2px); }

/* ------------------------------------------------------- state coverage -- */
.states__bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.states__count { font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: .03em; }
.states__count b { color: var(--ink); font-weight: 500; }
.state-filter {
  position: relative; min-width: 240px; flex: 0 1 320px;
}
.state-filter input {
  width: 100%; height: 42px; padding: 0 14px 0 40px;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-pill);
  transition: border-color .18s ease;
}
.state-filter input::placeholder { color: var(--mute); }
.state-filter input:focus { border-color: var(--hairline-strong); }
.state-filter svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--mute); pointer-events: none; }

.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 960px) { .states { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .states { grid-template-columns: 1fr; } }
.state-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.state-card:hover { border-color: transparent; box-shadow: var(--shadow-3); transform: translateY(-2px); }
.state-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--g-develop-start), var(--g-preview-end));
  opacity: 0; transition: opacity .18s ease;
}
.state-card:hover::before { opacity: 1; }
.state-card__code {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-transform: uppercase;
  color: var(--ink); background: var(--tile-bg); border: 1px solid var(--hairline);
}
.state-card__body { min-width: 0; flex: 1; }
.state-card__name { color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state-card__meta { font-family: var(--font-mono); font-size: 11px; color: var(--mute); margin-top: 2px; }
.state-card__arrow { flex-shrink: 0; width: 15px; height: 15px; color: var(--mute); transition: transform .18s ease, color .18s ease; }
.state-card:hover .state-card__arrow { transform: translateX(3px); color: var(--ink); }
.states__empty { display: none; padding: 28px 4px; color: var(--mute); font-family: var(--font-mono); font-size: 13px; }
.states__empty.show { display: block; }

/* inline city chips (city page footer list) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  font-family: var(--font-mono); font-size: 12px; color: var(--body);
  padding: 6px 12px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--canvas);
}
.chips a:hover { border-color: var(--ink); color: var(--ink); }

/* embedded map */
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--shadow-2); }
.map-frame iframe { display: block; width: 100%; height: 460px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* contact rows */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.cinfo { display: grid; gap: 4px; }
.cinfo li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.cinfo li:first-child { padding-top: 0; }
.cinfo__ico { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--hairline); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--link); }
.cinfo__ico svg { width: 18px; height: 18px; }
.cinfo .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.cinfo .val { color: var(--ink); font-weight: 500; }
.cinfo .val a { color: var(--ink); }
.cinfo .val a:hover { color: var(--link); }

/* ---------------------------------------------------------------- footer -- */
.footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding-block: 64px 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; gap: 36px; } }
.footer__brand img { max-height: 38px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--body); font-size: 14px; max-width: 320px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 0 0 18px; font-weight: 500; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a, .footer__col li { color: var(--body); font-size: 14px; }
.footer__col a:hover { color: var(--ink); }
.footer__contact li { display: flex; gap: 10px; align-items: center; }
.footer__contact svg { width: 15px; height: 15px; color: var(--mute); flex-shrink: 0; }
.footer__sub { display: flex; gap: 8px; margin-top: 4px; }
.footer__sub input {
  flex: 1; height: 40px; padding: 0 12px; font-family: var(--font-sans); font-size: 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--canvas); color: var(--ink);
}
.footer__sub input::placeholder { color: var(--mute); }
.footer__sub button { height: 40px; }
.footer__social { display: flex; gap: 8px; margin-top: 18px; }
.footer__social a { width: 34px; height: 34px; border: 1px solid var(--hairline); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--body); }
.footer__social a:hover { color: var(--ink); border-color: var(--ink); }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer__bottom p { font-size: 13px; color: var(--mute); font-family: var(--font-mono); }

/* ------------------------------------------------------------- call FAB -- */
.call-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg); padding: 0 20px; height: 52px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  transition: transform .18s ease, filter .18s ease;
}
.call-fab:hover { color: var(--btn-fg); filter: brightness(.88); transform: translateY(-2px); }
.call-fab svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .call-fab span { display: none; } .call-fab { padding: 0; width: 54px; height: 54px; justify-content: center; right: 16px; bottom: 16px; } }

/* ------------------------------------------------------------- motion -- */
/* Reveal is a progressive enhancement: hidden ONLY when JS is active (html.js),
   so no-JS users and crawlers always see the content. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2,0,0,1), transform .55s cubic-bezier(.2,0,0,1); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}
