/* ==========================================================================
   KORB · Landing Page Design System
   Paleta quente e editorial derivada de docs/DESIGN.md
   ========================================================================== */

:root {
  /* Cores principais (Modo Claro - Linho Quente) */
  --bg: #faf7f2;
  --surface: #f2ece2;
  --surface-elevated: #e8dfd1;
  --border: #dfd5c6;

  --ink: #231e1a;
  --ink-body: #38312b;
  --ink-secondary: #655b52;
  --ink-tertiary: #72685d;

  --primary: #9e4830;
  --primary-pressed: #823b26;
  --primary-soft: rgba(158, 72, 48, 0.1);
  --primary-pill-ink: #823b26;
  --on-primary: #faf7f2;

  --sage: #344d3f;
  --sage-soft: rgba(52, 77, 63, 0.1);
  --sage-ink: #2c4336;
  --success: #2e5e41;
  --danger: #9c2c24;

  /* Superfícies de apoio */
  --frame-bg: #231e1a;
  --frame-inner: #ffffff;
  --lock-bg: #1c1916;
  --lock-card: rgba(38, 34, 29, 0.9);
  --shadow-ui: 0 18px 40px rgba(35, 30, 26, 0.1);
  --shadow-popover: 0 12px 28px rgba(35, 30, 26, 0.12);

  /* Tipografia */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans:
    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 480ms;

  /* Layout */
  --container-max: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #161513;
    --surface: #201e1a;
    --surface-elevated: #2b2823;
    --border: #36322c;

    --ink: #ece6dc;
    --ink-body: #dfd8cd;
    --ink-secondary: #a4998c;
    --ink-tertiary: #91877a;

    --primary: #d97d62;
    --primary-pressed: #c0684e;
    --primary-soft: rgba(217, 125, 98, 0.15);
    --primary-pill-ink: #eaa08a;
    --on-primary: #161513;

    --sage: #6b937c;
    --sage-soft: rgba(107, 147, 124, 0.16);
    --sage-ink: #9fc7af;
    --success: #66b386;
    --danger: #e67468;

    --frame-bg: #2b2823;
    --frame-inner: #1d1b18;
    --lock-bg: #0f0e0c;
    --lock-card: rgba(43, 40, 35, 0.94);
    --shadow-ui: 0 22px 48px rgba(0, 0, 0, 0.42);
    --shadow-popover: 0 16px 34px rgba(0, 0, 0, 0.48);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #161513;
  --surface: #201e1a;
  --surface-elevated: #2b2823;
  --border: #36322c;

  --ink: #ece6dc;
  --ink-body: #dfd8cd;
  --ink-secondary: #a4998c;
  --ink-tertiary: #91877a;

  --primary: #d97d62;
  --primary-pressed: #c0684e;
  --primary-soft: rgba(217, 125, 98, 0.15);
  --primary-pill-ink: #eaa08a;
  --on-primary: #161513;

  --sage: #6b937c;
  --sage-soft: rgba(107, 147, 124, 0.16);
  --sage-ink: #9fc7af;
  --success: #66b386;
  --danger: #e67468;

  --frame-bg: #2b2823;
  --frame-inner: #1d1b18;
  --lock-bg: #0f0e0c;
  --lock-card: rgba(43, 40, 35, 0.94);
  --shadow-ui: 0 22px 48px rgba(0, 0, 0, 0.42);
  --shadow-popover: 0 16px 34px rgba(0, 0, 0, 0.48);
}

:root[data-theme='light'] {
  color-scheme: light;
}

/* Reset & Superfícies do Navegador */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--border) var(--bg);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  caret-color: var(--primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: var(--primary-soft);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-inline: 24px;
  background-color: var(--bg);
  transition: background-color var(--t-ui) ease;
}

.site-header.is-scrolled {
  background-color: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 8px 2px;
  white-space: nowrap;
  position: relative;
  transition: color var(--t-hover) ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-ui) var(--ease-out);
}

.header-nav a.is-active {
  color: var(--ink);
}

.header-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--t-hover) ease,
    transform var(--t-press) var(--ease-out);
}

.site-header.is-scrolled .theme-toggle {
  background-color: var(--surface-elevated);
}

.theme-toggle:active {
  transform: scale(0.97);
}

.theme-icon--sun {
  display: none;
}

:root[data-theme='dark'] .theme-icon--moon {
  display: none;
}

:root[data-theme='dark'] .theme-icon--sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-icon--moon {
    display: none;
  }

  :root:not([data-theme='light']) .theme-icon--sun {
    display: block;
  }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-lg);
  background-color: var(--primary);
  color: var(--on-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--t-hover) ease,
    transform var(--t-press) var(--ease-out);
}

