/* ============================================================
   styles.css: Obici Technology (tema claro único)
   - Painéis violeta na cor da marca no topo e no contato
   - Serviços e blocos de conteúdo em cores pastel
   ============================================================ */

:root {
  color-scheme: light;

  /* Cor */
  --paper: #FFFFFF;
  --soft: #F7F5FB;
  --lilac: #F4EFFF;
  --lilac-2: #EAE1FF;
  --ink: #17122B;
  --ink-hover: #2C2445;
  --muted: #625C78;
  --line: #E7E3F0;
  --brand: #7B3AE0;
  --brand-deep: #2E1366;
  --magenta: #C641C9;
  --indigo: #5B56CC;

  --peach: #FFE9DD;
  --mint: #DDF5EA;
  --sky: #E3EEFF;
  --sun: #FFF3C9;

  --panel:
    radial-gradient(80% 90% at 85% 10%, rgba(214, 92, 214, .45), transparent 60%),
    linear-gradient(155deg, #29105E 0%, #4A1E9E 50%, #7433C9 100%);

  /* Tipografia */
  --font-display: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  --font-text: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Geometria */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --edge: clamp(8px, 1.6vw, 24px);
  --nav-h: 72px;
}

/* =================== BASE =================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.modal-open,
body.sheet-open { overflow: hidden; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lilac-2); color: var(--ink); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
}

/* =================== BOTÕES =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-hover); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--lilac); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }

/* =================== NAVBAR =================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .2s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.brand__suffix { font-weight: 400; color: var(--muted); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav__menu a { color: var(--muted); transition: color .15s ease; }
.nav__menu a:hover { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Seletor de idioma */
.lang-toggle { position: relative; }
.lang-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.lang-toggle__btn:hover,
.lang-toggle.is-open .lang-toggle__btn { background: var(--soft); color: var(--ink); }
.lang-toggle__btn svg { transition: transform .15s ease; }
.lang-toggle.is-open .lang-toggle__btn svg { transform: rotate(180deg); }

.lang-toggle__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 48px -20px rgba(46, 19, 102, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.lang-toggle.is-open .lang-toggle__menu { opacity: 1; visibility: visible; transform: none; }

.lang-toggle__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
}
.lang-toggle__option:hover { background: var(--soft); }
.lang-toggle__option-code {
  width: 42px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.lang-toggle__option-check { margin-left: auto; color: var(--brand); opacity: 0; }
.lang-toggle__option.is-active { font-weight: 600; background: var(--lilac); }
.lang-toggle__option.is-active .lang-toggle__option-check { opacity: 1; }

/* =================== PAINEL VIOLETA (hero, contato, 404) =================== */
.panel {
  position: relative;
  margin-inline: var(--edge);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--panel);
  color: #fff;
  overflow: hidden;
}

/* =================== HERO =================== */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 5vw, 64px);
}

.hero__tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
}
.hero__title {
  margin: 24px 0 22px;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -.045em;
}
/* Frase do título sorteada no <head> (data-hero-pick); sem JavaScript fica a primeira */
.hero__pick[data-pick="2"],
[data-hero-pick="2"] .hero__pick[data-pick="1"] { display: none; }
[data-hero-pick="2"] .hero__pick[data-pick="2"] { display: inline; }
.hero__lead {
  max-width: 32em;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 44px;
}
.hero__facts div { font-size: 14px; color: rgba(255, 255, 255, .78); line-height: 1.3; }
.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
}

/* Vitrine: painel web atrás, app na frente cobrindo só a barra lateral */
.showcase {
  position: relative;
  height: 600px;
  max-width: 620px;
  margin-left: auto;
}
.showcase .window { position: absolute; top: 24px; left: 84px; right: 0; }
.showcase .phone { position: absolute; left: 0; bottom: 0; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.platforms li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lilac);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .showcase { width: 100%; margin-inline: auto; }
}
@media (max-width: 700px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { gap: 16px 28px; }
  .hero__facts strong { font-size: 24px; }
  .showcase { width: 236px; height: 504px; }
  .showcase .window { display: none; }
}

