/* =============================================================================
   FLORIDA CRYOGEN — MOBILE SERVICE SECTION (/mobile)
   ---------------------------------------------------------------------------
   ADDITIVE ONLY. This file introduces no new palette, no new fonts and no new
   layout primitives — every colour, radius, shadow and font below resolves to a
   variable already defined in styles.css. It is loaded ONLY by the /mobile
   pages, so nothing here can affect the rest of the site.

   The mobile section's visual identity is carried by composition, not by a new
   brand: a full-bleed navy hero, a route line through the four steps, and one
   persistently reachable booking CTA. Every class is namespaced `mob-`.
   ============================================================================= */

/* ===== HERO ============================================================== */
.mob-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  /* Tight enough that the serving line + ZIP checker land above the fold on a
     typical laptop viewport — the checker must be seen without scrolling. */
  padding: 40px 0 64px;
  overflow: hidden;
}
/* Soft ice bloom, echoing the hero treatment on the homepage. */
.mob-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(200, 225, 233, .18) 0%, transparent 68%);
  pointer-events: none;
}
.mob-hero .container { position: relative; z-index: 1; }

.mob-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(200, 225, 233, .35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.mob-hero h1 {
  color: #fff;
  max-width: 15ch;
  margin-bottom: 14px;
}
.mob-hero h1 .mob-accent { color: var(--ice); }
.mob-hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .82);
  max-width: 46ch;
  margin-bottom: 22px;
}
.mob-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.mob-hero-serving {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}
.mob-hero-serving::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--copper);
  flex: none;
}

/* ===== BENEFITS ========================================================== */
.mob-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.mob-benefit {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mob-benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mob-benefit-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ice-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.mob-benefit-icon svg { width: 24px; height: 24px; }
.mob-benefit h3 { color: var(--navy); margin-bottom: 8px; }
.mob-benefit p { color: var(--text-muted); font-size: .96rem; margin: 0; }

/* ===== HOW IT WORKS — the route line ===================================== */
.mob-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
/* The connecting line only makes sense when the steps sit in a row. */
.mob-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ice) 0 10px, transparent 10px 20px);
}
.mob-step { position: relative; text-align: center; }
.mob-step-num {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.mob-step h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 6px; }
.mob-step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ===== WHERE WE COME ===================================================== */
.mob-places {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.mob-place {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.mob-place h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.mob-place p { color: var(--text-muted); font-size: .93rem; margin: 0; }

.mob-note {
  margin-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ===== TREATMENT AREAS =================================================== */
.mob-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.mob-area {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 500;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--shadow-sm);
}
.mob-area::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
}
.mob-area-more {
  background: var(--ice-soft);
  border-style: dashed;
  color: var(--text-muted);
  font-weight: 400;
  box-shadow: none;
}
.mob-area-more::before { background: var(--text-muted); opacity: .45; }

/* The left/right counting explainer — the single most misunderstood part of
   per-area pricing, so it gets its own panel rather than a footnote. */
.mob-counting {
  margin-top: 34px;
  background: var(--ice-soft);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
}
.mob-counting h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 14px; }
.mob-counting-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.mob-counting-row {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
}
.mob-counting-row span:first-child { color: var(--navy); font-weight: 500; }
.mob-counting-row span:last-child {
  color: var(--copper-dark);
  font-weight: 600;
  white-space: nowrap;
}
.mob-counting p { margin: 0; color: var(--text-muted); font-size: .93rem; }

