:root {
  --navy-950: #16050a;
  --navy-900: #2a0711;
  --navy-800: #4d0a19;
  --navy-700: #741226;
  --green-600: #9d0f2a;
  --green-500: #c51736;
  --green-100: #f9dfe6;
  --off-white: #fff9f7;
  --paper: #ffffff;
  --mist: #f8edf1;
  --line: #ead2d9;
  --text: #201417;
  --muted: #6d5960;
  --soft: #9a858c;
  --amber: #cfa75a;
  --whatsapp: #25d366;
  --rose-50: #fff3f5;
  --rose-100: #f9dfe6;
  --gold-soft: #f2d493;
  --grid-line: rgba(116, 18, 38, 0.08);
  --radius: 8px;
  --shadow: 0 18px 50px rgba(77, 10, 25, 0.14);
  --container: min(1120px, calc(100% - 40px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf8 0%, #fff4f4 42%, #fff9f7 100%),
    var(--off-white);
  background-size:
    44px 44px,
    44px 44px,
    auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(197, 23, 54, 0.35);
  outline-offset: 3px;
}

.skip-link,
.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;
}

.skip-link:focus {
  top: 16px;
  left: 16px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  border-radius: var(--radius);
  background: var(--green-500);
  color: white;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(234, 210, 217, 0.88);
  background: var(--header-bg, rgba(255, 249, 247, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(77, 10, 25, 0.06);
}

.header-actions { display: flex; align-items: center; gap: 10px; order: 2; }
.theme-toggle { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--navy-950); }
.theme-toggle:hover { border-color: var(--green-500); color: var(--green-600); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy-950);
  box-shadow:
    0 14px 26px rgba(77, 10, 25, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.86);
}

.logo-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy-950);
  font-weight: 900;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  border-radius: var(--radius);
  padding: 9px 11px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--mist);
  color: var(--navy-950);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--navy-950);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translate(-50%, -8px);
}

.menu-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
  transform: translate(-50%, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.section,
.section-band,
.stats-strip,
.site-footer {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

#sobre { padding-top: 48px; }

.section-band {
  border-radius: 28px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 44px;
  min-height: 570px;
  margin-top: 24px;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 5, 10, 0.98), rgba(77, 10, 25, 0.94)),
    var(--navy-900);
  color: var(--off-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(242, 212, 147, 0.16) 49%, transparent 50%),
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.09) 58.3%, transparent 66%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    42px 42px,
    42px 42px;
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--green-500), var(--amber), transparent);
  opacity: 0.86;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-600);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: var(--green-100);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: 4.15rem;
  font-weight: 930;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy-950);
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy-950);
  font-size: 1.35rem;
  font-weight: 880;
  line-height: 1.2;
}

.hero-lead {
  max-width: 28ch;
  margin-bottom: 14px;
  color: white;
  font-size: 1.7rem;
  font-weight: 840;
  line-height: 1.18;
}

.hero-text {
  max-width: 34rem;
  margin-bottom: 28px;
  color: rgba(255, 249, 247, 0.78);
  font-size: 1.08rem;
}

.hero-actions,
.tool-actions,
.timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 860;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.line-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
}

.button .line-icon {
  fill: none;
  stroke-width: 2;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background:
    linear-gradient(135deg, #df1d43, #9d0f2a),
    var(--green-500);
  color: white;
  box-shadow:
    0 14px 30px rgba(157, 15, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button.secondary {
  border-color: rgba(255, 249, 247, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--off-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button.ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--navy-900);
}

.tool-panel .button.secondary {
  border-color: var(--line);
  background: var(--mist);
  color: var(--navy-900);
  box-shadow: none;
}

.hero-media {
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(116, 18, 38, 0.98), rgba(42, 7, 17, 0.98)),
    var(--navy-800);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: contain;
  object-position: center;
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(22, 5, 10, 0.86);
  color: var(--off-white);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(22, 5, 10, 0.22);
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge span {
  color: rgba(255, 249, 247, 0.72);
  font-size: 0.92rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
  margin-top: -14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 247, 0.92)),
    var(--paper);
  box-shadow: 0 14px 34px rgba(77, 10, 25, 0.1);
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--amber));
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  color: var(--navy-950);
  font-size: 1.05rem;
}

.stat-card span {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

.portrait-card {
  position: sticky;
  top: 96px;
  min-height: 420px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #77091d;
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.about-copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 1.06rem;
}

.about-copy p {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--navy-900);
}

.belief {
  border-left: 4px solid var(--green-500);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--mist);
  color: var(--navy-900);
  font-weight: 760;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.credential-grid div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.credential-grid span,
.credential-grid strong {
  display: block;
}

.credential-grid span {
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 760;
}

.credential-grid strong {
  color: var(--navy-950);
  line-height: 1.25;
}

.services-section {
  border-top: 1px solid var(--line);
}

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

.service-card,
.tool-card,
.topic-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8f7 100%),
    var(--paper);
  box-shadow: 0 10px 30px rgba(77, 10, 25, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 30px 24px;
  text-align: center;
}

.service-card::before,
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(197, 23, 54, 0.78);
  pointer-events: none;
}

