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

/* ── Design Tokens ── */
:root {
  --color-page: #faebd7;
  --color-primary: #1a1a1a;
  --color-secondary: #6d6d6d;
  --color-tertiary: #929292;
  --color-accent-green: #7cb243;
  --color-accent-green-dark: #5a8c30;
  --color-accent-red: #d45b5b;
  --color-card: #ffffff;
  --color-border: #ebebeb;
  --color-callout-bg: #fff8f0;
  --color-callout-border: #e8a090;
  --color-contact-bg: #f0ede6;
  --font-family: "Poppins", sans-serif;
  --max-width: 960px;
  --shadow-card: 0 1px 3px rgba(26, 26, 26, 0.04), 0 1px 2px rgba(26, 26, 26, 0.02);
}

body {
  font-family: var(--font-family);
  background-color: var(--color-page);
  color: var(--color-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo {
  display: inline-block;
  text-decoration: none;
}

.logo svg {
  width: 100px;
  height: auto;
}

/* ── Language Pill ── */
.lang-pill {
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
}

.lang-pill a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.15s ease-out;
}

.lang-pill a.active {
  background: var(--color-primary);
  color: var(--color-page);
  font-weight: 700;
}

.lang-pill a:not(.active) {
  color: var(--color-secondary);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 64px 0;
}

.hero h1 {
  font-size: 39px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  color: var(--color-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* ── Waitlist Form ── */
.waitlist-form {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.waitlist-form input::placeholder {
  color: var(--color-tertiary);
}

.waitlist-form button {
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-accent-green);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease-out;
}

.waitlist-form button:hover {
  background: var(--color-accent-green-dark);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-success {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent-green-dark);
  padding: 12px 0;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0;
}

.feature-card {
  background: var(--color-card);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.5;
}

/* ── How It Works ── */
.how-it-works {
  text-align: center;
  padding: 48px 0;
}

.how-it-works h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--color-accent-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
}

.step p {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.5;
  text-align: center;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  font-size: 16px;
  color: var(--color-secondary);
}

.footer a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease-out;
}

.footer a:hover {
  color: var(--color-primary);
}

.footer a.active {
  color: var(--color-primary);
  font-weight: 800;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  margin: 0 8px;
}

/* ── Back Link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-green);
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--color-accent-green-dark);
}

/* ── Legal Pages ── */
.legal {
  padding: 48px 0;
}

.legal h1 {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 16px;
  color: var(--color-secondary);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  font-size: 16px;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  background: var(--color-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.legal th,
.legal td {
  text-align: left;
  padding: 12px 16px;
}

.legal th {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  background: var(--color-primary);
  color: var(--color-page);
}

.legal td {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.legal tr:last-child td {
  border-bottom: none;
}

.legal tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

.legal .addendum {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--color-accent-green);
}

.legal .addendum h2 {
  color: var(--color-accent-green-dark);
}

/* ── Disclaimer Callout ── */
.disclaimer-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-callout-bg);
  border: 1.5px solid var(--color-callout-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
}

.disclaimer-callout svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent-red);
}

.disclaimer-callout p {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.5;
}

/* ── Contact Box ── */
.contact-box {
  background: var(--color-contact-bg);
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}

.contact-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.contact-box a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent-green);
  text-decoration: none;
}

.contact-box p {
  font-size: 14px;
  color: var(--color-secondary);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 25px;
    letter-spacing: -0.01em;
  }

  .hero p {
    font-size: 16px;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 8px;
  }

  .waitlist-form input {
    border-right: 1px solid var(--color-border);
    border-radius: 8px;
  }

  .waitlist-form button {
    border-radius: 8px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .legal table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
