/* Stoa · site. Tokens espelham lib/theme.dart (AppColors). */
:root {
  --navy: #2A2519;
  --navy-deep: #1B170F;
  --sky-top: #55342A;
  --sky-mid: #B8704E;
  --sky-low: #EBD3B0;
  --mist: #F6EFE3;
  --cloud: #FBF8F2;
  --line: #EAE0D0;
  --border: #D6C7AF;
  --muted: #6B6152;
  --gold: #B7832F;
  --gold-text: #8A5E17;

  --bg: var(--mist);
  --surface: #FBF8F2;
  --text: var(--navy);
  --text-2: var(--muted);
  --accent-text: var(--gold-text);
  --outline: rgba(42, 37, 25, .18);
  --shadow: 0 6px 18px rgba(42, 37, 25, .13), 0 1px 3px rgba(42, 37, 25, .08);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130D;
    --surface: #241E15;
    --text: #F3EBDD;
    --text-2: #BCAF99;
    --accent-text: #E2B565;
    --line: #3A3023;
    --border: #4E4130;
    --outline: rgba(243, 235, 221, .14);
    --shadow: 0 6px 18px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17130D;
  --surface: #241E15;
  --text: #F3EBDD;
  --text-2: #BCAF99;
  --accent-text: #E2B565;
  --line: #3A3023;
  --border: #4E4130;
  --outline: rgba(243, 235, 221, .14);
  --shadow: 0 6px 18px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* Idioma: um só bloco aparece por vez. */
html[data-lang="pt"] [data-l]:not([data-l~="pt"]),
html[data-lang="en"] [data-l]:not([data-l~="en"]),
html[data-lang="es"] [data-l]:not([data-l~="es"]),
html[data-lang="fr"] [data-l]:not([data-l~="fr"]),
html[data-lang="de"] [data-l]:not([data-l~="de"]),
html[data-lang="it"] [data-l]:not([data-l~="it"]),
html[data-lang="ru"] [data-l]:not([data-l~="ru"]) { display: none !important; }
.legal-note { font-style: italic; opacity: .8; margin: 0 0 24px; }
select.lang-btn { padding-right: 12px; text-align: center; }
select.lang-btn option { color: #2A2519; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.overline {
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 12px;
}
.serif { font-family: var(--serif); }

/* ---------- Céu (igual ao SkyBackground do app) ---------- */
.sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-low) 100%);
}
.sky::before { /* sol */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 26% 78%, rgba(255, 221, 166, .7), rgba(255, 221, 166, 0) 46%);
  z-index: -2;
}
.sky::after { /* escurece o topo para o texto branco ter contraste */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 15, 9, .5) 0%, rgba(32, 15, 9, .32) 35%, rgba(32, 15, 9, 0) 66%);
  z-index: -1;
  pointer-events: none;
}
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute;
  width: var(--w, 260px);
  aspect-ratio: 2.4;
  opacity: var(--o, .9);
  animation: drift var(--d, 120s) linear infinite;
  animation-delay: var(--delay, 0s);
  filter: blur(var(--b, 2px));
}
.cloud::before, .cloud::after, .cloud span {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud::before { width: 46%; height: 92%; left: 18%; bottom: 8%; }
.cloud::after { width: 38%; height: 74%; left: 48%; bottom: 8%; }
.cloud span { width: 100%; height: 46%; left: 0; bottom: 0; border-radius: 999px; }
@keyframes drift {
  from { transform: translateX(-30vw); }
  to { transform: translateX(130vw); }
}
.cloud-bank {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -60px;
  height: 200px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, var(--bank, var(--bg)) 70%, transparent) 0% 100% / 260px 220px repeat-x,
    radial-gradient(closest-side, var(--bank, var(--bg)) 70%, transparent) 130px 120% / 300px 240px repeat-x,
    linear-gradient(transparent 48%, var(--bank, var(--bg)) 48%);
}

