/* Tokens: mesmos valores do design do app e da landing. O tema vem de <html data-theme>. */
:root {
  --bg: #F3F0EA; --surface: #FBFAF7; --surface2: #E8E4DC;
  --ink: #1C1B19; --ink2: #5B564E; --ink3: #8C867B;
  --line: rgba(28, 27, 25, .09); --line2: rgba(28, 27, 25, .17);
  --btn: #1C1B19; --btnInk: #F6F3EE; --scrim: rgba(20, 19, 17, .38); --moon: #F4EBD3;
  --fire: oklch(0.54 0.13 24); --air: oklch(0.54 0.13 62); --earth: oklch(0.54 0.13 140); --water: oklch(0.54 0.13 236);
  --fireS: oklch(0.915 0.035 24); --airS: oklch(0.915 0.035 62); --earthS: oklch(0.915 0.035 140); --waterS: oklch(0.915 0.035 236);
  --serif: 'Instrument Serif', serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #121110; --surface: #1B1A17; --surface2: #282521;
  --ink: #EDE9E1; --ink2: #A9A297; --ink3: #7B756B;
  --line: rgba(237, 233, 225, .08); --line2: rgba(237, 233, 225, .17);
  --btn: #EDE9E1; --btnInk: #151412; --scrim: rgba(0, 0, 0, .58); --moon: #E9E1CB;
  --fire: oklch(0.75 0.12 24); --air: oklch(0.75 0.12 62); --earth: oklch(0.75 0.12 140); --water: oklch(0.75 0.12 236);
  --fireS: oklch(0.27 0.04 24); --airS: oklch(0.27 0.04 62); --earthS: oklch(0.27 0.04 140); --waterS: oklch(0.27 0.04 236);
  color-scheme: dark;
}

/* Telas do app (snapshots em screens/): ocultam a barra de rolagem como no app. */
[data-q] *::-webkit-scrollbar { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: 'Hanken Grotesk', 'Noto Sans Symbols', 'Noto Sans Symbols 2', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background .25s, color .25s;
}
/* Os elementos decorativos (losango girando, parallax) passam da largura da tela. */
.page { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }

a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }
section[id] { scroll-margin-top: 80px; }

.wrap { max-width: 1248px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.display { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h2.display { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; margin-top: 14px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span { font-family: var(--serif); font-size: 26px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; background: var(--surface2); border-radius: 18px; padding: 3px; }
.lang button {
  height: 32px; min-width: 36px; padding: 0 10px; border: 0; border-radius: 15px; background: transparent;
  color: var(--ink2); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.lang button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.theme-toggle {
  width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: transparent;
  padding: 0; display: flex; align-items: center; justify-content: center;
}
.theme-toggle i { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); overflow: hidden; }
.theme-toggle i::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: var(--ink); }
.nav-cta {
  height: 38px; padding: 0 18px; border-radius: 19px; background: var(--btn); color: var(--btnInk);
  display: flex; align-items: center; font-size: 14px; font-weight: 600; white-space: nowrap;
}

/* Botões de loja */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  height: 58px; padding: 0 22px 0 18px; border-radius: 14px; background: var(--btn); color: var(--btnInk);
  display: flex; align-items: center; gap: 12px; text-align: left; transition: opacity .15s;
}
.store--invert { background: var(--btnInk); color: var(--btn); }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 11px; opacity: .8; }
.store-text b { font-size: 18px; font-weight: 600; }
.ios-icon {
  width: 22px; height: 22px; border-radius: 6px; border: 1.8px solid currentColor; display: flex; align-items: center; justify-content: center;
}
.ios-icon::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.play-icon { width: 0; height: 0; border-block: 11px solid transparent; border-left: 18px solid currentColor; margin-left: 3px; }
@media (hover: hover) {
  .brand:hover { color: var(--ink2); }
  .store:hover, .nav-cta:hover { opacity: .88; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center;
  padding-block: 72px 40px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: .98; letter-spacing: -.015em; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--water); }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 520px; text-wrap: pretty; }
