/* ---------------------------------------------------------------
   T7 Speed Restore — landing page
   Dark, flat, minimal. Modern CSS, mCSS-style class names.
   --------------------------------------------------------------- */

/* ───────── Tokens ───────── */
:root {
  /* Dark slate palette — modern macOS dark app */
  --bg:        oklch(0.16 0.008 250);
  --bg-2:      oklch(0.185 0.008 250);
  --surface:   oklch(0.21 0.008 250);
  --surface-2: oklch(0.24 0.008 250);
  --ink:       oklch(0.97 0.003 250);
  --ink-2:     oklch(0.80 0.006 250);
  --muted:     oklch(0.60 0.008 250);
  --faint:     oklch(0.48 0.008 250);
  --line:      oklch(0.28 0.008 250);
  --line-2:    oklch(0.235 0.008 250);

  /* Accent — a bright "benchmark green" for speed */
  --accent:        oklch(0.82 0.17 142);
  --accent-2:      oklch(0.72 0.17 142);
  --accent-ink:    #000;
  --accent-soft:   oklch(0.82 0.17 142 / 0.12);
  --accent-line:   oklch(0.82 0.17 142 / 0.30);

  /* Type */
  --sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --mono:  ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ───────── Reset / base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--ink);
}
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--accent); color: var(--accent-ink); }

code, kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}

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

.section { padding-block: clamp(80px, 10vw, 140px); }

.sectionLabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.sectionLabel::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ───────── Topbar ───────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: oklch(0.16 0.008 250 / 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line-2);
  background: oklch(0.16 0.008 250 / 0.92);
}
.topbarInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.topbarBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
}
.topbarBrand img {
  width: 24px; height: 24px;
  border-radius: 6px;
}
.topbarNav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbarNav a:not(.btn) {
  color: var(--ink-2);
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 6px;
}
.topbarNav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
}
@media (max-width: 720px) {
  .topbarNav a:not(.btn) { display: none; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: var(--line); }

.btn--primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn--ghost {
  background: transparent;
}

.btn--lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.btnSub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid currentColor;
  border-color: oklch(0 0 0 / 0.18);
}

/* ───────── Hero ───────── */
.hero {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(56px, 7vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.heroIcon {
  width: clamp(180px, 22vw, 300px);
  height: clamp(180px, 22vw, 300px);
  border-radius: 22.37%;
  margin: 0 auto 36px;
}

.heroTitle {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 16ch;
  margin: 0 auto 22px;
}
.heroTitle .accent { color: var(--accent); }

.heroLede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.heroCta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.heroMeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 15px;
}
.heroMeta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.heroMeta .dot {
  width: 3px; height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

/* Hero screenshot (the actual app) */
.heroShot {
  margin-top: clamp(56px, 7vw, 88px);
  max-width: 980px;
  margin-inline: auto;
}
.heroShot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  background: var(--bg-2);
}

/* ───────── Section dividers ───────── */
.divider {
  height: 1px;
  background: var(--line-2);
  border: 0;
  margin: 0;
  max-width: var(--maxw);
  margin-inline: auto;
}

/* ───────── Section heads ───────── */
.sectionHead {
  display: block;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.sectionHead h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: 20px;
}
.sectionHead p {
  color: var(--ink-2);
  max-width: 70ch;
  font-size: 16px;
}

/* ───────── How it works ───────── */
.steps {
  display: grid;
  gap: clamp(64px, 8vw, 96px);
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 880px) {
  .step { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .step:nth-child(even) .stepCopy { order: 2; }
  .step:nth-child(even) .stepShot { order: 1; }
}

.stepCopy { max-width: 42ch; }
.stepNum {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.stepCopy h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.stepCopy p {
  color: var(--ink-2);
  font-size: 16px;
}
.stepCopy p + p { margin-top: 12px; }
.stepCopy code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink-2);
}

/* Screenshot — no frame, just the image with a caption */
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
}
.shot figcaption {
  margin-top: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ───────── Requirements ───────── */
.reqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.reqCard {
  padding: 28px 24px;
  background: var(--bg);
}
.reqCard h4 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reqCard p {
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.018em;
  font-weight: 500;
}
.reqCard small {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ───────── FAQ ───────── */
.faqList {
  border-top: 1px solid var(--line-2);
}

.faqItem {
  border-bottom: 1px solid var(--line-2);
}
.faqQ {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 22px 4px 22px 0;
  font: inherit;
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .15s ease;
}
.faqQ .qText {
  flex: 1 1 auto;
  min-width: 0;
}
.faqQ .qText code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--ink-2);
  background: transparent;
  padding: 0;
  border: 0;
}
.faqQ:hover { color: var(--accent); }
.faqQ .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform .25s ease, color .2s ease;
}
.faqQ .icon svg { width: 14px; height: 14px; }
.faqItem.is-open .faqQ {
  color: var(--accent);
}
.faqItem.is-open .faqQ .icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faqA {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1);
}
.faqItem.is-open .faqA { grid-template-rows: 1fr; }
.faqA > div {
  overflow: hidden;
  min-height: 0;
}
.faqA .inner {
  padding: 0 64px 26px 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 70ch;
}
.faqA .inner p + p { margin-top: 12px; }
.faqA .inner strong { color: var(--ink); font-weight: 600; }
.faqA .inner kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.4;
}
.faqA .inner code {
  font-size: 13.5px;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.faqA .inner ol { padding-left: 1.1em; margin: 10px 0; }
.faqA .inner ol li { margin-bottom: 4px; }
.faqA .inner a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--accent-line); }

/* ───────── CTA strip ───────── */
.ctaStrip {
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(36px, 5vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 760px) {
  .ctaStrip { grid-template-columns: 1.4fr auto; gap: 40px; }
}
.ctaStrip h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin-bottom: 8px;
  font-weight: 600;
}
.ctaStrip p {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 52ch;
}
.ctaStripActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ───────── Footer ───────── */
.footer {
  padding: 40px 0 56px;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line-2);
}
.footerInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.footerInner a { color: var(--ink-2); }
.footerInner a:hover { color: var(--ink); }
.footerBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.footerBrand img { width: 20px; height: 20px; border-radius: 5px; }
.footerLinks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
