/* MavieOS: página de vendas. Celular primeiro; sem fontes nem recursos externos. */

:root {
  --navy-1: #041e46;          /* RGB 4,30,70: topo do degradê da divulgação */
  --navy-2: #060d1c;          /* RGB 6,13,28: fundo do degradê */
  --aqua: #1fe6b6;            /* RGB 31,230,182: destaque */
  --aqua-ink: #04201a;        /* texto sobre o verde-água */
  --sky: #6cb2f7;             /* RGB 108,178,247 */
  --primary: #0566b2;         /* primary do app (D141) */
  --primary-hover: #04548f;
  --ink: #0b1f3a;             /* foreground do app */
  --ink-soft: #36445a;
  --muted: #626c79;
  --bg: #f0f3f7;
  --card: #ffffff;
  --border: #d7dde5;
  --danger: #b42318;
  --whats: #0f7a40;           /* verde escuro: 5,4:1 com branco */
  --whats-hover: #0b6534;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(11 31 58 / 6%), 0 8px 24px rgb(11 31 58 / 8%);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 72px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--primary); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--aqua); color: var(--aqua-ink); padding: 10px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }
.fine { font-size: 14px; color: var(--muted); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--big { min-height: 56px; font-size: 18px; padding: 14px 28px; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--aqua { background: var(--aqua); color: var(--aqua-ink); box-shadow: 0 6px 20px rgb(31 230 182 / 25%); }
.btn--aqua:hover { background: #4bf0c8; }
.btn--blue { background: var(--primary); color: #fff; }
.btn--blue:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--ghost:hover { background: #e2ecf8; }
.btn--ghost-dark { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn--whats { background: var(--whats); color: #fff; }
.btn--whats:hover { background: var(--whats-hover); }

.linkbtn {
  display: block; margin: 12px auto 0; padding: 10px 12px; min-height: 44px;
  background: none; border: 0; font: inherit; font-size: 15px;
  color: var(--primary); text-decoration: underline; cursor: pointer;
}

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 12px;
}
.eyebrow--blue { color: var(--primary); }

/* Barra do topo */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgb(4 30 70 / 92%);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: #e8eef8; letter-spacing: -0.01em; }
.brand__name span {
  background: linear-gradient(90deg, var(--aqua), #2aa7f0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Herói */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 50% at 85% 10%, rgb(108 178 247 / 22%), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgb(31 230 182 / 10%), transparent 70%),
    linear-gradient(160deg, var(--navy-1), var(--navy-2));
  padding: 36px 0 56px;
}
.hero__grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(34px, 9vw, 58px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--aqua); }
.lead { margin-top: 16px; font-size: 18px; color: #c8d6eb; max-width: 34em; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero__cta .btn { width: 100%; }
.hero__note { color: #c8d6eb; font-size: 16px; }
.hero__note strong { color: var(--aqua); }

.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 12%);
  font-size: 14px; color: #dbe6f5;
}
.chips svg { width: 18px; height: 18px; fill: none; stroke: var(--aqua); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero__media { position: relative; margin: 0; padding-bottom: 28px; }
.screen {
  border-radius: 14px; overflow: hidden;
  background: #fff;
  border: 1px solid rgb(255 255 255 / 18%);
  box-shadow: 0 30px 60px rgb(0 0 0 / 45%), 0 0 0 6px rgb(255 255 255 / 4%);
}
.screen__bar { display: flex; gap: 6px; padding: 8px 10px; background: #dfe5ee; }
.screen__bar i { width: 9px; height: 9px; border-radius: 50%; background: #b8c2d0; }
.hero__paper {
  position: absolute; right: -6px; bottom: -6px;
  width: 34%; max-width: 210px;
  border-radius: 4px;
  transform: rotate(4deg);
  box-shadow: 0 18px 40px rgb(0 0 0 / 45%);
}

/* Seções */
.section { padding: 64px 0; }
.section--white { background: var(--card); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section h2 { font-size: clamp(28px, 7vw, 42px); font-weight: 800; }
.section__sub { margin-top: 12px; color: var(--ink-soft); }

/* Dores */
.pains { display: grid; gap: 20px; }
.pain {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: grid;
}
.pain__text { padding: 24px 22px 20px; }
.pain__quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.4vw, 30px); font-weight: 800; line-height: 1.15;
  color: var(--ink); margin-bottom: 12px;
}
.pain__text p:not(.pain__quote) { color: var(--ink-soft); }
.pain__text strong { color: var(--ink); }
.pain__img {
  width: 100%; background: var(--bg);
  border-top: 1px solid var(--border);
}
.pain__img--paper { padding: 12px 12px 0; background: #e9edf3; }

.pains + .center { margin-top: 36px; }
.pains + .center .btn { width: 100%; max-width: 420px; }

/* Lista de recursos */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.features li {
  position: relative; padding: 11px 14px 11px 46px;
  background: var(--bg); border-radius: 12px; color: var(--ink-soft);
  font-size: 16px; line-height: 1.45;
}
.features li::before {
  content: ""; position: absolute; left: 14px; top: 13px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.features strong { color: var(--ink); }

.gallery {
  margin-top: 36px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  overscroll-behavior-x: contain;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg); }
.gallery figcaption { margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--ink-soft); text-align: center; }
.gallery + .fine { margin-top: 8px; }

/* Quem fez */
.maker { background: linear-gradient(160deg, var(--navy-1), var(--navy-2)); color: #fff; padding: 52px 0; }
.maker__inner { display: grid; gap: 18px; justify-items: start; max-width: 820px; }
.maker__icon { width: 64px; height: 64px; }
.maker h2 { font-size: clamp(26px, 6.4vw, 36px); font-weight: 800; }
.maker p { margin-top: 10px; color: #c8d6eb; font-size: 18px; }

/* Planos */
.plans { display: grid; gap: 18px; }
.plan {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px 22px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan__name { font-size: 28px; font-weight: 800; }
.plan__size { margin-top: 2px; font-weight: 700; font-size: 17px; color: var(--primary); }
.plan__for { margin-top: 4px; color: var(--muted); font-size: 15px; }
.plan--featured .plan__size { color: var(--aqua); }
.plan__price {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em;
}
.plan__price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan__list { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan__list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 16px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #e2ecf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230566b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan--featured {
  color: #fff; border: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(108 178 247 / 25%), transparent 70%),
    linear-gradient(160deg, var(--navy-1), var(--navy-2));
  box-shadow: 0 20px 50px rgb(4 30 70 / 35%);
}
.plan--featured .plan__for, .plan--featured .plan__price small { color: #b9c9e0; }
.plan--featured .plan__list li { color: #dbe6f5; }
.plan--featured .plan__list li::before {
  background-color: rgb(31 230 182 / 18%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fe6b6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
.plan__tag {
  position: absolute; top: -13px; left: 22px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--aqua); color: var(--aqua-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

.more {
  margin-top: 22px; padding: 20px;
  border: 2px dashed var(--border); border-radius: 16px;
  display: grid; gap: 14px; justify-items: center; text-align: center;
  color: var(--ink-soft);
}
.more strong { color: var(--ink); }
.more + .fine { margin-top: 18px; }

/* Dúvidas */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 16px 48px 16px 18px; position: relative;
  font-weight: 700; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 18px 18px; color: var(--ink-soft); }

/* Fechamento e rodapé */
.closing {
  color: #fff; text-align: center; padding: 60px 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgb(31 230 182 / 14%), transparent 70%),
    linear-gradient(160deg, var(--navy-1), var(--navy-2));
}
.closing h2 { font-size: clamp(28px, 7vw, 42px); font-weight: 800; }
.closing h2 span { color: var(--aqua); }
.closing p { margin: 12px auto 26px; color: #c8d6eb; max-width: 30em; }
.closing .btn { width: 100%; max-width: 360px; }

.footer { background: var(--navy-2); color: #b9c9e0; padding: 28px 0 110px; font-size: 15px; text-align: center; }
.footer strong { color: #fff; }
.footer .fine { color: #8fa1bb; margin-top: 6px; }

/* Barra fixa do celular */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(4 30 70 / 96%);
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #dbe6f5; font-size: 15px;
  transform: translateY(0); transition: transform .25s ease, visibility .25s;
}
.stickybar strong { color: #fff; font-size: 17px; }
.stickybar .btn { min-height: 46px; padding: 10px 20px; }
.stickybar.is-hidden { transform: translateY(110%); visibility: hidden; }
.stickybar[hidden] { display: none; }

/* Agendamento (bottom sheet no celular, diálogo no desktop) */
.sheet {
  width: 100%; max-width: 100%; max-height: 94vh; max-height: 94dvh;
  margin: auto 0 0; padding: 0; border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--card); color: var(--ink);
  box-shadow: 0 -10px 40px rgb(0 0 0 / 30%);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(6 13 28 / 62%); }
.sheet[open] { animation: sheet-up .25s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); } to { transform: none; } }

.sheet__body { position: relative; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet__close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.sheet__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.steps { list-style: none; margin: 0 52px 18px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 6px; }
.steps span {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 800; background: var(--border); color: var(--ink);
}
.steps .is-done { color: #0b7a5f; }
.steps .is-done span { background: #c2f0e2; color: #06705f; }
.steps .is-current { color: var(--ink); }
.steps .is-current span { background: var(--primary); color: #fff; }

.sheet h2 { font-size: 26px; font-weight: 800; }
.sheet__lead { margin-top: 6px; color: var(--ink-soft); font-size: 18px; }

.summary {
  margin: 18px 0 20px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(160deg, var(--navy-1), var(--navy-2)); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.summary__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb3d1; }
.summary__plan { font-weight: 800; font-size: 20px; line-height: 1.25; }
.summary__size { font-size: 14px; color: #c8d6eb; }
.summary__right { text-align: right; flex-shrink: 0; }
.summary__price { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.summary__price small { font-size: 14px; font-weight: 600; color: #b9c9e0; }
.summary__trial { font-size: 14px; color: var(--aqua); font-weight: 700; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 18px; color: var(--ink);
  background: #fff; border: 1.5px solid #bec8d4; border-radius: 12px;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(5 102 178 / 18%); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { min-height: 0; color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 4px; }
.field__error:empty { display: none; }

.alert {
  margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px;
  background: #fff4e5; border: 1px solid #f5c27a; color: #5c3a00; font-size: 15px;
}
.alert__message {
  margin: 10px 0; padding: 10px 12px; border-radius: 8px;
  background: #fff; border: 1px solid #f0d9b5; color: var(--ink);
  font-size: 14px; white-space: pre-wrap; word-break: break-word;
}

.sheet__note { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* Telas maiores */
@media (min-width: 600px) {
  .hero__cta .btn { width: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-columns: 46%; }
}

@media (min-width: 760px) {
  .pain { grid-template-columns: 1fr 1.15fr; align-items: center; }
  .pain__img { border-top: 0; border-left: 1px solid var(--border); height: 100%; object-fit: cover; object-position: left top; }
  .pain__img--paper { object-fit: contain; object-position: center; }
  .pain:nth-child(even) .pain__text { order: 2; }
  .pain:nth-child(even) .pain__img { border-left: 0; border-right: 1px solid var(--border); }
  .pain__text { padding: 32px; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan--featured { transform: translateY(-10px); }
  .more { grid-auto-flow: column; justify-content: center; align-items: center; text-align: left; }
  .maker__inner { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .maker__icon { width: 80px; height: 80px; }

  .sheet {
    width: min(520px, calc(100% - 32px)); margin: auto;
    border-radius: 22px; max-height: 92vh;
    box-shadow: 0 30px 80px rgb(0 0 0 / 40%);
  }
  .sheet__body { padding: 30px 30px 26px; }
}

@media (min-width: 960px) {
  body { font-size: 18px; }
  .topbar__inner { height: 68px; }
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
  .hero__paper { right: -24px; bottom: -30px; width: 30%; }
  .section { padding: 88px 0; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .stickybar { display: none; }
  .footer { padding-bottom: 32px; }
}