.free { margin-top: 16px; font-size: 13px; color: var(--ink2); }
.hero-visual { display: flex; justify-content: center; position: relative; min-height: 600px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.spin {
  position: absolute; left: 50%; top: 50%; width: min(520px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 40px; overflow: hidden; opacity: .85;
}
.spin i:nth-child(1) { background: var(--fireS); }
.spin i:nth-child(2) { background: var(--airS); }
.spin i:nth-child(3) { background: var(--earthS); }
.spin i:nth-child(4) { background: var(--waterS); }

/* Celular: 312x656 (moldura de 8px incluída). O JS define --k para caber em telas estreitas. */
.phone-fit {
  flex: none; width: 312px; height: 656px; padding: 8px; transform: scale(var(--k, 1)); transform-origin: top center;
  margin-bottom: calc(656px * (var(--k, 1) - 1));
}
.phone-fit--hero { margin-top: -20px; }
.phone {
  position: relative; width: 296px; height: 640px; border-radius: 44px; overflow: hidden;
  box-shadow: 0 0 0 8px var(--ink), 0 30px 60px rgba(0, 0, 0, .18);
}
.phone--hero { box-shadow: 0 0 0 8px var(--ink), 0 40px 80px rgba(0, 0, 0, .22); }
.phone-screen { width: 390px; height: 844px; transform: scale(.759); transform-origin: 0 0; pointer-events: none; }

/* Manifesto */
.manifesto { padding-block: 40px; }
.manifesto > div { border-top: 1px solid var(--line2); padding-top: 22px; }
.manifesto p { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; text-wrap: balance; max-width: 900px; }

/* Três lentes */
.section { padding-block: 56px; }
.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 40px; }
.lens { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.lens--soon { background: none; border: 1.5px dashed var(--line2); }
.lens-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lens .num { font-family: var(--serif); font-size: 56px; line-height: 1; }
.lens h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.lens p { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.badge-soon { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 10px; background: var(--airS); color: var(--air); }

/* Mapa dos temperamentos */
.map-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.map { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; }
.quads { position: absolute; inset: 0; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 3px; border-radius: 32px; overflow: hidden; }
.quad { padding: 22px; display: flex; flex-direction: column; gap: 3px; }
.quad b { font-size: 15px; font-weight: 700; }
.quad span { font-size: 13px; color: var(--ink2); }
.quad--mel { background: var(--earthS); } .quad--mel b { color: var(--earth); }
.quad--col { background: var(--fireS); align-items: flex-end; } .quad--col b { color: var(--fire); }
.quad--fle { background: var(--waterS); justify-content: flex-end; } .quad--fle b { color: var(--water); }
.quad--san { background: var(--airS); justify-content: flex-end; align-items: flex-end; } .quad--san b { color: var(--air); }
.axis {
  position: absolute; background: var(--bg); padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); white-space: nowrap;
}
.axis--top { top: -11px; left: 50%; transform: translateX(-50%); }
.axis--bottom { bottom: -11px; left: 50%; transform: translateX(-50%); }
.axis--left, .axis--right { top: 50%; transform: translateY(-50%); padding-inline: 10px; letter-spacing: .1em; }
.axis--left { left: 12px; }
.axis--right { right: 12px; }
.map-line { position: absolute; left: 50%; top: 50%; width: 25%; border-top: 1.5px dashed var(--ink2); transform-origin: 0 0; transform: rotate(156.5deg); }
.map-you {
  position: absolute; left: 27%; top: 60%; width: 60px; height: 60px; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid var(--water); display: flex; align-items: center; justify-content: center;
}
.map-you i { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); }
.map-you-tag {
  position: absolute; left: calc(27% + 36px); top: calc(60% - 12px); background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 12px;
}
.map-copy { display: flex; flex-direction: column; }
.map-copy p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.legend div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.legend i { width: 10px; height: 10px; border-radius: 5px; flex: none; }

/* Dica do dia */
.tip-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center;
}
.tip-copy { display: flex; flex-direction: column; }
.tip-copy h2.display { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink3); width: 28px; flex: none; }
.tip { background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.tip-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tip-head .eyebrow { font-size: 11px; }
.tip-badge { display: flex; align-items: center; gap: 6px; background: var(--waterS); color: var(--water); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 12px; }
.tip-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--water); }
.tip p { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.22; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Altura fixa e linha de altura 1: os símbolos (△ ☌ □) vêm de fontes de fallback com métricas
   diferentes e, sem isso, cada chip ganha uma altura de linha e o texto desalinha. */
.chips span {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px;
  font-size: 13px; line-height: 1; white-space: nowrap; background: var(--surface2);
}
.chips span:first-child { background: var(--waterS); }
.chips span:last-child { background: var(--fireS); }

/* Telas do app. No celular, o aparelho fica entre o título e a lista, para a troca ficar visível. */
.screens {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; align-items: center;
  grid-template-areas: 'text phone' 'list phone';
}
.screens-text { grid-area: text; align-self: end; }
.screens-text h2.display { margin-top: 0; max-width: 560px; }
.screens-text p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 480px; text-wrap: pretty; }
.screens-list { grid-area: list; align-self: start; margin-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.screens-phone { grid-area: phone; display: flex; justify-content: center; padding: 12px 0 24px; }
.screen-row {
  display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; opacity: .55; transition: opacity .2s;
}
.screen-row[aria-pressed=true] { opacity: 1; }
.row-head { display: flex; align-items: baseline; gap: 14px; }
.row-num { font-size: 13px; font-weight: 700; width: 24px; font-variant-numeric: tabular-nums; color: var(--ink3); }
.screen-row[aria-pressed=true] .row-num { color: var(--c); }
.row-cap { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.row-desc { display: none; font-size: 15px; line-height: 1.5; color: var(--ink2); padding-left: 38px; }
.screen-row[aria-pressed=true] .row-desc { display: block; }

/* Privacidade */
.privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.privacy h2 { grid-column: 1 / -1; margin: 0 0 12px; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; }
.privacy div { border-top: 1.5px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.privacy b { font-size: 17px; font-weight: 600; }
.privacy span { font-size: 15px; line-height: 1.55; color: var(--ink2); }

/* Chamada final */
.cta-section { padding-block: 56px 72px; }
.cta {
  background: var(--btn); color: var(--btnInk); border-radius: 40px; padding: clamp(36px, 6vw, 72px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cta h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; margin: 0; max-width: 760px; }
.cta p { margin-top: 18px; font-size: 17px; line-height: 1.55; opacity: .78; max-width: 520px; }
.cta .stores { justify-content: center; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 28px 40px; font-size: 14px; color: var(--ink2); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand svg { width: 28px; height: 28px; flex: none; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink2); }

/* Tablet e celular */
@media (max-width: 900px) {
  .screens { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'text' 'phone' 'list'; gap: 0; }
  .screens-phone { padding-block: 28px 8px; }
  .screens-list { margin-top: 16px; }
  .hero-visual { min-height: 0; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .site-header .wrap { padding-block: 10px; gap: 8px; }
  .brand svg { width: 34px; height: 34px; }
  .brand span { font-size: 24px; }
  .nav { gap: 8px; }
  .nav-cta { display: none; } /* os botões da loja estão logo abaixo, na primeira dobra */
  .hero { padding-block: 36px 24px; gap: 40px; }
  .hero h1 { font-size: clamp(40px, 12vw, 48px); }
  .lead { font-size: 17px; margin-top: 18px; }
  .stores { margin-top: 26px; }
  .hero .stores, .cta .stores { width: 100%; }
  .stores .store { flex: 1 1 220px; }
  .section { padding-block: 40px; }
  .manifesto { padding-block: 24px; }
  .lens { padding: 24px; border-radius: 24px; }
  .lens .num { font-size: 48px; }
  .map-section, .tip-card { gap: 36px; }
  .quad { padding: 14px; }
  .quad b { font-size: 14px; }
  .quad span { font-size: 12px; }
  .axis { font-size: 10px; padding: 3px 8px; letter-spacing: .1em; }
  .axis--left, .axis--right { padding-inline: 6px; letter-spacing: .06em; }
  .axis--left { left: 6px; }
  .axis--right { right: 6px; }
  .map-you { width: 44px; height: 44px; }
  .map-you i { width: 14px; height: 14px; border-width: 2px; }
  .map-you-tag { left: calc(27% + 28px); font-size: 12px; padding: 4px 9px; }
  .tip-card { padding: 24px; border-radius: 28px; }
  .tip { padding: 22px; border-radius: 24px; }
  .privacy { gap: 28px; }
  .cta { border-radius: 28px; padding-inline: 22px; }
  .cta p { font-size: 16px; }
  .cta-section { padding-block: 40px 56px; }
  .site-footer .wrap { flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
  .foot-links { justify-content: center; }
}
@media (max-width: 400px) {
  .legend { grid-template-columns: 1fr; }
  .lang button { min-width: 32px; padding: 0 8px; }
}
@media (max-width: 340px) {
  .brand span { font-size: 22px; }
  .brand svg { width: 30px; height: 30px; }
}
