/* TicketWhip marketing site.
   Standalone by design — no build step, no framework, no external requests
   (the CSP on this site blocks them). The palette mirrors the app's brand
   token (#ff8647) so the landing page and the product feel continuous. */

:root {
  --accent: #ff8647;
  --accent-hover: #ff9861;
  --accent-ink: #1d1204;

  --bg: #ffffff;
  --bg-alt: #faf9f8;
  --surface: #ffffff;
  --text: #16161a;
  --text-2: #5c5c66;
  --text-3: #8a8a94;
  --border: rgba(20, 20, 26, 0.11);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --bg-alt: #141417;
    --surface: #17171b;
    --text: #f2f2f4;
    --text-2: #a4a4ae;
    --text-3: #74747e;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 620px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users on every interactive element. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Nav ─────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.02em; text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--text); }

@media (max-width: 700px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 9px; border: 1px solid transparent;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary[disabled] { opacity: .6; cursor: default; }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); }

/* ── Hero ────────────────────────────────────────────────────── */

.hero { padding: 92px 0 72px; text-align: center; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); font-weight: 700; }
.accent { color: var(--accent); }

.lede {
  max-width: 620px; margin: 22px auto 0;
  font-size: clamp(1rem, 2.1vw, 1.14rem); color: var(--text-2);
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ── Stat strip ──────────────────────────────────────────────── */

.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-block: 34px; text-align: center;
}
.strip-grid strong {
  display: block; font-size: 2rem; font-weight: 700; color: var(--accent);
  letter-spacing: -0.03em;
}
.strip-grid span { font-size: 13px; color: var(--text-2); }

@media (max-width: 640px) {
  .strip-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Sections ────────────────────────────────────────────────── */

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 700;
  margin-bottom: 12px; text-align: center;
}
.section-lede {
  max-width: 520px; margin: 0 auto 34px; text-align: center;
  color: var(--text-2); font-size: 15px;
}

/* ── Steps ───────────────────────────────────────────────────── */

.steps {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px;
  counter-reset: step;
}
.steps li { position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 16px; font-weight: 650; margin-bottom: 7px; }
.steps p { font-size: 14px; color: var(--text-2); }

/* ── Feature cards ───────────────────────────────────────────── */

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin-top: 44px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 15.5px; font-weight: 650; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-2); }

/* ── Form ────────────────────────────────────────────────────── */

form { margin-top: 8px; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--accent); }

input, select, textarea {
  width: 100%; padding: 11px 13px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  font-family: var(--font); font-size: 15px; line-height: 1.4;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #e5484d; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.form-status { margin-top: 14px; font-size: 14px; min-height: 1.4em; text-align: center; }
.form-status.error { color: #e5484d; }
.form-status.success { color: #2a9d5c; }

.form-done {
  text-align: center; padding: 34px 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.form-done h3 { font-size: 18px; margin-bottom: 8px; }
.form-done p { color: var(--text-2); font-size: 14px; }

/* ── Footer ──────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
