/* ==========================================================================
   Okays — design system do site institucional
   Cor-semente #1F6FEB herdada de apps/mobile/lib/core/theme/app_theme.dart
   ========================================================================== */

:root {
  --brand:        #1F6FEB;
  --brand-strong: #1550B8;
  --brand-ink:    #0C3E96;
  --brand-soft:   #EAF1FE;
  --brand-line:   #C9DCFD;

  --accent:       #FF7A45;
  --accent-soft:  #FFF1EA;
  --success:      #0F9D6E;
  --success-soft: #E6F7F1;
  --warn:         #B45309;
  --warn-soft:    #FEF3E2;

  --bg:        #FFFFFF;
  --bg-soft:   #F5F8FD;
  --bg-card:   #FFFFFF;
  --ink:       #0A1428;
  --ink-mid:   #384861;
  --ink-soft:  #64748B;
  --line:      #E2E8F2;
  --line-soft: #EEF2F8;

  --shadow-sm: 0 1px 2px rgba(10, 20, 40, .05), 0 1px 3px rgba(10, 20, 40, .04);
  --shadow-md: 0 4px 12px rgba(10, 20, 40, .06), 0 12px 32px rgba(10, 20, 40, .06);
  --shadow-lg: 0 8px 24px rgba(10, 20, 40, .08), 0 32px 64px rgba(10, 20, 40, .10);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --wrap: 1120px;
  --prose: 720px;

  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand:        #6BA5FF;
    --brand-strong: #8FBCFF;
    --brand-ink:    #C9DEFF;
    --brand-soft:   #15243E;
    --brand-line:   #24406B;

    --accent:       #FF9466;
    --accent-soft:  #331D13;
    --success:      #3DD6A3;
    --success-soft: #102C25;
    --warn:         #F0B267;
    --warn-soft:    #2E2214;

    --bg:        #080D18;
    --bg-soft:   #0D1424;
    --bg-card:   #101A2E;
    --ink:       #E9EEF9;
    --ink-mid:   #AFBDD4;
    --ink-soft:  #8394AF;
    --line:      #1E2B44;
    --line-soft: #16213610;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .4), 0 32px 64px rgba(0, 0, 0, .45);
  }
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); letter-spacing: -.028em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }

p  { margin: 0 0 1.1em; color: var(--ink-mid); text-wrap: pretty; }

a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); text-decoration-color: currentColor; }

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

img, svg { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  font-size: .88em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: .12em .4em;
  border-radius: 5px;
}

