/* =====================================================================
   ActiveHalo+ on SafetyAware — device setup pages
   Aware360 brand styles (shared by activehalo-core.html & activehalo-full.html)
   ===================================================================== */

/* ---- Brand palette (from Aware360 Colour Guide) ------------------- */
:root {
  --navy:        #082d43;   /* primary dark / text */
  --navy-2:      #0d3a57;   /* lighter navy for gradients */
  --navy-3:      #12496d;

  --orange:      #ff6b35;   /* primary accent (PMS 1645C) */
  --orange-deep: #ff4c00;   /* PMS 1655C */
  --orange-burn: #d3441c;   /* PMS 173C */
  --orange-soft: #ff8d6a;   /* PMS 1635C */

  --blue:        #2f5271;   /* worker safety (PMS 7700C) */
  --blue-mid:    #8eb7dc;   /* PMS 278C */
  --blue-pale:   #e7f5fe;   /* fitness for duty */

  --green:       #1f9d57;   /* "ready" / good LED */
  --green-pale:  #e8f7ee;

  --ink:         #0f2533;   /* body text */
  --muted:       #5b6b78;   /* secondary text */
  --line:        #e4eaf0;   /* hairline borders */
  --bg:          #f4f7fa;   /* page background */
  --card:        #ffffff;
  --amber:       #f0a500;
  --amber-pale:  #fff6e3;

  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 10px 30px -12px rgba(8, 45, 67, .25);
  --shadow-soft: 0 4px 18px -8px rgba(8, 45, 67, .18);
  --maxw:        600px;

  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-burn); }
h1, h2, h3 { color: var(--navy); line-height: 1.18; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

/* ---- Layout shells ------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section + .section { padding-top: 4px; }

/* ---- Top bar ------------------------------------------------------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.topbar img { height: 26px; width: auto; }
.topbar .badge {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale);
  padding: 5px 11px; border-radius: 999px;
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255,107,53,.30), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  padding: 38px 0 30px;
  overflow: hidden;
}
.hero h1 { color: #fff; font-size: clamp(28px, 7.4vw, 44px); font-weight: 800; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-soft); margin-bottom: 14px;
}
.hero .eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px;
}
.hero p.lead { color: #cfe0ef; font-size: 17px; margin: 14px 0 0; max-width: 34ch; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; }
.hero picture { display: block; }
.hero-device {
  margin: 22px auto 0;
  width: min(58%, 230px);
  height: auto;
  aspect-ratio: 620 / 1094;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.45));
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  color: #eaf2f9; font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; }

/* ---- Section intros ----------------------------------------------- */
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-burn); margin-bottom: 8px;
}
h2.section-title { font-size: clamp(23px, 5.4vw, 31px); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 8px; }

/* ---- Step cards ---------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.step-head { display: flex; gap: 16px; padding: 20px 20px 0; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(150deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff; font-weight: 800; font-size: 21px;
  display: grid; place-items: center;
  box-shadow: 0 8px 16px -6px rgba(255,76,0,.55);
}
.step-head h3 { font-size: 20px; font-weight: 800; margin-bottom: 3px; }
.step-head .eyebrow-sm {
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--orange-burn);
}
.step-body { padding: 12px 20px 22px; }
.step-body p { margin: 0 0 .7em; }
.step-body p:last-child { margin-bottom: 0; }
.step-figure {
  background: linear-gradient(170deg, #f3f7fb, #e9eff5);
  border-top: 1px solid var(--line);
  display: grid; place-items: center; padding: 22px;
}
.step-figure img { height: 190px; width: auto; filter: drop-shadow(0 14px 18px rgba(8,45,67,.20)); }

/* inline “pill” for button presses / hardware refs */
.press {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: .92em;
  padding: 2px 9px; border-radius: 7px; white-space: nowrap;
}
.press svg { width: 14px; height: 14px; }
mark.hl { background: linear-gradient(transparent 55%, rgba(255,141,106,.55) 0); padding: 0 1px; }

/* ---- LED indicator rows ------------------------------------------- */
.led-row { display: flex; align-items: center; gap: 11px; margin: 9px 0; font-size: 15.5px; }
.led {
  flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}
