/*
  Claude Design Importer — site stylesheet.
  Standalone: no imports, no external requests. Tokens are copied from
  ui/tokens.css so the site matches the product's dark theme, then
  extended with a few larger scale steps needed for a marketing page.
*/

:root {
  color-scheme: dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* text scale (xs..xl copied verbatim from ui/tokens.css; 2xl/3xl/4xl added for headings) */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-4xl: 52px;

  /* spacing scale (1..6 copied verbatim; 7/8/9 added for page-level layout) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --dur-fast: 120ms;
  --dur-base: 180ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  --accent: #d97757;
  --accent-hover: #c56746;
  --accent-text: #ffffff;
  --success: #22a06b;
  --warning: #d99e30;
  --danger: #dc5b5b;

  --surface: #1e1e1e;
  --surface-2: #262626;
  --surface-3: #303030;
  --border: #383838;
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);

  --content-width: 1080px;
  --prose-width: 720px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.6;
  background: var(--surface);
  color: var(--text);
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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-link {
  position: absolute;
  left: var(--space-3);
  top: -48px;
  background: var(--surface-3);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-3);
}

/* ---------- layout shell ---------- */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

/* O logo já traz o próprio quadrado preto e os cantos arredondados, então
   aqui não entra fundo nem raio — só o tamanho. */
.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.header-nav a:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: var(--text-xs);
}

.lang-switch a {
  padding: 4px 8px;
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--text);
}

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

.hero {
  padding: var(--space-9) 0 var(--space-8);
}

.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}

.hero__lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 0 var(--space-6);
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.hero__note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- diagram ---------- */

.diagram-frame {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.diagram-frame__caption {
  margin: var(--space-3) 0 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.diagram svg {
  overflow: visible;
}

.diagram-bg {
  fill: var(--surface);
}

.diagram-slide-body {
  fill: var(--surface-3);
  stroke: var(--border);
  stroke-width: 1.5;
}

.diagram-slide-bar {
  fill: var(--accent);
  opacity: 0.85;
}

.diagram-slide-line {
  fill: var(--text-muted);
  opacity: 0.6;
}

.diagram-slide-shape {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.diagram-arrow-line {
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
}

.diagram-arrow-head {
  fill: var(--text-muted);
}

.diagram-layer {
  fill: var(--surface-2);
  stroke: var(--border);
  stroke-width: 1.5;
}

.diagram-layer--accent {
  stroke: var(--accent);
}

.diagram-layer-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-sans);
}

.diagram-caption-label {
  fill: var(--text);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
}

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

section {
  padding: var(--space-8) 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section__head {
  max-width: 60ch;
  margin: 0 0 var(--space-7);
}

.section__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-2);
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.25;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}

.section__lede {
  color: var(--text-muted);
  margin: 0;
  font-size: var(--text-md);
}

/* how it works */

.steps {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.step__number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.step h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-md);
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* what's different */

.diff-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 900px) {
  .diff-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.feature-list__mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--success);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-list strong {
  color: var(--text);
}

.feature-list span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* pricing */

.pricing-grid {
  display: grid;
  gap: var(--space-5);
}

/* Empilha em telas estreitas (padrão), 2 colunas em tablet e 3 a partir de
   960px, quando há espaço de sobra para o cartão Team sem esmagar os outros. */
@media (min-width: 700px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* As margens padrão de <p> se somavam ao gap do flex e abriam buracos entre
   nome, preço e lista. O espaçamento passa a vir só do gap. */
.price-card p {
  margin: 0;
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 24px;
}

.price-card--highlight {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(217, 119, 87, 0.09), rgba(217, 119, 87, 0) 42%),
    var(--surface-2);
  box-shadow: 0 0 0 1px rgba(217, 119, 87, 0.2), var(--shadow-md);
}

/* O selo fica dentro do fluxo do cabeçalho. Antes era absoluto em top:-12px e
   saía cortado no canto do cartão. */
.price-card__badge {
  background: var(--accent);
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.price-card__name {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Flex (não texto solto) para o valor: com o preço riscado do founding
   price e a nota de assento do Team, esse parágrafo às vezes precisa
   quebrar linha. Texto solto herdaria o "strut" da fonte 3xl do parágrafo
   em toda linha, mesmo nas que só têm o <small> pequeno, abrindo um vão
   enorme entre linhas. Flex com baseline evita isso: cada item mede sua
   própria altura. */
.price-card__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-2);
  row-gap: 2px;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.price-card__amount small {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* Preço-âncora riscado (ex.: US$9) ao lado do preço de fundação vigente. */
.price-card__strike {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: var(--space-2);
}

/* Nota curta (founding price, fair use, sub-preço por assento) logo abaixo
   do valor ou da lista, sem a borda separadora que o __foot usa. */
.price-card__note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.price-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  /* Empurra o rodapé para a base, para os dois cartões terminarem alinhados
     mesmo com textos de tamanhos diferentes. */
  flex: 1;
  align-content: start;
}

.price-card__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: var(--space-2);
  line-height: 1.5;
}