/* =================== MOCKS (painel web e app) =================== */
.window, .phone {
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Funnel Sans', sans-serif;
  color: var(--ink);
  font-family: var(--ui);
  text-align: left;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

/* Painel web */
.window {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12),
    0 50px 100px -40px rgba(10, 4, 30, .75),
    0 20px 40px -20px rgba(10, 4, 30, .35);
}
.window__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  background: #F4F2F8;
  border-bottom: 1px solid #E9E6F0;
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.window__dots i:nth-child(2) { background: #FEBC2E; }
.window__dots i:nth-child(3) { background: #28C840; }
.window__url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #E9E6F0;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.dash {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  height: 352px;
  font-size: 12px;
}
.dash__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: #FAF9FD;
  border-right: 1px solid #EEEBF4;
}
.dash__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 14px;
  font-size: 12.5px;
  font-weight: 700;
}
.dash__brand i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #FF8A65, #7B3AE0);
}
.dash__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.dash__link.is-on { background: #EFE8FF; color: var(--brand); font-weight: 600; }

.dash__main { min-width: 0; padding: 16px 18px; }
.dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.dash__head strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.dash__range {
  padding: 3px 9px;
  border: 1px solid #E9E6F0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.dash__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dash__kpi {
  padding: 10px 12px;
  border: 1px solid #EEEBF4;
  border-radius: 12px;
}
.dash__kpi small { display: block; color: var(--muted); font-size: 10.5px; }
.dash__kpi b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.dash__kpi em,
.dash__chart-head span {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #E3F6EC;
  color: #12825A;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 3px;
}
.dash__chart {
  margin-top: 12px;
  padding: 12px 14px 12px;
  border: 1px solid #EEEBF4;
  border-radius: 12px;
}
.dash__chart-head { display: flex; align-items: center; justify-content: space-between; }
.dash__chart-head small { color: var(--muted); font-size: 10.5px; }
.dash__chart-head span { margin: 0; vertical-align: 0; }
.dash__plot { position: relative; height: 150px; margin-top: 8px; }
.dash__plot svg { width: 100%; height: 100%; overflow: visible; }
.dash__dot {
  position: absolute;
  right: -5px;
  top: calc(22 / 110 * 100% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(123, 58, 224, .18);
}

/* App mobile */
.phone {
  width: 236px;
  padding: 8px;
  border-radius: 42px;
  background: #15121D;
  box-shadow:
    inset 0 0 0 1.5px #3A3546,
    0 50px 90px -30px rgba(10, 4, 30, .8),
    0 18px 36px -18px rgba(10, 4, 30, .5);
}
.phone__screen {
  position: relative;
  height: 488px;
  overflow: hidden;
  border-radius: 34px;
  background: #FBFAFE;
}
.phone__status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px 0 24px;
  font-size: 12.5px;
  font-weight: 600;
}
.phone__island {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 62px;
  height: 20px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone__sys { display: flex; align-items: center; gap: 3px; fill: currentColor; }

.app { padding: 4px 14px 0; }
.app__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.app__hello { display: block; color: var(--muted); font-size: 11.5px; }
.app__title { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.app__me {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9B5FF, #7B3AE0);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E9E1FF;
}

.app__next {
  position: relative;
  display: block;
  padding: 14px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(214, 92, 214, .5), transparent 60%),
    linear-gradient(150deg, #4A1E9E, #7B3AE0);
  box-shadow: 0 12px 24px -14px rgba(74, 30, 158, .8);
}
.app__next-label { display: block; max-width: calc(100% - 80px); font-size: 10.5px; opacity: .75; }
.app__next-time { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.app__next-what { display: block; font-size: 11.5px; opacity: .85; }
.app__next-row { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.app__doc {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD7BF, #EE9B74);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6);
}
.app__doc-name { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.app__confirm {
  position: absolute;
  top: 11px;
  right: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
}

.app__week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 14px 0;
}
.app__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 0;
  border-radius: 12px;
  border: 1px solid #ECE8F3;
  background: #fff;
}
.app__day small { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.app__day b { font-size: 14px; font-weight: 700; }
.app__day.is-on { background: var(--ink); border-color: var(--ink); }
.app__day.is-on small { color: rgba(255, 255, 255, .65); }
.app__day.is-on b { color: #fff; }

.app__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid #ECE8F3;
  background: #fff;
}
.app__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.app__ico--mint { background: var(--mint); color: #1C7A55; }
.app__ico--peach { background: var(--peach); color: #B4582A; }
.app__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.app__txt b { overflow: hidden; font-size: 12px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.app__txt small { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.app__chev { flex: none; color: #A9A4B8; }

.app__tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 66px;
  padding: 8px 6px 18px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #ECE8F3;
}
.app__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #A9A4B8;
}
.app__tab small { font-size: 9px; font-weight: 600; }
.app__tab.is-on { color: var(--brand); }
.phone__home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

/* =================== SEÇÕES =================== */
.section { padding-block: var(--section); }
/* Seções brancas seguidas: um único espaçamento entre elas, não dois somados */
.section:not(.process) + .section:not(.process) { padding-top: 0; }

.section__head {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.section__title { font-size: clamp(32px, 4.2vw, 52px); }
.section__lead {
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

/* O que você precisa? (guia para quem não é da área) */
.needs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.need {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: var(--tint);
  transition: transform .2s ease, box-shadow .2s ease;
}
.need:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(46, 19, 102, .4); }
.need--peach { --tint: var(--peach); }
.need--mint { --tint: var(--mint); }
.need--lilac { --tint: var(--lilac-2); }
.need--sky { --tint: var(--sky); }
.need--sun { --tint: var(--sun); }
.need--wa { --tint: #DCF7E4; grid-column: span 2; }
.need__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .75);
}
.need--wa .need__ico { color: #128C4A; }
.need__text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  text-wrap: pretty;
}
.need__rec {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
  padding: 16px 48px 0 0;
  border-top: 1px solid rgba(23, 18, 43, .1);
}
.need__rec small { font-size: 12.5px; color: var(--muted); }
.need__rec strong { font-size: 16px; font-weight: 600; }
.need__time { font-size: 13.5px; color: var(--muted); }
.need__go {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.need:hover .need__go { transform: translateX(3px); }

@media (max-width: 1024px) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .needs { grid-template-columns: 1fr; }
  .need--wa { grid-column: auto; }
  .need__text { font-size: 19px; }
}

/* Cases: apps na primeira linha, plataformas e sites na segunda */
.cases {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.case { grid-column: span 3; }
.case--app { grid-column: span 4; }

.case__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border-radius: 28px;
  background: var(--soft);
  transition: background-color .2s ease;
}
.case__link:hover { background: var(--lilac); }

.case__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  background: var(--tint, var(--lilac));
}
.case--app .case__cover {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 18px 0;
}
.case--app .case__cover img {
  width: calc((100% - 20px) / 3);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 14px 28px -14px rgba(23, 18, 43, .45);
}
.case--app .case__cover img:nth-child(2) { margin-top: 16px; }

.case__browser {
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 14px 30px -14px rgba(23, 18, 43, .4);
}
.case__dots {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 8px;
  background: #F4F2F8;
}
.case__dots i { width: 6px; height: 6px; border-radius: 50%; background: #D8D3E4; }
.case__browser img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}

.case__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 10px 8px;
}
.case__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.case__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(23, 18, 43, .08);
}
.case h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.case p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}
.case__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 1024px) {
  .case,
  .case--app { grid-column: span 6; }
}
@media (max-width: 640px) {
  .case,
  .case--app { grid-column: 1 / -1; }
}

/* Serviços e investimento */
.anchor-alias { display: block; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 28px;
}
.plan--peach { background: var(--peach); }
.plan--mint { background: var(--mint); }
.plan--lilac { background: var(--lilac-2); }
.plan--sky { background: var(--sky); }
.plan--sun { background: var(--sun); }

.plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan__term {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.plan.is-highlight { animation: plan-glow 2.4s ease; }
@keyframes plan-glow {
  0%, 55% { box-shadow: 0 0 0 3px var(--brand), 0 24px 48px -24px rgba(123, 58, 224, .6); }
  100% { box-shadow: 0 0 0 0 rgba(123, 58, 224, 0); }
}

.plan__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
}
.plan h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.plan__desc { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan__list {
  display: grid;
  gap: 7px;
  margin: 20px 0 28px;
  font-size: 14.5px;
}
.plan__list li { position: relative; padding-left: 18px; }
.plan__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}
.plan__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 18, 43, .1);
}
.plan__price small { display: block; font-size: 13px; color: var(--muted); }
.plan__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.plan__price strong::first-letter { text-transform: uppercase; }
.plan__price span { display: block; font-size: 13.5px; color: var(--muted); }

.plan--help {
  justify-content: space-between;
  background: var(--panel);
  color: #fff;
}
.plan--help h3 { margin-top: 0; font-size: 30px; }
.plan--help p { margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: 16px; }
.plan--help .btn { align-self: flex-start; margin-top: 28px; }
/* 4 planos em 3 colunas: o card de ajuda completa a segunda linha */
.plan--help {
  grid-column: span 2;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}
.plan--help h3 { font-size: clamp(30px, 3.4vw, 44px); }
.plan--help p { max-width: 30em; font-size: 18px; }

@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .plan--help { grid-column: auto; }
  .plan { padding: 24px; }
}

