/* Twerkout. Monochrome like the app icon: the ink is the accent. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0e0e10;
  --ink: #f5f5f7;
  --ink-2: #a3a3ab;     /* 8.4:1 on --bg */
  --line: #26262a;
  --on-ink: #000000;
  --ok: #4fd273;
  --err: #ff7a6e;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --radius: 0.875rem;
}


*, *::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: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100%, 72rem); margin-inline: auto; padding-inline: var(--gutter); }

/* Mark + wordmark */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; }
.mark { width: auto; height: 1.35em; fill: currentColor; flex: none; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.badge { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; }

/* Hero fills the screen with the whole screenshot in view. */
.hero { display: grid; min-height: calc(100svh - 4.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.hero-copy { container-type: inline-size; }
h1 {
  /* Sized to the column so each phrase fits on one line: two lines, never one word. */
  font-size: min(4.5rem, 9.5cqi);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
h1 span { white-space: nowrap; }
.lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); color: var(--ink-2); max-width: 36rem; }

/* Width capped by viewport height so the whole screenshot fits on screen. */
.hero-shot { width: min(21.5rem, 74vw, calc((100svh - 8rem) * 0.46)); justify-self: center; }
/* No device frame: the dark screenshot sits on the black page, edges faded out. */
.hero-shot img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(transparent 6%, #000 14%, #000 82%, transparent); mask-image: linear-gradient(transparent 6%, #000 14%, #000 82%, transparent); }

/* Signup form */
.signup { margin-top: 2.25rem; max-width: 30rem; }
.signup label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.6rem; }
.field { display: flex; gap: 0.5rem; }
.field input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  caret-color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input::placeholder { color: var(--ink-2); opacity: 1; }
.field input:hover { border-color: color-mix(in srgb, var(--ink) 50%, transparent); }
.field input:focus-visible { outline-offset: 1px; border-color: var(--ink); border-radius: var(--radius); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field button {
  font: inherit;
  font-weight: 600;
  color: var(--on-ink);
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.field button:hover { opacity: 0.86; }
.field button:active { transform: scale(0.97); }
.field button:focus-visible { border-radius: var(--radius); }
.field button:disabled { opacity: 0.55; cursor: progress; }

.status { min-height: 1.5em; margin-top: 0.6rem; font-size: 0.9375rem; font-weight: 500; }
.status:empty { min-height: 0; margin: 0; }
.signup[data-state="done"] .status { color: var(--ok); }
.signup[data-state="error"] .status { color: var(--err); }
.note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-2); }

/* Honeypot: off-screen, out of the tab order, hidden from assistive tech. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-block: 2rem 2.5rem; font-size: 0.9375rem; }
.footer .brand { font-size: 1rem; }
.footer nav { margin-right: auto; }
.footer nav a { color: var(--ink-2); }
.legal { flex-basis: 100%; color: var(--ink-2); font-size: 0.8125rem; }

/* Simple pages (privacy, thanks, invalid) */
.page { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 10vw, 6rem); }
.page h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); max-width: 18ch; }
.prose { max-width: 40rem; margin-top: 1.25rem; }
.prose h2 { font-size: 1.3125rem; letter-spacing: -0.02em; margin-top: 2.25rem; }
.prose p, .prose ul { margin-top: 0.85rem; color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 36rem) {
  .field { flex-direction: column; }
  .field button { padding-block: 0.9rem; }
}
