/* ==========================================================================
   GamifyApps — Global Stylesheet
   Dark neon gaming theme. No build step, no dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #08080f;
  --bg-alt:        #0c0c17;
  --surface:       #12121f;
  --surface-2:     #191929;
  --surface-3:     #212134;

  /* Lines */
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:          #ececf5;
  --text-soft:     #b4b4c8;
  --text-muted:    #8888a0;
  --text-faint:    #63637a;

  /* Brand */
  --violet:        #8b5cf6;
  --violet-bright: #a78bfa;
  --cyan:          #22d3ee;
  --cyan-bright:   #67e8f9;
  --pink:          #f472b6;
  --lime:          #a3e635;
  --amber:         #fbbf24;
  --green:         #34d399;
  --red:           #f87171;

  --grad:          linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --grad-warm:     linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);
  --grad-soft:     linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.14));

  /* Type */
  --font-display: "Outfit", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

  /* Space + shape */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --maxw:       1180px;
  --maxw-prose: 800px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  --glow-v:    0 0 0 1px rgba(139, 92, 246, 0.35), 0 12px 40px -12px rgba(139, 92, 246, 0.55);
  --glow-c:    0 0 0 1px rgba(34, 211, 238, 0.35), 0 12px 40px -12px rgba(34, 211, 238, 0.5);

  --nav-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  color: #fff;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; color: var(--text-soft); }

a { color: var(--cyan-bright); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: #fff; }

ul, ol { color: var(--text-soft); padding-left: 1.3em; }
li { margin-bottom: 0.55em; }

strong, b { color: var(--text); font-weight: 650; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  color: var(--cyan-bright);
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.wrap-prose { max-width: var(--maxw-prose); }

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Shared bits: eyebrow, lead, gradient text, badges
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.755rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-bright);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 10px var(--violet-bright);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.03rem, 1.9vw, 1.19rem);
  color: var(--text-soft);
  line-height: 1.72;
  max-width: 62ch;
}
.center .lead { margin-inline: auto; }

.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 650;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-soft);
  white-space: nowrap;
}
.badge-green { color: var(--green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.badge-cyan  { color: var(--cyan);  border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.1); }
.badge-violet{ color: var(--violet-bright); border-color: rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.1); }
.badge-amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }

/* Placeholder marker — anything you still need to fill in glows amber. */
.fill-me {
  background: rgba(251, 191, 36, 0.14);
  border-bottom: 1px dashed rgba(251, 191, 36, 0.7);
  color: var(--amber);
  padding: 0 3px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #08080f;
  box-shadow: 0 8px 26px -10px rgba(139, 92, 246, 0.85);
}
.btn-primary:hover {
  color: #08080f;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(139, 92, 246, 0.95);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 211, 238, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.87rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}
.center .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 8, 15, 0.92);
}

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px -4px rgba(139, 92, 246, 0.8);
  flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.905rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: #fff; background: rgba(139, 92, 246, 0.16); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.24s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(8, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 118px) 0 clamp(56px, 8vw, 92px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::after {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 25%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 25%, #000 25%, transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.5;
  animation: float 19s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: #8b5cf6; top: -170px; left: -110px; }
.orb-2 { width: 420px; height: 420px; background: #22d3ee; top: -90px;  right: -110px; animation-delay: -6s; }
.orb-3 { width: 340px; height: 340px; background: #f472b6; bottom: -190px; left: 42%; animation-delay: -12s; opacity: 0.32; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(34px, -26px) scale(1.07); }
  66%      { transform: translate(-24px, 20px) scale(0.95); }
}

.hero-inner { max-width: 810px; margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-inline: auto; font-size: clamp(1.05rem, 2.1vw, 1.26rem); }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 34px;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.42);
  background: var(--surface-2);
  box-shadow: 0 22px 48px -22px rgba(139, 92, 246, 0.5);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card ul:last-child { margin-bottom: 0; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: var(--violet-bright);
  font-size: 1.4rem;
}
.card-icon svg { width: 23px; height: 23px; }

.card-flat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-flat:hover { transform: none; box-shadow: none; }

