/* QuakeInfo — shared stylesheet
   Self-contained: no external fonts, CDNs, or trackers.
   Light + dark aware via prefers-color-scheme. */

:root {
  /* Brand */
  --ocean: #0065ad;
  --sky: #087ec2;
  --grad: linear-gradient(135deg, #0065ad 0%, #087ec2 100%);

  /* Light theme */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --surface: #f0f7fb;
  --text: #102e43;
  --text-muted: #4c6577;
  --border: rgba(0, 112, 184, 0.16);
  --shadow: 0 10px 30px -12px rgba(16, 46, 67, 0.18);
  --link: #0065ad;

  /* Shape */
  --radius-card: 22px;
  --radius-btn: 14px;
  --maxw: 1080px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071923;
    --bg-elev: #102734;
    --surface: #102734;
    --text: #edf6fc;
    --text-muted: #a6bdcc;
    --border: rgba(44, 175, 230, 0.28);
    --shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.6);
    --link: #74caff;
    --ocean: #74caff;
    --sky: #a2ddff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;               /* never scroll horizontally */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-block;
  object-fit: contain;
  box-shadow: 0 4px 12px -4px rgba(0, 112, 184, 0.5);
}
.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ocean); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .nav a { padding: 6px 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(0, 112, 184, 0.75);
}
.btn-primary:hover { opacity: 0.94; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--grad);
  color: #fff;
  padding: 88px 0 96px;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 16ch;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero .subhead {
  margin: 0 auto 32px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
}
.hero .btn-primary {
  background: #fff;
  color: #005b96;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.4);
}
.btn .apple { display: inline-block; margin-top: -2px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 44px;
}

