/* Qey website. The palette is the apps' single dark theme (Android colors.xml, iOS QeyTheme). */
:root {
  --background: #0B1220;
  --surface: #131C2E;
  --surface-raised: #1A2539;
  --outline: #24324B;
  --text-primary: #E8EEF8;
  --text-secondary: #93A3BF;
  --text-tertiary: #64748F;
  --accent: #4C8DFF;
  --accent-soft: rgba(76, 141, 255, 0.12);
  --on-accent: #FFFFFF;
  --good: #4CC38A;
  --bad: #F2727F;

  --radius-card: 16px;
  --radius-field: 14px;
  --page: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

img, svg { display: block; max-width: 100%; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--text-primary); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px;
}
.skip:focus { left: 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 700; font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-secondary); font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--text-primary); text-decoration: none; }
@media (max-width: 760px) { .site-nav { display: none; } }

/* Shared */
section { padding: 88px 0; border-bottom: 1px solid var(--outline); }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-secondary); max-width: 46ch; margin-top: 20px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--text-secondary); margin-top: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card p { color: var(--text-secondary); margin-top: 8px; font-size: 16px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } section { padding: 64px 0; } }

.icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  background: var(--accent); color: var(--on-accent);
}
.button:hover { text-decoration: none; background: #6A9FFF; }
.button.ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--outline); }
.button.ghost:hover { background: var(--surface); }

.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700;
}

/* Hero */
.hero { padding: 80px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-secondary); }
.hero-facts li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 56px; }
}

/* Phone mock-up of the Qey app */
.phone {
  justify-self: center;
  width: min(320px, 100%);
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2A3650, #141C2C);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px #2E3B57, 0 0 120px rgba(76, 141, 255, 0.18);
}
.screen {
  height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--background);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 14px;
  font-size: 13px;
}
.screen-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; margin-top: 8px; }
.screen-top img { width: 26px; height: 26px; }
.screen-search {
  border: 1px solid var(--outline); background: var(--surface); border-radius: 12px;
  padding: 9px 12px; color: var(--text-tertiary);
}
.screen-title { font-weight: 700; font-size: 16px; }
.screen-title span { color: var(--text-tertiary); font-weight: 400; }
.mini-card {
  background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 12px;
}
.mini-card b { display: block; font-size: 14px; }
.mini-card small { display: block; color: var(--text-secondary); font-size: 12px; }
.mini-card .pill { font-size: 10px; margin-top: 8px; }
.screen-note { margin-top: auto; text-align: center; color: var(--text-tertiary); font-size: 11px; line-height: 1.4; }

/* Comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--outline); vertical-align: top; }
thead th { background: var(--surface); font-size: 14px; color: var(--text-secondary); font-weight: 700; }
thead th.qey { color: var(--accent); }
tbody th { font-weight: 600; color: var(--text-primary); width: 30%; }
tbody td { color: var(--text-secondary); }
td.qey { background: rgba(76, 141, 255, 0.06); color: var(--text-primary); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.yes, .no { font-weight: 700; }
.yes { color: var(--good); }
.no { color: var(--bad); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 15px;
}

/* Platforms */
.platform h3 { display: flex; align-items: center; gap: 10px; }
.platform dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.platform dt { color: var(--text-tertiary); font-weight: 600; }
.platform dd { margin: 0; color: var(--text-secondary); }

.callout {
  margin-top: 16px; padding: 18px 20px; border-radius: var(--radius-card);
  background: var(--accent-soft); border: 1px solid rgba(76, 141, 255, 0.3);
  color: var(--text-primary); font-size: 16px;
}
.callout strong { color: var(--accent); }

/* Lost phone */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--text-secondary); margin-top: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; }
.timeline li span {
  flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline li p { margin: 0; color: var(--text-secondary); }
.timeline li b { color: var(--text-primary); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
details {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-field);
  padding: 0 20px;
}
summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-secondary); padding: 0 0 18px; font-size: 16px; }

/* Status */
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-list li { display: flex; gap: 10px; color: var(--text-secondary); font-size: 16px; }
.status-list li::before { content: "•"; color: var(--accent); font-weight: 800; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--text-tertiary); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 18px; }
footer .brand img { width: 26px; height: 26px; }

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