/* AirStartersDirect tokens — vivid, brand-led: starter yellow + signal red lead, with bright accents. Montserrat. */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
:root {
  /* vivid accent set */
  --yellow: #ffbe0b; --red: #ff2e3b; --orange: #ff7a00; --blue: #2d6bff;
  --cyan: #00b4ff; --teal: #00c2a8; --green: #18c26b; --violet: #8a5cff; --pink: #ff3d9a;

  --brand: #ffbe0b;          /* starter yellow, brighter */
  --brand-strong: #f2a200;
  --brand-ink: #241a00;      /* text on brand */
  --brand-tint: #fff3c4;
  --brand-text: #a35f00;
  --cta: #ff2e3b;            /* signal red */
  --cta-2: #ff7a00;
  --cta-strong: #e0101d;
  --ink: #1d1a14;
  --ink-2: #4a443a;
  --muted: #776f62;
  --bg: #fffaeb;
  --bg-art: radial-gradient(1200px 500px at 110% -10%, #ffe27a55, transparent 60%), radial-gradient(900px 500px at -10% 30%, #ffb3a333, transparent 60%);
  --surface: #ffffff;
  --surface-2: #fff8e3;
  --line: #f1e3b8;
  --appbar: linear-gradient(90deg, #ffc61a 0%, #ffb000 100%);
  --appbar-ink: #241a00;
  --mark-bg: linear-gradient(150deg, #ff6a5f, #ff2e3b 55%, #d90f1c);
  --mark-ink: #ffffff;
  --accent-line: var(--red);
  --hero-bg: linear-gradient(100deg, #fff7d1 0%, #ffe48a 45%, #ffc94d 100%); --hero-ink: #241a00; --hero-ink-2: #5a4310;
  --band: linear-gradient(120deg, #ff2e3b 0%, #ff5a1f 45%, #ff9a00 100%);
  --band-ink: #ffffff;
  --tab-on: var(--brand);
  --tab-on-ink: var(--brand-ink);
  --shadow: 0 1px 2px rgba(80,50,0,.05), 0 10px 28px -14px rgba(160,100,0,.28);
  --focus: #2d6bff;
  --display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --readout: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --readout-weight: 800;
}
@media (prefers-color-scheme: dark) {
  :root:not(.embedded) {
    --ink: #fff7e6; --ink-2: #e6dcc6; --muted: #b3a88f;
    --bg: #17140c; --bg-art: radial-gradient(1000px 500px at 110% -10%, #ffbe0b22, transparent 60%), radial-gradient(900px 500px at -10% 30%, #ff2e3b1c, transparent 60%);
    --surface: #221e13; --surface-2: #2b2618; --line: #463d24;
    --brand-tint: #3a2f0e; --brand-text: #ffcf4a; --focus: #ffcf4a;
    --hero-bg: linear-gradient(100deg, #2a2108 0%, #4a3606 60%, #7a4a00 100%); --hero-ink: #fff7e6; --hero-ink-2: #f0dfb4;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -14px rgba(0,0,0,.6);
  }
}
/* Shared UI core for the free tool apps. Site look comes from tokens.css (loaded first).
   Vivid system: bright surfaces, glossy colour "tiles" behind every icon, colour picked from the icon's meaning. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-art), var(--bg); background-attachment: fixed; color: var(--ink); font: 400 16px/1.5 var(--text); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 0.75em; }
a { color: inherit; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.i-lg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Colour tiles (the "3D" icon look) ----------
   Any .tile / .badge / .symicon / .lvl-icon gets a glossy gradient chip. Colour comes from --c (and ink from --ci). */
.tile, .badge, .symicon, .lvl-icon {
  --c: var(--brand); --ci: #fff;
  display: grid; place-items: center; flex: none; color: var(--ci);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 62%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 82%, #000) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.14), 0 8px 16px -8px color-mix(in srgb, var(--c) 75%, transparent);
  border: 0;
}
.tile .i, .badge .i, .symicon .i, .lvl-icon .i { filter: drop-shadow(0 1px 0 rgba(0,0,0,.18)); }
/* explicit colour classes */
.c-yellow { --c: var(--yellow) !important; --ci: #2a1d00 !important; }
.c-red    { --c: var(--red) !important;    --ci: #fff !important; }
.c-orange { --c: var(--orange) !important; --ci: #fff !important; }
.c-blue   { --c: var(--blue) !important;   --ci: #fff !important; }
.c-cyan   { --c: var(--cyan) !important;   --ci: #fff !important; }
.c-teal   { --c: var(--teal) !important;   --ci: #fff !important; }
.c-green  { --c: var(--green) !important;  --ci: #fff !important; }
.c-violet { --c: var(--violet) !important; --ci: #fff !important; }
.c-pink   { --c: var(--pink) !important;   --ci: #fff !important; }
/* colour by meaning of the icon inside (no markup changes needed) */
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-alert"], use[href$="i-stop"], use[href$="i-x"], use[href$="i-quote"]) { --c: var(--red); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-check"], use[href$="i-star"]) { --c: var(--green); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-info"], use[href$="i-book"], use[href$="i-eye"], use[href$="i-search"]) { --c: var(--teal); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-gauge"], use[href$="i-chart"], use[href$="i-ruler"]) { --c: var(--blue); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-wrench"], use[href$="i-tool"], use[href$="i-gear"], use[href$="i-grind"]) { --c: var(--orange); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-bolt"], use[href$="i-layers"], use[href$="i-nameplate"], use[href$="i-pinion"]) { --c: var(--violet); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-list"], use[href$="i-clock"], use[href$="i-compare"], use[href$="i-swap"], use[href$="i-print"]) { --c: var(--pink); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-droplet"], use[href$="i-air"], use[href$="i-tank"], use[href$="i-filter"], use[href$="i-valve"], use[href$="i-leak"], use[href$="i-snow"]) { --c: var(--cyan); --ci: #fff; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-install"], use[href$="i-phone"], use[href$="i-power"], use[href$="i-engage"]) { --c: var(--yellow); --ci: #2a1d00; }
:is(.tile,.badge,.symicon,.lvl-icon):has(use[href$="i-turtle"], use[href$="i-noTurn"], use[href$="i-rotateCw"], use[href$="i-rotateCcw"]) { --c: var(--violet); --ci: #fff; }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 20; background: var(--appbar); color: var(--appbar-ink); border-bottom: 4px solid var(--accent-line); box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
.appbar-in { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.appbar .mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-ink); flex: none; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.12), 0 6px 14px -6px rgba(0,0,0,.4); }
.appbar .mark .i { width: 22px; height: 22px; }
.appbar .mark img { width: 100%; height: 100%; border-radius: 12px; display: block; object-fit: cover; }
.appbar .names { min-width: 0; flex: 1; }
.appbar .site { display: block; font-size: 0.75rem; font-weight: 600; opacity: 0.85; text-decoration: none; }
.appbar h1 { font-size: 1.08rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .acts { display: flex; gap: 6px; align-items: center; }
.pill-offline { display: inline-flex; gap: 4px; align-items: center; font-size: 0.75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fff; color: #7a3d00; }

/* Hero — bright 3D illustration on the right, fading into the brand gradient */
.hero { position: relative; color: var(--hero-ink); background: var(--hero-bg); overflow: hidden; }
.hero-art { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 58%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); pointer-events: none; }
.hero-in { position: relative; max-width: 980px; margin: 0 auto; padding: 32px 16px 26px; }
.hero h2 { font-size: clamp(1.7rem, 4.8vw, 2.7rem); font-weight: 800; max-width: 15ch; letter-spacing: -0.02em; }
.hero .lede { max-width: 40ch; margin: 10px 0 18px; color: var(--hero-ink-2); font-size: 1.04rem; font-weight: 500; }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; max-width: 600px; counter-reset: s; }
.howto li { --c: var(--blue); counter-increment: s; display: flex; gap: 9px; align-items: flex-start; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-radius: 14px; padding: 10px 12px; font-size: 0.84rem; line-height: 1.35; font-weight: 600; color: var(--ink); box-shadow: 0 10px 22px -14px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.howto li:nth-child(1) { --c: var(--red); } .howto li:nth-child(2) { --c: var(--orange); } .howto li:nth-child(3) { --c: var(--green); }
.howto li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #fff; font: 800 0.8rem var(--display);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 82%, #000)); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 4px 8px -4px var(--c); }
.hero.compact .howto, .hero.compact .lede { display: none; }
.hero.compact .hero-in { padding-top: 16px; padding-bottom: 14px; }
.hero .credit { position: absolute; right: 10px; bottom: 6px; font-size: 0.66rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); opacity: 0.8; }
@media (max-width: 760px) { .hero-art { max-width: 70%; opacity: .9; } .howto { max-width: 100%; } }

/* Tabs — pill switcher */
.tabs { position: sticky; top: 64px; z-index: 15; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs-in { max-width: 980px; margin: 0 auto; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; }
.tabs button { flex: 1 0 auto; display: inline-flex; gap: 8px; align-items: center; justify-content: center; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 700 0.95rem var(--display); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.tabs button .i { color: var(--c, var(--brand)); }
.tabs button:nth-child(1) { --c: var(--blue); } .tabs button:nth-child(2) { --c: var(--orange); } .tabs button:nth-child(3) { --c: var(--violet); }
.tabs button:hover { border-color: var(--c, var(--brand)); }
.tabs button.on { background: var(--tab-on); border-color: transparent; color: var(--tab-on-ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 8px 16px -8px color-mix(in srgb, var(--brand) 90%, transparent); }
.tabs button.on .i { color: inherit; }

/* Layout */
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 18px 16px 8px; }
.stack > * + * { margin-top: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head .badge { width: 40px; height: 40px; border-radius: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .howto { grid-template-columns: 1fr; } .howto li { padding: 8px 10px; } }

/* Fields */
label { display: block; font: 700 0.9rem var(--display); margin-bottom: 6px; }
input[type="text"], input[type="number"], select { width: 100%; font: 600 1.05rem var(--text); color: var(--ink); background: var(--surface); padding: 12px 12px; border: 2px solid var(--line); border-radius: 12px; min-height: 48px; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.row { display: flex; gap: 8px; align-items: stretch; }
.row > input { flex: 1; min-width: 0; }
.row > select { width: auto; flex: none; }

/* Buttons & chips */
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 0.95rem var(--display); text-decoration: none; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn-cta { background: linear-gradient(135deg, var(--cta) 0%, var(--cta-2) 100%); border-color: transparent; color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 10px 20px -10px var(--cta); }
.btn-cta:hover { background: linear-gradient(135deg, var(--cta-strong) 0%, var(--cta) 100%); border-color: transparent; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }
.appbar .btn-sm { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font: 700 0.85rem var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--brand); background: var(--brand-tint); }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 12px; border-radius: 10px; font: 700 0.88rem var(--text); color: var(--muted); cursor: pointer; min-height: 38px; }
.seg button.on { background: var(--brand); color: var(--brand-ink); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35), 0 4px 10px -6px var(--brand); }

/* Readout */
.readout { font: var(--readout-weight) clamp(2.6rem, 9vw, 3.6rem)/1 var(--readout); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.readout small { font-size: 0.42em; font-weight: 600; margin-left: 6px; opacity: 0.85; }

/* Callouts */
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 0.93rem; background: var(--surface-2); border: 1px solid var(--line); border-left: 5px solid var(--teal); }
.callout .i { margin-top: 2px; color: var(--teal); }
.callout.ok { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 35%, var(--surface)); border-left-color: var(--green); }
.callout.ok .i { color: var(--green); }
.callout.warn { background: color-mix(in srgb, var(--orange) 13%, var(--surface)); border-color: color-mix(in srgb, var(--orange) 40%, var(--surface)); border-left-color: var(--orange); }
.callout.warn .i { color: var(--orange); }
.callout.info { background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); border-color: color-mix(in srgb, var(--cyan) 35%, var(--surface)); border-left-color: var(--cyan); }
.callout.info .i { color: var(--cyan); }
details.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
details.fold > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; gap: 10px; align-items: center; font: 700 0.98rem var(--display); }
details.fold > summary > .i:first-child { color: var(--red); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(-135deg); }
details.fold > .fold-body { padding: 0 18px 16px; }

/* Quote band */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--band); color: var(--band-ink); border-radius: 22px; padding: 22px; box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--cta) 80%, transparent); }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); pointer-events: none; }
.cta-band .art { width: 70px; height: 70px; border-radius: 18px; background: #fff; color: var(--cta); display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), 0 10px 20px -10px rgba(0,0,0,.45); transform: rotate(-6deg); }
.cta-band .art .i { width: 36px; height: 36px; }
.cta-band h2 { color: inherit; font-size: 1.3rem; }
.cta-band p { opacity: .95; margin: 4px 0 12px; }
.cta-band .acts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.cta-band .btn-cta { background: #fff; color: var(--cta-strong); box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }
.cta-band .btn-cta:hover { background: #fff6f0; }
.cta-band .btn:not(.btn-cta) { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
@media (max-width: 560px) { .cta-band { grid-template-columns: 1fr; } .cta-band .art { display: none; } }

/* Footer, toast */
.foot { max-width: 980px; margin: 0 auto; padding: 18px 16px 32px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.foot a { color: var(--ink-2); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 999px; opacity: 0; transition: all .2s; pointer-events: none; font-weight: 700; font-size: 0.9rem; z-index: 50; display: inline-flex; gap: 8px; align-items: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.ioshint { display: flex; gap: 10px; align-items: center; }

/* Embedded inside a store page: no app chrome, transparent background so it sits on the store page */
body.embedded { background: transparent; }
body.embedded .appbar, body.embedded .foot, body.embedded .ioshint, body.embedded .hero { display: none; }
body.embedded .tabs { position: static; background: transparent; backdrop-filter: none; border-bottom: 0; }
body.embedded .tabs-in { padding: 4px 0 6px; }
body.embedded main { padding: 8px 8px 12px; }
body.embedded .tabs-in { padding-left: 8px; padding-right: 8px; max-width: none; }
body.embedded main { max-width: none; }

@media print {
  .appbar, .tabs, .hero, .foot, .cta-band, .no-print, #toast { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { border-color: #bbb; box-shadow: none; break-inside: avoid; }
}
@media (max-width: 560px) {
  .hero-art { position: relative; display: block; width: 100%; max-width: none; height: 150px; object-position: 70% 45%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); opacity: 1; }
  .hero .credit { top: -22px; bottom: auto; }
  .hero .lede { display: none; } .hero-in { padding: 4px 16px 16px; } .hero h2 { margin-bottom: 12px; font-size: 1.6rem; max-width: none; }
  .tabs { top: 62px; } .tabs button { padding: 8px 12px; font-size: 0.9rem; }
}
