/* ============================================
   Hera @ hera4uapp.com.br — CSS base
   Mobile-first, WCAG AA, 44px touch targets
   ============================================ */

/* Paleta feminina — rosa, lavanda e plum */
:root, [data-theme="dark"] {
  --bg:          #1C1320;   /* plum-black profundo */
  --bg-alt:      #261A2B;   /* plum medio */
  --bg-card:     #2F1F34;   /* card mauve escuro */
  --bg-translucent: rgba(28, 19, 32, .85);
  --fg:          #FCF0F3;   /* off-white rose */
  --fg-mute:     #C9A9BA;   /* dusty rose */
  --fg-dim:      #8A6B7A;   /* mauve suave */
  --accent:      #EC7FAA;   /* rosa primario */
  --accent-soft: rgba(236, 127, 170, .15);
  --accent-2:    #B57AE5;   /* lavanda */
  --accent-3:    #FFB98B;   /* pessego quente */
  --border:      #3D2B3D;
  --critical:    #E35D5D;
  --high:        #F08A4C;
  --medium:      #DAB04D;
  --low:         #7AA7E8;
  --ok:          #6CCFA0;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:          #FFF9FB;   /* blush white */
  --bg-alt:      #FDF0F4;   /* rosa muito claro */
  --bg-card:     #FFFFFF;
  --bg-translucent: rgba(255, 249, 251, .9);
  --fg:          #2E1B2E;   /* plum profundo texto */
  --fg-mute:     #6B4B5E;
  --fg-dim:      #A28190;
  --accent:      #D2478A;   /* rosa mais forte p/ contraste em branco */
  --accent-soft: rgba(210, 71, 138, .12);
  --accent-2:    #9333EA;   /* royal purple */
  --accent-3:    #E97951;   /* coral */
  --border:      #F4DCE4;
  --critical:    #DC2626;
  --high:        #EA580C;
  --medium:      #D97706;
  --low:         #2563EB;
  --ok:          #10B981;
  --shadow:      0 10px 30px rgba(210, 71, 138, .10);
  color-scheme: light;
}

/* OS preference: se usuario ainda nao escolheu, usa o sistema */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:          #FFF9FB;
    --bg-alt:      #FDF0F4;
    --bg-card:     #FFFFFF;
    --bg-translucent: rgba(255, 249, 251, .9);
    --fg:          #2E1B2E;
    --fg-mute:     #6B4B5E;
    --fg-dim:      #A28190;
    --accent:      #D2478A;
    --accent-soft: rgba(210, 71, 138, .12);
    --accent-2:    #9333EA;
    --accent-3:    #E97951;
    --border:      #F4DCE4;
    --critical:    #DC2626;
    --high:        #EA580C;
    --medium:      #D97706;
    --low:         #2563EB;
    --ok:          #10B981;
    --shadow:      0 10px 30px rgba(210, 71, 138, .10);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-translucent);
  backdrop-filter: saturate(1.5) blur(10px);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--fg);
}
.brand__logo { color: var(--accent); display: inline-flex; }
.brand__name { text-transform: uppercase; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__links a {
  color: var(--fg-mute);
  font-size: 15px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__cta {
  padding: 10px 16px;
  background: var(--accent);
  color: #000 !important;
  border-radius: 10px;
  font-weight: 600;
}
.nav__cta:hover { background: #67E8F9; text-decoration: none; }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* HERO */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, .15), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(244, 114, 182, .10), transparent 40%);
}
.hero__kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}
.hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 18px;
  color: var(--fg-mute);
  max-width: 640px;
  margin: 0 0 28px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-mute);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover { background: #67E8F9; }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-card); }
.btn--full { width: 100%; }

/* SECTIONS */
.section { padding: 80px 0; }
.section--dark { background: var(--bg-alt); }
.section--alt  { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.section--cta  { background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .15), transparent 60%), var(--bg-alt); }

.section__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.section__lead {
  font-size: 17px;
  color: var(--fg-mute);
  max-width: 680px;
  margin: 0 0 36px;
}

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* PAIN LIST */
.pain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pain li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg-mute);
  font-size: 15px;
}
.pain li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pain li strong { color: var(--fg); }

/* STEPS */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step__num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step h3 small {
  font-size: 12px;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 1px;
}
.step p { margin: 0; color: var(--fg-mute); font-size: 15px; }

/* CARDS (HyPer Score) */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 13px; color: var(--fg-mute); }
.card--highlight {
  background: linear-gradient(160deg, rgba(34,211,238,.15), rgba(244,114,182,.10));
  border-color: var(--accent);
}

/* PILLS (seguranca) */
.pill {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pill h3 { margin: 0 0 8px; font-size: 18px; color: var(--accent); }
.pill p { margin: 0; color: var(--fg-mute); font-size: 15px; }

/* PRO+ */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 12px;
}
.check {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg-mute);
}
.check li svg { color: var(--ok); flex-shrink: 0; margin-top: 3px; }

/* LEVELS */
.levels {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.levels h3 {
  margin: 0 0 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.level {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.level:last-of-type { border-bottom: none; }
.level__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.level--critical .level__dot { background: var(--critical); box-shadow: 0 0 10px var(--critical); }
.level--high     .level__dot { background: var(--high);     box-shadow: 0 0 10px var(--high); }
.level--medium   .level__dot { background: var(--medium);   }
.level--low      .level__dot { background: var(--low);      }
.level__disclaimer {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* WAITLIST */
.waitlist {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.waitlist h2 {
  margin: 0 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: -.3px;
}
.waitlist > p {
  margin: 0 0 24px;
  color: var(--fg-mute);
}

.field {
  display: block;
  text-align: left;
  margin-bottom: 14px;
}
.field__label {
  display: block;
  font-size: 13px;
  color: var(--fg-mute);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input[type=email],
.field input[type=text],
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field--check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-mute);
}
.field--check input {
  width: 20px; height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.form__msg {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.form__msg.is-ok    { color: var(--ok); }
.form__msg.is-error { color: var(--critical); }

/* FOOTER */
.footer {
  padding: 40px 0 28px;
  background: #070A12;
  border-top: 1px solid var(--border);
  color: var(--fg-mute);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer__brand {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--fg);
  margin: 0;
  letter-spacing: 1px;
}
.footer__small { margin: 4px 0 0; font-size: 13px; }
.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__links a { color: var(--fg-mute); font-size: 14px; }
.footer__links a:hover { color: var(--accent); text-decoration: none; }
.footer__disclaimer {
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-top: 20px;
}

/* SR-only / acessibilidade */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================
   Theme toggle (dark / light)
   ============================================ */
.theme-toggle {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--fg-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__sun,
.theme-toggle__moon { transition: opacity .2s ease; }
:root[data-theme="light"] .theme-toggle__sun  { opacity: 0; position: absolute; }
:root[data-theme="light"] .theme-toggle__moon { opacity: 1; }
:root[data-theme="dark"]  .theme-toggle__sun  { opacity: 1; }
:root[data-theme="dark"]  .theme-toggle__moon { opacity: 0; position: absolute; }

/* Fallback quando sem data-theme (respeita OS) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle__sun  { opacity: 0; position: absolute; }
  :root:not([data-theme]) .theme-toggle__moon { opacity: 1; }
}

/* ============================================
   Seletor de idioma (feature 008)
   ============================================ */
.lang-selector {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-mute);
  padding: 6px 28px 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%239CA3AF' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .15s;
}
.lang-selector:hover, .lang-selector:focus {
  border-color: var(--accent);
  color: var(--fg);
  outline: none;
}