/* ---------- How-to guide ---------- */
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 76px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(44, 175, 230, 0.18), transparent 28%),
    radial-gradient(circle at 82% 5%, rgba(0, 112, 184, 0.2), transparent 25%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.guide-hero h1 {
  max-width: 14ch;
  margin: 0 auto 18px;
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.guide-hero .subhead {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}
.eyebrow,
.step-kicker {
  margin: 0 0 10px;
  color: var(--ocean);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.guide-jumps a {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px -18px rgba(16, 46, 67, 0.4);
}
.guide-jumps a:hover { color: var(--ocean); text-decoration: none; }
.guide-section { scroll-margin-top: 72px; padding: 88px 0; }
.guide-section-tint {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}
.guide-step-reverse .guide-copy { order: 2; }
.guide-step-reverse .guide-visual { order: 1; }
.guide-copy { position: relative; }
.step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 12px 26px -12px rgba(0, 112, 184, 0.75);
}
.guide-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.guide-copy > p:not(.step-kicker) {
  max-width: 58ch;
  margin: 0 0 16px;
  color: var(--text-muted);
}
.guide-copy strong { color: var(--text); }
.guide-visual {
  width: min(100%, 320px);
  margin: 0 auto;
}
.device-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 47px;
  background: linear-gradient(145deg, #303036 0%, #111115 46%, #29292f 100%);
  box-shadow:
    0 30px 70px -28px rgba(10, 38, 57, 0.62),
    0 12px 24px -14px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px rgba(0, 0, 0, 0.8);
}
.device-frame::before,
.device-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 4px;
  background: #1d1d22;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.device-frame::before {
  top: 19%;
  left: -4px;
  height: 54px;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 72px 0 #1d1d22;
}
.device-frame::after {
  top: 27%;
  right: -4px;
  height: 74px;
  border-radius: 0 4px 4px 0;
}
.guide-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}
.screenshot-placeholder {
  aspect-ratio: 560 / 1216;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 2px dashed color-mix(in srgb, var(--ocean) 42%, transparent);
  border-radius: 38px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--ocean) 9%, var(--bg-elev)), var(--bg-elev) 52%, color-mix(in srgb, var(--sky) 8%, var(--bg-elev)));
  color: var(--text);
  text-align: center;
}
.placeholder-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border-radius: 21px;
  background: var(--grad);
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  box-shadow: 0 14px 30px -14px rgba(0, 112, 184, 0.9);
}
.screenshot-placeholder strong { font-size: 1.08rem; }
.screenshot-placeholder small { margin-top: 5px; color: var(--text-muted); }
.guide-visual figcaption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.tip {
  display: grid;
  gap: 3px;
  max-width: 58ch;
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--bg-elev);
  box-shadow: 0 10px 28px -24px rgba(16, 46, 67, 0.45);
}
.tip strong { font-size: 0.92rem; }
.tip span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.siri-phrase {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--ocean);
  border-radius: 0 15px 15px 0;
  background: var(--bg-elev);
  color: var(--text);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 750;
  line-height: 1.4;
}
.guide-prompts { margin-bottom: 22px; }
.mini-steps {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.mini-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.mini-steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ocean) 13%, var(--bg-elev));
  color: var(--ocean);
  font-size: 0.82rem;
  font-weight: 800;
}
.mini-steps p { margin: 1px 0 0; color: var(--text-muted); }
.guide-finish { padding-bottom: 16px; }
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-card);
  background: var(--grad);
  color: #fff;
  box-shadow: 0 24px 60px -28px rgba(0, 112, 184, 0.8);
}
.guide-cta .eyebrow { color: rgba(255, 255, 255, 0.72); }
.guide-cta h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.guide-cta p:last-child { margin: 0; color: rgba(255, 255, 255, 0.84); }
.guide-cta .btn-secondary { flex: 0 0 auto; background: #fff; color: var(--ocean); border-color: transparent; }

@media (max-width: 780px) {
  .guide-step { grid-template-columns: 1fr; gap: 46px; }
  .guide-step-reverse .guide-copy,
  .guide-step-reverse .guide-visual { order: initial; }
  .guide-visual { width: min(72vw, 300px); }
  .guide-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .site-header .container { flex-wrap: wrap; padding-top: 10px; padding-bottom: 9px; }
  .site-header .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a { flex: 0 0 auto; padding: 6px 9px; font-size: 0.86rem; }
  .guide-hero { padding: 60px 0 56px; }
  .guide-section { scroll-margin-top: 106px; padding: 64px 0; }
}

/* ---------- Squircle cards ---------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.card p { margin: 0 0 6px; color: var(--text-muted); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.4rem;
}
.card.span-2 { grid-column: span 2; }
@media (max-width: 640px) { .card.span-2 { grid-column: span 1; } }

/* ---------- App screenshots ---------- */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.shot {
  margin: 0;
  width: 260px;
  max-width: 78%;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(0, 112, 184, 0.5);
}
.shot .device-frame img {
  border: 0;
  box-shadow: none;
}
.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Voice-prompt chips */
.prompts {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prompts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.9rem;
  color: var(--text);
}
.prompts li::before { content: "\201C"; }
.prompts li::after { content: "\201D"; }

/* ---------- Contact form ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(0, 112, 184, 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .error {
  display: none;
  color: #d13c3c;
  font-size: 0.85rem;
  margin-top: 5px;
}
.field.invalid .error { display: block; }
.field.invalid input,
.field.invalid textarea { border-color: #d13c3c; }

/* Honeypot — visually hidden, off-screen, not display:none (bots skip hidden) */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-status {
  display: none;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-status.show { display: block; }
.form-status.success {
  background: rgba(52, 168, 83, 0.12);
  border: 1px solid rgba(52, 168, 83, 0.4);
  color: #1e7d38;
}
.form-status.error {
  background: rgba(209, 60, 60, 0.1);
  border: 1px solid rgba(209, 60, 60, 0.4);
  color: #c0392b;
}
@media (prefers-color-scheme: dark) {
  .form-status.success { color: #7ee29a; }
  .form-status.error { color: #ff9b9b; }
}

.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- Legal / prose (privacy policy) ---------- */
.prose {
  max-width: var(--measure);
  margin: 0 auto;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.prose h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose h4 { font-size: 1.02rem; margin: 22px 0 6px; color: var(--text-muted); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.3em; }
.prose li { margin: 0 0 8px; }
.prose a { color: var(--ocean); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--sky); }

/* Utility */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
