:root {
  --background: #FEF7F1;
  --background-soft: #F8ECE4;
  --surface: #FFFDFB;
  --surface-soft: #FBF1EC;
  --text: #2B2B2B;
  --muted: rgba(43, 43, 43, 0.68);
  --accent: #9E6265;
  --accent-strong: #7F4E51;
  --accent-soft: rgba(158, 98, 101, 0.12);
  --accent-medium: rgba(158, 98, 101, 0.2);
  --accent-border: rgba(158, 98, 101, 0.42);
  --border: rgba(43, 43, 43, 0.12);
  --border-strong: rgba(43, 43, 43, 0.14);
  --surface-glass: rgba(255, 253, 251, 0.78);
  --surface-menu: rgba(255, 253, 251, 0.94);
  --shadow: 0 24px 80px rgba(43, 43, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-soft) 100%);
  color: var(--text);
}

/* --- GLOBAL LAYOUT --- */

.site-header,
main,
.site-footer {
  width: min(1100px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

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

.brand-logo {
  height: 40px;   /* 36 → 40 ou 44 */
}

.language-dropdown {
  position: relative;
  z-index: 20;
}

.language-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 146px;
  min-height: 44px;
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(43, 43, 43, 0.08);
  backdrop-filter: blur(18px);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
  list-style: none;
}

.language-current::-webkit-details-marker {
  display: none;
}

.language-current::marker {
  content: "";
}

.language-current:hover,
.language-dropdown[open] .language-current {
  background: var(--surface);
  border-color: var(--accent-border);
  box-shadow: 0 16px 42px rgba(43, 43, 43, 0.12);
  transform: translateY(-1px);
}

.language-current:focus-visible {
  outline: 3px solid var(--accent-medium);
  outline-offset: 3px;
}

.flag {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(43, 43, 43, 0.06);
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transform-origin: 50% 45%;
  transition: transform 0.16s ease, color 0.16s ease;
}

.language-dropdown[open] .chevron {
  color: var(--accent);
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 188px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-menu);
  box-shadow: 0 24px 70px rgba(43, 43, 43, 0.16);
  backdrop-filter: blur(18px);
}

.language-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: var(--surface-menu);
  transform: rotate(45deg);
}

.language-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.14s ease, color 0.14s ease;
}

.language-option:hover,
.language-option:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.language-option.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-option.active::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-medium);
}

main {
  display: block;
}

/* --- HERO --- */

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0 80px;
}

.hero-content {
  max-width: 620px;
}

h1 {
  font-size: clamp(48px, 7vw, 80px);
  margin-bottom: 20px;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* --- BUTTONS --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.store-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.store-actions.centered {
  justify-content: center;
}

.download-panel-actions {
  display: grid;
  margin-top: 22px;
}

.store-button {
  display: inline-grid;
  grid-template-columns: 32px auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 16px 10px 12px;
  border-radius: 18px;
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  border: 1px solid rgba(255, 253, 251, 0.16);
  box-shadow: 0 14px 34px rgba(43, 43, 43, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.store-button img {
  display: block;
  width: 32px;
  height: 32px;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--accent-strong);
}

/* --- APP PREVIEW --- */

.app-preview {
  display: flex;
  justify-content: center;
}

.phone-card {
  width: 100%;
  max-width: 360px;
  padding: 22px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.daily-line {
  background: var(--text);
  color: var(--surface);
  padding: 24px;
  border-radius: 24px;
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.chapter-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* --- STEPS --- */

.section {
  padding: 60px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.step-card h2 {
  margin-top: 0;
}

/* --- EARLY ACCESS --- */

.early-access-page {
  display: block;
}

.early-access-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 56px;
  align-items: center;
  padding: 40px 0 88px;
}

.early-access-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.access-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.58);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.early-access-panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.early-access-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.early-access-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.early-access-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.early-access-form label,
.early-access-form legend {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.early-access-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.early-access-form input[type="email"]:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 4px var(--accent-medium);
}

.early-access-form fieldset {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.choice-card {
  display: grid;
  grid-template-columns: 18px 34px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-glass);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.choice-card:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  box-shadow: 0 10px 28px rgba(43, 43, 43, 0.08);
}

.choice-card input {
  accent-color: var(--accent);
}

.choice-card img {
  width: 34px;
  height: 34px;
  display: block;
}

.choice-card span {
  display: grid;
  gap: 3px;
}

.choice-card small,
.consent-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 2px;
}

.consent-row input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.early-access-form .button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.early-access-form .button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  font-weight: 650;
}

.form-status[data-state="success"] {
  color: var(--accent-strong);
}

.form-status[data-state="error"] {
  color: var(--accent);
}

/* --- FOOTER --- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 40px;
  color: var(--muted);
}

/* --- RESPONSIVE --- */

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .early-access-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 18px 0;
  }

  .language-current {
    min-width: 118px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .language-menu {
    right: 0;
    width: min(188px, calc(100vw - 40px));
  }

  .early-access-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .access-highlights {
    gap: 8px;
  }
}
