/* ===========================================================================
   SensiFF God Sensitivity — web design system
   ---------------------------------------------------------------------------
   The tokens below are the app's own ("SensiFF Light"): one accent (Ember
   #E8431F), gold reserved for VIP, one font (Plus Jakarta Sans), light + dark.
   Values mirror lib/core/constants/app_colors.dart, so the site and the app
   read as one product. Never hard-code a colour in a page — use a token.
   =========================================================================== */

:root {
  /* Brand — Ember. The only accent: primary actions, selected states,
     value bars, active tab. */
  --brand: #e8431f;
  --brand-hover: #d2381a;
  --on-brand: #ffffff;
  --brand-soft: #ffeee8;
  --brand-text: #bf3518;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #f4f5f7;
  --ink: #0f1115;
  --ink-2: #5a6070;
  --ink-3: #8c93a0;
  --line: #e7e9ed;
  --fill: #eef0f3;

  /* Premium (VIP) only — crown, VIP badge, locks. */
  --vip: #9a6a00;
  --vip-soft: #fff4d8;
  --vip-line: #f1d693;

  --success: #12924a;
  --success-soft: #e7f6ee;
  --danger: #d92d20;
  --danger-soft: #fdecea;

  /* Phone mockup frame. Dark in both themes — it is a device, not ink. */
  --bezel: #0f1115;

  --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.05);
  --shadow-md: 0 1px 2px rgba(15, 17, 21, 0.05), 0 6px 18px -8px rgba(15, 17, 21, 0.08);
  --shadow-lg: 0 2px 4px rgba(15, 17, 21, 0.04), 0 18px 40px -16px rgba(15, 17, 21, 0.14);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --wrap: 1140px;
  --gutter: 20px;
  --header-h: 62px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* Dark mode: the OS preference, unless the visitor forced light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #f0532f;
    --brand-hover: #ff6a48;
    --brand-soft: #2e1a14;
    --brand-text: #ff8a6a;

    --bg: #0e0f11;
    --surface: #17181c;
    --surface-alt: #1f2125;
    --ink: #f3f4f6;
    --ink-2: #a8aeb9;
    --ink-3: #767c88;
    --line: #2a2c32;
    --fill: #24262b;

    --vip: #ebb94a;
    --vip-soft: #2a2312;
    --vip-line: #4a3b17;

    --success: #3ccb7f;
    --success-soft: #13281d;
    --danger: #f87171;
    --danger-soft: #2d1515;

    --bezel: #34373d;

    /* Dark mode leans on borders, not elevation (as the app does). */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.7);

    color-scheme: dark;
  }
}

/* Dark mode: forced by the visitor. Keep in sync with the block above. */
:root[data-theme="dark"] {
  --brand: #f0532f;
  --brand-hover: #ff6a48;
  --brand-soft: #2e1a14;
  --brand-text: #ff8a6a;

  --bg: #0e0f11;
  --surface: #17181c;
  --surface-alt: #1f2125;
  --ink: #f3f4f6;
  --ink-2: #a8aeb9;
  --ink-3: #767c88;
  --line: #2a2c32;
  --fill: #24262b;

  --vip: #ebb94a;
  --vip-soft: #2a2312;
  --vip-line: #4a3b17;

  --success: #3ccb7f;
  --success-soft: #13281d;
  --danger: #f87171;
  --danger-soft: #2d1515;

  --bezel: #34373d;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* ───────────────────────────── base ───────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--brand-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(28px, 5.2vw, 46px);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(22px, 3.4vw, 31px);
  letter-spacing: -0.7px;
}

h3 {
  font-size: clamp(17px, 2.1vw, 20px);
  letter-spacing: -0.3px;
}

h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

ul,
ol {
  color: var(--ink-2);
  padding-left: 22px;
  margin: 0 0 14px;
}

li {
  margin-bottom: 7px;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--fill);
  border-radius: 5px;
  padding: 2px 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: 800px;
}

.section {
  padding-block: clamp(44px, 7vw, 76px);
}

.section-tight {
  padding-block: clamp(28px, 4vw, 44px);
}

.muted {
  color: var(--ink-3);
}

.lead {
  font-size: clamp(15.5px, 1.9vw, 18px);
  color: var(--ink-2);
  line-height: 1.6;
}

.center {
  text-align: center;
}

.nums {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Section heading block */
.sec-head {
  max-width: 660px;
  margin-bottom: clamp(24px, 3.5vw, 38px);
}

.sec-head.center {
  margin-inline: auto;
}

.sec-head p {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  color: var(--brand-text);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ───────────────────────────── buttons ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}

.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 75%, transparent);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--brand-text);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.btn-soft:hover {
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
}