.header-cta:active {
  transform: scale(0.97);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 0;
  background-color: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.mobile-drawer {
  background-color: var(--surface);
  padding: 12px 24px 20px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer nav {
  display: grid;
  gap: 4px;
}

.mobile-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

/* ==========================================================================
   Botões Gerais
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  border: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-hover) ease,
    transform var(--t-press) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
}

.btn-night {
  background-color: #ece6dc;
  color: #161513;
}

@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover {
    color: var(--ink);
  }

  .theme-toggle:hover {
    background-color: var(--surface-elevated);
  }

  .header-cta:hover,
  .btn-primary:hover {
    background-color: var(--primary-pressed);
  }

  .btn-secondary:hover {
    background-color: var(--surface-elevated);
  }

  .btn-night:hover {
    background-color: #ffffff;
  }
}

/* ==========================================================================
   Hero & Faixa de Fundamentos
   ========================================================================== */

.hero {
  padding-top: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
  padding: 0 24px 56px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.15rem, 4.4vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.lines .line {
  display: block;
  overflow: clip;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.lines [data-line] {
  display: block;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-body);
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--ink-tertiary);
}

/* Mockup de Telefone no Hero */
.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame[data-ui] {
  width: 100%;
  max-width: 344px;
  background-color: var(--frame-bg);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-ui);
}

.phone-frame[data-ui] .phone-screen {
  background-color: var(--bg);
  border-radius: 26px;
  padding: 10px 18px 16px;
  color: var(--ink);
}

.phone-frame[data-ui] .lock-topbar {
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.phone-frame[data-ui] .lock-island {
  background-color: var(--frame-bg);
  width: 68px;
  height: 18px;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-tertiary);
  margin-bottom: 14px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.phone-week-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.phone-week-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
}

.phone-ring {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.phone-ring svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.phone-ring span {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.phone-fruit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
}

.phone-fruit-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.phone-fruit-caption {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-tertiary);
}

.phone-fruit-name {
  margin: 2px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
}

.phone-fruit-metrics {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.phone-rows {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
}

.phone-row-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.phone-row-sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.phone-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--primary-soft);
  color: var(--primary-pill-ink);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.phone-tabbar {
  margin-top: 14px;
  padding: 8px 6px;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  border-radius: var(--radius-md);
  color: var(--ink-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
}

.phone-tab.is-active {
  background-color: var(--bg);
  color: var(--primary);
  font-weight: 600;
}

/* Credibility Band */
.cred-band {
  background-color: var(--surface);
  padding: 28px 24px;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
}

.cred-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.cred-desc {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--ink-body);
  line-height: 1.5;
}

/* ==========================================================================
   Seções Editoriais Comuns
   ========================================================================== */

.section {
  padding: 84px 24px;
}

.section--tinted {
  background-color: var(--surface);
}

.section-head {
  max-width: 680px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.1vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--ink-body);
  font-size: 1.0625rem;
}

/* ==========================================================================
   2. Explorador de Semanas
   ========================================================================== */

.week-explorer {
  margin-top: 32px;
}

.week-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.week-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 48px;
  padding: 9px 16px;
  border-radius: var(--radius-lg);
  border: 0;
  background-color: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color var(--t-hover) ease,
    color var(--t-hover) ease,
    transform var(--t-press) var(--ease-out);
}

.week-tab:active {
  transform: scale(0.97);
}

.week-tab-num {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.week-tab-fruit {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  line-height: 1.25;
}

.week-tab[aria-selected='true'] {
  background-color: var(--primary);
  color: var(--on-primary);
}

.week-tab[aria-selected='true'] .week-tab-fruit {
  color: var(--on-primary);
  opacity: 0.88;
}

@media (hover: hover) and (pointer: fine) {
  .week-tab[aria-selected='false']:hover {
    background-color: var(--surface-elevated);
  }
}

.week-panel[data-ui] {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: start;
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.week-photo-wrap {
  overflow: clip;
  border-radius: var(--radius-lg);
  background-color: var(--surface-elevated);
  aspect-ratio: 4 / 3;
}

.week-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 420ms var(--ease-out);
}

.week-photo.is-fading {
  opacity: 0.25;
}

.week-photo-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

#week-caption-number {
  white-space: nowrap;
  flex-shrink: 0;
}

.week-progress-box {
  margin-top: 16px;
  padding: 14px 16px;
  background-color: var(--bg);
  border-radius: var(--radius-md);
}

.week-progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

.week-progress-track {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--surface-elevated);
  overflow: clip;
}

.week-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-color: var(--primary);
  transform-origin: left center;
  transform: scaleX(0.67);
  transition: transform 340ms var(--ease-out);
}

