:root {
  --ink: #0a0a0a;
  --intro: #141414;
  --body: #5c5c5c;
  --muted: #6b6b6b;
  --line: #d4d4d4;
  --error: #b00020;
  --focus: #2563eb;
  --bg: #ffffff;
  --radius: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Layout ---------- */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .page {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 48px 48px 96px;
    align-items: start;
  }
}

/* ---------- Text ---------- */

h1 {
  margin: 0 0 32px;
  font-size: clamp(2.375rem, 2.1rem + 2.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.copy p {
  margin: 0 0 22px;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--body);
}

.copy .intro {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--intro);
  margin-bottom: 26px;
}

@media (min-width: 900px) {
  .copy p { font-size: 1.125rem; }
  .copy .intro { font-size: 1.3125rem; }
}

/* ---------- Form ---------- */

.signup { margin-top: 38px; }

.label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row input {
  flex: 1 1 220px;
  max-width: 304px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.row input::placeholder { color: #9a9a9a; }

.row input[aria-invalid="true"] { border-color: var(--error); }

.button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 24px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover { background: #262626; }

.button:disabled {
  background: #404040;
  border-color: #404040;
  cursor: progress;
}

/* Clear, high-contrast focus ring for keyboard users */
.row input:focus-visible,
.button:focus-visible,
.copy a:focus-visible,
.thanks:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.row input:focus { border-color: #8a8a8a; }

@media (max-width: 479px) {
  .row input { max-width: none; flex-basis: 100%; }
  .button { width: 100%; }
}

.copy .error {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--error);
}
.copy .error:empty { display: none; }

.copy .fine {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.copy .fine + .fine { margin-top: 4px; }

.copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.copy a:hover { color: var(--ink); }

.thanks {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  border-radius: 6px;
}
.thanks:empty { display: none; }

/* Honeypot: off-screen rather than display:none, so naive bots still fill it */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.hero {
  margin: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1);
  background: #e5e5e5;
}

@media (min-width: 900px) {
  .hero { margin-top: 36px; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero img { aspect-ratio: 4 / 3; }
}

/* Text for screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header (Gemic logo) ---------- */

.site-header {
  background: var(--bg);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  color: #1f1f24;
  border-radius: 4px;
}
.site-logo svg { display: block; width: 95px; height: auto; }
.site-logo:hover { color: #000; }

/* ---------- Footer (matches gemic.com) ---------- */

.site-footer {
  --footer-ink: #1f1f24;
  --footer-accent: #2e679d;
  background: #f0e5da;
  color: var(--footer-ink);
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.site-footer__top {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

.site-footer__lead {
  margin: 0 0 24px;
  max-width: 34ch;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.5;
  font-optical-sizing: auto;
}

.site-footer__talk {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--footer-accent);
  color: var(--footer-accent);
  font-weight: 600;
  line-height: 28px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-footer__talk:hover { background: var(--footer-accent); color: #fff; }

.site-footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__links a {
  color: var(--footer-ink);
  text-decoration: none;
  line-height: 28px;
}
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 28px;
}

.site-footer__stats li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}
.site-footer__stats li:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--footer-ink); }

.stat-number {
  font-size: clamp(1.875rem, 1.6rem + 1vw, 2.3rem);
  line-height: 1.1;
  font-feature-settings: "zero" 1;
  font-optical-sizing: auto;
}
.stat-number > span[aria-hidden] { font-size: 0.6em; font-weight: 300; margin-left: 2px; vertical-align: 0.35em; }

.stat-label { font-size: 1rem; line-height: 1.7; color: #2d2d34; }

.site-logo:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .site-header__inner { padding: 0 48px; }
  .site-footer__inner { padding: 32px 48px 48px; }

  .site-footer__top {
    grid-template-columns: 1fr auto;
    margin-bottom: 56px;
  }
  .site-footer__links { min-width: 280px; }

  .site-footer__stats { grid-template-columns: repeat(4, 1fr); }
  .site-footer__stats li { padding: 0 18px; border-right: 0; border-left: 1px solid var(--footer-ink); }
  .site-footer__stats li:first-child { padding-left: 0; border-left: 0; }
  .site-footer__stats li:nth-child(odd) { border-right: 0; }
  .site-footer__stats li:nth-child(3) { padding-left: 18px; }
}