.btn-lg {
  padding: 15px 26px;
  font-size: 15.5px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.play-mark {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}

/* ───────────────────────────── cards ───────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(16px, 2.4vw, 24px);
}

.card-flat {
  box-shadow: none;
}

.card-pad-lg {
  padding: clamp(20px, 3vw, 34px);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 18px;
  flex: none;
}

/* ───────────────────────────── header ───────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.4px;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}

.brand .sub {
  color: var(--brand-text);
}

.nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 8px 11px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.nav a:hover {
  background: var(--fill);
  color: var(--ink);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--brand-text);
  background: var(--brand-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav + .header-actions {
  margin-left: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  :root {
    --header-h: 70px;
  }

  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-btn {
    display: none;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }
}

/* Mobile drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 17, 21, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.drawer-open .drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.drawer a.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.drawer a.drawer-link:hover,
.drawer a.drawer-link[aria-current="page"] {
  background: var(--fill);
  text-decoration: none;
}

.drawer a.drawer-link[aria-current="page"] {
  color: var(--brand-text);
}

.drawer-foot {
  margin-top: auto;
  padding-top: 16px;
}

/* ───────────────────────────── hero ───────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(32px, 5vw, 60px) clamp(28px, 4vw, 44px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto -10%;
  height: 520px;
  z-index: -1;
  background: radial-gradient(
      55% 45% at 18% 25%,
      color-mix(in srgb, var(--brand) 13%, transparent),
      transparent 70%
    ),
    radial-gradient(
      45% 40% at 85% 10%,
      color-mix(in srgb, var(--brand) 8%, transparent),
      transparent 70%
    );
  pointer-events: none;
}

.hero h1 {
  max-width: 17ch;
}

.hero .lead {
  max-width: 54ch;
}

.hero-grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-stats b {
  color: var(--ink);
}

.phone-shot {
  position: relative;
  margin-inline: auto;
  width: min(268px, 72vw);
  border-radius: 30px;
  border: 7px solid var(--bezel);
  background: var(--bezel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone-shot img {
  border-radius: 23px;
}

/* ───────────────────────────── forms ───────────────────────────── */

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.field {
  display: block;
}

.field > .label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.field .hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}

.input,
.select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c93a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}

.input:hover,
.select:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

/* Chip group — the app's AppChoiceChips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease;
}

.chip:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

/* Segmented control — the app's AppSegmented */
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--fill);
}

.segmented button {
  padding: 9px 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.segmented button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ───────────────────────── result values ───────────────────────── */

.values {
  display: grid;
  gap: 10px;
}

.value-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
}

.value-row .name {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.value-row .num {
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.value-row .track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--fill);
  overflow: hidden;
}

.value-row .bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brand);
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stat-tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-tile {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
}

.stat-tile .k {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-tile .v {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-tile .v small {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* ───────────────────────────── badges ───────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-brand {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.badge-vip {
  background: var(--vip-soft);
  border: 1px solid var(--vip-line);
  color: var(--vip);
}

.badge-ok {
  background: var(--success-soft);
  color: var(--success);
}

/* ───────────────────────────── tables ───────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data th,
table.data td {
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

table.data thead th {
  position: sticky;
  top: 0;
  background: var(--surface-alt);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:hover {
  background: var(--surface-alt);
}

table.data td.num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

table.data td.gun {
  font-weight: 700;
  color: var(--ink);
}

/* ───────────────────────────── FAQ ───────────────────────────── */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  padding: 15px 18px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--brand-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 18px 16px;
}

.faq .answer p:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

/* ───────────────────────── steps / how-to ───────────────────────── */

ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

ol.steps > li {
  position: relative;
  margin: 0;
  padding: 15px 18px 15px 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
}

ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 800;
}

ol.steps > li b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

/* ───────────────────────── app CTA band ───────────────────────── */

.app-cta {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(
      150deg,
      color-mix(in srgb, var(--brand) 9%, var(--surface)),
      var(--surface) 62%
    );
  box-shadow: var(--shadow-md);
}

@media (min-width: 760px) {
  .app-cta {
    grid-template-columns: 1fr auto;
    gap: 28px;
  }
}

.app-cta h2,
.app-cta h3 {
  margin-bottom: 8px;
}

.app-cta p {
  margin-bottom: 0;
  max-width: 62ch;
}

.app-cta .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.app-cta-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

/* ───────────────────────── device / preset cards ───────────────────────── */

.preset-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

a.preset-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow-md);
}

.preset-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.preset-card .model {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.preset-card .brand-name {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mini-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-values div {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  text-align: center;
}

.mini-values span {
  display: block;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.mini-values b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Gun picker */
.gun-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.gun-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.gun-pick img {
  width: 100%;
  max-width: 84px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.gun-pick:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: var(--ink);
}

.gun-pick[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-text);
}

/* HUD layout card */
.hud-card {
  overflow: hidden;
  padding: 0;
}

.hud-card img {
  width: 100%;
  aspect-ratio: 20 / 9;
  object-fit: cover;
  background: var(--fill);
}

.hud-card .body {
  padding: 15px 16px;
}

/* ───────────────────────── notice boxes ───────────────────────── */

.note {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: 13.5px;
}

.note .mark {
  flex: none;
  font-size: 15px;
  line-height: 1.4;
}

.note p:last-child {
  margin-bottom: 0;
}

.note-ok {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 28%, transparent);
  color: color-mix(in srgb, var(--success) 88%, var(--ink));
}

.note-warn {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 26%, transparent);
  color: color-mix(in srgb, var(--danger) 88%, var(--ink));
}

.note-vip {
  background: var(--vip-soft);
  border-color: var(--vip-line);
  color: color-mix(in srgb, var(--vip) 92%, var(--ink));
}

/* ───────────────────────── breadcrumbs ───────────────────────── */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.crumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--ink-3);
}

.crumbs a {
  color: var(--ink-2);
}

/* ───────────────────────── footer ───────────────────────── */

.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 40px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 28px;
}

.footer-grid h4 {
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.footer-grid a:hover {
  color: var(--brand-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
}

.footer-bottom p {
  margin: 0;
  color: var(--ink-3);
}

/* Sticky bottom app bar — phones only */
.sticky-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  transform: translateY(150%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-cta:hover {
  text-decoration: none;
}

.sticky-cta img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: none;
}

.sticky-cta .go {
  margin-left: auto;
  flex: none;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12.5px;
  font-weight: 800;
}

@media (min-width: 760px) {
  .sticky-cta {
    display: none;
  }
}

/* ───────────────────────── motion ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Long-form article body (guides, legal) */
.prose h2 {
  margin-top: 36px;
}

.prose h3 {
  margin-top: 26px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose table.data {
  font-size: 13px;
}
