/* Slicewise landing (slicewise.com.br). Brand "Camada", indigo + aqua (brand/opcao-a-cores-c), same tokens as
   apps/web/src/styles.css. Text pairs checked for WCAG AA. No framework, no inline style (CSP style-src 'self'). */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/archivo-latin-var.d4ec7d5eb7.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/ibm-plex-mono-latin-regular.8a922998cf.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/ibm-plex-mono-latin-medium.b3bb89adab.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #1a1c3a;
  --muted: #555a78;
  --line: #e1e3ee;
  --brand: #2b2e83;
  --brand-2: #3b3fa6;
  --brand-soft: #ecedfa;
  --accent: #3ccfe3;
  --accent-ink: #12132a;
  --symbol-top: #0e9bb0;
  --info: #0b7385;
  --info-bg: #e2f5f8;
  /* The indigo bands (hero, final CTA): white text 11.5:1, aqua 6.5:1, --on-band-muted 8.9:1. */
  --band: #2b2e83;
  --on-band: #ffffff;
  --on-band-muted: #dcddf2;
  --focus: #1a5fff;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-data: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 24, 60, 0.06), 0 8px 28px rgba(20, 24, 60, 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12132a;
    --card: #1c1e3d;
    --ink: #ecedf7;
    --muted: #a9adc8;
    --line: #2e3160;
    --brand: #a9adff;
    --brand-2: #c4c7ff;
    --brand-soft: #24275a;
    --info: #3ccfe3;
    --info-bg: #16304a;
    --band: #1c1e3d;
    --focus: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  overflow-wrap: anywhere;
}

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

a {
  color: var(--brand);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--brand-2);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

.mono {
  font-family: var(--font-data);
  font-feature-settings: 'tnum' 1;
}

.visually-hidden {
  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: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--card);
  border-radius: 6px;
}
.skip:focus {
  top: 8px;
}

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #ffffff;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #ffffff;
}
@media (prefers-color-scheme: dark) {
  .btn,
  .btn:hover {
    color: var(--accent-ink);
  }
}
.btn-small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.95rem;
}
/* On the indigo bands: aqua with dark ink (10.4:1). */
.btn-on-dark,
.hero .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-on-dark:hover,
.hero .btn:hover {
  background: #7fe0ee;
  border-color: #7fe0ee;
  color: var(--accent-ink);
}

.link-quiet {
  font-weight: 600;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---- header ---------------------------------------------------------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 140px;
  height: 32px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info);
  font: 600 0.75rem/1.4 var(--font-data);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-nav .btn-small {
  white-space: nowrap;
}
/* 360 px phones: logo + Beta + "Entrar no beta" must fit on one line (wraps instead of overflowing below 340). */
@media (max-width: 399px) {
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 112px;
    height: 26px;
  }
  .header-nav .btn-small {
    padding: 8px 12px;
  }
}
.header-nav .link-quiet {
  display: none;
}
@media (min-width: 640px) {
  .header-nav .link-quiet {
    display: inline;
  }
}

/* ---- hero ------------------------------------------------------------ */
.hero {
  background: var(--band);
  color: var(--on-band);
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 920px) {
  .hero {
    padding: 80px 0 88px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--info);
  font: 600 0.8rem/1.4 var(--font-data);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.accent-text {
  color: var(--accent);
}
.lead {
  max-width: 38em;
  color: var(--on-band-muted);
  font-size: 1.125rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 28px 0 16px;
}
.hero .link-quiet,
.hero .link-quiet:hover {
  color: var(--on-band);
}
.fineprint {
  color: var(--on-band-muted);
  font-size: 0.9rem;
}

/* The example quote: a card with the numbers in Plex Mono. */
.quote-card {
  margin: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.quote-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 16px 0;
}
.quote-facts dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.quote-facts dd {
  margin: 0;
  font-weight: 600;
}
.quote-prices {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.quote-prices th,
.quote-prices td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.quote-prices thead th {
  border-top: 0;
  padding-top: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.quote-prices .num {
  text-align: right;
  font-weight: 500;
}
.quote-prices tbody tr:first-child th,
.quote-prices tbody tr:first-child td {
  font-weight: 600;
}
.quote-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- sections -------------------------------------------------------- */
.section {
  padding: 56px 0;
}
@media (min-width: 920px) {
  .section {
    padding: 88px 0;
  }
}
.section-alt {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.section-lead {
  max-width: 44em;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 920px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}
.step h3::before {
  content: counter(step) '. ';
  color: var(--muted);
  font-family: var(--font-data);
  font-weight: 500;
}
.step p {
  color: var(--muted);
  margin: 0;
}
/* The symbol's three layers: the top one (aqua) is the layer being printed. */
.step-mark {
  display: grid;
  gap: 4px;
  width: 40px;
  margin-bottom: 16px;
}
.step-mark i {
  display: block;
  height: 7px;
  background: var(--brand);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}
.step-mark i:nth-child(1) {
  width: 72%;
  background: var(--symbol-top);
}
.step-mark i:nth-child(2) {
  width: 86%;
}

.two-col {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 920px) {
  .two-col {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
  }
}
.checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 28px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 14px;
  height: 6px;
  background: var(--symbol-top);
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}
.note-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.note-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.note-card li {
  margin-bottom: 8px;
}

.printer-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 920px) {
  .printer-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
  }
}
.printer-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.printer-card p {
  color: var(--muted);
  margin: 0;
}
.printer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.printer-list li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-weight: 500;
}

.faq-wrap {
  max-width: 820px;
}
.faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--brand);
  font-family: var(--font-data);
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.final-cta {
  padding: 48px 0;
  background: var(--band);
  color: var(--on-band);
}
.final-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.final-cta h2 {
  margin-bottom: 8px;
}
.final-cta p {
  margin: 0;
  color: var(--on-band-muted);
}

/* ---- footer ---------------------------------------------------------- */
.site-footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 920px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-grid p {
  margin: 0 0 6px;
}
.footer-brand {
  color: var(--ink);
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* ---- 404 ------------------------------------------------------------- */
.not-found {
  max-width: 640px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.not-found h1 {
  margin-top: 40px;
  font-size: 2rem;
}

/* ---- consent banner (built by tracking.js) --------------------------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.consent[hidden] {
  display: none;
}
.consent h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.consent p {
  color: var(--muted);
  font-size: 0.9rem;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* "Recusar" and "Aceitar": same size, same colours (equal prominence). */
.consent-actions .btn {
  flex: 1 1 140px;
}
