:root {
  --charcoal: #17140F;
  --charcoal-2: #1E1A14;
  --forest: #1F3B2C;
  --cream: #F3EFE6;
  --sage: #8FA692;
  --brass: #B98D4B;
  --hairline: rgba(255, 255, 255, 0.08);
  --error: #E0A090;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Fraunces', Georgia, serif; }

::selection { background: var(--brass); color: var(--charcoal); }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--charcoal);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(23, 20, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topnav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.topnav a {
  text-decoration: none;
  color: var(--sage);
  transition: color 0.15s ease;
}
.topnav a:hover { color: var(--cream); }

@media (max-width: 34rem) {
  .topnav a:not(:last-child) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(31, 59, 44, 0.65), transparent 70%),
    var(--charcoal);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6.2vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 16em;
}

.lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--sage);
}

@media (min-width: 60rem) {
  .hero { padding: 5.5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}

/* Cartão de acesso: o destaque da página */

.access {
  background: var(--cream);
  color: var(--charcoal);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.access h2 { font-size: 1.5rem; }

.access-help {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: #4B5A4E;
}

.field {
  display: flex;
  align-items: stretch;
  margin-top: 1.25rem;
  background: #fff;
  border: 1.5px solid #CFC7B4;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 59, 44, 0.18);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 0.25rem 0.85rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: right;
}
.field input::placeholder { color: #A39C8B; font-weight: 500; }
.field input:focus { outline: none; }

.suffix {
  display: flex;
  align-items: center;
  padding: 0 1rem 0 0.15rem;
  font-size: 0.95rem;
  color: #6B6656;
  white-space: nowrap;
}

.preview {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #6B6656;
  word-break: break-all;
}
.preview span { color: var(--forest); font-weight: 700; }

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.status {
  min-height: 1.4rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: #4B5A4E;
}
.status.is-error { color: #9A3B24; }
.status a { font-weight: 700; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover:not([disabled]) { background: #29503B; }

.btn-ghost { background: transparent; border-color: #B7AE98; color: var(--charcoal); }
.btn-ghost:hover:not([disabled]) { border-color: var(--forest); background: rgba(31, 59, 44, 0.08); }

/* variantes sobre fundo escuro */
.contact .btn-primary { background: var(--brass); color: var(--charcoal); }
.contact .btn-primary:hover { background: #C99C58; }
.contact .btn-ghost { border-color: rgba(243, 239, 230, 0.35); color: var(--cream); }
.contact .btn-ghost:hover { border-color: var(--cream); background: rgba(243, 239, 230, 0.06); }

/* ---------- Seções ---------- */

.section { padding: 4rem 0; }
.section-band { background: var(--charcoal-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-head p { margin-top: 0.9rem; color: var(--sage); max-width: 34rem; }
.section-head.narrow { margin-bottom: 2.25rem; }

.split { display: grid; gap: 2.5rem; }

@media (min-width: 56rem) {
  .section { padding: 5.5rem 0; }
  .split { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
  .split .section-head { position: sticky; top: 6rem; }
}

/* Definições */

.defs { margin: 0; }
.defs > div {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
}
.defs > div:first-child { padding-top: 0; }
.defs > div:last-child { border-bottom: 0; }

.defs dt {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--brass);
}
.defs dd { margin: 0.35rem 0 0; color: var(--cream); max-width: 40rem; }
.defs strong { color: var(--brass); font-weight: 600; word-break: break-word; }

/* Duas portas */

.doors {
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) { .doors { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.door {
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: var(--charcoal);
}
.door:last-child { border-color: rgba(185, 141, 75, 0.45); }

.url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--brass);
  word-break: break-all;
  margin-bottom: 1rem;
}
.url .dim { color: var(--cream); }

.door h3 { font-size: 1.2rem; font-family: 'Fraunces', Georgia, serif; }
.door p:last-child { margin-top: 0.5rem; color: var(--sage); }

.note-line {
  margin-top: 1.75rem;
  color: var(--sage);
  font-size: 0.95rem;
  max-width: 44rem;
}
.note-line strong { color: var(--cream); }

/* Módulos */

.modules { display: grid; gap: 1.25rem; }
@media (min-width: 60rem) { .modules { grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; } }

.module { border-radius: 1.25rem; padding: 1.75rem 1.5rem; }
.module h3 { font-size: 1.6rem; }
.module-sub { margin-top: 0.35rem; color: var(--sage); font-size: 0.95rem; }

.module-base {
  background: var(--forest);
  border: 1px solid rgba(143, 166, 146, 0.25);
}
.module-base .module-sub { color: #C3D2C5; }

.module-groups {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 40rem) { .module-groups { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; } }

.module h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brass);
  margin-bottom: 0.5rem;
}

.module ul { list-style: none; margin: 0; padding: 0; }
.module li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 0.93rem;
}
.module li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brass);
}

.module-side { display: grid; gap: 1.25rem; }
.module-addon {
  background: transparent;
  border: 1px dashed rgba(185, 141, 75, 0.5);
}
.module-addon ul { margin-top: 1rem; }

/* Controle */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  padding: 1.1rem 0 1.1rem 2rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  color: var(--sage);
}
.checks li:first-child { padding-top: 0; }
.checks li:first-child::before { top: 0.35em; }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 1.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}
.checks strong { color: var(--cream); font-weight: 600; }

/* FAQ */

.faq-wrap { max-width: 50rem; }

.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brass);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2rem 1.25rem 0; color: var(--sage); }

/* Contato */

.contact { background: var(--forest); }
.contact-inner { display: grid; gap: 1.75rem; align-items: center; }
.contact h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); max-width: 18em; }
.contact p { margin-top: 0.75rem; color: #C3D2C5; max-width: 32rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 56rem) {
  .contact-inner { grid-template-columns: 1.2fr 0.8fr; }
  .contact-actions { justify-content: flex-end; }
}

/* Rodapé */

.footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--hairline); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; }
.footer-brand { font-size: 1.15rem; font-style: italic; }
.fine { font-size: 0.8rem; color: rgba(143, 166, 146, 0.8); }