::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.prose { max-width: var(--prose); }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem;
  letter-spacing: -.03em; color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--brand) 0%, #4C8DFF 55%, var(--accent) 160%);
  display: grid; place-items: center;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 35%, transparent);
}
.mark svg { width: 18px; height: 18px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .94rem; font-weight: 500; color: var(--ink-mid);
  text-decoration: none; padding: 8px 12px; border-radius: 9px;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
@media (max-width: 760px) {
  .site-head .wrap { height: auto; padding-block: 12px; flex-wrap: wrap; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 34%, transparent), 0 10px 24px color-mix(in srgb, var(--brand) 22%, transparent);
}
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06101F; } .btn-primary:hover { color: #06101F; } }
.btn-ghost { background: var(--bg-card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-line); color: var(--ink); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(58% 48% at 18% 12%, color-mix(in srgb, var(--brand) 20%, transparent) 0%, transparent 62%),
    radial-gradient(46% 44% at 88% 8%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 60%),
    radial-gradient(60% 50% at 62% 92%, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); }

.lead { font-size: clamp(1.06rem, .98rem + .4vw, 1.24rem); color: var(--ink-mid); max-width: 34em; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- hero art ---------- */

.hero-art { position: relative; display: grid; place-items: center; }
.phone {
  width: min(322px, 80vw); aspect-ratio: 9 / 15;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.phone-inner {
  height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-soft) 45%);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 10px; padding: 22px 16px 16px;
}
.p-bar { height: 4px; width: 80px; border-radius: 99px; background: var(--line); margin: 0 auto 4px; }
.p-title { font-family: var(--font-display); font-weight: 700; font-size: .84rem; color: var(--ink); line-height: 1.2; }
.p-sub { font-size: .64rem; color: var(--ink-soft); margin-top: -7px; line-height: 1.2; }
.p-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 13px;
  padding: 9px 10px; display: flex; gap: 9px; align-items: center;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.p-av { width: 28px; height: 28px; border-radius: 9px; flex: none; background: linear-gradient(140deg, var(--brand), #6FA8FF); }
.p-av.b { background: linear-gradient(140deg, var(--accent), #FFB08A); }
.p-av.c { background: linear-gradient(140deg, var(--success), #6FE0BC); }
.p-txt { min-width: 0; flex: 1 1 auto; display: block; }
.p-l1 {
  display: block; font-size: .7rem; font-weight: 600; color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-l2 {
  display: block; font-size: .6rem; color: var(--ink-soft); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-chip {
  flex: none; font-size: .53rem; font-weight: 700; letter-spacing: .03em;
  padding: 3px 7px; border-radius: 99px; background: var(--success-soft); color: var(--success);
  white-space: nowrap;
}
.p-chip.esc { background: var(--brand-soft); color: var(--brand); }
.p-panel {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px; box-shadow: var(--shadow-sm);
}
.p-panel .p-l1 { margin-bottom: 9px; }
.p-track { display: flex; align-items: center; gap: 0; }
.p-node { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--line); }
.p-node.on { background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.p-node.now { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.p-rail { height: 2px; flex: 1 1 auto; background: var(--line); }
.p-rail.on { background: var(--brand); }
.p-legend { display: flex; justify-content: space-between; margin-top: 7px; font-size: .5rem; color: var(--ink-soft); letter-spacing: .01em; }
.p-foot {
  margin-top: auto; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 13px; padding: 9px 11px; font-size: .62rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 7px; line-height: 1.3;
}
.p-foot svg { flex: none; }

.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: 1; }
.blob.one { width: 240px; height: 240px; background: color-mix(in srgb, var(--brand) 45%, transparent); top: 4%; left: -6%; }
.blob.two { width: 200px; height: 200px; background: color-mix(in srgb, var(--accent) 40%, transparent); bottom: 6%; right: -4%; }

/* ---------- sections ---------- */

section { padding: clamp(52px, 7vw, 92px) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.06rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-line); }
.card h3 { margin-bottom: .35em; }
.card p { margin-bottom: 0; font-size: .96rem; }
.icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
  border: 1px solid var(--brand-line);
}
.icon svg { width: 21px; height: 21px; }
.icon.accent { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.icon.ok { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 28%, transparent); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: s; content: counter(s);
  font-family: var(--font-display); font-weight: 800; font-size: .84rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .step::before { color: #06101F; } }
.step h3 { font-size: 1.03rem; }
.step p { font-size: .93rem; margin-bottom: 0; }

/* ---------- contact block ---------- */

.contact {
  background: linear-gradient(150deg, var(--brand) 0%, #2E7DF7 40%, var(--brand-strong) 100%);
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px);
  color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact::after {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); top: -140px; right: -90px;
}
.contact > * { position: relative; }
.contact h2, .contact h3 { color: #fff; }
.contact p { color: rgba(255, 255, 255, .88); }
.contact .btn-ghost { background: #fff; color: var(--brand-ink); border-color: transparent; }
.contact .btn-ghost:hover { color: var(--brand-ink); background: #F4F8FF; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.mail-big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, .9rem + 1.2vw, 1.7rem); letter-spacing: -.02em;
  color: #fff; text-decoration: none; word-break: break-word;
  border-bottom: 2px solid rgba(255, 255, 255, .45); padding-bottom: 2px;
}
.mail-big:hover { color: #fff; border-color: #fff; }
.sla { display: grid; gap: 10px; }
.sla div {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-md); padding: 12px 16px; font-size: .92rem;
}
.sla strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
details.q {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
details.q[open] { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
details.q summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
details.q[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--brand); }
details.q .a { padding-bottom: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
details.q .a p:last-child, details.q .a ul:last-child { margin-bottom: 0; }
details.q .a { font-size: .97rem; }

/* ---------- documento legal ---------- */

.doc-head { padding: clamp(44px, 6vw, 72px) 0 0; }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; color: var(--ink-soft);
  margin-top: -.2em;
}
.doc { padding-top: 32px; }
.doc h2 { font-size: 1.42rem; margin-top: 2.4em; padding-top: .2em; scroll-margin-top: 90px; }
.doc h2:first-of-type { margin-top: 1em; }
.doc h3 { font-size: 1.06rem; margin-top: 1.9em; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1.15em; color: var(--ink-mid); }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--brand); }

.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 26px; margin: 8px 0 40px;
}
.toc strong { font-family: var(--font-display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { margin: 12px 0 0; padding-left: 1.1em; columns: 2; column-gap: 32px; font-size: .93rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: .4em; break-inside: avoid; }

.callout {
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  border-radius: var(--r-md); padding: 18px 22px; margin: 1.6em 0;
  font-size: .96rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--brand-ink); font-family: var(--font-display); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout.warn strong { color: var(--warn); }

.fill {
  background: var(--warn-soft); color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent);
  padding: .05em .45em; border-radius: 5px; font-size: .92em; font-weight: 600;
  font-family: ui-monospace, Menlo, monospace; white-space: nowrap;
}

table.tbl {
  width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.4em 0;
}
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl th, table.tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--bg-soft); white-space: nowrap; }
table.tbl td { color: var(--ink-mid); }
table.tbl tr:last-child td { border-bottom: 0; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 52px 0 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-foot h4 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: var(--ink-mid); text-decoration: none; font-size: .94rem; }
.site-foot a:hover { color: var(--brand); }
.foot-note {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.foot-note p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover { transform: none; }
}