.week-top-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.week-trimester {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--primary-soft);
  color: var(--primary-pill-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.measure-note-wrap {
  position: static;
}

.measure-note-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background-color: var(--bg);
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color var(--t-hover) ease,
    background-color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .measure-note-btn:hover {
    color: var(--ink);
    background-color: var(--surface-elevated);
  }
}

.measure-popover[data-ui] {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 25;
  width: min(360px, 100%);
  max-width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background-color: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-popover);
}

.measure-popover[hidden] {
  display: none;
}

.measure-popover-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.measure-popover-body {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.week-detail-col h3 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 500;
  line-height: 1.15;
}

.week-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 18px;
  padding: 14px 18px;
  background-color: var(--bg);
  border-radius: var(--radius-md);
}

.week-metric-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
}

.week-metric-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
}

.week-size-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: var(--sage-soft);
  color: var(--sage-ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.week-size-note[hidden] {
  display: none;
}

.week-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.week-copy-block h4 {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.week-copy-block p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-body);
}

.week-extras-grid {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.week-extras-label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.week-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.week-chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.week-chips--sage li {
  background-color: var(--sage-soft);
  color: var(--sage-ink);
}

/* ==========================================================================
   3. Recursos e Prévias Interativas
   ========================================================================== */

.features-stack {
  margin-top: 52px;
  display: grid;
  gap: 76px;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.feature-split--reverse .feature-visual {
  order: -1;
}

.feature-text h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  line-height: 1.2;
}

.feature-text > p {
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--ink-body);
}

.feature-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink);
}

.feature-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--sage);
}

/* Card Pós-Consulta */
.ui-card[data-ui] {
  background-color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.ui-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.ui-card-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.ui-card-sub {
  margin: 3px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
}

.ui-card-tag {
  padding: 5px 11px;
  border-radius: 999px;
  background-color: var(--sage-soft);
  color: var(--sage-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.ui-kv-list {
  margin: 0;
  display: grid;
  gap: 6px;
}

[data-ui] .ui-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

[data-ui] .ui-kv-row:nth-child(odd) {
  background-color: var(--surface);
}

.ui-kv-row dt {
  color: var(--ink-secondary);
}

.ui-kv-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Tela Bloqueada (Notificação Discreta) */
.feature-visual--phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-phone[data-ui] {
  width: 100%;
  max-width: 304px;
  background-color: #2c2722;
  border-radius: 36px;
  padding: 11px;
  box-shadow: var(--shadow-ui);
}

.lock-phone[data-ui] .lock-screen {
  background-color: var(--lock-bg);
  color: #ece6dc;
  border-radius: 26px;
  min-height: 410px;
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(236, 230, 220, 0.86);
}

.lock-island {
  width: 66px;
  height: 17px;
  border-radius: 999px;
  background-color: #090807;
}

.lock-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lock-clock-group {
  text-align: center;
  margin-top: 8px;
}

.lock-padlock {
  color: rgba(236, 230, 220, 0.72);
  margin: 0 auto 6px;
}

.lockscreen-time {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 1;
  color: #ece6dc;
}

.lockscreen-date {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: #a4998c;
}

.lockscreen-banner {
  margin-top: 18px;
  background-color: var(--lock-card);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lockscreen-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #faf7f2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lockscreen-symbol {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.lockscreen-content {
  min-width: 0;
  flex: 1;
}

.lockscreen-app {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #a4998c;
  margin-bottom: 2px;
}

.lockscreen-msg {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ece6dc;
}

.lock-bottom {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.lock-home-bar {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background-color: currentColor;
  opacity: 0.25;
}

.lockscreen-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
  text-align: center;
}

/* Módulos Interativos Inferiores (Mala & Registros) */
.pillars-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pillar-block[data-ui] {
  background-color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pillar-block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.22;
}

.pillar-status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--sage-soft);
  color: var(--sage-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pillar-block > p {
  margin: 10px 0 0;
  color: var(--ink-body);
  font-size: 1rem;
}

.bag-checklist {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  display: grid;
  gap: 8px;
}

.bag-checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
  padding-bottom: 4px;
}

.bag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 0;
  background-color: var(--bg);
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--t-hover) ease,
    transform var(--t-press) var(--ease-out);
}

.bag-item:active {
  transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .bag-item:hover {
    background-color: var(--surface-elevated);
  }
}

.bag-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: transparent;
  background-color: var(--bg);
  transition:
    background-color var(--t-hover) ease,
    border-color var(--t-hover) ease,
    color var(--t-hover) ease;
}

.bag-item.is-checked .bag-check {
  background-color: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}

.bag-item-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-hover) ease;
}

.bag-item.is-checked .bag-item-label {
  color: var(--ink-secondary);
  text-decoration: line-through;
}

.records-preview {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.record-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background-color: var(--surface);
}

