:root {
  --ink: #192d42;
  --ink-soft: #3d4f61;
  --muted: #66727e;
  --paper: #faf8f4;
  --ivory: #f2ede4;
  --white: #fff;
  --line: #e2ddd3;
  --line-strong: #cfc8bb;
  --accent: #a24d37;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, figure, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
html { scroll-padding-top: 88px; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; flex: none; }
.platform-wrap { width: min(1160px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.platform-skip { position: absolute; top: .5rem; left: .5rem; z-index: 50; transform: translateY(-160%); padding: .75rem 1rem; background: var(--ink); color: #fff; }
.platform-skip:focus { transform: none; }

/* Cabeçalho */
.platform-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 2.5rem; height: 68px; }
.platform-logo { display: inline-flex; width: 152px; }
.header-inner nav { display: flex; gap: 1.75rem; }
.header-inner nav a, .header-actions > a:first-child { color: var(--ink-soft); font-size: .9375rem; }
.header-inner nav a:hover, .header-actions > a:first-child:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }

/* Botões e links */
.platform-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.25rem;
  border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.platform-btn.small { min-height: 36px; padding-inline: .9rem; font-size: .875rem; }
.platform-btn.solid { background: var(--ink); color: #fff; }
.platform-btn.solid:hover { background: #0f1f2f; }
.platform-btn.outline { border-color: var(--line-strong); background: var(--white); color: var(--ink); }
.platform-btn.outline:hover { border-color: var(--ink); }
.platform-btn.text { padding-inline: .25rem; color: var(--ink); }
.platform-btn.text svg { transition: transform .15s; }
.platform-btn.text:hover { color: var(--accent); }
.platform-btn.text:hover svg { transform: translateX(2px); }

/* Tipografia */
h1, h2, h3 { font-weight: 600; letter-spacing: -.022em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.15; }
.index { display: block; margin-bottom: 1rem; color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }

/* Abertura */
.hero { padding-top: clamp(3.5rem, 8vw, 6.5rem); background: linear-gradient(var(--paper) 62%, var(--ivory) 62%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 2rem 4rem; }
.hero h1 { max-width: 12ch; }
.hero-side p { max-width: 44ch; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.75rem; }
.hero-shot { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }

/* Capturas */
.shot { min-width: 0; }
.shot-frame {
  overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white);
  box-shadow: 0 1px 2px rgb(25 45 66 / .06), 0 16px 40px -12px rgb(25 45 66 / .18);
}
.shot-bar { display: flex; justify-content: center; padding: .5rem; border-bottom: 1px solid var(--line); background: #f7f5f1; }
.shot-bar span { padding: .15rem .75rem; border-radius: 4px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .6875rem; }
.shot img { width: 100%; }
.shot figcaption, .phone-shot figcaption { margin-top: .75rem; color: var(--muted); font-size: .8125rem; }

/* Resumo */
.summary { border-bottom: 1px solid var(--line); }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-grid > div { padding: 2.5rem 2.5rem 2.75rem 0; }
.summary-grid > div + div { padding-left: 2.5rem; border-left: 1px solid var(--line); }
.summary h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.summary p { margin-top: .5rem; max-width: 34ch; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* Seções de produto */
.feature { padding-block: clamp(4.5rem, 9vw, 7.5rem) 0; }
.feature-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.feature-head p { margin-top: 1rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; }
.feature-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; align-items: start; }
.spec { border-top: 1px solid var(--ink); }
.spec div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: .9375rem; }
.spec dd { margin-top: .25rem; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.feature-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; align-items: center; }
.feature-split .feature-head { margin-bottom: 0; }
.phone-shot { justify-self: center; width: min(300px, 100%); }
.phone-shot img {
  border: 1px solid var(--line-strong); border-radius: 28px; background: var(--white);
  box-shadow: 0 1px 2px rgb(25 45 66 / .06), 0 16px 40px -12px rgb(25 45 66 / .2);
  aspect-ratio: 9 / 17; object-fit: cover; object-position: top;
}

/* Recursos */
.resources { margin-top: clamp(4.5rem, 9vw, 7.5rem); padding-block: clamp(4rem, 8vw, 6rem); background: var(--ivory); border-block: 1px solid var(--line); }
.resource-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3rem; }
.resource-list li { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--line-strong); }
.resource-list h3 { font-size: 1rem; letter-spacing: -.01em; }
.resource-list p { margin-top: .4rem; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* Começar */
.start { padding-block: clamp(4.5rem, 9vw, 7rem); }
.start h2 { max-width: 18ch; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.start ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 2.5rem; counter-reset: step; }
.start li { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--ink); }
.start li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .75rem; color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.start strong { display: block; font-weight: 600; }
.start li span { display: block; margin-top: .3rem; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.start .hero-actions { margin-top: 2.75rem; }

/* Rodapé */
.platform-footer { background: var(--ink); color: #c9d1d9; font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-brand .platform-logo { width: 140px; }
.footer-brand p { margin-top: .9rem; color: #94a3b2; }
.footer-grid nav { display: grid; align-content: start; gap: .6rem; }
.footer-grid h2 { margin-bottom: .25rem; color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.footer-grid a:hover { color: #fff; }
.footer-legal { padding-block: 1.25rem 2rem; border-top: 1px solid #2c4157; color: #8495a6; font-size: .8125rem; }

/* Formulários */
.platform-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(2rem, 8vw, 7rem); align-items: start; padding-block: clamp(3rem, 8vw, 6rem); }
.form-intro h1, .platform-ready h1 { font-size: clamp(2.25rem, 4.4vw, 3.25rem); }
.form-intro p, .platform-ready p { max-width: 42ch; margin-top: 1rem; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--muted); font-size: .875rem; }
.back-link:hover { color: var(--ink); }
.platform-form { display: grid; gap: 1rem; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgb(25 45 66 / .05); }
.platform-form h2 { font-size: 1.125rem; letter-spacing: -.01em; }
.platform-form label { display: grid; gap: .4rem; min-width: 0; font-size: .875rem; font-weight: 500; }
.platform-form input {
  width: 100%; min-width: 0; height: 44px; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.platform-form input::placeholder { color: #9aa3ab; }
.platform-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(25 45 66 / .12); }
.slug-input { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.slug-input span { flex-shrink: 0; color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.field-help { margin-top: -.5rem; color: var(--muted); font-size: .8125rem; }
.platform-form .platform-btn { width: 100%; margin-top: .25rem; }
.form-link { color: var(--muted); font-size: .875rem; }
.form-link a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
.form-link a:hover { text-decoration-color: var(--ink); }
.platform-error { padding: .75rem .875rem; border-left: 3px solid var(--accent); background: #f8ebe6; color: #6d2e1f; font-size: .875rem; line-height: 1.45; }
.platform-ready { padding-block: clamp(4rem, 10vw, 7rem); overflow-wrap: anywhere; }
.platform-ready .hero-actions { margin-top: 0; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.5rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); }
.feature-icon svg { width: 18px; height: 18px; }
.ready-address { display: inline-block; margin-block: 1.25rem 2rem; font-family: var(--mono); font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }

@media (max-width: 960px) {
  .hero-grid, .feature-body, .feature-split { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .feature-body { gap: 2rem; }
  .spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .feature-split { gap: 2.5rem; }
  .resource-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header-inner { gap: 1rem; }
  .header-inner nav { display: none; }
  .header-actions { gap: 1rem; }
  .platform-form-layout { grid-template-columns: 1fr; }
  .summary-grid, .start ol, .resource-list, .spec { grid-template-columns: 1fr; }
  .summary-grid > div, .summary-grid > div + div { padding: 1.75rem 0; border-left: 0; }
  .summary-grid > div + div { border-top: 1px solid var(--line); }
  .start ol { gap: 1.75rem; }
  .shot-bar { display: none; }
}
@media (max-width: 480px) {
  .platform-logo { width: 128px; }
  .hero { background: linear-gradient(var(--paper) 70%, var(--ivory) 70%); }
  .hero-actions .platform-btn.solid { width: 100%; }
  .platform-form { padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-btn, .platform-btn svg, .platform-form input { transition: none; }
}

/* Administração da plataforma */
.admin-platform { padding-block: clamp(2.5rem, 6vw, 4rem); }
.admin-head p { margin-top: .5rem; color: var(--muted); }
.admin-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.platform-notice { margin-top: 1.25rem; padding: .75rem .875rem; border-left: 3px solid var(--ink); background: var(--ivory); font-size: .875rem; }
.admin-platform .platform-error { margin-top: 1.25rem; }
.admin-steps { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.admin-steps summary { font-weight: 600; cursor: pointer; }
.admin-steps ol { display: grid; gap: .5rem; margin-top: .9rem; padding-left: 1.2rem; list-style: decimal; color: var(--ink-soft); font-size: .9375rem; }
.admin-steps code, .admin-agency a { font-family: var(--mono); font-size: .8125rem; }
.admin-table { margin-top: 1.5rem; border-top: 1px solid var(--ink); }
.admin-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.admin-agency { display: grid; gap: .2rem; min-width: 0; }
.admin-agency span { color: var(--muted); font-size: .875rem; }
.admin-agency a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; overflow-wrap: anywhere; }
.admin-domain { display: grid; gap: .35rem; font-size: .8125rem; font-weight: 500; }
.admin-domain input { height: 40px; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-family: var(--mono); font-size: .875rem; }
.admin-domain input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(25 45 66 / .12); }
.admin-actions { display: flex; gap: .5rem; }
.admin-empty { padding: 1.5rem 0; color: var(--muted); }
@media (max-width: 760px) { .admin-row { grid-template-columns: 1fr; } }

/* Busca de cidade no cadastro */
.platform-form .city-field { display: grid; gap: .4rem; }
.platform-form .city-field > label { display: block; }
.platform-form .city-field .field-help { margin-top: 0; }
.city-combo { position: relative; }
.city-combo input { width: 100%; }
.city-options { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow-y: auto; margin: 0; padding: .3rem;
  list-style: none; background: #fff; border: 1px solid var(--line, #d9d4ca); border-radius: 8px; box-shadow: 0 12px 28px rgb(15 23 32 / .14); }
.city-options li { display: grid; gap: .1rem; padding: .5rem .65rem; border-radius: 6px; cursor: pointer; }
.city-options li strong { color: var(--ink); font-size: .875rem; font-weight: 600; }
.city-options li span { color: var(--muted); font-size: .75rem; }
.city-options li[aria-selected=true] { background: #f1eee8; }
.city-options .city-empty { color: var(--muted); font-size: .8125rem; cursor: default; }