/* Feature card with a top gradient hairline */
.card-glow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.card-glow:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 28px 22px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   10. Business detail table  (the part Google's reviewer reads)
   -------------------------------------------------------------------------- */
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.detail-panel-head {
  padding: 20px 26px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.detail-panel-head h3 { margin: 0; font-size: 1.08rem; }
.detail-panel-head p { margin: 4px 0 0; font-size: 0.87rem; color: var(--text-muted); }

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.945rem;
}
.detail-table th,
.detail-table td {
  padding: 15px 26px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.detail-table tr:last-child th,
.detail-table tr:last-child td { border-bottom: 0; }
.detail-table th {
  width: 38%;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-family: var(--font-display);
  white-space: nowrap;
}
.detail-table td { color: var(--text); }
.detail-table tr:hover td,
.detail-table tr:hover th { background: rgba(255, 255, 255, 0.022); }

@media (max-width: 620px) {
  .detail-table th, .detail-table td { display: block; padding: 0 20px; border: 0; }
  .detail-table th { padding-top: 15px; width: auto; }
  .detail-table td { padding-bottom: 15px; border-bottom: 1px solid var(--border); }
  .detail-table tr:last-child td { border-bottom: 0; padding-bottom: 20px; }
}

/* Generic bordered table for pricing / policy grids */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
table.data th, table.data td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.data thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, 0.022); }
table.data td { color: var(--text-soft); }
table.data td strong { color: var(--text); }

/* --------------------------------------------------------------------------
   11. App / product tiles
   -------------------------------------------------------------------------- */
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 52px -24px rgba(34, 211, 238, 0.45);
}
.app-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 3.1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.app-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.14), transparent 60%);
}
.app-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.app-body h3 { margin-bottom: 6px; font-size: 1.14rem; }
.app-meta {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 13px;
}
.app-body p { font-size: 0.925rem; flex: 1; }
.app-body .btn { margin-top: 14px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   12. Steps / numbered list
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  position: relative;
  padding: 20px 24px 20px 68px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px; top: 20px;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #08080f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}
.step h4 { margin: 0 0 5px; }
.step p { margin: 0; font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   13. Callouts
   -------------------------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--violet);
  background: rgba(139, 92, 246, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-cyan  { border-left-color: var(--cyan);  background: rgba(34, 211, 238, 0.07); }
.callout-amber { border-left-color: var(--amber); background: rgba(251, 191, 36, 0.07); }
.callout-green { border-left-color: var(--green); background: rgba(52, 211, 153, 0.07); }
.callout-red   { border-left-color: var(--red);   background: rgba(248, 113, 113, 0.07); }
.callout h4 { margin: 0 0 7px; font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   14. Legal / prose pages
   -------------------------------------------------------------------------- */
.page-head {
  padding: clamp(46px, 6vw, 76px) 0 clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 130% at 50% -30%, rgba(139, 92, 246, 0.16), transparent 70%),
    var(--bg-alt);
}
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { margin-bottom: 0; }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  font-size: 0.855rem;
  color: var(--text-muted);
}
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }

.prose { font-size: 1.005rem; }
.prose h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  margin-top: 2.6em;
  margin-bottom: 0.6em;
  padding-top: 0.4em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; margin-bottom: 0.5em; font-size: 1.09rem; color: var(--violet-bright); }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { line-height: 1.68; }