/* ===== PRICING =========================================================== */
.mob-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.mob-price {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.mob-price-featured {
  border-color: var(--copper);
  box-shadow: var(--shadow-md);
}
.mob-price-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.mob-price h3 {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.mob-price-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 8px;
}
/* Rendered when a package price has not been set in mobile-config.js.
   Deliberately loud — this must never reach production unnoticed. */
.mob-price-unset {
  font-size: 1.35rem;
  color: #b4551f;
  background: #fdf1e7;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
}
.mob-price-unit {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 20px;
}
.mob-price-note {
  color: var(--text-muted);
  font-size: .9rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0;
}

/* ===== WHO IT'S FOR ====================================================== */
.mob-for {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 30px;
}
.mob-for li {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
.mob-for li::before {
  content: '';
  width: 20px; height: 20px;
  flex: none;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ice-soft);
  /* Checkmark drawn with a background image so no extra markup is needed. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2461' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== WHAT TO EXPECT ==================================================== */
.mob-expect {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.mob-expect-item {
  background: #fff;
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.mob-expect-item h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.mob-expect-item p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* ===== FINAL CTA ========================================================= */
.mob-final { text-align: center; }
.mob-final h2 { color: #fff; max-width: 20ch; margin: 0 auto .6em; }
.mob-final-secondary {
  display: block;
  margin-top: 22px;
  color: var(--ice);
  font-size: .96rem;
}
.mob-final-secondary:hover { color: #fff; }

/* ===== STICKY MOBILE BOOKING BAR ========================================= */
/* Hidden on desktop; on phones it pins the primary CTA to the bottom of the
   viewport so booking is always one tap away while scrolling (brief §4). */
.mob-sticky {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(28, 58, 95, .10);
  transform: translateY(120%);
  transition: transform .25s ease;
}
.mob-sticky.is-visible { transform: translateY(0); }
.mob-sticky .btn { width: 100%; justify-content: center; }

/* ===== RESPONSIVE ======================================================== */
@media (max-width: 980px) {
  .mob-benefits { grid-template-columns: 1fr; }
  .mob-places   { grid-template-columns: repeat(2, 1fr); }
  .mob-prices   { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .mob-steps    { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .mob-steps::before { display: none; }
  .mob-counting-rows { grid-template-columns: 1fr; }
  .mob-expect   { grid-template-columns: 1fr; }
  .mob-for      { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mob-hero { padding: 66px 0 74px; }
  .mob-hero h1 { max-width: none; }
  .mob-hero-sub { font-size: 1.05rem; }
  .mob-hero-cta { flex-direction: column; align-items: stretch; }
  .mob-hero-cta .btn { justify-content: center; }
  .mob-places { grid-template-columns: 1fr; }
  .mob-steps  { grid-template-columns: 1fr; gap: 26px; }
  .mob-areas  { grid-template-columns: 1fr 1fr; }
  .mob-area   { font-size: .9rem; padding: 15px 14px; }
  .mob-counting { padding: 24px 20px; }
  .mob-sticky { display: block; }
  /* Keep the sticky bar from covering the last section's content. */
  .mob-has-sticky .site-footer { padding-bottom: 78px; }
}

/* =============================================================================
   MOBILE BOOKING PAGE (/mobile/book)
   Same primitives as the landing page — a compact hero, then one card per step.
   ============================================================================= */

.mob-hero-compact { padding: 54px 0 58px; }
.mob-hero-compact h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: none; }
.mob-hero-compact .mob-hero-sub { margin-bottom: 0; }

.mob-book-wrap { max-width: 780px; }

.mob-book-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.mob-book-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.mob-book-num {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .9rem;
}
.mob-book-head h2 { font-size: 1.3rem; margin: 0; color: var(--navy); }
.mob-book-hint { color: var(--text-muted); font-size: .93rem; margin: 0 0 18px 46px; }

/* ── Selectable chips (areas + plans) ── */
.mob-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
}
.mob-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--navy);
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
  /* Comfortable tap target on a phone. */
  min-height: 48px;
}
.mob-pick:hover { border-color: var(--copper); }
.mob-pick.is-on { border-color: var(--copper); background: var(--ice-soft); }
.mob-pick input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; }

.mob-pick-plans { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mob-pick-plan { flex-wrap: wrap; }
.mob-pick-plan-name { font-weight: 500; }
.mob-pick-plan-price {
  width: 100%;
  padding-left: 28px;
  color: var(--copper-dark);
  font-weight: 600;
}
.mob-pick-plan-price small { color: var(--text-muted); font-weight: 400; }

/* ── Address fields ── */
.mob-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mob-field { display: flex; flex-direction: column; gap: 6px; }
.mob-field-wide { grid-column: 1 / -1; }
.mob-field span { font-size: .86rem; font-weight: 600; color: var(--text-muted); }
.mob-field input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  /* 16px minimum, or iOS Safari zooms the page on focus. */
  font-size: 16px;
  color: var(--text);
  background: #fff;
}
.mob-field input:focus { outline: none; border-color: var(--copper); }

/* ── Running total ── */
.mob-summary {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  margin-bottom: 22px;
}
.mob-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: .95rem;
}
.mob-summary-row strong { font-family: var(--font-serif); font-size: 1.7rem; color: var(--ice); white-space: nowrap; }
.mob-summary-note { margin: 8px 0 0; font-size: .86rem; color: rgba(255,255,255,.72); }

/* ── Gate shown until areas + address are in ── */
.mob-book-locked {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text-muted);
  font-size: .94rem;
  margin-left: 46px;
}

@media (max-width: 640px) {
  .mob-book-step { padding: 22px 18px; }
  .mob-book-hint, .mob-book-locked { margin-left: 0; }
  .mob-pick-grid { grid-template-columns: 1fr 1fr; }
  .mob-pick-plans, .mob-field-grid { grid-template-columns: 1fr; }
  .mob-summary-row { flex-direction: column; gap: 4px; }
}

/* New / returning question — asked in-page so the visitor never leaves the
   mobile flow (the shared site gate routes to the in-office booking page). */
.mob-status-pick {
  background: var(--ice-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-left: 46px;
}
.mob-status-pick p { margin: 0 0 14px; font-weight: 600; color: var(--navy); }
.mob-status-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost-navy:hover { background: var(--navy); color: #fff; }

@media (max-width: 640px) {
  .mob-status-pick { margin-left: 0; padding: 18px 16px; }
  .mob-status-btns { flex-direction: column; }
  .mob-status-btns .btn { width: 100%; justify-content: center; }
}

/* Out-of-service-area notice on the booking page — filled by mobile-book.js
   only when the entered address geocodes beyond the 40-mile radius. */
.mob-area-message {
  margin: 14px 0 0;
  background: #fdf1e7;
  border-left: 3px solid #b4551f;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  color: #7c2d12;
  font-size: .93rem;
  line-height: 1.55;
}

/* Landing-page ZIP availability check (service-area section). */
/* Hero placement — the checker sits with the serving line on the dark hero,
   left-aligned like the rest of the hero copy. */
.mob-hero-zip-prompt {
  margin: 12px 0 0;
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
}
.mob-hero .mob-zip-check { justify-content: flex-start; }
.mob-hero .mob-zip-check input {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 255, 255, .4);
}
.mob-hero .mob-zip-check-result { margin-left: 0; }

.mob-zip-check {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.mob-zip-check input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;      /* ≥16px or iOS zooms on focus */
  width: 140px;
  text-align: center;
  background: #fff;
}
.mob-zip-check input:focus { outline: none; border-color: var(--copper); }
.mob-zip-check-result {
  margin: 14px auto 0;
  max-width: 460px;
  background: #fdf1e7;
  border-left: 3px solid #b4551f;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  color: #7c2d12;
  font-size: .93rem;
  text-align: left;
}
/* Shared "you're in the area" style — also used by the booking page's note. */
.mob-area-ok, .mob-area-message.mob-area-ok {
  background: #f0fdf4 !important;
  border-left-color: #2c6e49 !important;
  color: #166534 !important;
}

/* ============================================================================
   STICKY BOOK NOW — restored 2026-08-25 from production history (deploy
   6a8ce7fa). A later parallel deploy replaced the stylesheet without these
   rules, which killed the bottom bar at 641-768px and the ≥769px sticky
   topbar. Scoped here (mobile pages only) instead of shared styles.css so the
   physical site is untouched.
   ============================================================================ */
/* ≤768px: the page's own bottom bar (mobile.js) is the booking CTA. */
@media (max-width: 768px) {
  .mob-sticky { display: block; }
  .mob-has-sticky .site-footer { padding-bottom: 78px; }
}
/* ≥769px: the topbar itself pins (sticky-cta.js measures --fcg-topbar-h). */
@media (min-width: 769px) {
  .topbar { position: sticky; top: 0; z-index: 60; }
  .site-header { top: var(--fcg-topbar-h, 44px); }
}
/* Clone-bar styles used by sticky-cta.js on pages without their own bar. */
.fcg-sticky-book {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(28, 58, 95, .10);
  transform: translateY(120%); transition: transform .25s ease;
}
.fcg-sticky-book.is-visible { transform: translateY(0); }
.fcg-sticky-book .btn { width: 100%; justify-content: center; display: flex; }
@media (max-width: 768px) {
  .fcg-sticky-book { display: block; }
  body.fcg-has-sticky-book .site-footer { padding-bottom: 74px; }
}

/* HPMC Technology section (Step 3) — the step-card grid the migrated
   "What actually happens" section requires. Copied verbatim from the sandbox
   stylesheet; scoped here so the shared styles.css stays untouched. */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.step-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--copper-dark);
  margin-bottom: 10px;
}
.step-item h3 { color: var(--navy); font-size: 1.15rem; margin: 0 0 8px; }
.step-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin: 0; }