/* Foxli marketing site. Palette and logo follow Foxli brand guidelines v1.1
   (2026-10-21): Foxli blue leads, Foxli yellow is the ground accent, light mode
   only, system sans-serif for interface text. */

:root {
  --brand: #0074CC;          /* Foxli blue: buttons, links, accents (4.81:1 on white) */
  --brand-hover: #005FA8;
  --brand-ink: #006FC4;      /* blue for small text, legible on white and on --bg */
  --brand-tint: #E6F1FA;
  --accent: #F4CA35;         /* Foxli yellow: graphic accents only, never small text */
  --accent-tint: #FDF5D7;

  --bg: #F2F4F6;             /* light screen background */
  --card: #FFFFFF;
  --text: #343D46;           /* primary text and icons */
  --text-muted: #66727E;     /* secondary text (4.91:1 on white) */
  --divider: #D8DEE5;        /* borders and dividers */
  --error: #b3261e;
  --success: #1e7a46;

  --radius: 12px;
  --radius-sm: 6px;
  --max: 1160px;
  --gutter: 24px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand-hover); }

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 var(--step-0) / 1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: rgba(0, 116, 204, 0.35); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-hover); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */

.site-header {
  position: relative; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--divider);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
/* Brand guidelines v1.1: full wordmark at >= 240px visible width, clear space of a
   quarter of the o's outer diameter (45/644 of the width = 17px at 240px). */
