/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #fff;
  color: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Page wrapper — white margin around the card */
.page {
  min-height: 100vh;
  min-height: 100svh;
  background: #fff;
  padding: 8px;
}

@media (min-width: 768px) {
  .page { padding: 16px; }
}

/* Rounded card that fills the viewport */
.card {
  position: relative;
  height: calc(100vh - 16px);
  height: calc(100svh - 16px);
  border-radius: 28px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card {
    height: calc(100vh - 32px);
    height: calc(100svh - 32px);
    border-radius: 44px;
  }
}

/* Background image crossfade stack */
.bg-stack { position: absolute; inset: 0; }

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2000ms ease-in-out;
}

.bg-layer.is-active { opacity: 1; }

.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* Inner content layout */
.card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  color: #fff;
}

@media (min-width: 1024px) {
  .card-inner { padding: 100px; }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.brand-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #fff;
}

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: block; } }

/* Pill-shaped button */
.pill-btn {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 300ms, border-color 300ms, background 300ms;
}
.pill-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Signup — pill that morphs into an inline email field */
.signup { position: relative; display: inline-block; }

.signup-form,
.signup-thanks { display: none; }

.signup[data-state="open"] .signup-trigger { display: none; }
.signup[data-state="open"] .signup-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 300ms;
}
.signup[data-state="open"] .signup-form:focus-within {
  border-color: rgba(255, 255, 255, 0.6);
}

.signup-form input[type="email"] {
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  width: 200px;
  padding: 4px 0;
}
.signup-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.signup-form button[type="submit"] {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  transition: background 200ms;
}
.signup-form button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.3);
}

.signup[data-state="done"] .signup-trigger,
.signup[data-state="done"] .signup-form { display: none; }
.signup[data-state="done"] .signup-thanks {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
}

/* Hero */
.hero { max-width: 42rem; }

@media (min-width: 768px) {
  .hero { margin-left: auto; margin-right: auto; }
}

.headline {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .headline {
    font-size: 48px;
    margin-bottom: 32px;
  }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .tabs { gap: 24px; margin-bottom: 24px; }
}

.tab {
  font-size: 14px;
  padding-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid transparent;
  transition: color 300ms, border-color 300ms;
}
.tab:hover { color: rgba(255, 255, 255, 0.7); }
.tab.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

/* Panels — overlapping crossfade */
.panels {
  position: relative;
  height: 160px;
}

@media (min-width: 768px) {
  .panels { height: 120px; }
}

.panel {
  position: absolute;
  inset: 0;
  font-size: 15px;
  line-height: 1.625;
  opacity: 0;
  transition: opacity 500ms;
  pointer-events: none;
}

@media (min-width: 768px) {
  .panel { font-size: 17px; }
}

.panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.press-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 500ms;
}
.press-link:hover { color: #fff; }

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
}

.footer-cta-mobile { display: block; }
.desktop-only { display: none; }
.mobile-only { display: block; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-email {
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 12px;
  margin-right: -12px;
  transition: color 300ms, background 300ms, border-color 300ms;
}
.footer-email:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
  .site-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .footer-cta-mobile { display: none; }
  .desktop-only { display: block; }
  .mobile-only { display: none; }
  .footer-row { display: block; }
}