.price-card__list li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.price-card__foot {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* CTA do cartão Team: fica preso na base do cartão (margin-top: auto no
   flex column do .price-card), alinhando com o __foot dos outros dois. */
.price-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-note {
  margin: var(--space-5) 0 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-col h2,
.footer-col h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-3);
  max-width: 40ch;
}

.pending {
  color: var(--text-muted);
  font-style: italic;
}

/* Um botão primário pendente precisa perder o fundo de destaque junto com
   a cor do texto. Só apagar o texto deixaria cinza sobre laranja — 1,1:1
   de contraste, ilegível — e o CTA principal da home cai nesse caso. */
.btn--primary.pending,
.btn--primary.pending:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
}

.pending::after {
  content: " (pendente)";
  font-size: var(--text-xs);
}

.lang-en .pending::after {
  content: " (pending)";
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* ---------- legal / long-form pages ---------- */

.legal-page {
  padding: var(--space-7) 0 var(--space-9);
}

.legal-header {
  max-width: var(--prose-width);
  margin: 0 auto var(--space-7);
}

.legal-header h1 {
  font-size: var(--text-3xl);
}

.legal-updated {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.prose {
  max-width: var(--prose-width);
  margin: 0 auto;
}

.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
}

.prose h3 {
  font-size: var(--text-md);
  margin-top: var(--space-6);
}

.prose p,
.prose li {
  color: var(--text);
  font-size: var(--text-md);
}

.prose p {
  margin: 0 0 var(--space-4);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.prose blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote p {
  margin: 0 0 var(--space-1);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.prose th,
.prose td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose thead th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose strong {
  color: var(--text);
}

.placeholder {
  color: var(--warning);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  text-decoration: none;
  margin-bottom: var(--space-5);
}

@media (max-width: 560px) {
  /* No celular o nome da marca quebrava em três linhas e a navegação
     se atropelava ao lado dela. Empilhar as duas e esconder os links de
     seção (o conteúdo está logo abaixo, a poucos toques de rolagem)
     deixa o cabeçalho legível sem virar um menu sanfona. */
  .site-header__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .brand {
    white-space: nowrap;
    font-size: var(--text-sm);
  }

  .header-nav a[href^="#"] {
    display: none;
  }

  .header-nav {
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }

  .legal-header h1 {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  .container {
    padding: 0 var(--space-4);
  }
}

/* Aviso curto logo abaixo do bloco de identificação nas páginas legais. */
.legal-hint {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- lead form (teams) ---------- */

.lead-form {
  display: grid;
  gap: var(--space-4);
}

/* Author-origin `display: grid` above beats the user-agent `[hidden] {
   display: none }` regardless of specificity — origin wins, not specificity
   weight — so `form.hidden = true` alone has no visual effect on this
   element. The success branch toggles this class instead, and this rule
   must stay AFTER `.lead-form` in source order so it wins the tie against
   an equal-specificity single-class selector. */
.lead-form.is-hidden {
  display: none;
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.form-field input {
  font: inherit;
  font-size: var(--text-md);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  width: 100%;
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.form-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field__hint {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.lead-form__submit {
  width: 100%;
  justify-content: center;
}

.lead-form__submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.lead-form__note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}

.form-status {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Sits as a sibling of <form class="lead-form">, not a descendant (see the
   HTML comment next to it) — so it needs its own top margin instead of
   inheriting the form's grid `gap`. */
.diagram-frame > .form-status {
  margin-top: var(--space-4);
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

.form-status--success {
  border-color: var(--success);
  background: rgba(34, 160, 107, 0.12);
}

.form-status--info {
  border-color: var(--accent);
  background: rgba(217, 119, 87, 0.1);
}

.form-status--warning {
  border-color: var(--warning);
  background: rgba(217, 158, 48, 0.12);
}

.form-status--error {
  border-color: var(--danger);
  background: rgba(220, 91, 91, 0.12);
}

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

.faq-list {
  display: grid;
  gap: var(--space-3);
  max-width: var(--prose-width);
}

.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex-shrink: 0;
  width: 1.2em;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}
