/* Inter variable font — self-hosted */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/solicita_demo/static/fonts/inter-var.woff2') format('woff2');
}

/* ── Twyn design tokens ──────────────────────────────────────────────────── */
:root {
  --brand:         #48d3c7;
  --brand-dark:    #1a7775;
  --brand-light:   #c7f4ee;
  --ink:           #102d3b;
  --mist:          #dcebea;
  --bg:            #f4f7f6;
  --card:          #ffffff;
  --secondary:     #e7f1f0;
  --muted:         #e8efee;
  --muted-fg:      #54707a;
  --accent:        #d9f5f1;
  --accent-fg:     #114e50;
  --border:        rgba(16, 45, 59, 0.12);
  --input-border:  rgba(16, 45, 59, 0.18);
  --ring:          #2caea7;
  --danger:        #b42318;
  --danger-bg:     #fef2f2;
  --danger-border: #fca5a5;
  --success:       #166534;
  --success-bg:    #f0fdf4;
  --success-border:#86efac;
  --radius:        0.5rem;
  --radius-card:   1rem;
  --radius-pill:   9999px;
  --shadow-card:   0 0 0 1px rgba(16,45,59,.06), 0 1px 2px -1px rgba(16,45,59,.08), 0 18px 50px -34px rgba(16,45,59,.4);
  --shadow-hover:  0 0 0 1px rgba(16,45,59,.09), 0 2px 6px -2px rgba(16,45,59,.1), 0 24px 60px -34px rgba(16,45,59,.48);
  --motion:        cubic-bezier(0.2, 0, 0, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Logo SVG ────────────────────────────────────────────────────────────── */
.twyn-logo { color: var(--ink); display: block; }
.twyn-logo svg { display: block; }
.logo-sub {
  font-size: 0.6rem;
  color: var(--muted-fg);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Topbar / Nav ────────────────────────────────────────────────────────── */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-logo { height: 28px; display: flex; align-items: center; }
.topbar-logo svg { height: 100%; width: auto; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* ── Page wrapper ────────────────────────────────────────────────────────── */
.page {
  max-width: 540px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-wide {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
.card + .card { margin-top: 20px; }

@media (max-width: 600px) {
  .card { padding: 28px 24px; }
  .page, .page-wide { padding: 32px 16px 64px; }
  .topbar { padding: 0 1.25rem; }
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1 { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
h2 { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
h3 { font-size: 1rem; font-weight: 600; color: var(--ink); }
p  { color: var(--muted-fg); font-size: 0.9375rem; }
.text-muted { color: var(--muted-fg); font-size: 0.875rem; }
.text-small { font-size: 0.8125rem; color: var(--muted-fg); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 150ms var(--motion), transform 100ms var(--motion), box-shadow 150ms var(--motion);
  white-space: nowrap;
}
.btn:hover  { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-primary {
  background: var(--ink);
  color: #f8fffe;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(16,45,59,.25); }

.btn-brand {
  background: var(--brand);
  color: var(--ink);
}
.btn-brand:hover { box-shadow: 0 4px 14px rgba(72,211,199,.4); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted-fg);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-danger { background: transparent; border: 1.5px solid var(--border); color: var(--muted-fg); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }

/* ── Form elements ───────────────────────────────────────────────────────── */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-fg);
  margin-bottom: 0.375rem;
}
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=number],
.field input[type=password] {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  background: var(--card);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.field input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(44,174,167,.15);
}
.field input::placeholder { color: rgba(16,45,59,.35); }
.field input.has-error { border-color: var(--danger); }

.required-mark { color: var(--brand-dark); margin-left: 2px; }

/* Toggle / Segmented control */
.seg-control {
  display: flex;
  background: var(--muted);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  background: transparent;
  color: var(--muted-fg);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms var(--motion);
  text-align: center;
}
.seg-btn.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16,45,59,.12);
}

/* Checkboxes */
.check-group { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.check-item:last-child { border-bottom: none; }
.check-item input[type=checkbox] {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  accent-color: var(--brand-dark);
  cursor: pointer;
  margin-top: 2px;
}
.check-label {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  cursor: pointer;
}
.check-label a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.alert-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: #991b1b;
}
.alert-error li { list-style: none; padding: 2px 0; }
.alert-error li::before { content: "• "; }
.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.alert-brand {
  background: var(--accent);
  border: 1px solid rgba(72,211,199,.3);
  color: var(--accent-fg);
}

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-done    { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-pending { background: var(--muted);      color: var(--muted-fg); border: 1px solid var(--border); }
.badge-active  { background: var(--accent);     color: var(--accent-fg); border: 1px solid rgba(72,211,199,.3); }
.badge-expired { background: var(--danger-bg);  color: var(--danger); border: 1px solid var(--danger-border); }
.badge-pf      { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.badge-pj      { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }

/* ── Steps / Timeline ────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step  { display: flex; align-items: flex-start; gap: 16px; }
.step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-dot-done    { background: var(--brand); color: var(--ink); }
.step-dot-pending { background: var(--muted); color: var(--muted-fg); border: 1.5px solid var(--border); }
.step-dot-active  { background: var(--ink);   color: #f8fffe; }
.step-dot-expired { background: var(--danger); color: #fff; }
.step-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--border);
  margin: 4px auto;
}
.step-line-done { background: var(--brand-light); }
.step-body  { padding: 8px 0 24px; flex: 1; }
.step-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.step-title.muted { color: var(--muted-fg); }
.step-meta  { font-size: 0.8125rem; color: var(--muted-fg); }

/* step with badge inline */
.step-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.prog-track { background: var(--muted); border-radius: var(--radius-pill); height: 6px; overflow: hidden; }
.prog-fill  { height: 100%; border-radius: var(--radius-pill); background: var(--brand); transition: width 800ms ease; }
.prog-fill-expired { background: var(--danger); }

/* ── Links list ──────────────────────────────────────────────────────────── */
.links-list { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.link-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 150ms;
  gap: 12px;
}
.link-item:last-child { border-bottom: none; }
.link-item:hover { background: var(--secondary); }
.link-item.locked { pointer-events: none; opacity: 0.45; }
.link-left { display: flex; align-items: center; gap: 12px; }
.link-icon { font-size: 1.25rem; }
.link-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.link-desc  { font-size: 0.8125rem; color: var(--muted-fg); }
.link-arrow { color: var(--muted-fg); font-size: 1rem; }

/* ── Section heading ─────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 10px;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Token display ───────────────────────────────────────────────────────── */
.token-box {
  background: var(--secondary);
  border: 1.5px solid rgba(72,211,199,.35);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.token-val {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 2px;
  word-break: break-all;
}

/* ── OTP input ───────────────────────────────────────────────────────────── */
.otp-input {
  width: 100%;
  padding: 1rem;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  background: var(--card);
  border: 2px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--brand-dark);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.otp-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(44,174,167,.15);
}

/* ── Timer ───────────────────────────────────────────────────────────────── */
.timer-card {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 28px;
  color: #f8fffe;
  margin-bottom: 20px;
}
.timer-card.expired { background: #450a0a; }
.timer-days {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.timer-days.expired { color: #fca5a5; }
.timer-unit { font-size: 1rem; color: rgba(248,255,254,.6); margin-left: 6px; }
.timer-sub  { font-size: 0.875rem; color: rgba(248,255,254,.5); margin-top: 6px; }
.timer-prog-track { background: rgba(255,255,255,.1); border-radius: var(--radius-pill); height: 6px; overflow: hidden; margin-top: 16px; }
.timer-prog-fill  { height: 100%; border-radius: var(--radius-pill); background: var(--brand); transition: width 800ms; }
.timer-prog-fill.expired { background: #f87171; }
.timer-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(248,255,254,.4); margin-top: 6px; }

/* ── Email tag ───────────────────────────────────────────────────────────── */
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

/* ── Nav icon buttons ────────────────────────────────────────────────────── */
.env-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(72,211,199,.15);
  color: var(--brand-dark);
  border: 1px solid rgba(72,211,199,.4);
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar-left  { display: flex; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.nav-icons    { display: flex; align-items: center; gap: 0.5rem; }
.header-divider { width: 1px; height: 28px; background: var(--border); margin: 0 .25rem; flex-shrink: 0; }

.nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.3;
  justify-content: center;
  transition: background 150ms var(--motion), color 150ms var(--motion);
}
.nav-icon-btn:hover,
.nav-icon-btn.active {
  background: var(--secondary);
  color: var(--brand-dark);
  opacity: 1;
  transform: none;
  box-shadow: none;
}
.nav-icon-btn svg { display: block; }


.nav-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nav-icon-btn span { display: none; }
  .nav-icon-btn { padding: 7px; }
  .nav-divider  { margin: 0 3px; }
}

/* ── Mobile hamburger menu ───────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  border-radius: 6px;
  margin-left: 4px;
}
.nav-hamburger:hover { background: rgba(16,45,59,.06); }
.nav-hamburger .icon-close { display: none; }
.nav-hamburger[aria-expanded="true"] .icon-menu  { display: none; }
.nav-hamburger[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(16,45,59,.08);
  box-shadow: 0 8px 24px rgba(16,45,59,.12);
  z-index: 999;
  padding: 6px 0 10px;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  pointer-events: none;
}
.nav-mobile-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-mobile-item:hover { background: rgba(16,45,59,.04); }
.nav-mobile-item svg   { flex-shrink: 0; color: var(--muted-fg); }
.nav-mobile-divider    { height: 1px; background: rgba(16,45,59,.07); margin: 4px 0; }
.nav-mobile-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
  padding: 10px 20px 2px;
}

@media (max-width: 520px) {
  .topbar        { padding: 0 1rem; height: 56px; }
  .env-badge     { display: none; }
  .nav-icons     { display: none; }
  .nav-divider   { display: none; }
  .logo-sub      { display: none; }
  .btn-ghost.btn-sm { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-panel { display: block; }
}

/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: #102d3b;
  color: #fff;
  padding: 2rem;
  margin-top: 3rem;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.footer-social { display: flex; align-items: center; gap: 0.75rem; }
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  text-decoration: none;
  transition: background 150ms, border-color 150ms;
}
.footer-social-link:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
  opacity: 1;
  transform: none;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,.8);
  text-align: center;
}

/* ── Page 2-column layout (videos esq + form dir) ───────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: auto 520px;
  justify-content: center;
  padding: 48px 24px 80px;
  margin-right: 80px;
  align-items: start;
}
.page-videos {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  padding-right: 40px;
  position: sticky;
  top: 80px;
}
.page-left {
  /* coluna central do grid — sempre centrada */
}
.page-left h1 {
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.page-left-inner {
  width: 100%;
}
.phone-frame {
  position: relative;
  background: var(--ink);
  border-radius: 2.75rem;
  padding: 6px;
  box-shadow: 0 24px 50px -20px rgba(22,56,72,.45);
}
.phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2.75rem;
  background: var(--ink);
  opacity: 0.45;
  transform: translateY(4px) scale(0.97);
  z-index: -1;
  filter: blur(2px);
}
.phone-screen {
  border-radius: 2.375rem;
  overflow: hidden;
  background: #fff;
}
.demo-video {
  /* ALTURA = largura × 1174/540 (proporção do vídeo): o aparelho fica um pouco
     mais alto e o filme preenche o interior INTEIRO, sem corte topo/base e sem
     faixa lateral. object-fit:cover só por segurança. Idem nos breakpoints. */
  width: 199px;
  height: 433px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.demo-video-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted-fg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 1380px) { .demo-video { width: 159px; height: 346px; } }
@media (max-width: 1220px) { .demo-video { width: 124px; height: 270px; } }
@media (max-width: 1080px) {
  .page-layout  { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 32px 16px 64px; margin-right: 0; }
  .page-videos  { position: static; justify-content: center; padding-right: 0; }
  .page-left    { width: 100%; max-width: 520px; }
  .demo-video   { width: 156px; height: 339px; }
  .page-left h1 { font-size: 1.875rem; }
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-pop { animation: popIn .45s cubic-bezier(.34,1.56,.64,1) both; }
.step:nth-child(1) { animation: stepIn .35s .05s ease both; }
.step:nth-child(2) { animation: stepIn .35s .30s ease both; }
.step:nth-child(3) { animation: stepIn .35s .55s ease both; }
.step:nth-child(4) { animation: stepIn .35s .80s ease both; }
  .twyn-anim .twyn-sorriso   { animation: twyn-sorriso   6606ms linear infinite; }
  .twyn-anim .twyn-haste     { animation: twyn-haste     6606ms linear infinite; }
  .twyn-anim .twyn-travessao { animation: twyn-travessao 6606ms linear infinite; }
}