.brand { display: inline-flex; align-items: center; flex: none; padding: 17px; margin: -17px; }
.brand img { display: block; width: 240px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
@media (pointer: coarse) { .nav .btn { min-height: 44px; } }
.nav a:not(.btn):hover { color: var(--brand); }
.nav .btn { min-height: 38px; padding: 0 18px; font-size: var(--step--1); }

.header-cta { display: none; }
@media (max-width: 559px) { .site-header .header-cta { display: none; } }
@media (max-width: 339px) { .nav-toggle { visibility: hidden; } }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius-sm); color: var(--text);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 820px) {
  .header-cta { display: inline-flex; margin-left: auto; margin-right: 4px; min-height: 40px; padding: 0 16px; font-size: var(--step--1); }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--divider);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; font-size: var(--step-0); border-bottom: 1px solid var(--divider); }
  .nav .btn { margin-top: 12px; min-height: 44px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 116, 204, 0.12), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(244, 202, 53, 0.16), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--divider);
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-top: 80px; padding-bottom: 88px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--step--1); font-weight: 600; color: var(--brand);
  background: var(--brand-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.hero h1 em { font-weight: inherit; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.14em; text-decoration-skip-ink: auto; }
.hero h1 .accent { color: var(--brand); }
.hero h1 .h1-lead { display: block; margin-bottom: 0.525em; }
.hero .lede { font-size: var(--step-1); color: var(--text-muted); margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.ring-pulse { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ring-pulse 2.8s ease-out infinite; }
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ring-pulse { animation: none; } }
.hero-visual .phone { width: 100%; filter: drop-shadow(0 30px 50px rgba(52, 61, 70, 0.22)); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .hero-visual { max-width: 320px; }
}

/* ---------- Sections ---------- */

section { scroll-margin-top: 16px; }
@media (max-height: 500px) and (orientation: landscape) {
  section { scroll-margin-top: 16px; }
}
/* #66727E falls just under 4.5:1 on --bg, so the grey bands use a slightly deeper secondary text. */
.steps-section, .legal, .notfound { --text-muted: #626D79; }
.band-white { background: #fff; border-top: 1px solid var(--divider); }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker, .section-head .kicker { font-size: var(--step--1); font-weight: 600; color: var(--brand-ink); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: var(--step-3); }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: var(--step-1); }

@media (max-width: 600px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Audience */

.audience { --text-muted: #626D79; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience-card {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 24px; min-width: 0;
}
.audience-card svg { width: 40px; height: 40px; margin-bottom: 18px; color: var(--brand); }
.audience-card h3 { font-size: var(--step-1); }
.audience-card p { margin-top: 8px; font-size: var(--step--1); color: var(--text-muted); }

@media (max-width: 960px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience-grid { grid-template-columns: 1fr; } }

/* Features */

.feature-hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  background: var(--bg); border-radius: var(--radius); padding: 40px;
  margin-bottom: 56px;
}
.feature-hero-copy { min-width: 0; }
.feature-hero-copy > svg, .feature-item > svg { width: 28px; height: 28px; color: var(--brand); margin-bottom: 16px; }
.feature-hero h3 { font-size: var(--step-2); }
.feature-hero p { margin-top: 12px; color: var(--text-muted); font-size: var(--step-1); }

.pin-record {
  margin: 0; min-width: 0;
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius); overflow: hidden;
}
.pin-record-scene { width: 100%; height: auto; background: linear-gradient(#fbfbfb, #f1f3f4); border-bottom: 1px solid var(--divider); }
.record { padding: 18px 20px 6px; }
.record-head { display: grid; gap: 2px; margin-bottom: 10px; }
.record-title { font-weight: 600; font-size: var(--step-1); }
.record-sub { font-size: var(--step--1); color: var(--text-muted); }
.record-rows { margin: 0; display: grid; }
.record-rows > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--divider);
}
.record-rows dt { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.record-rows dd { margin: 0; font-size: var(--step--1); font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; }
.record-done { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #e5f3ea; color: #1e7a46; font-weight: 600; font-size: 12px; }
.pin-record figcaption { padding: 4px 20px 14px; font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.feature-item { padding: 28px 0 36px; border-top: 1px solid var(--divider); min-width: 0; }
.feature-item h3 { font-size: var(--step-1); }
.feature-item p { margin-top: 8px; color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 960px) {
  .feature-hero { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .feature-list { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
}
@media (max-width: 600px) {
  .feature-hero { padding: 20px; margin-bottom: 40px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { padding: 22px 0 26px; }
  .record { padding: 16px 16px 4px; }
  .record-rows > div { grid-template-columns: 76px 1fr; gap: 8px; }
  .pin-record figcaption { padding: 4px 16px 12px; }
}

/* Steps */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600;
  background: var(--accent-tint); color: var(--text); border: 2px solid var(--accent);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 60px; right: -16px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--divider) 0 8px, transparent 8px 14px);
}
.step h3 { font-size: var(--step-1); }
.step p { margin-top: 8px; color: var(--text-muted); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-top: 0; padding-left: 64px; min-height: 44px; }
  .step:not(:last-child)::after { display: none; }
}

/* Signup */

.signup { background: var(--brand); color: #fff; }
.signup .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.signup .kicker { color: #fff; }
.signup h2 { color: #fff; }
.signup .section-head p { color: #fff; }
.signup-perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.signup-perks li { display: flex; gap: 10px; color: #fff; }
.signup-perks svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

.form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field .req { color: var(--brand); }
.field input,
.field select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; color: var(--text);
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 116, 204, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-fine { margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.form-status { margin-top: 14px; font-size: var(--step--1); min-height: 1.4em; }
.form-status.error { color: var(--error); }
.form-success { text-align: center; padding: 24px 0; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--success); }
.form-success h3 { font-size: var(--step-2); }
.form-success p { margin-top: 8px; color: var(--text-muted); }

@media (max-width: 900px) { .signup .container { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-card { padding: 24px; } }

/* ---------- Footer ---------- */

.site-footer { background: #fff; border-top: 1px solid var(--divider); padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer img { display: block; width: 240px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: var(--step--1); }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.site-footer .container > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.copyright { width: 100%; font-size: 12px; color: var(--text-muted); }

/* ---------- Legal pages ---------- */

.legal { padding: 64px 0 96px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: var(--step-3); }
.legal .updated { margin-top: 8px; color: var(--text-muted); font-size: var(--step--1); }
.legal h2 { font-size: var(--step-2); margin-top: 44px; }
.legal h3 { font-size: var(--step-1); margin-top: 28px; }
.legal p, .legal li { color: var(--text); }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal dl { margin: 14px 0 0; display: grid; gap: 12px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 2px 0 0; color: var(--text); }
.legal .toc {
  margin-top: 32px; padding: 20px 24px; background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
}
.legal .toc p { margin: 0 0 8px; font-weight: 600; color: var(--text); }
.legal .toc ul { margin: 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: var(--step-4); color: var(--brand); }
.notfound p { margin: 12px 0 28px; color: var(--text-muted); font-size: var(--step-1); }
