/* ============================================================
   TSN APP LAYER — v1.4.0 marketplace design
   ------------------------------------------------------------
   Loaded AFTER style.css (see functions.php). Everything here is
   mobile-first: base rules target small phones; min-width queries
   layer the tablet/desktop adaptation on top. Reuses the design
   tokens from style.css §1 (--tsn-navy, --tsn-blue, --tsn-gold,
   --tsn-skyline, --sp-*, --r-*, --sh-*). No new palette, no new
   dependencies. Sections:
     1. App base guards        6. How-it-works steps
     2. Header + sheets        7. Lanes + community + provider
     3. Buttons                8. Bottom navigation
     4. Hero + trust row       9. Request flow (/get-estimate/)
     5. Popular Services      10. Plugin-form token inheritance
   ============================================================ */

/* ── 1. App base guards ────────────────────────────────────── */
body { overflow-x: clip; }
img, svg, video { max-width: 100%; }

.app-wrap {
  max-width: var(--wrap-base); margin-inline: auto;
  padding-inline: var(--gutter);
}
.app-section { padding-block: 40px; }
.app-section--sky { background: var(--tsn-skyline); }
.app-section--tight { padding-block: 24px; }
@media (min-width: 768px) {
  .app-section { padding-block: 64px; }
  .app-section--tight { padding-block: 32px; }
}
.app-h2 {
  font-size: 1.55rem; line-height: 1.15; margin-bottom: var(--sp-3);
  color: var(--tsn-navy);
}
@media (min-width: 1024px) { .app-h2 { font-size: 2rem; } }
.app-lead { color: var(--tsn-slate); font-size: 1.02rem; margin-bottom: var(--sp-6); max-width: 62ch; }
.app-note { color: var(--tsn-slate); font-size: .92rem; margin: var(--sp-4) 0 0; }
.market-h2 { margin-bottom: 0; }
.market-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--tsn-blue); margin: 0 0 var(--sp-2);
}
.market-eyebrow--light { color: var(--tsn-gold); }
.market-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: var(--sp-6);
}
.market-viewall {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: var(--tsn-skyline); color: var(--tsn-blue-dark);
  font-weight: 700; font-size: .95rem; padding: 10px 16px;
  border-radius: 999px; text-decoration: none;
}
.market-viewall:hover { background: #dcebf7; text-decoration: none; }
.market-viewall svg { width: 18px; height: 18px; }

/* ── 2. Header + sheets ────────────────────────────────────── */
/* v1.4.0: the header is a deep-navy band on every page (the approved
   marketplace reference), replacing the v1.3.0 light bar. style.css's
   transparent-over-hero homepage rule is overridden by the navy rules
   below (this stylesheet loads later at equal specificity). */
.tsn-header--app,
body.home .tsn-header--app {
  background: var(--tsn-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 24px rgba(3, 12, 24, .25);
}
.tsn-header__inner--app { height: 64px; }
@media (min-width: 1024px) { .tsn-header__inner--app { height: 76px; } }
@media (max-width: 380px) {
  .tsn-header--app .tsn-logo__wordmark { font-size: 1rem; }
}
/* Gold house-mark lockup on navy (header + landing bar). */
.tsn-logo--navy .tsn-logo__mark { display: inline-flex; color: var(--tsn-gold); }
.tsn-logo--navy .tsn-logo__mark svg { width: 32px; height: 32px; }
.tsn-logo--navy .tsn-logo__wordmark { color: #fff; }
.tsn-logo--navy .tsn-logo__wordmark small { color: var(--tsn-gold); }
/* Desktop pill nav on navy: style.css gives the pill a white container
   (built for the old light header) — on the navy band the container is
   removed so the links sit directly on navy, per the reference. */
.tsn-header--app .tsn-navpill {
  margin-left: auto;
  background: transparent; border-color: transparent;
  box-shadow: none; padding: 0;
}
.tsn-header--app .tsn-nav--pill a { color: #fff; }
.tsn-header--app .tsn-nav--pill a:hover { color: var(--tsn-gold); background: rgba(255, 255, 255, .10); }
.tsn-header--app .tsn-nav--pill .current-menu-item > a,
.tsn-header--app .tsn-nav--pill .current-page-ancestor > a { color: var(--tsn-gold); background: rgba(255, 255, 255, .08); }
.tsn-header--app .tsn-navpill__cta { background: var(--tsn-gold); color: #1d1405; }
.tsn-header--app .tsn-navpill__cta:hover { background: #dfa93f; color: #1d1405; }
/* Header tools: search (finder) + menu buttons, white on navy. */
.tsn-header__tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
@media (min-width: 1024px) { .tsn-header__tools { margin-left: 0; } }
.tsn-tool-btn {
  width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 12px;
  color: #fff; cursor: pointer;
}
.tsn-tool-btn svg { width: 24px; height: 24px; }
.tsn-tool-btn:active { background: rgba(255, 255, 255, .12); }
.tsn-menu-btn {
  min-width: 48px; height: 48px;
  border-radius: 12px; color: #fff;
}
.tsn-menu-btn:active { background: rgba(255, 255, 255, .12); }
.tsn-menu-btn__icon { display: inline-flex; }
.tsn-menu-btn__icon svg { width: 26px; height: 26px; }
.tsn-menu-btn__label {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (min-width: 1024px) { .tsn-menu-btn { display: none; } }
/* Landing bar (/get-estimate/ etc.) — same navy brand, accent-level. */
body.tsn-landing .tsn-landing-bar {
  background: var(--tsn-navy); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
body.tsn-landing .tsn-landing-bar .tsn-header__phone { color: #fff; }
body.tsn-landing .tsn-landing-bar .tsn-header__phone .tsn-icon { color: var(--tsn-gold); }

/* Sheets (menu + services finder). Menu open/close state is the
   existing tsn.js toggle (.is-open on #tsn-mobile-nav +
   body.tsn-nav-open); the finder is toggled by tsn-app.js. Both share
   the scrim. Close paths: scrim tap, Escape, or any link tap. */
.tsn-finder__title {
  font-weight: 700; font-size: 1.05rem; color: var(--tsn-navy);
  margin: 2px 0 10px;
}
@media (max-width: 1023.98px) {
  .tsn-sheet-scrim {
    position: fixed; inset: 0; z-index: 965;
    background: rgba(12, 43, 78, .48);
    opacity: 0; transition: opacity .2s ease;
  }
  .tsn-sheet-scrim[hidden] { display: none; }
  .tsn-sheet-scrim.is-visible { opacity: 1; }
  .tsn-mobile-nav.tsn-sheet,
  .tsn-finder.tsn-sheet {
    position: fixed; background: #fff;
    inset: auto 0 0 0; top: auto; z-index: 970;
    max-height: 84dvh; overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(3, 12, 24, .35);
    padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    opacity: 1; visibility: hidden; transform: translateY(105%);
    transition: transform .25s ease, visibility .25s;
  }
  .tsn-mobile-nav.tsn-sheet.is-open,
  .tsn-finder.tsn-sheet.is-open { visibility: visible; transform: translateY(0); }
  .tsn-sheet__handle {
    width: 40px; height: 4px; border-radius: 999px;
    background: var(--tsn-line); margin: 2px auto 8px;
  }
  .tsn-sheet__list { list-style: none; margin: 0; padding: 0; }
  .tsn-sheet__list li a {
    display: flex; align-items: center; gap: 12px;
    min-height: 56px; padding: 0 4px;
    font-size: 1.05rem; font-weight: 600; color: var(--tsn-ink);
    text-decoration: none; border-bottom: 1px solid var(--tsn-line);
  }
  .tsn-sheet__list li:last-child a { border-bottom: 0; }
  .tsn-sheet__list a > .tsn-icon:first-child { color: var(--tsn-blue); width: 22px; height: 22px; flex: none; }
  .tsn-sheet__list a > .tsn-icon--chevron-right { margin-left: auto; color: var(--tsn-fog); width: 18px; height: 18px; flex: none; }
  .tsn-sheet__ctas { margin-top: var(--sp-4); }
}
@media (min-width: 1024px) {
  .tsn-mobile-nav.tsn-sheet, .tsn-sheet-scrim { display: none !important; }
  /* Finder becomes a dropdown card under the header on desktop. */
  .tsn-finder.tsn-sheet {
    position: fixed; top: 88px; right: 24px; z-index: 970;
    width: 370px; max-width: calc(100% - 48px);
    background: #fff; border-radius: 18px; box-shadow: var(--sh-2);
    padding: 18px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .tsn-finder.tsn-sheet.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .tsn-finder.tsn-sheet[hidden] { display: none; }
  .tsn-finder .tsn-sheet__handle { display: none; }
  .tsn-finder .tsn-sheet__list { list-style: none; margin: 0; padding: 0; }
  .tsn-finder .tsn-sheet__list li a {
    display: flex; align-items: center; gap: 12px;
    min-height: 48px; padding: 0 4px;
    font-size: 1rem; font-weight: 600; color: var(--tsn-ink);
    text-decoration: none; border-bottom: 1px solid var(--tsn-line);
  }
  .tsn-finder .tsn-sheet__list li:last-child a { border-bottom: 0; }
  .tsn-finder .tsn-sheet__list a > .tsn-icon:first-child { color: var(--tsn-blue); width: 22px; height: 22px; flex: none; }
  .tsn-finder .tsn-sheet__list a > .tsn-icon--chevron-right { margin-left: auto; color: var(--tsn-fog); width: 18px; height: 18px; flex: none; }
  .tsn-finder .tsn-sheet__ctas { margin-top: var(--sp-4); }
}

/* ── 3. Buttons ────────────────────────────────────────────── */
.app-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 24px;
  border-radius: 14px; border: 2px solid transparent;
  font-size: 1.05rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.app-btn svg { width: 20px; height: 20px; flex: none; }
.app-btn:active { transform: translateY(1px); }
.app-btn--primary { background: var(--tsn-blue); color: #fff; box-shadow: 0 8px 20px rgba(20, 99, 168, .28); }
.app-btn--primary:hover { background: var(--tsn-blue-dark); color: #fff; text-decoration: none; }
.app-btn--secondary { background: #fff; color: var(--tsn-navy); border-color: var(--tsn-line); }
.app-btn--secondary:hover { border-color: var(--tsn-blue); color: var(--tsn-blue-dark); text-decoration: none; }
.app-btn--gold { background: var(--tsn-gold); color: #1d1405; box-shadow: 0 8px 20px rgba(201, 138, 27, .30); }
.app-btn--gold:hover { background: #dfa93f; color: #1d1405; text-decoration: none; }
.app-btn--outline-light { background: rgba(7, 26, 48, .25); color: #fff; border-color: rgba(255, 255, 255, .85); }
.app-btn--outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }

/* ── 4. Hero + trust row ───────────────────────────────────── */
.market-hero {
  position: relative; overflow: hidden;
  background: var(--tsn-navy); color: #fff;
}
.market-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
.market-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 48, .88) 0%, rgba(7, 26, 48, .62) 46%, rgba(7, 26, 48, .18) 78%),
    linear-gradient(0deg, rgba(7, 26, 48, .88) 0%, rgba(7, 26, 48, 0) 42%);
}
.market-hero__inner { position: relative; z-index: 1; padding-block: 44px 30px; }
@media (min-width: 1024px) { .market-hero__inner { padding-block: 84px 54px; } }
.market-hero__title {
  color: #fff; margin: 0 0 var(--sp-4);
  font-size: clamp(2.5rem, 8.5vw, 4.1rem);
  line-height: 1.04; letter-spacing: -0.015em; max-width: 12ch;
}
.market-hero__title span { color: var(--tsn-gold); }
.market-hero__lead {
  color: rgba(255, 255, 255, .92);
  font-size: 1.06rem; line-height: 1.6; max-width: 52ch;
  margin: 0 0 var(--sp-6);
}
.market-hero__ctas { display: grid; gap: var(--sp-3); max-width: 580px; }
@media (min-width: 560px) {
  .market-hero__ctas { display: flex; }
  .market-hero__ctas .app-btn { flex: 1 1 0; }
}
.market-trust {
  list-style: none; margin: var(--sp-8) 0 0; padding: var(--sp-5) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: grid; gap: 16px;
}
@media (min-width: 640px) { .market-trust { grid-template-columns: repeat(3, 1fr); } }
.market-trust li { display: flex; gap: 12px; align-items: flex-start; }
.market-trust .tsn-icon { color: var(--tsn-gold); width: 26px; height: 26px; flex: none; margin-top: 2px; }
.market-trust strong { display: block; font-size: 1rem; line-height: 1.3; color: #fff; }
.market-trust small { display: block; font-size: .86rem; line-height: 1.4; color: rgba(255, 255, 255, .78); margin-top: 2px; }

/* ── 5. Popular Services — photographic cards ──────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.svc-photo-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--tsn-line); border-radius: 18px;
  box-shadow: var(--sh-1);
  color: var(--tsn-ink); text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.svc-photo-card:hover { box-shadow: var(--sh-2); border-color: #b9d2e8; text-decoration: none; }
.svc-photo-card:active { transform: scale(.99); }
.svc-photo-card__media { position: relative; display: block; }
.svc-photo-card__media img {
  display: block; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px 18px 0 0;
}
.svc-photo-card__chip {
  position: absolute; left: 12px; bottom: -20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tsn-navy);
}
.svc-photo-card__chip svg { width: 23px; height: 23px; }
.svc-photo-card__body {
  display: flex; align-items: center; gap: 8px;
  padding: 28px 12px 14px;
}
.svc-photo-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.svc-photo-card__name { font-weight: 700; font-size: .98rem; line-height: 1.25; color: var(--tsn-navy); }
@media (min-width: 1024px) { .svc-photo-card__name { font-size: 1.05rem; } }
.svc-photo-card__status { font-size: .78rem; line-height: 1.35; color: var(--tsn-slate); }
.svc-photo-card__chev { margin-left: auto; align-self: center; color: var(--tsn-fog); flex: none; }
.svc-photo-card__chev svg { width: 20px; height: 20px; }
/* Lane chips — retained for the two-lane explainer cards. */
.svc-chip {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; line-height: 1.5; white-space: nowrap;
}
.svc-chip--direct { background: var(--tsn-gold-wash); color: var(--tsn-gold-deep); }
.svc-chip--both { background: var(--tsn-skyline); color: var(--tsn-navy); }
.svc-chip--network { background: #fff; color: var(--tsn-blue-dark); border: 1px solid #b9d2e8; }

/* ── 6. How-it-works steps ─────────────────────────────────── */
.market-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .market-steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); } }
.market-step {
  position: relative;
  background: #fff; border-radius: 18px; box-shadow: var(--sh-1);
  padding: 22px;
}
.market-step__top { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-3); }
.market-step__num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tsn-blue); color: #fff;
  font-weight: 700; font-size: 1.1rem;
}
.market-step__icon { display: inline-flex; color: var(--tsn-blue); }
.market-step__icon svg { width: 30px; height: 30px; }
.market-step__title { font-family: var(--tsn-font-body); font-size: 1.08rem; font-weight: 700; color: var(--tsn-navy); margin: 0 0 6px; }
.market-step p { margin: 0; color: var(--tsn-slate); font-size: .97rem; line-height: 1.55; }
@media (min-width: 900px) {
  .market-step:not(:last-child)::after {
    content: "→"; position: absolute; top: 50%; right: -24px;
    transform: translateY(-50%);
    color: var(--tsn-fog); font-size: 1.3rem; font-weight: 700;
  }
}

/* ── 7. Two-lane explainer + community band + provider band ── */
.app-lanes { display: grid; gap: var(--sp-4); }
@media (min-width: 820px) { .app-lanes { grid-template-columns: 1fr 1fr; } }
.lane-card { border-radius: 18px; padding: 20px; }
.lane-card__title { font-size: 1.3rem; margin: var(--sp-3) 0 var(--sp-2); }
.lane-card p { margin: 0; font-size: .99rem; line-height: 1.6; }
.lane-card--direct { background: var(--tsn-navy); color: #fff; }
.lane-card--direct .lane-card__title { color: #fff; }
.lane-card--direct p { color: rgba(255, 255, 255, .86); }
.lane-card--direct .svc-chip--direct { background: var(--tsn-gold); color: #1d1405; }
.lane-card--network { background: #fff; border: 1px solid var(--tsn-line); box-shadow: var(--sh-1); }
.lane-card--network .lane-card__title { color: var(--tsn-navy); }
.lane-card--network p { color: var(--tsn-slate); }

.market-community {
  position: relative; overflow: hidden;
  border-radius: 24px; background: var(--tsn-navy); color: #fff;
  padding: 34px 24px;
}
@media (min-width: 900px) { .market-community { padding: 48px 44px; } }
.market-community__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.market-community::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 26, 48, .92) 0%, rgba(7, 26, 48, .72) 55%, rgba(7, 26, 48, .35) 100%);
}
.market-community__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-5); }
@media (min-width: 900px) {
  .market-community__inner { grid-template-columns: 1.2fr .8fr; align-items: center; }
  .market-community .app-btn { justify-self: end; }
}
.market-community__title { color: #fff; font-size: 1.7rem; line-height: 1.15; margin: 0 0 var(--sp-3); }
@media (min-width: 1024px) { .market-community__title { font-size: 2.1rem; } }
.market-community__body { color: rgba(255, 255, 255, .88); margin: 0; max-width: 46ch; line-height: 1.6; }

.app-provider { background: var(--tsn-navy); color: #fff; padding-block: 44px; }
@media (min-width: 768px) { .app-provider { padding-block: 64px; } }
.app-provider__grid { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) {
  .app-provider__grid { grid-template-columns: 1.2fr .8fr; align-items: center; }
}
.app-provider__title { color: #fff; font-size: 1.6rem; margin-bottom: var(--sp-3); }
@media (min-width: 1024px) { .app-provider__title { font-size: 2rem; } }
.app-provider__body { color: rgba(255, 255, 255, .86); margin-bottom: var(--sp-5, 20px); }
.app-provider__list { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: 10px; }
.app-provider__list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .92); font-size: .99rem; line-height: 1.5; }
.app-provider__list .tsn-icon { color: var(--tsn-gold); width: 20px; height: 20px; flex: none; margin-top: 2px; }
.app-provider__fee {
  border-top: 1px solid rgba(255, 255, 255, .18); padding-top: var(--sp-4);
  font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .75); margin: 0;
}
.app-provider__actions { display: grid; gap: var(--sp-3); align-content: center; }
.app-provider__link { color: #fff; font-weight: 600; text-align: center; text-underline-offset: 3px; }
.app-provider__link:hover { color: var(--tsn-gold); }

/* ── 8. Bottom navigation ──────────────────────────────────── */
/* style.css §14 only styles the bar ≤767px; the app bar runs on all
   phone/tablet widths. v1.4.0: Request is a raised GOLD CIRCLE with a
   navy icon and its label below (approved reference), replacing the
   v1.3.0 navy pill. */
@media (max-width: 1023.98px) {
  /* 76px bar + 24px clearance: the raised gold Request circle protrudes
     ~30px above the bar's top edge (margin-top:-30px below), so scroll-end
     content needs the extra room or the circle covers the footer line —
     verified by scroll-end screenshot 2026-10-24. */
  body { padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)); }
  .tsn-bottomnav--app {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: var(--tsn-navy);
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(3, 12, 24, .35);
  }
  .tsn-bottomnav--app .tsn-bottomnav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 56px; padding: 6px 2px; border-radius: 14px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none; font-size: .7rem; font-weight: 600; line-height: 1;
  }
  .tsn-bottomnav--app .tsn-bottomnav__item svg { width: 22px; height: 22px; }
  .tsn-bottomnav--app .tsn-bottomnav__item.is-active { color: var(--tsn-gold); }
  .tsn-bottomnav--app .tsn-bottomnav__item--cta {
    /* style.css §14 gives this item a filled background (legacy CTA
       block) — the v1.4.0 circle sits on the plain navy bar instead. */
    background: transparent; border: 0; box-shadow: none;
    color: #fff; font-weight: 700;
  }
  .tsn-bottomnav--app .tsn-bottomnav__item--cta svg {
    width: 54px; height: 54px; padding: 14px;
    margin-top: -30px;
    background: var(--tsn-gold); color: var(--tsn-navy);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(3, 12, 24, .45);
  }
  .tsn-bottomnav--app .tsn-bottomnav__item--cta.is-active { color: var(--tsn-gold); }
  .tsn-backtotop { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ── 9. Request flow (/get-estimate/) ──────────────────────── */
/* Presentation layer ONLY: wraps the Platform Pro estimator output.
   No field, name, or submission behaviour is defined here — just size,
   spacing, and state styling so the existing form reads as a 4-step
   app flow. (Carried verbatim from v1.3.0; accents already sit on the
   shared tokens.) */
.tsn-flow-progress { margin-bottom: var(--sp-6); }
.tsn-flow-progress__label {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tsn-gold-deep); margin-bottom: var(--sp-3);
}
.tsn-flow-progress__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.tsn-flow-progress__steps li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--tsn-slate); text-align: center;
  position: relative;
}
.tsn-flow-progress__steps li::before {
  content: ""; position: absolute; top: 15px; left: calc(-50% + 17px);
  width: calc(100% - 34px); height: 2px; background: var(--tsn-line);
}
.tsn-flow-progress__steps li:first-child::before { display: none; }
.tsn-flow-progress__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid var(--tsn-line); color: var(--tsn-slate);
  font-size: .85rem; font-weight: 700; position: relative; z-index: 1;
}
.tsn-flow-progress__steps li.is-current .tsn-flow-progress__dot {
  background: var(--tsn-navy); border-color: var(--tsn-navy); color: #fff;
  box-shadow: 0 0 0 3px var(--tsn-gold-wash);
}
.tsn-flow-selected {
  display: flex; gap: 8px; align-items: center;
  background: var(--tsn-info-wash); border: 1px solid #b9d2e8; border-radius: 12px;
  padding: 12px 14px; font-weight: 600; color: var(--tsn-navy);
  font-size: .95rem; margin: 0 0 var(--sp-5, 20px);
}
.tsn-flow-selected[hidden] { display: none; }

/* Large, thumb-friendly controls inside the request flow. */
.tsn-request-flow input[type="text"],
.tsn-request-flow input[type="tel"],
.tsn-request-flow input[type="email"],
.tsn-request-flow input[type="number"],
.tsn-request-flow input[type="date"],
.tsn-request-flow select,
.tsn-request-flow textarea,
.tsn-plugin-form input[type="text"],
.tsn-plugin-form input[type="tel"],
.tsn-plugin-form input[type="email"],
.tsn-plugin-form input[type="number"],
.tsn-plugin-form input[type="date"],
.tsn-plugin-form select,
.tsn-plugin-form textarea {
  width: 100%; min-height: 52px;
  font-size: 16px; /* ≥16px prevents iOS focus zoom */
  padding: 12px 14px;
  border: 1.5px solid var(--tsn-line); border-radius: 12px;
  background: #fff; color: var(--tsn-ink);
}
.tsn-request-flow textarea, .tsn-plugin-form textarea { min-height: 120px; line-height: 1.5; }
.tsn-request-flow input[type="file"], .tsn-plugin-form input[type="file"] {
  width: 100%; min-height: 52px; font-size: 16px;
  padding: 10px 12px; border: 1.5px dashed #b9d2e8; border-radius: 12px; background: var(--tsn-canvas);
}
.tsn-request-flow :is(input, select, textarea):focus,
.tsn-plugin-form :is(input, select, textarea):focus {
  border-color: var(--tsn-blue); outline: 3px solid rgba(20, 99, 168, .25); outline-offset: 1px;
}
.tsn-request-flow [aria-invalid="true"],
.tsn-plugin-form [aria-invalid="true"] { border-color: var(--tsn-error) !important; background: var(--tsn-error-wash); }
.tsn-request-flow button[type="submit"],
.tsn-request-flow input[type="submit"],
.tsn-plugin-form button[type="submit"],
.tsn-plugin-form input[type="submit"] {
  min-height: 56px; padding: 14px 26px;
  font-size: 1.05rem; font-weight: 700; border-radius: 14px;
}

/* What-happens-next / confirmation panel. tsn-app.js adds .is-confirmed
   when the estimator's success state appears in the DOM. */
.tsn-flow-next {
  margin-top: var(--sp-8);
  background: var(--tsn-skyline); border: 1px solid #b9d2e8; border-radius: 18px;
  padding: 20px;
}
.tsn-flow-next__title { font-size: 1.25rem; color: var(--tsn-navy); margin-bottom: var(--sp-3); }
.tsn-flow-next__list { margin: 0 0 var(--sp-4); padding-left: 1.25rem; display: grid; gap: 8px; }
.tsn-flow-next__list li { line-height: 1.55; color: var(--tsn-ink); }
.tsn-flow-next__fine { margin: 0; font-size: .9rem; color: var(--tsn-slate); }
.tsn-flow-next.is-confirmed { background: var(--tsn-success-wash); border: 2px solid var(--tsn-success); }

/* ── 10. Reduced-motion trims (global rule in style.css §2 also applies) */
@media (prefers-reduced-motion: reduce) {
  .svc-photo-card, .app-btn, .tsn-mobile-nav.tsn-sheet, .tsn-finder.tsn-sheet, .tsn-sheet-scrim { transition: none; }
}
