/* Farol landing: navy, lighthouse yellow and sea-foam cream. Light by default, dark follows the OS. */
:root {
  --navy: #0f1e3d;
  --beam: #f7b733;
  --beam-deep: #e09a12;
  --bg: #f4f1ea;
  --surface: #ffffff;
  --text: #0f1e3d;
  --muted: #4a5671;
  --line: #ddd7ca;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --ring: #e09a12;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1730;
    --surface: #13254a;
    --text: #f4f1ea;
    --muted: #a9b4cc;
    --line: #233a66;
    --ok: #4ade80;
    --warn: #fbbf24;
    --bad: #f87171;
    --ring: #f7b733;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0));
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 8px;
}
.top-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.top-link:hover {
  color: var(--text);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 48px 72px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--beam) 22%, transparent);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lede {
  margin: 20px 0 28px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.lede em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* Form */
.join-row {
  display: flex;
  gap: 8px;
  max-width: 30rem;
}
.join input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.join input[type='email']::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.join button,
.cta-button {
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--beam);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.join button:hover,
.cta-button:hover {
  background: var(--beam-deep);
}
.join button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.join.done .join-row {
  opacity: 0.6;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile:not(:empty) {
  margin-top: 12px;
}
.status {
  min-height: 1.6em;
  margin: 10px 0 0;
  font-weight: 600;
}
.status[data-kind='success'] {
  color: var(--ok);
}
.status[data-kind='error'] {
  color: var(--bad);
}
.status[data-kind='info'] {
  color: var(--muted);
}
.fine {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Product illustration */
.mock {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgb(15 30 61 / 0.35);
  overflow: hidden;
}
.mock::before {
  /* the lighthouse beam sweeping across */
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--beam) 30%, transparent), transparent);
  pointer-events: none;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mock-search {
  flex: 1;
  margin-left: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.mock-list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
.mock-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.mock-list li + li {
  border-top: 1px solid var(--line);
}
.fav {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.fav-a {
  background: #2563eb;
}
.fav-b {
  background: #db2777;
}
.fav-c {
  background: #0d9488;
}
.fav-d {
  background: #7c3aed;
}
.mock-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.mock-text b,
.mock-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-text b {
  font-size: 0.92rem;
}
.mock-text small {
  color: var(--muted);
}
.badge {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge.ok {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}
.badge.warn {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 16%, transparent);
}
.badge.bad {
  color: var(--bad);
  background: color-mix(in srgb, var(--bad) 14%, transparent);
}

/* Features */
.features {
  padding-block: 40px 64px;
}
h2 {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.grid li::before {
  content: '';
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--beam);
}
.grid h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Closing call to action */
.cta {
  margin-block: 24px 64px;
  padding-block: 56px;
  border-radius: 24px;
  background: var(--navy);
  color: #f4f1ea;
  text-align: center;
}
.cta h2 {
  margin-bottom: 8px;
}
.cta p {
  margin: 0 auto 24px;
  max-width: 32rem;
  color: #c9d2e6;
}
.cta-button {
  display: inline-block;
}
@media (prefers-color-scheme: dark) {
  .cta {
    background: var(--surface);
    border: 1px solid var(--line);
  }
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Narrow screens */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 24px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .join-row {
    flex-direction: column;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .cta {
    margin-inline: 12px;
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