.record-kind {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.record-text {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-align: right;
}

/* ==========================================================================
   4. Modo Noturno de Madrugada (Faixa Carvão Quente)
   ========================================================================== */

.night-band {
  background-color: #161513;
  color: #ece6dc;
  padding: 84px 24px;
}

.night-band .section-title {
  color: #ece6dc;
}

.night-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.night-lead {
  margin: 16px 0 28px;
  color: #dfd8cd;
  max-width: 54ch;
  font-size: 1.0625rem;
}

.night-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.swatch {
  background-color: #201e1a;
  border-radius: var(--radius-lg);
  padding: 16px;
}

.night-swatches[data-ui] .swatch-chip {
  height: 58px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(236, 230, 220, 0.16);
  margin-bottom: 12px;
}

.swatch-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ece6dc;
}

.swatch-hex {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: #a4998c;
}

/* ==========================================================================
   5. Privacidade & Aviso Médico
   ========================================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.trust-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
}

.trust-item p {
  margin: 0;
  color: var(--ink-body);
  font-size: 1rem;
}

.disclaimer-box[data-ui] {
  margin-top: 40px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  font-size: 1rem;
  color: var(--ink-body);
}

.disclaimer-box strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 8px;
}

.disclaimer-box p {
  margin: 0;
}

.disclaimer-box p + p {
  margin-top: 8px;
}

/* ==========================================================================
   6. Dúvidas Frequentes (FAQ Editorial)
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 96px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  overflow: clip;
  transition: background-color var(--t-hover) ease;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    background-color: var(--surface-elevated);
  }
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--t-ui) var(--ease-out);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-body);
  font-size: 1rem;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   7. Acesso Antecipado & Formulário Interativo
   ========================================================================== */

.waitlist-section {
  padding: 84px 24px;
}

.waitlist-card {
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.waitlist-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
}

.waitlist-copy > p {
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--ink-body);
}

.waitlist-note {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--ink-tertiary);
}

.waitlist-form[data-ui] {
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.waitlist-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.waitlist-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input.waitlist-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  transition:
    border-color var(--t-hover) ease,
    background-color var(--t-hover) ease;
}

.waitlist-input::placeholder {
  color: var(--ink-tertiary);
}

.waitlist-input[aria-invalid='true'] {
  border-color: var(--danger);
}

.waitlist-submit {
  width: 100%;
}

.waitlist-error {
  margin: 10px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
}

.waitlist-error[hidden],
.waitlist-success[hidden],
#waitlist-fields[hidden] {
  display: none;
}

.waitlist-success-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.waitlist-success-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background-color: var(--sage-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.waitlist-success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
}

.waitlist-success-body {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.waitlist-success-preview {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
}

.waitlist-reset-btn {
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--surface);
  padding: 36px 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-symbol {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  transition: color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--ink);
  }
}

/* ==========================================================================
   Coreografia de Movimento (somente com JS + prefers-reduced-motion: no-preference)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] {
    transform: translateY(105%);
    animation: hero-line 680ms var(--ease-expo) forwards;
    animation-delay: calc(var(--i, 0) * 85ms + 40ms);
  }

  .js .hero [data-load] {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-load 540ms var(--ease-out) forwards;
    animation-delay: var(--d, 200ms);
  }

  .js .hero [data-open] {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    animation: hero-open 660ms var(--ease-expo) forwards;
    animation-delay: var(--d, 160ms);
  }

  .js .phone-ring-arc {
    stroke-dashoffset: 113.1;
    animation: ring-sweep 880ms var(--ease-expo) 260ms forwards;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity var(--t-reveal) var(--ease-out),
      transform var(--t-reveal) var(--ease-out);
    transition-delay: calc(var(--stagger, 0) * 65ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-line {
  to {
    transform: none;
  }
}

@keyframes hero-load {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-open {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ring-sweep {
  to {
    stroke-dashoffset: 37.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 960px) {
  .header-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .week-panel[data-ui],
  .feature-split,
  .night-grid,
  .faq-layout,
  .waitlist-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-split--reverse .feature-visual {
    order: 0;
  }

  .cred-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-intro {
    position: static;
  }

  .trust-grid,
  .pillars-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid {
    padding: 0 18px 40px;
  }

  .cred-band {
    padding: 28px 18px;
  }

  .section,
  .night-band,
  .waitlist-section {
    padding: 58px 18px;
  }

  .site-footer {
    padding: 32px 18px;
  }

  .cred-grid,
  .week-copy-grid,
  .night-swatches {
    grid-template-columns: 1fr;
  }

  .week-panel[data-ui],
  .waitlist-card {
    padding: 22px;
  }

  .pillar-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .record-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .record-text {
    text-align: left;
  }

  .theme-toggle-label {
    display: none;
  }
}
