/* Deface landing — dark-first, matches App Store screenshot language.
   No external fonts or assets: everything inlines or ships from /assets. */

:root {
  --bg:        #000000;
  --bg-raise:  #0e0e10;
  --bg-card:   #141417;
  --line:      #26262b;
  --ink:       #ffffff;
  --ink-2:     #a8a8b3;
  --ink-3:     #6e6e78;
  --accent:    #0a84ff;
  --accent-in: #ffffff;
  --accent-dim:#0a84ff1a;

  --wrap: 1120px;
  --r: 16px;
  --r-lg: 24px;

  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.6rem + 3vw, 4.2rem);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
}

/* The page is dark by design. Light mode softens it rather than inverting,
   so screenshots (which have black frames) never sit on a white box. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff; --bg-raise: #f5f5f7; --bg-card: #ffffff;
    --line: #e3e3e8; --ink: #000000; --ink-2: #55555f; --ink-3: #86868b;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 1.5rem; }
.nav nav a { color: var(--ink-2); font-size: var(--step--1); font-weight: 500; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
.nav nav .btn { color: var(--accent-in); }
@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--accent-in);
  font-weight: 600; font-size: var(--step-0);
  padding: .85rem 1.6rem; border-radius: 999px; border: 0;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.1rem; font-size: var(--step--1); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* Apple's badge artwork must not be altered — no filters, no recolouring, and
   it keeps its own aspect ratio. Apple's guidelines also set a 40px minimum
   height and require clear space of at least 10% of the badge height. */
.badge-link { display: inline-block; line-height: 0; border-radius: 9px; margin: 4px; }
.badge-link img { height: 50px; width: auto; }
.badge-link:hover { text-decoration: none; opacity: .85; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem); position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-dim), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

h1, .h1 {
  font-size: var(--step-3); line-height: .98; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 1.1rem; text-wrap: balance;
}
.hero p.lede { font-size: var(--step-1); color: var(--ink-2); margin: 0 0 2rem; max-width: 34ch; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-dim);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.25rem;
}

.shot { border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line); margin: 0; }
.shot img { width: 100%; }

/* Screenshots are pre-cropped to the device (see build notes), so they only
   need a ceiling on how tall they get in a stacked single-column layout. */
.hero .shot { max-width: 380px; margin-inline: auto; }
@media (min-width: 900px) { .hero .shot { max-width: none; } }

/* ---------- generic sections ---------- */
section { padding: clamp(3rem, 7vw, 6rem) 0; }
section.alt { background: var(--bg-raise); border-block: 1px solid var(--line); }

h2 { font-size: var(--step-2); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 1rem; text-wrap: balance; }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .5rem; }
.section-lede { color: var(--ink-2); max-width: 60ch; margin: 0 0 2.5rem; font-size: var(--step-1); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); margin: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--accent); }
.card-link:hover h3 { color: var(--accent); }

.stat { text-align: center; }
.stat b { display: block; font-size: var(--step-2); font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.stat span { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- steps ---------- */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
ol.steps li {
  counter-increment: s; position: relative; padding-left: 3.25rem;
  color: var(--ink-2);
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.15rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: var(--step--1);
}
ol.steps li strong { color: var(--ink); font-weight: 600; }

/* ---------- prose (guide body) ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); margin: 0 0 1.15rem; }
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { color: var(--ink-2); padding-left: 1.25rem; margin: 0 0 1.15rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose > :first-child { margin-top: 0; }

.callout {
  background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0; padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.callout p { margin: 0; color: var(--ink-2); }
.callout strong { color: var(--ink); }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: var(--step--1); }
th, td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); background: var(--bg-raise); }
td { color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 70ch; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.1rem 1.4rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4em; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: .85rem 0 0; }

/* ---------- final CTA ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--ink-2); max-width: 48ch; margin: 0 auto 2rem; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; background: var(--bg-raise); }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2.5rem; }
.foot h2 { font-size: var(--step-0); font-weight: 600; margin-bottom: .85rem; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot a { color: var(--ink-2); font-size: var(--step--1); }
.foot a:hover { color: var(--ink); }
.foot .brand { margin-bottom: .85rem; }
.foot .muted { font-size: var(--step--1); max-width: 40ch; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: var(--step--1); color: var(--ink-3); padding-top: 2rem; }
.crumb a { color: var(--ink-2); }
