:root {
  --paper: #E6ECE7;
  --paper-2: #D9E2DC;
  --ink: #12233A;
  --slate: #4B5D6E;
  --contour: #B9C9BF;
  --route: #FF4F1A;
  --ok: #0B7A6B;
  --lost: #8C98A4;
  --screen: #0D1A2B;
  --screen-ink: #DCE7E1;
  --screen-dim: #7F93A6;
  --bezel: #1E2C3F;
  --focus: #FF4F1A;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1726; --paper-2: #142136; --ink: #E3EBE6; --slate: #9DB0C0; --contour: #1F3048;
    --ok: #3CC2AE; --lost: #6E7E8E; --screen: #050B15; --bezel: #24364D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1726; --paper-2: #142136; --ink: #E3EBE6; --slate: #9DB0C0; --contour: #1F3048;
  --ok: #3CC2AE; --lost: #6E7E8E; --screen: #050B15; --bezel: #24364D; color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--route); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
.fineprint { color: var(--slate); font-size: .9rem; }

.top, main > section, .foot, .article { width: min(1120px, 100% - 40px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.5rem/1 var(--display); text-decoration: none; color: var(--ink); }
.top nav { display: flex; gap: 22px; font-weight: 500; }
.top nav a { text-decoration: none; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.contours { position: absolute; inset: -40px -10vw auto auto; width: 70vw; max-width: 900px; height: 110%; color: var(--contour); z-index: -1; opacity: .9; }
.lede { font-size: 1.2rem; max-width: 34em; }
.hero-copy .fineprint { max-width: 36em; }

/* the device */
.device { background: var(--bezel); border-radius: 28px; padding: 18px 18px 14px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 48px -24px rgba(10, 20, 35, .55); max-width: 520px; width: 100%; justify-self: end; }
.device-buttons { display: flex; justify-content: space-between; padding: 10px 26px 0; }
.device-buttons span { width: 44px; height: 6px; border-radius: 3px; background: #33465f; }
.device-screen { background: var(--screen); color: var(--screen-ink); border-radius: 14px; min-height: 380px; position: relative; overflow: hidden; display: flex; }
.drop { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px; cursor: pointer; border: 2px dashed transparent; border-radius: 14px; transition: border-color .15s, background .15s; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: -6px; }
.drop.over { border-color: var(--route); background: rgba(255, 79, 26, .08); }
.drop-status { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--display); color: var(--route); margin-bottom: 18px; }
.drop-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--route); }
.drop-big { font: 700 clamp(2.2rem, 4.5vw, 3.2rem)/1 var(--display); margin: 0 0 8px; }
.drop-sub { color: var(--screen-dim); margin: 0; }
.working { flex: 1; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.scan { height: 4px; width: 100%; background: linear-gradient(90deg, transparent, var(--route), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: scan 1.1s linear infinite; margin-bottom: 24px; border-radius: 2px; }
@keyframes scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .scan { animation: none; background: var(--route); opacity: .5; } .drop { transition: none; } }

.result { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 12px; }
.map { flex: 1; min-height: 210px; display: block; width: 100%; }
.map .bg { fill: none; stroke: #1b2a3e; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #24364b; border-radius: 8px; overflow: hidden; }
.field { background: var(--screen); padding: 8px 10px 6px; }
.field .lbl { font-size: .78rem; color: var(--screen-dim); display: block; }
.field .val { font: 700 1.9rem/1.05 var(--display); display: block; }
.field .was { font-size: .8rem; color: var(--screen-dim); display: block; }
.field .was s { text-decoration-color: var(--route); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--screen-dim); }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }

/* after-panel */
.after { padding: 8px 0 64px; }
.after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.issues { list-style: none; padding: 0; margin: 0 0 20px; }
.issues li { padding: 10px 0 10px 28px; border-top: 1px solid var(--contour); position: relative; }
.issues li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.issues li.lost::before { background: var(--lost); }
.sport-pick label { display: block; font-weight: 600; margin-bottom: 6px; }
select, input[type="text"] { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--slate); border-radius: 8px; padding: 10px 12px; }
.buy { background: var(--paper-2); border-radius: 18px; padding: 28px; }
.buy h3 { font-size: 1.9rem; }
.buy-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 1.15rem/1 var(--display); padding: 14px 20px; border-radius: 10px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--route); border-color: var(--route); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.buy-note, .guarantee, .remember { font-size: .9rem; color: var(--slate); }
.key { margin-top: 18px; }
.key > label { font-weight: 600; display: block; margin-bottom: 6px; }
.key-row { display: flex; gap: 10px; flex-wrap: wrap; }
.key-row input { flex: 1 1 220px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; }
.remember { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.key-msg { min-height: 1.5em; margin: 10px 0 0; font-weight: 500; }
.key-msg.err { color: #C0391B; }
.key-msg.ok { color: var(--ok); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--slate); text-decoration: underline; cursor: pointer; }
.healthy { background: var(--paper-2); border-radius: 18px; padding: 28px; }

/* content sections */
.how, .fixes, .pricing, .faq { padding: 56px 0; border-top: 1px solid var(--contour); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); font: 700 3rem/1 var(--display); color: var(--route); display: block; margin-bottom: 8px; }
.fix-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.fix-list div { padding: 16px 0; border-top: 1px solid var(--contour); }
.fix-list dt { font: 600 1.35rem/1.2 var(--display); margin-bottom: 4px; }
.fix-list dd { margin: 0; color: var(--slate); }
.price-table { display: flex; gap: 48px; flex-wrap: wrap; margin: 20px 0; }
.p-num { font: 700 4rem/1 var(--display); display: block; }
.p-what { color: var(--slate); }
.faq details { border-top: 1px solid var(--contour); padding: 14px 0; max-width: 46em; }
.faq summary { cursor: pointer; font: 600 1.3rem/1.3 var(--display); }
.faq details p { margin: 10px 0 4px; color: var(--slate); }
.foot { padding: 40px 0 60px; border-top: 1px solid var(--contour); color: var(--slate); font-size: .95rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* articles */
.article { max-width: 720px; padding: 24px 0 64px; }
.article h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.article h2 { font-size: 1.9rem; margin-top: 1.6em; }
.article li { margin-bottom: .4em; }
.article .cta { background: var(--paper-2); border-radius: 18px; padding: 24px; margin: 32px 0; }
.article .cta p { margin-bottom: 14px; }
.article .meta { color: var(--slate); font-size: .95rem; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { border-top: 1px solid var(--contour); padding: 16px 0; }
.guide-list a { font: 600 1.4rem/1.2 var(--display); }
.wrap-table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--contour); vertical-align: top; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .device { justify-self: stretch; max-width: none; }
  .after-grid, .steps, .fix-list { grid-template-columns: 1fr; }
  .contours { width: 140vw; inset: -20px -40vw auto auto; }
  .top nav { gap: 16px; font-size: .95rem; }
}
@media (max-width: 420px) {
  .device { padding: 12px 12px 10px; border-radius: 22px; }
  .field .val { font-size: 1.5rem; }
  .device-screen { min-height: 320px; }
}
