/*
 * Skyball marketing — the same design tokens as the app
 * (Matt's shadcn/zinc set), so the site and the product feel like one thing.
 * Plain CSS on purpose: no build step, editable by hand.
 */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --control-border: 240 5% 56%;
  --destructive: 0 72% 51%;
  --destructive-text: 0 70% 38%;
  --success: 142 71% 45%;
  --success-text: 142 72% 24%;
  --accent-teal: 173 58% 39%;
  --accent-teal-text: 174 72% 26%;
  --team-a: 214 80% 56%;
  --radius: 0.625rem;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --sh-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --sh: 0 10px 30px -12px rgb(0 0 0 / 0.2);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 6% 10%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 18%;
  --border: 240 3.7% 17%;
  --input: 240 3.7% 22%;
  --control-border: 240 5% 52%;
  --destructive-text: 0 84% 72%;
  --success-text: 142 62% 62%;
  --accent-teal: 172 66% 50%;
  --accent-teal-text: 172 66% 56%;
  --team-a: 214 90% 62%;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 6% 10%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 18%;
    --border: 240 3.7% 17%;
    --input: 240 3.7% 22%;
    --control-border: 240 5% 52%;
    --destructive-text: 0 84% 72%;
    --success-text: 142 62% 62%;
    --accent-teal: 172 66% 50%;
    --accent-teal-text: 172 66% 56%;
    --team-a: 214 90% 62%;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* the header is sticky, so anchored targets must clear it */
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid hsl(var(--accent-teal)); outline-offset: 2px; border-radius: 6px; }

/* skip link — keyboard users shouldn't tab the whole nav to reach content */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: hsl(var(--foreground)); color: hsl(var(--background));
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(8px);
}
header.top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }
.brand .m { width: 26px; height: 26px; border-radius: 50%; background: hsl(var(--primary)); display: grid; place-items: center; }
.brand .m i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--accent-teal)); }
.brand .wordmark { display: inline; }
.brand .wordmark span { color: hsl(var(--muted-foreground)); font-weight: 600; }
.grow { flex: 1; }
nav.links { display: flex; align-items: center; gap: 4px; }
nav.links a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: hsl(var(--muted-foreground)); text-decoration: none;
}
nav.links a:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
@media (max-width: 640px) { nav.links a.hide-sm { display: none; } }
@media (max-width: 380px) {
  header.top .wrap { flex-wrap: wrap; gap: 8px; padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  nav.links { gap: 2px; }
  nav.links a { padding: 8px 8px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 11px;
  font: inherit; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn.primary:hover { background: hsl(var(--primary) / 0.9); }
.btn.ghost { border-color: hsl(var(--control-border)); color: hsl(var(--foreground)); background: transparent; }
.btn.ghost:hover { background: hsl(var(--accent)); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 56px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  /* --accent-teal is tuned for fills; text needs a darker stop to clear AA */
  color: hsl(var(--accent-teal-text)); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; text-wrap: balance; max-width: 17ch; }
.hero .sub { margin-top: 18px; font-size: clamp(17px, 2.2vw, 20px); color: hsl(var(--muted-foreground)); max-width: 58ch; }
.hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fineprint { margin-top: 14px; font-size: 13.5px; color: hsl(var(--muted-foreground)); }

/* ---------- product still (a real screenshot of the app) ---------- */
.shot {
  margin-top: 48px; border: 1px solid hsl(var(--border)); border-radius: 14px;
  overflow: hidden; background: hsl(var(--card)); box-shadow: var(--sh);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  border-top: 1px solid hsl(var(--border)); padding: 10px 14px;
  font-family: var(--mono); font-size: 12px; color: hsl(var(--muted-foreground));
}

/* ---------- sections ---------- */
section { padding: 64px 0; border-top: 1px solid hsl(var(--border)); }
section > .wrap > h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; text-wrap: balance; max-width: 20ch; }
section > .wrap > .lede { margin-top: 14px; font-size: 17px; color: hsl(var(--muted-foreground)); max-width: 62ch; }

.grid { display: grid; gap: 16px; margin-top: 36px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.three { grid-template-columns: 1fr; } .grid.two { grid-template-columns: 1fr; } }

.card {
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); padding: 22px; box-shadow: var(--sh-sm);
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 14.5px; color: hsl(var(--muted-foreground)); }
.card .ic {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: hsl(var(--accent-teal) / 0.12); color: hsl(var(--accent-teal));
}

/* numbered steps */
ol.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
ol.steps li {
  counter-increment: s; display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); padding: 18px 20px;
}
ol.steps li::before {
  content: counter(s); flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 9px;
  background: hsl(var(--secondary)); color: hsl(var(--foreground));
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
}
ol.steps b { display: block; font-size: 15.5px; }
ol.steps span { display: block; margin-top: 3px; font-size: 14px; color: hsl(var(--muted-foreground)); }

/* trust band */
.trust { background: hsl(var(--secondary)); }
.trust ul { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.trust li svg { flex: 0 0 auto; margin-top: 3px; color: hsl(var(--accent-teal)); }
.trust li b { font-weight: 700; }
.trust li span { color: hsl(var(--muted-foreground)); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span.lbl {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: 0.75; }
input.tin, textarea.tin, select.tin {
  width: 100%; font: inherit; font-size: 16px;
  border: 1px solid hsl(var(--control-border)); border-radius: 10px;
  background: hsl(var(--background)); color: hsl(var(--foreground));
  padding: 12px 14px;
}
textarea.tin { min-height: 96px; resize: vertical; }
input.tin::placeholder, textarea.tin::placeholder { color: hsl(var(--muted-foreground)); }
input.tin[aria-invalid='true'], textarea.tin[aria-invalid='true'] {
  border-color: hsl(var(--destructive)); box-shadow: 0 0 0 1px hsl(var(--destructive) / 0.35);
}
.formnote { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 10px; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px; }
.alert.ok {
  background: hsl(var(--success) / 0.12); color: hsl(var(--success-text));
  border: 1px solid hsl(var(--success) / 0.45);
}
.alert.err {
  background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive-text));
  border: 1px solid hsl(var(--destructive) / 0.45);
}

/* ---------- faq ---------- */
details.faq {
  border-top: 1px solid hsl(var(--border)); padding: 18px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--mono); color: hsl(var(--muted-foreground)); font-size: 20px; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin-top: 10px; color: hsl(var(--muted-foreground)); font-size: 15px; max-width: 68ch; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid hsl(var(--border)); padding: 40px 0 60px;
  color: hsl(var(--muted-foreground)); font-size: 14px;
}
footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer a { color: hsl(var(--muted-foreground)); text-decoration: none; }
footer a:hover { color: hsl(var(--foreground)); }
