/* GigaRows CSV coming-soon site. Light theme only. All colours live in :root. */

:root {
  color-scheme: light;

  /* Colour tokens */
  --bg: #ffffff;
  --bg-soft: #faf7f2;
  --text: #1a1a1a;
  --text-muted: #5b5650;
  --border: #ddd8cf;
  --border-strong: #857f76;
  --accent: #ff7a00;
  --accent-2: #ffc61a;
  --accent-text: #9a4400;
  --focus: #1d4ed8;

  /* Spacing tokens */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* Radius tokens */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-pill: 999px;

  /* Type scale */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.125rem, 1.4rem + 3.6vw, 3.5rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-small: 0.9375rem;

  --content-width: 1120px;
  --gutter: 16px;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: 0; }

p {
  margin: 0 0 var(--space-4);
}

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

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

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

/* Layout */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-8);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-300%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* Header and nav */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: var(--space-3);
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--space-2);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* Pill */

.pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--accent-2);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.btn:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.btn-secondary {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Cards */

.card {
  padding: var(--space-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin-bottom: var(--space-2);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Hero */

.hero {
  padding-block: var(--space-8) var(--space-7);
}

.hero-copy {
  max-width: 46rem;
}

.hero-logo {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* Figures */

.figure {
  margin: 0;
}

.figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.figure figcaption {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.figure video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.hero .figure {
  margin-top: var(--space-7);
}

/* Feature rows: stacked on small screens, two columns from 860px, alternating sides */

.feature-list {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-5);
}

.feature-row > * {
  min-width: 0;
}

.feature-text h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.feature-text ul {
  margin: 0;
  padding-left: 1.25rem;
}

.feature-text li + li {
  margin-top: var(--space-2);
}

@media (min-width: 860px) {
  /* Screenshots get more room than text; even rows mirror the columns. */
  .feature-row {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-7);
  }

  .feature-row:nth-child(even) {
    grid-template-columns: 3fr 2fr;
  }

  .feature-row:nth-child(even) .feature-text {
    order: 2;
  }

  .feature-row:nth-child(even) .figure {
    order: 1;
  }
}

/* Text-only feature row: one column at every width */

.feature-row.feature-row--text {
  grid-template-columns: minmax(0, 46rem);
}

/* FAQ */

.faq-list {
  max-width: 46rem;
  margin-top: var(--space-6);
}

.faq-item {
  padding-block: var(--space-4);
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: var(--space-2);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* Final call */

.final-call {
  text-align: center;
}

.final-call .btn-row {
  justify-content: center;
}

.notify-text {
  max-width: 36rem;
  margin-inline: auto;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  flex-basis: 100%;
}

/* Small phones: hero buttons stack at full width */

@media (max-width: 480px) {
  .hero .btn-row {
    flex-direction: column;
  }

  .hero .btn {
    width: 100%;
  }
}
