@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* ─── Tokens ──────────────────────────────────────────── */
:root {
  --bg:             #080808;
  --surface:        #0f0f0f;
  --surface-2:      #141414;

  --text:           #ede9e3;
  --text-2:         #7a7672;
  --text-3:         rgba(122,118,114,0.45);

  --gold:           #c9a96e;
  --gold-hover:     #dfc080;
  --gold-dim:       rgba(201,169,110,0.12);

  --rule:           #1e1c1a;
  --rule-2:         #2a2825;

  --ok:             #6da57a;
  --err:            #c47070;

  --font-sans:  'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 100% 40% at 50% 0%, rgba(201,169,110,0.05) 0%, transparent 60%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ──────────────────────────────────────────── */
main {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 36px 0 80px;
}

/* ─── Links ───────────────────────────────────────────── */
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-hover); }

/* ─── Type scale ──────────────────────────────────────── */
h1, h2, h3, h4, p { margin: 0; }

h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
}

h3 {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.lead {
  font-size: clamp(14px, 1.7vw, 17px);
  color: var(--text-2);
  line-height: 1.8;
  font-weight: 400;
}

.caption { color: var(--text-2); font-size: 13px; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-sans);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}

.hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
}

/* ─── Sections / Cards ────────────────────────────────── */

/* All sections share a horizontal top rule */
.card, .section {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
  background: transparent;
}

.card-highlight {
  border-top-color: var(--gold);
  padding: 40px 0;
}

/* Legacy panel padding – now a no-op but kept for compatibility */
.panel { padding-top: 40px; padding-bottom: 40px; }
.card.panel { padding: 40px 0; }
.card-highlight.panel { padding: 40px 0; }

/* Nested card inside card (confirmação) */
.section.card.panel {
  border-top: 1px solid var(--rule-2);
  padding: 24px 0 0;
  margin-top: 28px;
}

/* ─── Topbar ──────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
  background: transparent;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

.topbar.topbar-logo-only {
  justify-content: flex-start;
  align-items: center;
}

.brand-top-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: block;
  height: auto;
}

.brand-logo.vocepode {
  width: min(129px, 34vw);
}

.brand-logo.compass {
  width: min(70px, 18vw);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  transition: filter .18s, background .18s;
}

.btn:active { filter: brightness(.9); }

.btn-primary { background: var(--gold); color: #080808; }
.btn-primary:hover { background: var(--gold-hover); color: #080808; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule-2);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
  background: transparent;
  color: var(--err);
  border: 1px solid rgba(196,112,112,.3);
}
.btn-danger:hover { filter: brightness(1.2); }

button:disabled, .btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Actions ─────────────────────────────────────────── */
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ─── Tags ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  border: 1px solid var(--rule-2);
  color: var(--text-2);
  border-radius: 0;
  padding: 5px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  font-family: var(--font-sans);
}

/* ─── Divider ─────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin: 24px 0;
}

/* ─── Hero grid ───────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.hero-image {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 4/5;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0) 40%, rgba(8,8,8,.8) 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .65;
  filter: grayscale(25%) contrast(1.05);
}

/* ─── Meta grid ───────────────────────────────────────── */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--rule);
  border-right: none;
}

.meta-item {
  border-right: 1px solid var(--rule);
  border-radius: 0;
  padding: 16px 18px;
  background: var(--surface);
}

.meta-item strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.meta-item span {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

/* ─── Bullet list ─────────────────────────────────────── */
.bullet-list { display: grid; gap: 0; margin-top: 20px; }

.bullet-list .item {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 14px 20px;
  color: var(--text);
  font-size: 15px;
  position: relative;
}

.bullet-list .item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ─── KPI row ─────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-right: none;
}

.kpi-card {
  border-right: 1px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .2s;
}

.kpi-card:first-child::before { opacity: .5; }

.kpi-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--gold);
  font-weight: 600;
}

.kpi-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ─── Process steps ───────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-right: none;
  margin-top: 20px;
}

.step-card {
  border-right: 1px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
  padding: 20px 18px;
}

.step-card .hint { margin-bottom: 10px; }

.step-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

/* ─── Inputs ──────────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--rule-2);
  border-radius: 0;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 400;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,169,110,.08);
}

.textarea { min-height: 120px; line-height: 1.6; resize: vertical; }

label.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}

.check-group { display: grid; gap: 10px; margin-top: 8px; }

/* ─── Messages ────────────────────────────────────────── */
.message {
  display: none;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
}

.message.show { display: block; }

.message.success {
  border: 1px solid rgba(109,165,122,.3);
  background: rgba(109,165,122,.06);
  color: var(--ok);
}

.message.error {
  border: 1px solid rgba(196,112,112,.3);
  background: rgba(196,112,112,.06);
  color: var(--err);
}

/* ─── Table ───────────────────────────────────────────── */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 0;
}

table { width: 100%; border-collapse: collapse; min-width: 920px; }

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--surface);
}

td { font-size: 13px; color: var(--text); }

/* ─── Status pills ────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-family: var(--font-sans);
}

.status-convidado  { color: #888; border: 1px solid #333; }
.status-acessou    { color: #8cb4e8; border: 1px solid #3a5a80; }
.status-confirmado { color: #7ec48a; border: 1px solid #3d6646; }
.status-cancelado  { color: #c47070; border: 1px solid #6b3535; }

/* ─── Misc ────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .spacer { flex: 1; }

.code-chip {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  font-size: 13px;
}

.center-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.footer-note { margin-top: 20px; color: var(--text-2); font-size: 12px; }

.section { margin-top: 0; }
.section p { color: var(--text-2); }

.hidden { display: none !important; }

.page-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 16/7; }
}

@media (max-width: 760px) {
  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
    border-right: 1px solid var(--rule);
  }
  .meta-item:nth-child(2n) { border-right: none; }
  .meta-item:nth-child(n+3) { border-top: 1px solid var(--rule); }

  .kpi-row {
    grid-template-columns: 1fr;
    border-right: 1px solid var(--rule);
  }
  .kpi-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .kpi-card:last-child { border-bottom: none; }

  .process-steps {
    grid-template-columns: 1fr;
    border-right: 1px solid var(--rule);
  }
  .step-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .step-card:last-child { border-bottom: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .panel { padding-top: 28px; padding-bottom: 28px; }
}

@media (max-width: 560px) {
  main { padding: 24px 0 60px; }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar.topbar-logo-only {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .brand-top-logos {
    gap: 10px;
  }

  .brand-logo.vocepode {
    width: min(116px, 40vw);
  }

  .brand-logo.compass {
    width: min(62px, 22vw);
  }

  .actions-row { flex-direction: column; }
  .actions-row .btn { width: 100%; justify-content: center; }

  .meta-grid {
    grid-template-columns: 1fr;
    border-right: 1px solid var(--rule);
  }
  .meta-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .meta-item:last-child { border-bottom: none; }
}