/* Por que Obici */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.why__item {
  padding: 28px;
  border-radius: 24px;
  background: var(--soft);
}
.why__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 0 var(--line);
}
.why__item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}
.why__item p { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .why { grid-template-columns: 1fr; }
}

/* Processo: painel lilás com etapas numeradas */
.process {
  margin-inline: var(--edge);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--lilac);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}
.step p { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

/* Stack */
.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stack__group {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.stack__group h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.stack__group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__group li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .stack { grid-template-columns: 1fr; }
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 88px);
  align-items: start;
}
.faq .section__head { margin-bottom: 0; }
.faq__more { justify-self: start; margin-top: 8px; }

.faq__list { display: grid; gap: 10px; }
.faq__item {
  border-radius: 20px;
  background: var(--soft);
  transition: background-color .2s ease;
}
.faq__item:has([aria-expanded="true"]) { background: var(--lilac); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1.5px;
  margin-top: -.75px;
  background: var(--ink);
  transition: transform .2s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a p {
  padding: 0 64px 22px 22px;
  color: var(--muted);
}

@media (min-width: 961px) {
  .faq .section__head { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; }
}

/* Contato */
.contact { padding-block: clamp(64px, 8vw, 104px); text-align: center; }
.contact__title { font-size: clamp(36px, 5.4vw, 68px); }
.contact__lead {
  max-width: 34em;
  margin: 18px auto 0;
  font-size: 18px;
  color: rgba(255, 255, 255, .84);
}
.contact__mail {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 255, 255, .4);
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color .15s ease;
}
.contact__mail:hover { text-decoration-color: #fff; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* =================== FOOTER =================== */
.footer {
  padding: clamp(56px, 7vw, 80px) 0 32px;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__brand p {
  max-width: 32ch;
  margin-top: 16px;
  color: var(--muted);
}
.footer__col h2 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.footer__col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__col:last-child { grid-column: 1 / -1; }
}

/* =================== MODAL =================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
/* Ao abrir, a visibilidade muda na hora (sem transição) para o foco poder entrar no modal */
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 43, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 32px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 40px 100px -30px rgba(46, 19, 102, .5);
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__dialog:focus { outline: none; }
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
}
.modal__close:hover { color: var(--ink); background: var(--lilac); }
.modal__title {
  padding-right: 44px;
  font-size: 28px;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.modal__lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
.modal__options {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.modal__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: border-color .15s ease, background-color .15s ease;
}
.modal__option:hover { border-color: var(--brand); background: var(--soft); }
.modal__option-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.modal__option strong { display: block; font-weight: 600; }
.modal__option small { display: block; font-size: 14px; color: var(--muted); }
.modal__option > svg { margin-left: auto; flex: none; color: var(--muted); }
.modal__foot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.modal__foot a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =================== FORMULÁRIOS (formulario.html) =================== */
.fhero { padding-block: clamp(36px, 5vw, 64px); }
.fhero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.fhero__back:hover { color: #fff; }
.fhero__title { margin-top: 20px; font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
.fhero__lead {
  max-width: 40em;
  margin-top: 16px;
  font-size: 18px;
  color: rgba(255, 255, 255, .84);
  text-wrap: pretty;
}
.ftypes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ftypes a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s ease;
}
.ftypes a:hover { background: rgba(255, 255, 255, .2); }
.ftypes a[aria-current="page"] { background: #fff; color: var(--brand-deep); border-color: #fff; }

.fbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px 32px;
  align-items: start;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: var(--section);
}

.faside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 28px;
  border-radius: 28px;
  background: var(--lilac);
}
.faside h2 { font-size: 22px; letter-spacing: -.02em; }
.faside__steps { display: grid; gap: 16px; margin: 20px 0 24px; }
.faside__steps li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.faside__steps b {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
}
.faside__talk { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.faside .btn { width: 100%; }
.faside__send { height: 54px; margin-bottom: 24px; font-size: 16px; }
.qbar { display: none; }
.form-done .faside__send,
.form-done .qbar { display: none; }

.qform { display: grid; gap: 16px; }
.qsec {
  padding: 28px clamp(20px, 3vw, 32px) 12px;
  border-radius: 28px;
  background: var(--soft);
}
.qsec__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.qsec__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-text);
  font-size: 14px;
}
.q { padding: 20px 0; }
.q + .q { border-top: 1px solid var(--line); }
.q__label { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.q__opt { font-size: 13px; font-weight: 500; color: var(--muted); }
.q__hint { margin-top: 4px; font-size: 14px; color: var(--muted); }

.q__choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 640px;
  margin-top: 14px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: #CFC7E2; }
.choice input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 2px solid #C5BDD8;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.choice input[type="checkbox"] { border-radius: 6px; }
.choice input:checked { border-color: var(--brand); background: var(--brand); }
.choice input[type="radio"]:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.choice input[type="checkbox"]:checked {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.choice input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--lilac); }

