/* =====================================================================
   Site do One (gemtecnologia.com.br): identidade GEM Tecnologia.
   Tokens iguais aos do app (OS App/web/src/styles/tokens.css). Tema segue o sistema.
   Gradiente da marca só nas superfícies de marca: topo e fecho.
   ===================================================================== */
@font-face {
  font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-garnet: #8D0000; --brand-wine: #580240; --brand-indigo: #240480; --brand-cream: #FFFEF0;
  --brand-gradient: linear-gradient(135deg, var(--brand-garnet) 0%, var(--brand-wine) 50%, var(--brand-indigo) 100%);
  --bg: #F4F2F8; --surface: #FFFFFF; --sunken: #EDEAF4; --line: #E4E0EE; --line-strong: #CEC7DE;
  --ink: #1B1433; --ink-2: #463E5E; --muted: #6E6688;
  --primary: #5326C9; --primary-hover: #4219AA; --primary-soft: #EFEAFD; --link: #5326C9; --focus: #8E6CF7;
  --accent: #A4133C; --accent-soft: #FBE9EE; --ok: #157A4B; --ok-soft: #E2F4EA;
  --shadow-lg: 0 18px 48px rgba(27, 20, 51, .16);
  --font: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px; --gutter: clamp(20px, 5vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0A1A; --surface: #17112A; --sunken: #120D22; --line: #2A2243; --line-strong: #3B3159;
    --ink: #EEEAF8; --ink-2: #C9C2DD; --muted: #9A92B4;
    --primary: #6C44E6; --primary-hover: #7D59F0; --primary-soft: #251B4A; --link: #A88EFF; --focus: #A88EFF;
    --accent: #FF6B8E; --accent-soft: #3A1426; --ok: #4CD493; --ok-soft: #10291E;
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 1.0625rem; line-height: 1.6; font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--brand-cream); color: var(--brand-wine); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-cream { background: var(--brand-cream); color: var(--brand-wine); }
.btn-cream:hover { background: #fff; }
.btn-ghost { color: var(--brand-cream); border-color: rgba(255, 254, 240, .35); min-height: 42px; padding: 8px 16px; }
.btn-ghost:hover { background: rgba(255, 254, 240, .1); border-color: rgba(255, 254, 240, .6); }
.btn-primary { background: var(--primary); color: var(--brand-cream); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-line { color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--primary); color: var(--primary); }

/* ---------------- Superfícies de marca (topo e fecho) ---------------- */
.hero, .closing { position: relative; overflow: hidden; background: var(--brand-gradient); color: var(--brand-cream); isolation: isolate; }
.hero :focus-visible, .closing :focus-visible { outline-color: var(--brand-cream); }
.hero a:not(.btn), .closing a:not(.btn) { color: var(--brand-cream); }
.watermark { position: absolute; z-index: -1; width: min(78vmin, 720px); right: -12%; top: 4%; opacity: .085; pointer-events: none; }

.topbar { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-cream); margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand span { display: grid; line-height: 1.15; }
.brand b { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.brand small { font-size: .8rem; opacity: .75; font-weight: 500; }
.topnav { display: flex; gap: 26px; }
.topnav a { text-decoration: none; font-weight: 600; opacity: .85; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.langs { display: inline-flex; border: 1.5px solid rgba(255, 254, 240, .25); border-radius: 10px; padding: 3px; gap: 2px; }
.langs a { text-decoration: none; font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; opacity: .75; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { background: rgba(255, 254, 240, .16); opacity: 1; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.hero .lead { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34em; opacity: .9; }
.hero-actions { margin-top: 36px; display: grid; justify-items: start; gap: 12px; }
.hero .note { font-size: .92rem; opacity: .75; }
.hero .client { margin-top: 32px; font-size: .95rem; opacity: .85; }
.hero .client a { font-weight: 700; }

/* ---------------- Celular (moldura comum ao exemplo e à captura) ---------------- */
.phone { margin: 0; justify-self: center; width: min(330px, 100%); padding: 10px; border-radius: 44px; background: #160E2C; box-shadow: 0 30px 80px rgba(10, 4, 30, .45), inset 0 0 0 1.5px rgba(255, 254, 240, .12); }
.phone-screen, .shot-phone img { border-radius: 34px; overflow: hidden; }

/* Exemplo animado: um checklist sendo preenchido (sempre em tema claro, como uma captura) */
.demo .phone-screen {
  --d-ink: #1B1433; --d-muted: #6E6688; --d-line: #E4E0EE;
  position: relative; background: #F4F2F8; color: var(--d-ink); min-height: 600px; padding: 22px 16px 96px;
  font-size: .9rem; line-height: 1.35;
}
.d-head { display: grid; gap: 4px; padding: 6px 6px 16px; }
.d-code { font-size: .78rem; font-weight: 700; color: var(--d-muted); letter-spacing: .02em; }
.d-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.d-client { display: inline-flex; align-items: center; gap: 5px; color: var(--d-muted); font-weight: 600; }
.d-client svg { width: 15px; height: 15px; }
.d-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.d-bar i { height: 5px; border-radius: 3px; background: #DCD6E8; position: relative; overflow: hidden; }
.d-bar i::after { content: ''; position: absolute; inset: 0; background: #5326C9; }
.d-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d-item { background: #fff; border: 1px solid var(--d-line); border-radius: 14px; padding: 11px 13px; display: grid; gap: 7px; }
.d-label { font-weight: 700; font-size: .84rem; }
.d-val { justify-self: start; }
.d-chip { display: inline-flex; align-items: center; gap: 5px; background: #E2F4EA; color: #157A4B; border-radius: 999px; padding: 3px 11px 3px 8px; font-weight: 700; font-size: .82rem; }
.d-chip svg { width: 15px; height: 15px; }
.d-num { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-photo { width: 104px; border-radius: 9px; overflow: hidden; border: 1px solid var(--d-line); }
.d-sign { width: 100%; height: 46px; color: #1B1433; border-bottom: 1px dashed #CEC7DE; }
.d-sign svg { width: 100%; height: 100%; }
.d-finish { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 13px; background: #5326C9; color: #FFFEF0; font-weight: 750; }
.d-toast { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; border-radius: 13px; background: #157A4B; color: #fff; font-weight: 750; }
.d-toast svg { width: 18px; height: 18px; }

/* A sequência (uma vez só). O estado final é o estilo normal: sem animação, a tela já aparece completa. */
@media (prefers-reduced-motion: no-preference) {
  .d-bar i::after { animation: d-grow .45s ease-out both; transform-origin: left; }
  .d-bar i:nth-child(1)::after { animation-delay: 1.15s; }
  .d-bar i:nth-child(2)::after { animation-delay: 1.95s; }
  .d-bar i:nth-child(3)::after { animation-delay: 2.75s; }
  .d-bar i:nth-child(4)::after { animation-delay: 4.3s; }
  .d-val { animation: d-in .4s cubic-bezier(.2, .8, .2, 1) both; }
  .d-1 .d-val { animation-delay: .9s; }
  .d-2 .d-val { animation-delay: 1.7s; }
  .d-3 .d-val { animation-delay: 2.5s; }
  .d-4 .d-val { animation: none; }
  .d-4 .sig { stroke-dasharray: 1; animation: d-draw 1.2s ease-in-out 3.2s both; }
  .d-item { animation: d-focus 1s ease both; }
  .d-1 { animation-delay: .6s; } .d-2 { animation-delay: 1.4s; } .d-3 { animation-delay: 2.2s; } .d-4 { animation-delay: 3s; animation-duration: 1.6s; }
  .d-finish { animation: d-press .5s ease 4.9s both; }
  .d-toast { animation: d-toast .45s cubic-bezier(.2, .8, .2, 1) 5.35s both; }
}
@keyframes d-grow { from { transform: scaleX(0); } }
@keyframes d-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes d-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 3% { opacity: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes d-focus { 0% { border-color: var(--d-line); } 25%, 75% { border-color: #8E6CF7; box-shadow: 0 0 0 3px #EFEAFD; } 100% { border-color: var(--d-line); } }
@keyframes d-press { 50% { transform: scale(.97); background: #4219AA; } 100% { opacity: 0; } }
@keyframes d-toast { from { opacity: 0; transform: translateY(14px); } }
/* Sem animação: o botão Finalizar some atrás do aviso de enviado */
.d-finish { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .d-finish { opacity: 1; } }

/* ---------------- Seções ---------------- */
main > section { padding-block: clamp(64px, 9vw, 120px); }
main > section + section { border-top: 1px solid var(--line); }
main h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -0.028em; }
.section-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.15rem; }

/* O problema: tipografia riscada */
.problem .strike { font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 20ch; }
.strike s { color: var(--muted); font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: .085em; }
.strike strong { display: block; margin-top: .15em; font-weight: 800; }
.problem p { margin-top: 28px; max-width: 58ch; font-size: 1.2rem; color: var(--ink-2); }

/* Como funciona: sequência real, por isso numerada */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 1.1rem;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: calc(-1 * clamp(24px, 4vw, 56px) + 12px); height: 2px; background: var(--line-strong); }
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 10px; color: var(--ink-2); }

/* Recursos com capturas reais */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-alt { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature-alt .feature-copy { order: 2; }
.feature-copy p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-2); max-width: 40ch; }
.shot { margin: 0; }
.shot-desktop img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.feature-phone { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.shot-phone { width: min(300px, 100%); }
.shot-phone img { width: 100%; height: auto; }
.solo { margin-top: 48px; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.solo h3 { font-size: 1.2rem; }
.solo p { margin-top: 8px; font-size: 1.02rem; }

/* Planos: tabela comparativa */
.plans-table { width: 100%; margin-top: 40px; border-collapse: collapse; }
.plans-table thead th { text-align: left; font-size: .85rem; font-weight: 700; color: var(--muted); padding: 0 16px 12px; }
.plans-table tbody tr { border-top: 1px solid var(--line); }
.plans-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
.plans-table th[scope=row], .plans-table td { padding: 22px 16px; vertical-align: middle; text-align: left; }
.plans-table th[scope=row] { width: 26%; }
.plan-name { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; }
.plan-aud { display: block; color: var(--muted); font-size: .92rem; font-weight: 500; }
.plan-tag { display: inline-block; margin-top: 8px; font-size: .76rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.plan-price b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price span { color: var(--muted); font-size: .88rem; }
.plan-cta { text-align: right !important; }
.plans-table tr.is-highlight { background: var(--primary-soft); }
.plans-table tr.is-highlight th[scope=row] { box-shadow: inset 4px 0 0 var(--primary); }
.included { margin-top: 40px; }
.included h3 { font-size: 1.05rem; }
.included ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.included li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.included svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Dúvidas */
.faq-list { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 1.15rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--primary); font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--primary); }
.faq details p { padding: 0 52px 22px 0; color: var(--ink-2); max-width: 64ch; }

/* Fecho e rodapé */
.closing-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(64px, 9vw, 112px) 56px; }
.closing h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -0.032em; max-width: 16ch; line-height: 1.05; }
.closing-grid p { margin-top: 14px; font-size: 1.15rem; opacity: .85; }
.footbar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid rgba(255, 254, 240, .16); font-size: .9rem; }
.footbar p { opacity: .75; margin-right: auto; }
.footbar .brand { margin-right: 0; }
.brand-sm img { width: 28px; height: 28px; }
.brand-sm b { font-size: 1rem; }
.foot-login { font-weight: 700; }
.watermark-foot { right: auto; left: -14%; top: -30%; width: min(60vmin, 560px); }

/* 404 */
.page-404 { min-height: 100vh; }
.nf { min-height: 100vh; display: grid; place-content: center; gap: 40px; padding: 40px var(--gutter); text-align: left; }
.nf-logo { width: 56px; }
.nf section { display: grid; gap: 10px; justify-items: start; }
.nf h1 { font-size: 1.8rem; }
.nf p { opacity: .8; }
.nf .btn { margin-top: 6px; }

/* ---------------- Telas menores ---------------- */
@media (max-width: 980px) {
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .demo { width: min(320px, 100%); }
  .feature, .feature-alt, .feature-phone { grid-template-columns: 1fr; }
  .feature-alt .feature-copy { order: 0; }
  .shot-phone { justify-self: center; }
}
@media (max-width: 760px) {
  .topbar { gap: 12px; flex-wrap: wrap; }
  .brand small { display: none; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li { padding: 0 0 0 64px; min-height: 44px; }
  .steps li:not(:last-child)::after { top: 52px; left: 21px; right: auto; width: 2px; height: calc(100% - 28px); }
  /* Tabela vira um bloco por plano */
  .plans-table thead { display: none; }
  .plans-table, .plans-table tbody, .plans-table tr, .plans-table th, .plans-table td { display: block; width: auto !important; }
  .plans-table tbody tr { padding: 20px 0; border-top: 1px solid var(--line); }
  .plans-table tr.is-highlight { padding-inline: 16px; border-radius: 14px; border: 0; margin-block: 8px; }
  .plans-table tr.is-highlight th[scope=row] { box-shadow: none; }
  .plans-table th[scope=row], .plans-table td { padding: 4px 0; }
  .plans-table td[data-label]:not([data-label='']) { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
  .plans-table td[data-label]:not([data-label=''])::before { content: attr(data-label); color: var(--muted); }
  .plan-price { margin: 6px 0 8px; }
  .plan-price b { display: inline; margin-right: 6px; }
  .plan-cta { text-align: left !important; padding-top: 14px !important; }
  .plan-cta .btn { width: 100%; }
  .faq details p { padding-right: 0; }
  .footbar p { width: 100%; order: 3; }
}
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .hero-actions .btn { width: 100%; }
  .langs a { padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
