/* Bug In — site styles
   Palette: olive-black base, sand text, reflective-tape amber accent. */

:root {
  --bg: #171A14;
  --bg-2: #1E2219;
  --surface: #22261D;
  --line: #333A2C;
  --sand: #E8E1CC;
  --khaki: #9C9B7E;
  --amber: #F2A61B;
  --amber-ink: #1A1400;
  --red: #C9432E;
  --green: #8DB36B;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--amber-ink); padding: 8px 12px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: 20px; letter-spacing: .01em;
  padding: 13px 22px; border-radius: var(--radius);
  background: var(--surface); color: var(--sand); border: 1px solid var(--line);
}
.btn-primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn-primary:hover { background: #FFB832; }
.btn-small { font-size: 17px; padding: 8px 14px; background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
section[id] { scroll-margin-top: 72px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 26, 20, .88);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--amber); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--sand); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--sand); }
.site-nav a:not(.btn):hover { color: var(--amber); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--sand); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; position: relative; }
.hero::before {
  /* faint topographic-style contour glow, single accent */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 40%, rgba(242,166,27,.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(44px, 6.2vw, 78px); font-weight: 700; max-width: 12ch; }
.lede { font-size: 19px; color: var(--khaki); margin-top: 22px; max-width: 56ch; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { color: var(--khaki); font-size: 15px; }

.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--amber); }
.hero-proof span { font-size: 15px; color: var(--khaki); }

/* Phone mockup */
.hero-device { display: flex; justify-content: center; }
.phone {
  width: 300px; min-height: 600px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px;
  background: #0E100C; border: 1px solid #3A4033;
  box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 1px #000;
}
.phone-screen {
  height: 100%; border-radius: 32px; background: var(--bg-2); overflow: hidden;
  padding: 16px 18px; display: flex; flex-direction: column; font-size: 14px;
}
.app-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--khaki); }
.app-status { display: flex; gap: 3px; align-items: flex-end; }
.app-status i { width: 3px; background: var(--khaki); height: 6px; }
.app-status i:nth-child(2) { height: 8px; } .app-status i:nth-child(3) { height: 10px; }
.app-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-top: 18px; }

.gauge { position: relative; width: 150px; margin: 14px auto 6px; }
.gauge svg { transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge-track { stroke: var(--line); }
.gauge-fill { stroke: var(--amber); stroke-dasharray: 100; stroke-dashoffset: 22; }
.gauge-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-num { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; }
.gauge-cap { font-size: 12px; color: var(--khaki); }

.app-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); }
.app-row b { font-weight: 600; } .app-row .ok { color: var(--green); } .app-row .warn { color: var(--amber); }
.app-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid var(--line); }
.app-tabs i { width: 22px; height: 22px; border-radius: 6px; background: var(--line); }
.app-tabs i.on { background: var(--amber); }

/* ---------- Trust ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; }
.trust-line { font-family: var(--font-display); font-size: 24px; font-weight: 500; max-width: 46ch; line-height: 1.2; }
.trust-fine { margin-top: 10px; font-size: 14px; color: var(--khaki); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 600; max-width: 18ch; }
.section-head p { margin-top: 14px; color: var(--khaki); max-width: 56ch; font-size: 18px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 48px; border: 1px solid var(--line); }
.feature { background: var(--bg); padding: 28px 24px 32px; }
.feature-icon { width: 36px; height: 36px; stroke: var(--amber); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 28px; font-weight: 600; margin-top: 18px; }
.feature p { margin-top: 10px; color: var(--khaki); font-size: 16px; }

/* Scenarios */
.scenarios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.scenario-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.scenario-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.sev { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sev-1 { background: var(--green); } .sev-2 { background: var(--amber); } .sev-3 { background: var(--red); }

/* Offline / sync */
.offline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offline-card { background: var(--surface); border: 1px solid var(--line); padding: 36px 32px; border-radius: var(--radius); }
.offline-card h2 { font-size: 36px; font-weight: 600; }
.offline-card p { margin-top: 14px; color: var(--khaki); }

/* Pricing — the one hazard stripe on the page */
.pricing { position: relative; padding-top: 96px; }
.stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 18px, var(--bg) 18px 36px);
}
.pricing-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.price-block { display: flex; flex-direction: column; }
.price { font-family: var(--font-display); font-weight: 700; font-size: clamp(96px, 14vw, 180px); line-height: .9; color: var(--amber); }
.price-cap { margin-top: 12px; font-size: 18px; color: var(--khaki); }
.price-copy h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; }
.price-list { margin: 22px 0 30px; }
.price-list li { position: relative; padding: 8px 0 8px 26px; }
.price-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--khaki); max-width: 60ch; }

/* Download */
.download { text-align: center; }
.download h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
.download p { margin-top: 12px; color: var(--khaki); }
.store-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid #555; border-radius: 10px; padding: 10px 18px 10px 14px; min-width: 190px;
}
.store-badge svg { width: 30px; height: 30px; fill: #fff; }
.store-badge span { display: flex; flex-direction: column; text-align: left; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; }
.store-badge small { font-family: var(--font-body); font-size: 11px; font-weight: 400; margin-bottom: 3px; }
.store-badge:hover { border-color: #999; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.footer-fine { margin-top: 14px; font-size: 13px; color: var(--khaki); max-width: 60ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; color: var(--sand); }
.footer-nav a:hover { color: var(--amber); }
.copyright { grid-column: 1 / -1; font-size: 13px; color: var(--khaki); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; max-width: 72ch; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 700; }
.legal .updated { margin-top: 10px; color: var(--khaki); font-size: 15px; }
.legal h2 { font-size: 28px; font-weight: 600; margin-top: 40px; }
.legal p, .legal li { margin-top: 12px; color: var(--sand); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--amber); }
.legal .todo { background: rgba(242,166,27,.12); border-left: 3px solid var(--amber); padding: 10px 14px; margin-top: 16px; color: var(--sand); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid, .scenarios-grid, .offline-grid, .pricing-grid, .faq-wrap, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-device { order: -1; }
  .phone { width: 250px; min-height: 520px; }
  .section { padding: 64px 0; }
  .hero-proof { grid-template-columns: 1fr; gap: 14px; }
  .hero-proof li { display: flex; align-items: baseline; gap: 10px; }
  .scenario-list { grid-template-columns: 1fr; }
  .price { font-size: clamp(88px, 22vw, 140px); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}