.prose table { margin: 1.4em 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 44px;
}
.toc h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 30px;
}
.toc li { margin-bottom: 7px; font-size: 0.915rem; break-inside: avoid; }
.toc a { color: var(--text-soft); }
.toc a:hover { color: var(--cyan-bright); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .card-icon { margin-bottom: 0; flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; }
.contact-item h4 { margin: 0 0 3px; font-size: 0.98rem; }
.contact-item p { margin: 0; font-size: 0.93rem; }
.contact-item a { font-weight: 550; }

.form-field { margin-bottom: 17px; }
.form-field label {
  display: block;
  font-size: 0.855rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-soft);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.form-field label .req { color: var(--pink); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.form-field select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }

.form-note { font-size: 0.83rem; color: var(--text-muted); margin-top: 14px; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  font-size: 0.91rem;
  line-height: 1.55;
}
.form-status.show { display: block; }
.form-status.ok  { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.34); color: #6ee7b7; }
.form-status.err { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.34); color: #fca5a5; }

/* --------------------------------------------------------------------------
   16. FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 11px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: rgba(139, 92, 246, 0.4); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
}
.faq-q:hover { color: #fff; }
.faq-q::after {
  content: "";
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 2px solid var(--violet-bright);
  border-bottom: 2px solid var(--violet-bright);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 22px 20px; font-size: 0.945rem; color: var(--text-soft); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(38px, 6vw, 62px) clamp(26px, 5vw, 56px);
  background:
    radial-gradient(ellipse 80% 120% at 20% 0%, rgba(139, 92, 246, 0.3), transparent 62%),
    radial-gradient(ellipse 80% 120% at 85% 100%, rgba(34, 211, 238, 0.22), transparent 62%),
    var(--surface);
  border: 1px solid var(--border-strong);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin-inline: auto; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 62px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: 40px 30px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  font-size: 0.905rem;
  color: var(--text-muted);
  margin: 14px 0 0;
  max-width: 34ch;
}
.footer h5 {
  font-family: var(--font-display);
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 15px;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--text-soft); font-size: 0.91rem; }
.footer li a:hover { color: var(--cyan-bright); }

.footer-contact { font-size: 0.9rem; color: var(--text-soft); font-style: normal; line-height: 1.75; }
.footer-contact a { color: var(--text-soft); }
.footer-contact a:hover { color: var(--cyan-bright); }
.footer-contact div + div { margin-top: 10px; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.855rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--cyan-bright); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
/* The hidden state is gated behind the `js` class that main.js adds to <html>.
   If JavaScript is disabled or fails to load, every section stays fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 48px; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 0.93em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 22px; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   20b. App detail — icon thumb, screenshot strip, spec lists
   -------------------------------------------------------------------------- */
.app-thumb img {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 21px;
  box-shadow: var(--shadow);
}

.shot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(188px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--surface-3) transparent;
}

.shot-strip::-webkit-scrollbar { height: 8px; }
.shot-strip::-webkit-scrollbar-track { background: transparent; }
.shot-strip::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; }

.shot { margin: 0; scroll-snap-align: start; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.shot-hint {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 2px;
}

.spec-list { list-style: none; margin: 0; padding: 0; }

.spec-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 9px;
  font-size: 0.925rem;
  color: var(--text-soft);
}

.spec-list li:last-child { margin-bottom: 0; }

.spec-list li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 700;
}

.spec-yes li::before { content: "\2713"; color: var(--green); }
.spec-no  li::before { content: "\2715"; color: var(--red); }

.price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 620px) {
  .shot-strip { grid-auto-columns: minmax(150px, 1fr); gap: 14px; }
}

/* --------------------------------------------------------------------------
   20c. App showcase — repeatable featured-app block (home page)
   Add another app by copying one <article class="app-showcase"> block.
   Even-numbered blocks automatically flip the image to the other side.
   -------------------------------------------------------------------------- */
.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.app-showcase + .app-showcase {
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--border);
}

.app-showcase:nth-of-type(even) .app-showcase-media { order: 2; }

.app-showcase-media {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.app-showcase-media img {
  width: min(196px, 44%);
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.app-showcase-media img:first-child { transform: rotate(-2.5deg); }
.app-showcase-media img:last-child  { transform: rotate(2.5deg); }

.app-showcase-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.app-showcase-head img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex: none;
}

.app-showcase-head h3 { margin: 0 0 2px; font-size: 1.3rem; }

.app-showcase-body .app-meta { margin: 15px 0 16px; }

.app-showcase-body .btn-row { margin-top: 22px; }

@media (max-width: 860px) {
  .app-showcase { grid-template-columns: 1fr; gap: 32px; }
  .app-showcase:nth-of-type(even) .app-showcase-media { order: 0; }
  .app-showcase-media img { width: min(178px, 42%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-showcase-media img { transform: none !important; }
}

/* --------------------------------------------------------------------------
   21. Motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .cta-band, .hero-bg, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4 { color: #000; }
  p, li, td { color: #222; }
  a { color: #000; text-decoration: underline; }
  .card, .detail-panel, .table-wrap { border: 1px solid #ccc; background: #fff; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