/* ---------- Topo ---------- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 22px/1 var(--serif);
  color: #fff;
  text-shadow: 0 2px 14px rgba(32, 15, 9, .45);
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(27, 23, 15, .3); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a {
  color: #fff;
  text-decoration: none;
  font: 500 14px/1 var(--sans);
  padding: 10px 10px;
  border-radius: 999px;
}
.top nav a:hover { background: rgba(255, 255, 255, .14); }
.lang-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(27, 23, 15, .18);
  color: #fff;
  font: 600 12px/1 var(--sans);
  letter-spacing: .06em;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}
.lang-btn:hover { background: rgba(27, 23, 15, .3); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-bottom: 120px; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 32px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 56px; }
}
.hero .overline { color: #fff; opacity: .9; text-shadow: 0 2px 10px rgba(32, 15, 9, .5); }
.hero h1 {
  font: 600 clamp(44px, 7vw, 76px)/1.02 var(--serif);
  margin: 0 0 20px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 18px rgba(32, 15, 9, .45);
  text-wrap: balance;
}
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  max-width: 34em;
  margin: 0 0 28px;
  text-shadow: 0 1px 10px rgba(32, 15, 9, .5);
}
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: var(--navy-deep);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(27, 23, 15, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27, 23, 15, .35); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font: 500 11px/1.2 var(--sans); opacity: .8; }
.store b { display: block; font: 600 17px/1.2 var(--sans); }
.store[aria-disabled="true"] { cursor: default; }
.soon { font-size: 13px; opacity: .9; text-shadow: 0 1px 8px rgba(32, 15, 9, .5); }

/* ---------- Celular com o chat ---------- */
.phone {
  justify-self: center;
  width: min(340px, 100%);
  aspect-ratio: 9 / 18.6;
  border-radius: 46px;
  padding: 10px;
  background: #1B170F;
  box-shadow: 0 30px 60px rgba(27, 23, 15, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  position: relative;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 45%, var(--sky-low));
  color: var(--navy);
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 15, 9, .4), rgba(32, 15, 9, 0) 40%);
  pointer-events: none;
}
.notch {
  position: absolute; top: 10px; left: 50%; translate: -50% 0;
  width: 96px; height: 26px; border-radius: 99px; background: #1B170F; z-index: 3;
}
.screen-head {
  position: relative; z-index: 2;
  padding: 48px 18px 10px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font: 600 17px/1 var(--serif);
  text-shadow: 0 1px 8px rgba(32, 15, 9, .5);
}
.screen-head i { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff; }
.chat {
  position: relative; z-index: 2;
  flex: 1;
  padding: 6px 12px 0;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 85%, transparent);
}
.bubble-q {
  align-self: flex-end;
  max-width: 78%;
  background: var(--navy);
  color: #fff;
  font: 400 13px/1.45 var(--sans);
  padding: 9px 13px;
  border-radius: 18px 18px 4px 18px;
}
.verse {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.verse b { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .04em; color: var(--gold-text); margin-bottom: 3px; }
.verse p { margin: 0; font: 500 15px/1.32 var(--serif); color: var(--navy); }
.ai-note {
  background: rgba(255, 255, 255, .72);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 8px 11px;
  font: 400 11.5px/1.45 var(--sans);
  color: var(--muted);
}
.ai-note strong { color: var(--navy); font-weight: 600; }
.composer {
  position: relative; z-index: 2;
  margin: 8px 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  font: 400 12.5px/1 var(--sans);
  color: var(--muted);
}
.composer span:last-child {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center;
}
.composer svg { width: 14px; height: 14px; }

/* ---------- Seções ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
h2 {
  font: 600 clamp(32px, 4.4vw, 48px)/1.08 var(--serif);
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-lead { color: var(--text-2); font-size: 18px; max-width: 38em; margin: 0 0 40px; }

.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.steps .card::before {
  counter-increment: s;
  content: counter(s);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--accent-text);
  font: 600 18px/1 var(--serif);
  margin-bottom: 16px;
}
.card h3 { font: 600 18px/1.3 var(--sans); margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-2); }

.promise { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .promise-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checks li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--gold); }

.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.features svg { width: 24px; height: 24px; color: var(--accent-text); margin-bottom: 14px; }

.quote {
  text-align: center;
  font: 500 clamp(26px, 3.6vw, 38px)/1.3 var(--serif);
  font-style: italic;
  max-width: 24em;
  margin: 0 auto;
  text-wrap: balance;
}
.quote cite { display: block; margin-top: 16px; font: 600 13px/1 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }

.plans { display: grid; gap: 16px; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plans .card.pro { border-color: var(--gold); }
.plans ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); }
.plans li { margin: 4px 0; }
.fine { color: var(--text-2); font-size: 14px; margin-top: 20px; max-width: 48em; }

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font: 600 17px/1.4 var(--sans);
  padding: 18px 28px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  font: 400 24px/1 var(--sans); color: var(--accent-text);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }
.faq details > div p { margin: 0 0 8px; }

.cta { padding: 96px 0 160px; text-align: center; }
.cta h2 { color: #fff; text-shadow: 0 2px 16px rgba(32, 15, 9, .45); }
.cta p { margin: 0 auto 28px; max-width: 30em; text-shadow: 0 1px 10px rgba(32, 15, 9, .5); font-size: 18px; }
.cta .badges { justify-content: center; }

footer {
  padding: 40px 0 48px;
  color: var(--text-2);
  font-size: 14px;
}
.foot { display: grid; gap: 20px; }
@media (min-width: 768px) { .foot { grid-template-columns: 1fr auto; align-items: start; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0 0 6px; }

/* ---------- Páginas de texto (privacidade, termos, suporte) ---------- */
.page-hero { padding-bottom: 96px; }
.page-hero h1 {
  position: relative; z-index: 1;
  font: 600 clamp(38px, 6vw, 56px)/1.05 var(--serif);
  margin: 24px 0 8px;
  text-shadow: 0 2px 18px rgba(32, 15, 9, .45);
}
.page-hero .updated { position: relative; z-index: 1; margin: 0; text-shadow: 0 1px 8px rgba(32, 15, 9, .5); }
.doc { padding-top: 24px; padding-bottom: 48px; }
.doc > * { max-width: 720px; }
.doc h2 { font: 600 28px/1.2 var(--serif); margin: 40px 0 8px; }
.doc h3 { font: 600 17px/1.4 var(--sans); margin: 24px 0 4px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent-text); }
.doc .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 20px 0;
}
.doc .box p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 20px 24px; margin: 8px 0 32px;
}
.contact-card p { margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 600;
}
:root[data-theme="dark"] .btn { background: var(--gold); color: var(--navy-deep) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { background: var(--gold); color: var(--navy-deep) !important; } }

