/* GI AI marketing site: one stylesheet, no framework, no web fonts.
   Palette: primary #006D77, secondary #83C5BE, light #EDF6F9, accent #E29578.
   Secondary and accent fail AA as text on light backgrounds, so on the light
   theme they are used only for surfaces, borders and decoration. */

:root {
  color-scheme: light dark;

  --primary: #006D77;
  --secondary: #83C5BE;
  --light: #EDF6F9;
  --accent: #E29578;

  --bg: #FFFFFF;
  --band: #EDF6F9;
  --surface: #FFFFFF;
  --text: #13292C;
  --muted: #3E5458;
  --heading: #0A4A51;
  --link: #006D77;
  --border: #CFE3E8;
  --btn-bg: #006D77;
  --btn-text: #FFFFFF;
  --note-bg: #FDF1EC;
  --note-border: #E29578;
  --focus: #006D77;

  --radius: 14px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1B1D;
    --band: #0F2528;
    --surface: #132C30;
    --text: #E4EFF1;
    --muted: #A8C0C4;
    --heading: #CDE9E6;
    --link: #83C5BE;
    --border: #24444A;
    --btn-bg: #83C5BE;
    --btn-text: #06282B;
    --note-bg: #2A1D18;
    --note-border: #E29578;
    --focus: #E29578;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { color: var(--heading); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 44rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--surface);
  color: var(--link);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--heading);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.section.band { background: var(--band); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.section-intro { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }

/* ---- Hero ---- */
.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; }
}
.hero h1 .hl { color: var(--link); }
.pill {
  display: inline-block;
  background: var(--band);
  color: var(--heading);
  border: 1px solid var(--secondary);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.75rem; }
.fine { font-size: 0.95rem; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--btn-bg);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-soon { cursor: default; }

/* Screenshot placeholder, sized like a phone. */
.phone {
  justify-self: center;
  width: min(12rem, 70%);
  aspect-ratio: 9 / 19;
  border: 10px solid var(--heading);
  border-radius: 2.5rem;
  background: var(--band);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.phone img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1rem; }

/* ---- Feature cards ---- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { margin: 0; color: var(--muted); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--band);
  border: 1px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--link);
}
.card .icon svg { width: 24px; height: 24px; }

/* ---- How it works steps ---- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.steps p { margin: 0; color: var(--muted); }

/* ---- Coming soon ---- */
.soon {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2.5rem 1.25rem;
}
.soon p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; }

/* ---- Prose pages ---- */
.page-head { padding: 3rem 0 1rem; }
.page-head p { color: var(--muted); margin: 0; }
.prose { padding-bottom: 3rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { max-width: 44rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--band);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--band); color: var(--heading); }
.updated {
  display: inline-block;
  font-weight: 600;
  color: var(--heading);
  background: var(--band);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
}
.todo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--note-bg);
  border: 1px dashed var(--note-border);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}

/* ---- FAQ ---- */
.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 0.75rem;
  max-width: 44rem;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--heading);
}
.faq details > div { padding: 0 1.25rem 1rem; }
.faq details > div p { margin: 0 0 0.75rem; }

.callout {
  background: var(--band);
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  max-width: 44rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- Disclaimer (every page) ---- */
.disclaimer {
  background: var(--note-bg);
  border-top: 3px solid var(--note-border);
  padding: 1.5rem 0;
}
.disclaimer p { margin: 0; max-width: 52rem; font-size: 1rem; }
.disclaimer strong { color: var(--text); }

/* ---- Footer ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer p { margin: 0; }

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

@media print {
  .site-header nav, .skip-link, .site-footer ul { display: none; }
  body { background: #fff; color: #000; }
}

@media (min-width: 52rem) {
  .phone { width: min(17rem, 100%); }
}

/* ---- Reviewer preview (preview.html) ---- */
#content { flex: 1; display: flex; flex-direction: column; }
#content[hidden] { display: none; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--band);
}
.gate-card {
  width: 100%;
  max-width: 22rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.gate-card img { border-radius: 16px; }
.gate-card h1 { margin: 0.75rem 0 0.25rem; font-size: 1.5rem; }
.gate-card p { color: var(--muted); margin: 0 0 1.25rem; }
.gate-card label { display: block; text-align: left; font-weight: 600; margin-bottom: 0.35rem; }
.gate-card input {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS zooming in on focus */
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 1rem;
}
.gate-card .btn { width: 100%; font: inherit; font-weight: 600; cursor: pointer; }
.gate-card .gate-error { color: var(--text); background: var(--note-bg); border-left: 4px solid var(--note-border); padding: 0.5rem 0.75rem; text-align: left; border-radius: 6px; }

.demo-flow { padding: 1.5rem 0; border-top: 1px solid var(--border); margin-top: 1.5rem; }
.demo-flow h2 { margin: 0 0 1rem; }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 1.5rem 1.25rem;
  align-items: start;
}
.demo-grid figure { margin: 0; }
.demo-grid img, .demo-grid video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2364;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--band);
}
.demo-grid figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }
.demo-video figcaption { font-weight: 600; color: var(--heading); }
.demo-feedback { margin: 2rem 0 3rem; }
@media (max-width: 30rem) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.75rem; }
  .demo-grid figcaption { font-size: 0.875rem; }
}