.field {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: #A7A1B8; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(123, 58, 224, .15); }
textarea.field { min-height: 120px; line-height: 1.5; resize: vertical; }

.q.is-invalid .field,
.q.is-invalid .choice { border-color: #D64555; }
.q__error { margin-top: 8px; font-size: 14px; font-weight: 600; color: #B3261E; }

.qform__alert {
  padding: 14px 18px;
  border-radius: 16px;
  background: #FDECEC;
  color: #8C1D18;
  font-weight: 600;
}
.qform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 8px 4px 0;
}
.qform__submit { height: 56px; padding: 0 26px 0 12px; font-size: 16px; }
.send-glyph {
  box-sizing: content-box;
  padding: 8px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.btn[disabled] { opacity: .7; cursor: progress; }
.qform__fail {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #FFF4E5;
  color: #6B3A00;
}
.qform__fail-text { font-weight: 600; }
.qform__fail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fdone .btn--ink .wa-glyph {
  box-sizing: content-box;
  padding: 7px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
}
.qform__note { flex: 1 1 260px; font-size: 14px; color: var(--muted); }

.fdone {
  padding: clamp(32px, 5vw, 48px);
  border-radius: 28px;
  background: var(--mint);
  text-align: center;
}
.fdone:focus { outline: none; }
.fdone__ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #1C7A55;
}
.fdone__title { margin-top: 18px; font-size: clamp(26px, 3.4vw, 36px); }
.fdone__text { max-width: 34em; margin: 12px auto 0; color: var(--muted); }
.fdone__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

@media (max-width: 900px) {
  .fbody { grid-template-columns: 1fr; }
  .faside { position: static; }
  .faside__send { display: none; }
  .qbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    z-index: 58;
    display: flex;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
  }
  .qbar__send { flex: 1; height: 50px; font-size: 16px; }
  .page-form { padding-bottom: calc(var(--tabbar-h) + 72px + env(safe-area-inset-bottom)); }
  .form-done.page-form { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .qform__submit { width: 100%; justify-content: center; }
}

/* =================== 404 =================== */
.notfound { padding-block: clamp(56px, 8vw, 104px); }
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(96px, 16vw, 200px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .9;
  opacity: .9;
}
.notfound__title { margin-top: 28px; font-size: clamp(32px, 4.4vw, 56px); max-width: 18ch; }
.notfound__lead {
  max-width: 32em;
  margin-top: 16px;
  font-size: 18px;
  color: rgba(255, 255, 255, .84);
}
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.notfound__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 15px;
  color: rgba(255, 255, 255, .78);
}
.notfound__nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.notfound__nav a:hover { background: rgba(255, 255, 255, .2); }

/* =================== WHATSAPP FLUTUANTE =================== */
/* Só o logo do WhatsApp, num círculo verde: fica fixo no canto e
   acompanha a rolagem; no celular, logo acima da tab bar. */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(18, 140, 74, .7), 0 2px 6px rgba(23, 18, 43, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 14px 28px -10px rgba(18, 140, 74, .75), 0 2px 6px rgba(23, 18, 43, .12); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float__label { display: none; }
.footer { padding-bottom: 88px; }

@media (max-width: 900px) {
  .wa-float {
    right: 16px;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  }
}

/* =================== MOBILE: MODO APP =================== */
/* Até 900px o site vira "app": barra superior só com a marca,
   tab bar fixa embaixo e menu em folha que sobe da base. */
.tabbar,
.sheet { display: none; }

@media (max-width: 900px) {
  :root {
    --nav-h: 60px;
    --tabbar-h: 62px;
  }

  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

  .nav { padding-top: env(safe-area-inset-top); }
  .nav__inner { justify-content: center; }
  .nav__menu,
  .nav__actions { display: none; }
  .brand { font-size: 17px; }

  /* Tab bar */
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr); /* se adapta quando uma aba está oculta */
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 4px 4px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    color: #8C87A0;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar__item span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
  .tabbar__item svg {
    box-sizing: content-box;
    padding: 4px 16px;
    border-radius: 999px;
    transition: background-color .2s ease, transform .15s ease;
  }
  .tabbar__item:active svg { transform: scale(.9); }
  .tabbar__item.is-active { color: var(--brand); }
  .tabbar__item.is-active svg { background: var(--lilac-2); }
  .tabbar__item:focus-visible { outline: none; }
  .tabbar__item:focus-visible svg { outline: 2px solid var(--brand); outline-offset: 1px; }

  /* Folha do menu */
  .sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    transition: visibility 0s linear .32s;
  }
  .sheet.is-open { visibility: visible; transition: none; }
  .sheet__overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 18, 43, .4);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .sheet.is-open .sheet__overlay { opacity: 1; }
  .sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 600px;
    max-height: calc(100dvh - 40px);
    margin-inline: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: var(--paper);
    box-shadow: 0 -20px 60px -20px rgba(46, 19, 102, .35);
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  }
  .sheet.is-open .sheet__panel { transform: none; }
  .sheet__panel:focus { outline: none; }

  .sheet__grabber {
    display: block;
    width: 40px;
    height: 5px;
    margin: 0 auto 6px;
    border-radius: 999px;
    background: #DAD5E6;
  }
  .sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 14px;
  }
  .sheet__head h2 { font-size: 28px; }
  .sheet__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--muted);
  }

  .sheet__group {
    overflow: hidden;
    border-radius: 18px;
    background: var(--soft);
  }
  .sheet__group li { position: relative; }
  .sheet__group li + li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 58px;
    right: 0;
    height: 1px;
    background: var(--line);
  }
  .sheet__group a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
  }
  .sheet__group a:active { background: var(--lilac); }
  .sheet__group a > svg:last-child { margin-left: auto; color: #B4AFC2; }
  .sheet__ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .sheet__label {
    margin: 22px 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .sheet__social {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .sheet__social a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    border-radius: 16px;
    background: var(--soft);
    font-size: 13px;
    font-weight: 600;
  }
  .sheet__social a:active { background: var(--lilac); }

  .sheet__langs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--soft);
  }
  .sheet__langs button {
    height: 38px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: background-color .15s ease, color .15s ease;
  }
  .sheet__langs button.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(23, 18, 43, .14);
  }

  .sheet__cta {
    width: 100%;
    height: 54px;
    margin-top: 24px;
    font-size: 16px;
  }

  /* Janela "Iniciar projeto" também sobe da base, como no menu */
  .modal { place-items: end center; padding: 0; }
  .modal__dialog {
    width: min(600px, 100%);
    max-height: calc(100dvh - 40px);
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  }
}

/* =================== MOVIMENTO REDUZIDO =================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}