/* ---------- Entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise .6s cubic-bezier(.2, .7, .2, 1) forwards; }
  .rise:nth-child(2) { animation-delay: .09s; }
  .rise:nth-child(3) { animation-delay: .18s; }
  .rise:nth-child(4) { animation-delay: .27s; }
  .chat > * { opacity: 0; animation: rise .5s ease forwards; }
  .chat > :nth-child(1) { animation-delay: .5s; }
  .chat > :nth-child(2) { animation-delay: .9s; }
  .chat > :nth-child(3) { animation-delay: 1.15s; }
  .chat > :nth-child(4) { animation-delay: 1.4s; }
  .chat > :nth-child(5) { animation-delay: 1.75s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; transform: translateX(var(--x, 0)); }
  html { scroll-behavior: auto; }
}

/* Tema escuro: o céu termina num degradê para a noite, sem banco de nuvens. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cloud-bank { background: linear-gradient(transparent, var(--bg) 70%); height: 220px; bottom: 0; }
}
:root[data-theme="dark"] .cloud-bank { background: linear-gradient(transparent, var(--bg) 70%); height: 220px; bottom: 0; }

/* ---------- iPhone realista, inclinado, com o vídeo do app ---------- */
.device-stage {
  justify-self: center;
  position: relative;
  width: min(320px, 78vw);
  perspective: 1800px;
  margin: 8px 0 24px;
}
.iphone {
  --tilt-y: -24deg;
  --tilt-x: 6deg;
  position: relative;
  aspect-ratio: 1206 / 2622;
  width: 100%;
  padding: 3.6%;                      /* borda preta da tela */
  border-radius: 15% / 7%;
  background: #05070B;
  transform: rotateY(var(--tilt-y)) rotateX(var(--tilt-x)) rotateZ(-2deg);
  transform-style: preserve-3d;
  /* Moldura de titânio + espessura da lateral (sombras empilhadas para a direita). */
  box-shadow:
    0 0 0 1.5px #2A2E35,
    0 0 0 3px #8E949C,
    0 0 0 4px #C9CED4,
    0 0 0 5px #6B7079,
    -1px 0 0 5px #7C828A,
    -2px 0 0 5px #747A82,
    -3px 0 0 5px #6A7078,
    -4px 0 0 5px #60666E,
    -5px 0 0 5px #575C64,
    -6px 1px 0 5px #4E535A,
    -7px 1px 0 5px #464A51,
    -8px 1px 0 5px #3E4248;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.device-stage:hover .iphone { --tilt-y: -16deg; --tilt-x: 4deg; }
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12.4% / 5.7%;
  overflow: hidden;
  background: #55342A;
  isolation: isolate;
}
.iphone-screen video, .iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(248deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 30%);
  mix-blend-mode: screen;
}
/* Botões laterais (do lado direito ficam visíveis pela inclinação). */
.iphone > span[class^="btn-"] {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5D626A, #A3A9B0 50%, #5D626A);
}
.btn-action    { left: -13px; top: 17%; height: 4.5%; }
.btn-vol-up    { left: -13px; top: 24%; height: 8%; }
.btn-vol-down  { left: -13px; top: 34%; height: 8%; }
.btn-power     { right: -14px; top: 27%; height: 12%; width: 5px !important; }
.device-shadow {
  position: absolute;
  left: -6%;
  right: 8%;
  bottom: -26px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(27, 23, 15, .45), rgba(27, 23, 15, 0));
  filter: blur(6px);
  z-index: -1;
}
@media (max-width: 899px) {
  .device-stage { width: min(280px, 72vw); margin-top: 16px; }
  .iphone { --tilt-y: -16deg; --tilt-x: 4deg; }
}
@media (prefers-reduced-motion: reduce) {
  .iphone { transition: none; }
}
/* Com a lateral esquerda à mostra, o botão da direita fica escondido. */
.btn-power { display: none; }

/* Arte do topo: o ícone do app (a oliveira com as raízes). */
.hero-art {
  display: block; width: min(320px, 70vw); height: auto; margin: 0 auto;
  border-radius: 22.5%;
  box-shadow: 0 30px 60px rgba(27, 23, 15, .35), 0 0 0 1px rgba(255, 255, 255, .12) inset;
}
