/* fill in the blank: one stylesheet, no framework, no build step. */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-300-900.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #050506;
  --raised: #0a0a0c;
  --card-grad: linear-gradient(180deg, #111114, #0a0a0c);
  --border: #1e1e24;
  --border-2: #2a2a33;
  --border-accent: rgba(51, 128, 255, 0.25);
  --border-accent-hi: rgba(51, 128, 255, 0.5);
  --text: #f0f0f2;
  --text-2: #8a8a9a;
  --text-3: #7a7a8c;            /* 4.7:1 on raised, WCAG AA */
  --accent: #0055ff;
  --accent-bright: #3380ff;
  --accent-hover: #2a6fe6;      /* button hover: 4.65:1 with white */
  --accent-soft: #6aa3ff;
  --success: #3ddc97;
  --glow: rgba(0, 85, 255, 0.2);
  --hatch: repeating-linear-gradient(-45deg, #101013, #101013 12px, #0c0c0f 12px, #0c0c0f 24px);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--accent-bright); text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
h1 { font-size: clamp(44px, 4.6vw, 66px); letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1.1rem; max-width: 44ch; color: var(--text-2); }
.lede { font-size: 20px; font-weight: 300; color: var(--text-2); max-width: 38ch; }
.accent { color: var(--accent-bright); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { padding: 100px 0; }
.ruled { border-top: 1px solid var(--border); }

/* mono eyebrows, labels, meta */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.mono-quiet { color: var(--text-3); letter-spacing: 0.1em; font-size: 11px; }

/* header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5, 5, 6, 0.8);
  backdrop-filter: blur(12px);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 80px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 600; letter-spacing: -0.035em; font-size: 17px;
}
.brand img { width: 24px; height: 26px; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a.btn, .nav a.btn:hover, .nav a.btn[aria-current="page"] { color: #fff; }

/* buttons */
.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 16px 30px; border-radius: 99px;
  text-decoration: none; font-weight: 600; font-size: 16px;
  box-shadow: 0 8px 40px rgba(0, 85, 255, 0.3);
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-lg { padding: 18px 40px; font-size: 17px; box-shadow: 0 8px 40px rgba(0, 85, 255, 0.35); }
.btn-sm { padding: 10px 20px; font-size: 14px; box-shadow: none; }
.btn-quiet {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 16px 8px; background: none; box-shadow: none;
}
.btn-quiet:hover { color: var(--accent-soft); background: none; }
.btn-row { display: flex; gap: 14px; margin-top: 36px; align-items: center; flex-wrap: wrap; }

/* two-column layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* stat group */
.stats { display: flex; gap: 36px; margin-top: 56px; font-family: var(--mono); flex-wrap: wrap; }
.stats b { display: block; font-size: 22px; font-weight: 700; color: var(--text); }
.stats span { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }

/* browser-chrome mock */
.mock {
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  background: var(--card-grad);
  box-shadow: 0 40px 120px rgba(0, 85, 255, 0.14);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.mock-bar .dots { display: flex; gap: 8px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.mock-bar .speed { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--success); font-style: normal; }

/* image placeholder: swap for a real screenshot, keep the container */
.ph { background: var(--hatch); display: grid; place-items: center; }
.ph span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-3); text-align: center; padding: 0 1rem; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-16x11 { border-radius: 20px; border: 1px solid var(--border); aspect-ratio: 16 / 11; }
img.shot { display: block; width: 100%; height: auto; object-fit: cover; object-position: top center; }
img.ph-4x3, img.ph-16x11 { background: var(--hatch); }

/* cards */
.card {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; background: var(--raised);
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
a.card:hover, a.card:focus-visible { border-color: var(--border-accent-hi); transform: translateY(-3px); color: var(--text); }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 15px; flex: 1; }
.card .mono { font-size: 11px; letter-spacing: 0.1em; }

/* case rows */
.case { margin-top: 100px; }
.case:first-of-type { margin-top: 0; }
.case h2 { margin: 14px 0 16px; }
.case p { font-size: 16px; margin: 0; }
.case .meta, .case .more { margin: 24px 0 0; }
.case .meta { color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.case .more a { font-size: 15px; }
.case-flip .ph-16x11 { order: 2; }

/* closing CTA */
.cta {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(60rem 30rem at 50% 120%, var(--glow), transparent 70%);
  text-align: center;
}
.cta .wrap { max-width: 680px; }
.cta h2 { font-size: clamp(32px, 3.8vw, 54px); letter-spacing: -0.04em; line-height: 1.04; margin: 0; }
.cta p { max-width: none; margin: 22px auto 0; }
.cta .btn-row { justify-content: center; }

/* pricing plans */
.plan { border: 1px solid var(--border); border-radius: 20px; background: var(--raised); padding: 32px; }
/* ponytail: was a 2.1rem number; now a mono label, so it matches the eyebrows */
.plan .price { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-soft); display: block; margin: 0.5rem 0 1.4rem; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--text-2); }
.plan li { padding-left: 1.25rem; position: relative; }
.plan li::before { content: "+"; position: absolute; left: 0; color: var(--accent-soft); font-weight: 700; }

/* numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 2.9rem; position: relative; margin-bottom: 1.4rem; color: var(--text-2); max-width: 54ch; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1rem;
  width: 1.85rem; height: 1.85rem; border: 1px solid var(--border-2); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--accent-soft); background: var(--raised);
}

/* facts list */
.facts { list-style: none; padding: 0; }
.facts li { border-top: 1px solid var(--border); padding: 0.95rem 0; margin: 0; color: var(--text-2); max-width: 60ch; }

/* form */
form { max-width: 34rem; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 0.35rem; color: var(--text); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--raised); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-weight: 500; }
.form-status.ok { color: var(--success); }
.form-status.err { color: #ff6b6b; }

/* footer */
.site-foot { border-top: 1px solid var(--border); padding: 44px 0 60px; font-size: 15px; color: var(--text-3); }
.site-foot .wrap { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-foot strong { color: var(--text); font-weight: 600; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

#main { scroll-margin-top: 92px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 0.5rem; background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; z-index: 10; border-radius: 3px; }

@media (max-width: 900px) {
  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .case-flip .ph-16x11 { order: 0; }
  section { padding: 72px 0; }
  .wrap { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* shared page furniture used by the inner pages */
.hero { padding: 130px 0 100px; }
.grid { display: grid; gap: 24px; }
.measure { max-width: 44ch; }
.muted { color: var(--text-2); }
.small { font-size: 15px; }
.field { margin-bottom: 1.2rem; }
.panel { background: var(--raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* accessibility helpers */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 900px) {
  /* 44px minimum tap targets once the header wraps */
  /* ponytail: a 3-row sticky bar would eat a third of a phone screen */
  .site-head { position: static; }
  .site-head .wrap { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nav { margin-left: 0; width: 100%; gap: 4px 18px; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-foot a { min-height: 44px; display: inline-flex; align-items: center; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .btn-row .btn, .btn-row .btn-quiet { width: 100%; text-align: center; justify-content: center; }
  .stats { gap: 24px; margin-top: 40px; }
  .cta { padding: 80px 0; }
  .case { margin-top: 64px; }
}