.led.green { background: var(--green); box-shadow: 0 0 0 4px var(--green-pale), 0 0 10px 1px rgba(31,157,87,.7); }
.led.blue  { background: #2b7fff; box-shadow: 0 0 0 4px #e7efff, 0 0 10px 1px rgba(43,127,255,.7); }
.led.red   { background: #e23b3b; box-shadow: 0 0 0 4px #fdeaea, 0 0 10px 1px rgba(226,59,59,.7); }
.led.off   { background: #c3ccd4; box-shadow: 0 0 0 4px #eef2f5; }

/* ---- SMS / phone mock --------------------------------------------- */
.sms {
  background: linear-gradient(180deg, #fff, #f7fafd);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-soft); padding: 14px;
  max-width: 440px;
}
.sms-head { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }
.sms-head .ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(150deg, var(--orange), var(--orange-deep));
  display: grid; place-items: center;
}
.sms-head .ico svg { width: 22px; height: 22px; color: #fff; }
.sms-head .app { font-weight: 800; font-size: 14px; color: var(--navy); line-height: 1.2; }
.sms-head .sub { font-size: 12px; color: var(--muted); }
.sms .bubble {
  background: #eef2f6; border-radius: 5px 16px 16px 16px;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink);
  overflow-wrap: anywhere;
}
.sms .bubble .lead { color: var(--muted); }
.sms .bubble b { color: var(--navy); font-weight: 700; }
.sms .bubble a { color: var(--orange-burn); font-weight: 600; }

/* ---- Callout / success / warning boxes ---------------------------- */
.note { border-radius: var(--radius); padding: 18px 18px 18px 56px; position: relative; margin-top: 8px; }
.note .note-ico { position: absolute; left: 16px; top: 17px; width: 26px; height: 26px; }
.note h3 { font-size: 17.5px; margin-bottom: 4px; }
.note p { margin: 0; font-size: 15.5px; }
.note.success { background: var(--green-pale); border: 1px solid #bfe6cd; }
.note.success h3 { color: #157a41; }
.note.success .note-ico { color: var(--green); }
.note.warn { background: var(--amber-pale); border: 1px solid #f3dca0; }
.note.warn h3 { color: #9a6800; }
.note.warn .note-ico { color: var(--amber); }
.note.info { background: var(--blue-pale); border: 1px solid #c5e3f6; }
.note.info h3 { color: var(--blue); }
.note.info .note-ico { color: var(--blue); }

/* big success banner */
.allset {
  text-align: center; color: #fff; border-radius: var(--radius);
  background: radial-gradient(120% 120% at 50% -10%, #25b46a, #168049);
  padding: 32px 22px; box-shadow: var(--shadow);
}
.allset .tick {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.allset .tick svg { width: 34px; height: 34px; color: #fff; }
.allset h2 { color: #fff; font-size: 26px; font-weight: 800; }
.allset p { color: #d7f5e5; margin: 8px auto 0; max-width: 38ch; }

/* success-state escape hatch — signposts to the help section, no duplicated content */
.branch { margin-top: 18px; text-align: center; }
.branch p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; max-width: 42ch; margin-left: auto; margin-right: auto; }
.btn-help {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-weight: 700; font-size: 15.5px;
  box-shadow: var(--shadow-soft); transition: border-color .15s ease;
}
.btn-help svg { width: 16px; height: 16px; color: var(--orange); }
.btn-help:hover { border-color: var(--orange); }
#help { scroll-margin-top: 76px; }

/* ---- Accordion (troubleshooting / FAQ) ---------------------------- */
.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 12px; overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary {
  list-style: none; cursor: pointer; padding: 16px 50px 16px 18px; position: relative;
  font-weight: 700; color: var(--navy); font-size: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--orange); line-height: 1;
  transition: transform .2s ease;
}
.acc[open] summary::after { content: "\2212"; }
.acc .acc-body { padding: 0 18px 18px; color: var(--ink); }
.acc .acc-body p:last-child { margin-bottom: 0; }

/* ---- Orientation callouts (full guide) ---------------------------- */
.orient { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 8px; }
.orient-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.orient-card .pic {
  background: linear-gradient(170deg, #f3f7fb, #e9eff5); padding: 22px; display: grid; place-items: center;
}
.orient-card .pic img { height: 230px; width: auto; filter: drop-shadow(0 14px 18px rgba(8,45,67,.2)); }
.orient-card .meta { padding: 18px 20px 20px; }
.orient-card .meta h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li { display: flex; gap: 11px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 15.5px; }
.feat-list li:first-child { border-top: 0; }
.feat-list .dot {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: var(--blue-pale);
  color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.feat-list b { color: var(--navy); }

/* ---- LED meaning table -------------------------------------------- */
.led-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); margin-top: 8px; }
.led-table .r { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 15px 18px; align-items: center; }
.led-table .r + .r { border-top: 1px solid var(--line); }
.led-table .r .where { display: grid; place-items: center; }
.led-table .r .what b { color: var(--navy); display: block; font-size: 15.5px; }
.led-table .r .what span { color: var(--muted); font-size: 14.5px; }

/* ---- Feature grid (full guide) ------------------------------------ */
.fgrid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-soft); }
.fcard .fi {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(150deg, var(--orange), var(--orange-deep)); color: #fff;
}
.fcard .fi svg { width: 23px; height: 23px; }
.fcard h3 { font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.fcard p { font-size: 15px; color: var(--ink); margin: 0; }

/* ---- Footer ------------------------------------------------------- */
.foot { background: var(--navy); color: #aebfcd; padding: 34px 0 40px; margin-top: 44px; }
.foot img { height: 24px; margin-bottom: 16px; }
.foot h3 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.foot a { color: #fff; text-decoration: none; }
.foot .contact { display: grid; gap: 7px; font-size: 15px; margin-bottom: 18px; }
.foot .contact div { display: flex; gap: 9px; align-items: center; }
.foot .contact svg { width: 16px; height: 16px; color: var(--orange-soft); flex: 0 0 auto; }
.foot .placeholder { color: #ffd9c7; font-style: italic; }
.foot .contact a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.foot-include {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px 18px; margin: 6px 0 18px;
}
.foot-include h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .03em; margin: 0 0 11px; text-transform: uppercase; }
.foot-include ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-include li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.5; color: #c4d2dd; }
.foot-include li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--orange); }
.foot-include b { color: #fff; font-weight: 700; }
.foot .fine { font-size: 12.5px; color: #6f8597; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

/* ---- helpers ------------------------------------------------------ */
.center { text-align: center; }
.mt-s { margin-top: 10px; }
.mt-m { margin-top: 22px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Larger screens ----------------------------------------------- */
@media (min-width: 720px) {
  body { font-size: 17px; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .hero-device { margin: 0; width: auto; height: 330px; aspect-ratio: 620 / 1094; justify-self: center; }
  .hero p.lead { font-size: 18.5px; }
  .orient-card { display: grid; grid-template-columns: 280px 1fr; }
  .orient-card .pic { border-right: 1px solid var(--line); }
  .fgrid { grid-template-columns: 1fr 1fr; }
}

/* ===================================================================
   Garmin inReach Mini 2 page additions (additive; unused by ActiveHalo)
   =================================================================== */

/* hero device (Garmin cutout keeps its own aspect ratio) */
.hero-garmin { margin: 20px auto 0; width: min(52%, 188px); height: auto; filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); }

/* step part headers / "what you'll need" reuse .kicker, .feat-list, .note.info */

/* detected-OS hint + app-store download buttons */
.os-hint { font-size: 14px; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.os-hint svg { width: 16px; height: 16px; color: var(--orange); flex: 0 0 auto; }
.os-hint b { color: var(--navy); }
.appdl { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: var(--navy); color: #fff; border: 1.5px solid var(--navy);
  border-radius: 13px; padding: 10px 17px; transition: transform .12s ease, box-shadow .12s ease;
}
.store-btn:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.store-btn .glyph { width: 24px; height: 24px; flex: 0 0 auto; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-btn span small { font-weight: 500; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.store-btn span b { font-weight: 800; font-size: 16.5px; }
.store-btn.is-secondary { background: #fff; color: var(--navy); }
.store-btn.is-secondary .glyph.apple path { fill: var(--navy); }
.store-btn.is-dimmed { opacity: .68; }

/* phone screenshots in a device frame */
.shots { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.shot { width: 138px; text-align: center; }
.shot .frame { border: 5px solid #0f2533; background: #0f2533; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); }
.shot .frame img { display: block; width: 100%; }
.shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.35; }

/* alternative-flow toggle (Garmin Explore) styled as a button */
details.alt { margin-top: 8px; }
details.alt > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--line);
  border-radius: 13px; padding: 15px 18px; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-soft);
}
details.alt > summary::-webkit-details-marker { display: none; }
details.alt > summary::after { content: "\203A"; transform: rotate(90deg); color: var(--orange); font-size: 20px; line-height: 1; transition: transform .2s ease; }
details.alt[open] > summary::after { transform: rotate(-90deg); }
details.alt > summary .alt-ico { width: 20px; height: 20px; color: var(--orange); flex: 0 0 auto; }
details.alt .alt-body { padding: 18px 2px 4px; }

/* compact numbered list for the alternative flow */
.ministeps { counter-reset: ms; list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.ministeps li { display: flex; gap: 13px; font-size: 15.5px; }
.ministeps li::before {
  counter-increment: ms; content: counter(ms);
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue-pale); color: var(--blue); font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.ministeps li b { color: var(--navy); }
.ministeps li .store-btn b { color: #fff; }
.ministeps.alpha li::before { content: counter(ms, lower-alpha); }
.kbd { font-weight: 700; background: var(--navy); color: #fff; padding: 1px 8px; border-radius: 6px; font-size: .9em; white-space: nowrap; }

@media (min-width: 720px) {
  .hero-garmin { margin: 0; width: min(100%, 200px); justify-self: center; }
}

/* step figures that hold one or more images (device photos + app screenshots) */
.figs { display: flex; gap: 18px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.figs figure { margin: 0; text-align: center; }
.figs figcaption { margin-top: 9px; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.35; max-width: 170px; min-height: 2.7em; }
.figs .dev-img { height: 300px; width: auto; filter: drop-shadow(0 14px 18px rgba(8,45,67,.22)); }
.figs .shot-img { height: 330px; width: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: #000; }
img.zoomable { cursor: zoom-in; }

/* lightbox — tap any image to view a larger version */
.lightbox { position: fixed; inset: 0; background: rgba(6,18,28,.94); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 22px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox .lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; border: 0; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfe0ef; font-size: 13px; letter-spacing: .02em; }
@media (min-width: 720px) {
  .figs .dev-img { height: 330px; }
  .figs .shot-img { height: 360px; }
}

/* ===================================================================
   User-friendly layer — CTA buttons, reference tiles, popups, wizard
   (shared with the ActiveHalo "kh-edits" pattern)
   =================================================================== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(150deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 800; font-size: 17px; line-height: 1.1;
  padding: 15px 26px; border-radius: 14px;
  box-shadow: 0 12px 22px -8px rgba(255,76,0,.6);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 26px -8px rgba(255,76,0,.72); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--navy); cursor: pointer; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-weight: 700; font-size: 15.5px; line-height: 1.1;
  padding: 13px 20px; transition: border-color .15s ease;
}
.btn-ghost:hover { border-color: var(--orange); }
.btn-ghost svg { width: 20px; height: 20px; flex: 0 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 4px; }

/* reference tiles */
.hub { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.hub-card {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft); padding: 16px 18px; cursor: pointer; text-align: left;
  font-family: var(--font); transition: border-color .15s ease, transform .12s ease, box-shadow .12s ease;
}
.hub-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.hub-card .hub-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-pale); color: var(--blue); }
.hub-card .hub-ico svg { width: 24px; height: 24px; }
.hub-card .hub-t { font-weight: 800; font-size: 16.5px; color: var(--navy); display: block; }
.hub-card .hub-d { font-size: 13.5px; color: var(--muted); display: block; margin-top: 2px; }

/* popup / modal shell */
.ref-pool { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(8,45,67,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal.open { display: flex; animation: modalFade .2s ease; }
.modal-card { background: var(--bg); width: 100%; max-width: var(--maxw); max-height: 94vh; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px -10px rgba(8,45,67,.5); overflow: hidden; animation: modalSlide .26s cubic-bezier(.22,.7,.3,1); }
.modal-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-bottom: 1px solid var(--line); padding: 15px 18px; }
.modal-head h2 { font-size: 19px; font-weight: 800; }
.modal-x { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; }
.modal-x svg { width: 20px; height: 20px; }
.modal-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 18px 26px; }
.modal-body > .section { padding: 0 !important; }
.modal-body > .section + .section { padding-top: 22px !important; }
.modal-body .wrap { padding: 0; max-width: none; }
.modal-body .kicker { margin-top: 0; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlide { from { transform: translateY(40px); } to { transform: translateY(0); } }

/* setup wizard */
.wiz-progress { display: flex; align-items: center; gap: 10px; }
.wiz-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.wiz-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s ease, width .2s ease; }
.wiz-dots span.on { background: var(--orange); width: 22px; border-radius: 5px; }
.wiz-count { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wiz-intro { color: var(--muted); margin: 0 0 16px; }
.wiz-panel { display: none; }
.wiz-panel.active { display: block; animation: modalFade .2s ease; }
.wiz-panel.step { margin: 0; }
.wiz-nav { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--card); border-top: 1px solid var(--line); padding: 14px 18px; }
.wiz-nav .btn-primary { flex: 1 1 auto; font-size: 16px; padding: 14px 22px; }
.wiz-back { flex: 0 0 auto; background: transparent; border: 0; cursor: pointer; font-family: var(--font); font-weight: 700; color: var(--muted); font-size: 15px; padding: 8px 4px; display: inline-flex; align-items: center; gap: 6px; }
.wiz-back svg { width: 16px; height: 16px; }
.wiz-back[hidden] { display: none; }
.wiz-outcome { text-align: center; padding: 14px 6px 6px; }
.wiz-outcome .tick { width: 66px; height: 66px; border-radius: 50%; margin: 4px auto 16px; background: radial-gradient(120% 120% at 50% 0%, #25b46a, #168049); display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(22,128,73,.7); }
.wiz-outcome .tick svg { width: 34px; height: 34px; color: #fff; }
.wiz-outcome h2 { font-size: 25px; font-weight: 800; }
.wiz-outcome p { color: var(--muted); max-width: 42ch; margin: 8px auto 0; }
.wiz-outcome .choices { display: grid; gap: 10px; margin-top: 24px; }
body.modal-lock { overflow: hidden; }

/* store buttons must honor the hidden attribute (display:inline-flex would otherwise win) */
.appdl .store-btn[hidden] { display: none; }

@media (min-width: 560px) {
  .modal { align-items: center; padding: 22px; }
  .modal-card { border-radius: 20px; }
}
@media (min-width: 720px) {
  .hub { grid-template-columns: 1fr 1fr; }
}

/* confirm-before-close dialog (guards wizard progress) */
.confirm { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; background: rgba(6,18,28,.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); padding: 24px; }
.confirm.open { display: flex; animation: modalFade .15s ease; }
.confirm-box { background: #fff; border-radius: 18px; padding: 24px 22px; max-width: 360px; width: 100%; box-shadow: 0 24px 60px rgba(8,45,67,.4); text-align: center; }
.confirm-box h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.confirm-box p { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; }
.confirm-actions { display: grid; gap: 10px; }

/* wizard form fields (IMEI / phone) + opt-in checkbox */
.field { display: block; margin-top: 16px; }
.field-label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.field-input { width: 100%; box-sizing: border-box; font-family: var(--font); font-size: 17px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); -webkit-appearance: none; }
.field-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.18); }
.field-input.invalid { border-color: #e23b3b; box-shadow: 0 0 0 3px rgba(226,59,59,.15); }
.field-err { display: block; color: #c5372f; font-size: 13.5px; margin-top: 7px; font-weight: 600; }
.field-err[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--orange); margin: 1px 0 0; }
.check span { font-size: 15px; line-height: 1.45; }

/* accessory cards (Garmin) */
.acc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
.acc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); padding: 14px 16px; display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.acc-card .acc-pic { width: 88px; height: 88px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.acc-card .acc-pic img { max-width: 80px; max-height: 80px; width: auto; height: auto; }
.acc-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 3px; }
.acc-card p { font-size: 14px; color: var(--ink); margin: 0; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .modal.open, .modal-card, .wiz-panel.active { animation: none; }
  .hub-card:hover, .btn-primary:hover { transform: none; }
}
