/* GoalPrompt website. Colours come from brand/tokens/goalprompt-tokens.css. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #f7f7f8; /* --gp-bg */
  --surface: #ffffff;
  --ink: #141414; /* --gp-ink */
  --muted: #4b5160; /* --gp-text-secondary */
  --border: #e5e7eb; /* --gp-border */
  --accent: #4338ca; /* --gp-indigo */
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --prompt: #4338ca;
  --banner-bg: #fff8eb; /* --gp-ai-surface */
  --banner-border: #fde7b0; /* --gp-ai-border */
  --banner-ink: #92400e; /* --gp-ai-text */
  --focus: #4338ca;
  --radius: 16px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214; /* --gp-bg-dark */
    --surface: #1e1e22; /* --gp-icon-dark-tile */
    --ink: #ffffff;
    --muted: #a1a1aa; /* --gp-text-secondary-dark */
    --border: #34343a; /* --gp-border-dark */
    --accent: #a5b4fc; /* --gp-indigo-light */
    --accent-ink: #141414;
    --accent-soft: #23233a;
    --prompt: #a5b4fc;
    --banner-bg: #2a2110;
    --banner-border: #5c4512;
    --banner-ink: #fde7b0;
    --focus: #a5b4fc;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--focus);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

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

.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 4px;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Live wordmark: brand guide (Inter 700, -0.02em, Goal + Prompt). */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark .goal {
  color: var(--ink);
}

.wordmark .prompt {
  color: var(--prompt);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.hero .hero-wordmark {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1rem + 6vw, 4.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Each phrase stays whole; lines may only break between phrases. */
.hero h1 .phrase {
  white-space: nowrap;
}

.hero .lede {
  margin: 16px auto 0;
  max-width: 50ch;
  text-wrap: balance;
  font-size: clamp(1.125rem, 3.2vw, 1.375rem);
  color: var(--muted);
}

.cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
}

.cta:hover {
  text-decoration: underline;
}

.cta:disabled,
.cta[aria-disabled='true'] {
  background: transparent;
  color: var(--muted);
  border: 2px dashed var(--border);
  cursor: default;
  text-decoration: none;
}

/* Sections */
section {
  padding: 40px 0;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin: 0 0 6px;
}

.section-title {
  text-align: center;
}

/* Video */
.video-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #f7f7f8;
}

.video-note {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f7f7f8;
  border-bottom: 1px solid var(--border);
}

.step-body {
  padding: 18px 20px 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: 2px;
}

.step p,
.point p {
  margin: 0;
  color: var(--muted);
}

/* Why */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.safety {
  text-align: center;
  padding: 8px 0 48px;
}

.safety p {
  display: inline-block;
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-weight: 500;
}

/* Documents (privacy, terms, support) */
.doc {
  padding: 40px 0 56px;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc h2 {
  font-size: 1.375rem;
  margin: 36px 0 10px;
}

.doc .meta {
  color: var(--muted);
  margin: 0 0 24px;
}

.doc ul {
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 6px;
}

.doc blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}

.tbc {
  font-style: italic;
  color: var(--muted);
}

.draft-banner {
  background: var(--banner-bg);
  border-bottom: 1px solid var(--banner-border);
  color: var(--banner-ink);
  font-weight: 600;
  text-align: center;
  padding: 12px 20px;
  margin: 0;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.faq details p {
  margin: 0 0 16px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 8px 0 32px;
}

.contact-card p {
  margin: 0;
}

.contact-card .email {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer nav ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  color: var(--ink);
  display: inline-block;
  padding: 4px 0;
}

.site-footer p {
  margin: 0;
}

.notfound {
  text-align: center;
  padding: 80px 0;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .points {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 80px 0 48px;
  }

  section {
    padding: 56px 0;
  }
}

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