.service-card:hover,
.tool-card:hover,
.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 23, 54, 0.36);
  box-shadow: var(--shadow);
}

.icon-chip {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid rgba(197, 23, 54, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, #fff7f5 0%, #f9dfe6 48%, #efc1cd 100%);
  color: var(--green-600);
  box-shadow:
    0 14px 26px rgba(157, 15, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.icon-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 48%);
  pointer-events: none;
}

.icon-chip svg {
  position: relative;
  width: 32px;
  height: 32px;
  stroke-width: 1.65;
}

.service-kicker {
  margin-bottom: 8px;
  color: var(--green-600);
  font-size: 0.9rem;
  font-weight: 850;
}

.service-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.tools-section {
  width: min(1160px, calc(100% - 40px));
  padding: 76px clamp(20px, 4vw, 52px);
  border: 1px solid rgba(234, 210, 217, 0.86);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(197, 23, 54, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(197, 23, 54, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(248, 237, 241, 0.96), rgba(255, 249, 247, 1)),
    var(--mist);
  background-size:
    36px 36px,
    36px 36px,
    auto,
    auto;
  box-shadow: 0 24px 60px rgba(77, 10, 25, 0.08);
}

.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tool-card {
  min-height: 196px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(40px, auto) 72px minmax(48px, auto);
  align-content: center;
  justify-items: center;
  row-gap: 8px;
  padding: 20px 14px;
  color: var(--text);
  text-align: center;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 3px solid transparent;
  pointer-events: none;
  transition: border-color 180ms ease;
}

.tool-card.active {
  border-color: rgba(197, 23, 54, 0.5);
  background:
    linear-gradient(180deg, #fff7f7, #fff0f3),
    #fff2f4;
  box-shadow: 0 14px 32px rgba(157, 15, 42, 0.1);
}

.tool-card.active::before {
  border-bottom-color: var(--green-500);
}

.tool-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(145deg, #741226, #2a0711 76%);
  color: var(--off-white);
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  box-shadow:
    0 14px 26px rgba(42, 7, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tool-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}

.tool-card.active .tool-icon {
  background:
    linear-gradient(145deg, #df1d43, #741226 80%);
}

.tool-card strong,
.tool-card > span:not(.tool-icon) {
  display: block;
}

.tool-card strong {
  grid-column: 1;
  grid-row: 1;
  color: var(--navy-950);
  font-size: 1.04rem;
  line-height: 1.18;
}

.tool-card > span:not(.tool-icon) {
  grid-column: 1;
  grid-row: 3;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.tool-panel {
  min-height: 380px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tool-pane-heading {
  margin-bottom: 22px;
}

.tool-pane-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy-900);
  font-weight: 820;
}

.input-wrap,
select {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--muted);
}

.input-wrap {
  padding: 0 14px;
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

select {
  appearance: auto;
  padding: 0 14px;
}

.input-wrap:focus-within,
select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(197, 23, 54, 0.13);
}

.tool-actions {
  margin-top: 18px;
}

.result-box {
  display: block;
  min-height: 118px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(197, 23, 54, 0.26);
  border-radius: 12px;
  background: #fff2f4;
  color: var(--navy-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.result-title {
  display: block;
  margin-bottom: 4px;
  color: var(--green-600);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-value {
  display: block;
  color: var(--navy-950);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.2;
}

.result-detail {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.timer-display {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(145deg, #2a0711, #16050a),
    var(--navy-900);
  color: var(--off-white);
  font-size: 4.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 920;
  line-height: 1;
}

.timer-actions {
  margin-top: 18px;
}

.laps {
  display: grid;
  gap: 6px;
  max-height: 130px;
  margin: 18px 0 0;
  padding-left: 24px;
  overflow: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tool-note {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.psych-section {
  border-bottom: 1px solid var(--line);
}

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

.topic-card {
  min-height: 136px;
  padding: 20px;
}

.topic-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 0.86rem;
  font-weight: 900;
}

.topic-card strong {
  display: block;
  color: var(--navy-950);
  font-size: 1.05rem;
  line-height: 1.25;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 42px;
  background: var(--navy-900);
  color: var(--off-white);
}

.final-cta h2 {
  max-width: 620px;
  color: var(--off-white);
}

.final-cta p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 249, 247, 0.78);
}

.site-footer {
  padding: 52px 0 36px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.site-footer p {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--navy-900);
  font-weight: 850;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: var(--mist);
  color: var(--green-600);
  transform: translateY(-1px);
}

.contact-links svg {
  width: 23px;
  height: 23px;
  color: var(--green-600);
  stroke-width: 1.8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 780;
}

.footer-bottom p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--whatsapp);
  color: white;
  box-shadow:
    0 16px 36px rgba(22, 5, 10, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(22, 5, 10, 0.3);
  filter: saturate(1.08);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.whatsapp-disabled {
  cursor: help;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --container: min(944px, calc(100% - 32px));
  }

  .site-header {
    padding-inline: 16px;
  }

  .site-nav {
    gap: 0;
    font-size: 0.88rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px;
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-media img {
    min-height: 390px;
  }

  h1 {
    max-width: 13ch;
    font-size: 3.7rem;
  }

  .service-grid,
  .psych-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    min-height: 620px;
    padding: 42px;
  }

  .hero-media,
  .hero-media img {
    min-height: 380px;
  }

  .hero-lead {
    font-size: 1.72rem;
  }
}

@media (max-width: 820px) {
  #sobre { padding-top: 32px; }

  .stats-strip {
    grid-template-columns: repeat(3, minmax(175px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .stat-card { min-height: 92px; padding: 14px; }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 73px 0 0;
    z-index: 40;
    background: rgba(22, 5, 10, 0.2);
  }

  .menu-toggle {
    display: block;
    z-index: 52;
  }

  .site-nav {
    position: fixed;
    top: 73px;
    right: 16px;
    left: 16px;
    z-index: 51;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    margin-top: 14px;
    padding: 32px;
    border-radius: 20px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-lead {
    font-size: 1.6rem;
  }

  .about-layout,
  .credential-grid,
  .footer-main,
  .footer-bottom,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-bottom,
  .final-cta {
    display: grid;
  }

  .portrait-card {
    position: static;
  }

  .form-grid,
  .service-grid,
  .psych-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tool-card { min-height: 188px; }
}

@media (max-width: 520px) {
  :root {
    --container: calc(100% - 28px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding: 24px;
  }

  h1 {
    font-size: 2.38rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-actions,
  .tool-actions,
  .timer-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-media,
  .hero-media img,
  .portrait-card,
  .portrait-card img {
    min-height: 0;
  }

  .hero-badge {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .tools-section {
    width: var(--container);
    padding: 48px 16px;
    border-radius: 18px;
  }

  .tool-panel {
    padding: 18px;
  }

  .tool-card {
    min-height: 192px;
    padding: 18px 12px;
  }

  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card strong { font-size: 0.94rem; }
  .tool-card > span:not(.tool-icon) { font-size: 0.8rem; }

  .timer-display {
    min-height: 120px;
    font-size: 2.8rem;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .final-cta {
    padding: 28px;
  }
}

[data-theme="dark"] {
  --navy-950: #fff4f1;
  --navy-900: #f2d8d9;
  --navy-800: #4d0a19;
  --green-600: #f194a9;
  --green-500: #c92c4e;
  --green-100: #4a1d2b;
  --off-white: #fff9f7;
  --paper: #21191d;
  --mist: #2a1d23;
  --line: #49313a;
  --text: #f6ebeb;
  --muted: #d0b8bf;
  --soft: #ac939c;
  --grid-line: rgba(236, 137, 160, 0.055);
  --header-bg: rgba(25, 17, 22, 0.93);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), linear-gradient(180deg, var(--grid-line) 1px, transparent 1px), linear-gradient(180deg, #171216, #20171c 55%, #171216);
  background-size: 44px 44px, 44px 44px, auto;
}

[data-theme="dark"] .site-header { border-bottom-color: var(--line); }
[data-theme="dark"] .brand-mark { box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 0 0 1px var(--line); }
[data-theme="dark"] .stats-strip .stat-card { background: linear-gradient(180deg, #2c2026, #21191d); box-shadow: 0 16px 34px rgba(0,0,0,.22); }
[data-theme="dark"] .service-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .topic-card { background: linear-gradient(180deg, #2b2025, #21191d); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
[data-theme="dark"] .icon-chip { background: linear-gradient(145deg, #592032, #351922); border-color: #804054; color: #ffd3dc; box-shadow: 0 12px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08); }
[data-theme="dark"] .icon-chip::before { background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 48%); }
[data-theme="dark"] .tools-section { border-color: var(--line); background: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), linear-gradient(180deg, var(--grid-line) 1px, transparent 1px), linear-gradient(135deg, #261b21, #1c171b); background-size: 36px 36px, 36px 36px, auto; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
[data-theme="dark"] .tool-card.active { border-color: #ad4760; background: linear-gradient(180deg, #4a2530, #301d25); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
[data-theme="dark"] .tool-panel { background: #21191d; }
[data-theme="dark"] .input-wrap,
[data-theme="dark"] select { background: #30252a; border-color: #69424e; color: #f6ebeb; }
[data-theme="dark"] .input-wrap input { color: #ffffff; caret-color: #ffffff; }
[data-theme="dark"] input::placeholder { color: #cbb9be; opacity: 1; }
[data-theme="dark"] select option { background: #30252a; color: #ffffff; }
[data-theme="dark"] .input-wrap > span { color: #dfc4cb; }
[data-theme="dark"] .result-box { background: #35202a; color: var(--text); box-shadow: none; }
[data-theme="dark"] .hero .eyebrow,
[data-theme="dark"] .final-cta .eyebrow { color: #ffc7d5; }
[data-theme="dark"] .secondary:not(.on-dark) { background: var(--paper); color: var(--text); }
[data-theme="dark"] .final-cta { background: #3b1422; }
[data-theme="dark"] .final-cta h2 { color: #fff9f7; }
[data-theme="dark"] .menu-toggle span:not(.sr-only) { background: var(--text); }
