/* Gatridge AI website styles. One file, no inline styles (strict CSP).
   Colours follow the app's "Burgundy" theme: calm grey screens with wine-red highlights. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}

/* ---------- Colour tokens (from the app's theme) ---------- */
:root {
  color-scheme: light dark;
  --bg: #f4f1f1;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f5f5;
  --surface-3: #ebe6e6;
  --ink: #1a1516;
  --muted: #5b5052;
  --line: #e3dcdd;
  --accent: #7d1d38;
  --accent-strong: #5f142a;
  --accent-soft: #f7e8ec;
  --fill: #7d1d38;
  --fill-hover: #5f142a;
  --fill-ink: #ffffff;
  --glass: rgb(244 241 241 / 72%);
  --band-bg: #120f10;
  --band-ink: #f3eff0;
  --band-muted: #b9afb1;
  --band-accent: #e8a7b4;
  --error: #b3261e;
  --error-soft: #fdeceb;
  --success-soft: #e3f3e9;
  --success-ink: #19613a;
  --focus: #7d1d38;
  --device: #1d191a;
  --shadow-sm: 0 1px 2px rgb(26 21 22 / 5%), 0 2px 8px rgb(26 21 22 / 5%);
  --shadow-lg: 0 30px 60px -20px rgb(26 21 22 / 30%), 0 18px 36px -18px rgb(26 21 22 / 25%);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 28px;
  --radius-sm: 18px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0d;
    --bg-alt: #141212;
    --surface: #181616;
    --surface-2: #211e1f;
    --surface-3: #2c2829;
    --ink: #eeeaea;
    --muted: #b3abac;
    --line: #332e2f;
    --accent: #e8a7b4;
    --accent-strong: #f1c2cb;
    --accent-soft: #2f1a20;
    --fill: #8c2340;
    --fill-hover: #a32b4c;
    --fill-ink: #ffffff;
    --glass: rgb(14 13 13 / 72%);
    --band-bg: #1a1617;
    --band-ink: #f3eff0;
    --band-muted: #b9afb1;
    --band-accent: #e8a7b4;
    --error: #ff9d8f;
    --error-soft: #3a1614;
    --success-soft: #10301e;
    --success-ink: #82d6a5;
    --focus: #e8a7b4;
    --device: #2a2526;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 70%), 0 18px 36px -18px rgb(0 0 0 / 60%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(2.5rem, 7vw + 0.5rem, 4.75rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.875rem, 4vw + 0.75rem, 3.25rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 720px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  background: var(--fill);
  color: var(--fill-ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus {
  top: 10px;
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fill-ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover {
  background: var(--fill-hover);
  color: var(--fill-ink);
}
.button:active {
  transform: scale(0.98);
}
.button[aria-disabled='true'] {
  opacity: 0.7;
  cursor: progress;
}
.button-small {
  min-height: 34px;
  padding: 6px 16px;
  font-size: 0.875rem;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.more::after {
  content: '›';
  font-size: 1.3em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.more:hover {
  text-decoration: underline;
}
.more:hover::after {
  transform: translateX(3px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .more::after {
    transition: none;
  }
}

/* ---------- Header (frosted glass, like iOS) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.site-nav {
  order: 3;
  width: 100%;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--surface-3);
}
@media (min-width: 820px) {
  .site-header .wrap {
    flex-wrap: nowrap;
  }
  .site-nav {
    order: 0;
    width: auto;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p {
  font-size: 1.1875rem;
  color: var(--muted);
}
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 24px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 520px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  opacity: 0.9;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}
.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 20px;
}
.lead {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
}
.hero .small {
  margin-top: 16px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .hero {
    padding: 96px 0 32px;
  }
}

.page-hero {
  padding: 64px 0 8px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 4rem);
}
@media (min-width: 768px) {
  .page-hero {
    padding: 96px 0 16px;
  }
}

/* ---------- Showcase: real screens from the prototype ---------- */
.showcase {
  padding: 32px 0 72px;
}
.device {
  position: relative;
  width: min(340px, 82vw);
  margin: 0 auto;
  padding: 10px;
  border-radius: 40px;
  background: var(--device);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 8%);
}
/* The screens come from the browser prototype, so the frame has no notch:
   it shouldn't pass for a native iPhone screenshot. */
.slides {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  aspect-ratio: 600 / 968; /* same as tools/make-screens.mjs */
  border-radius: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--surface);
}
.slides::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .slides {
    scroll-behavior: smooth;
  }
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.slide-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}
.slide-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.slide-tabs a:hover {
  color: var(--ink);
}
.slide-tabs a[aria-current='true'] {
  border-color: transparent;
  background: var(--ink);
  color: var(--bg);
}
.slide-caption {
  max-width: 560px;
  min-height: 3.2em;
  margin: 20px auto 0;
  color: var(--muted);
  text-align: center;
}
.slide-controls {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.slide-pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.slide-pause:hover {
  color: var(--ink);
  background: var(--surface-3);
}
.slide-pause[hidden] {
  display: none;
}
.showcase-note {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .slide-tabs a {
    transition: none;
  }
}

/* ---------- Tiles ---------- */
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.tile {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.section-alt .tile {
  background: var(--bg);
  box-shadow: none;
}
.tile p {
  color: var(--muted);
}
.tile .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tile .icon svg {
  width: 26px;
  height: 26px;
}
.tile-wide {
  grid-column: 1 / -1;
}
.step-number {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.note {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Dark statement band ---------- */
.band {
  padding: 88px 0;
  background: var(--band-bg);
  color: var(--band-ink);
  text-align: center;
}
.band h2 {
  max-width: 820px;
  margin: 0 auto 20px;
}
.band p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--band-muted);
  font-size: 1.1875rem;
}
.band a {
  color: var(--band-accent);
}
.band .eyebrow {
  color: var(--band-accent);
}
@media (min-width: 768px) {
  .band {
    padding: 128px 0;
  }
}

/* ---------- Honest limit ---------- */
.limit {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.limit p {
  font-size: clamp(1.25rem, 1.5vw + 0.9rem, 1.75rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Demo ---------- */
.demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--band-bg);
  color: var(--band-muted);
  text-align: center;
  font-weight: 600;
}
.demo-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--band-accent);
}

/* ---------- Pricing ---------- */
.price-card {
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.price {
  margin: 4px 0 6px;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.price .per {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.card-sub {
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--accent);
}
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price-teaser {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.price-teaser p {
  font-size: 1.1875rem;
  color: var(--muted);
}

/* ---------- Waitlist form ---------- */
.form-card {
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .form-card {
    padding: 44px;
  }
}
.field {
  margin-bottom: 26px;
}
.field > label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.hint {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}
input[type='email'] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--muted);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
input[type='email'][aria-invalid='true'] {
  border-color: var(--error);
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}
.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--fill);
}
.field-error {
  display: block;
  margin-top: 6px;
  color: var(--error);
  font-weight: 700;
  font-size: 0.9375rem;
}
.field-error:empty {
  display: none;
}
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.form-price {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.form-price strong {
  color: var(--ink);
}
@media (min-width: 768px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
}
.form-status {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  background: var(--success-soft);
  color: var(--success-ink);
}
.form-status.is-error {
  background: var(--error-soft);
  color: var(--error);
}
.form-small-print {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Honeypot: hidden from people and screen readers, visible to simple bots. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 14px;
}
.faq .tile {
  padding: 26px 28px;
}
.faq h2 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* ---------- Plain content pages ---------- */
.page {
  padding: 56px 0 96px;
}
.page h1 {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 3.5rem);
}
.page h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin-top: 44px;
}
.page ul {
  padding-left: 1.25em;
}
.page li {
  margin-bottom: 8px;
}
.updated {
  color: var(--muted);
  font-size: 0.9375rem;
}
.tip {
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.tip h2 {
  margin-top: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 0.9375rem;
}
.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-note {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.footer-cols h2 {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.footer-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-cols li {
  margin-bottom: 4px;
}
.footer-cols a {
  display: inline-block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
}
.footer-cols a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-bottom p {
  margin: 0 0 4px;
}

/* A heading styled one size down, so heading levels stay in order. */
.h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ---------- Scrollbars: slim and rounded in the site's colours, as in the app ---------- */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner {
    background: transparent;
  }
  ::-webkit-scrollbar-button {
    display: none;
  }
  /* The clear border leaves a small gap around the handle. */
  ::-webkit-scrollbar-thumb {
    min-height: 40px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 45%, transparent) padding-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--muted) 70%, transparent) padding-box;
  }
  ::-webkit-scrollbar-thumb:active {
    background: var(--accent) padding-box;
  }
}

/* Browsers without those (e.g. Firefox) get the nearest match. */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent;
  }
}
