:root {
  color-scheme: light;
  --bg: #eef3f7;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #5c6b7a;
  --line: #d6e0ea;
  --primary: #156f59;
  --primary-dark: #0e5745;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(21, 111, 89, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(41, 98, 147, 0.13), transparent 36%),
    var(--bg);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: start;
}

.shell.compact {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.intro {
  padding: 28px 0;
}

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid rgba(21, 111, 89, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.profile img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}

.profile strong,
.profile span {
  display: block;
}

.profile span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.landing-intro .lead,
.landing-form-lead,
.landing-copy {
  max-width: 62ch;
}

.landing-copy {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.landing-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.audience-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0;
}

.audience-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 999px;
}

.audience-icon svg {
  width: 14px;
  height: 14px;
}

.audience-yes .audience-icon {
  color: var(--primary);
  background: rgba(21, 111, 89, 0.1);
}

.audience-no .audience-icon {
  color: #8a1f16;
  background: rgba(180, 35, 24, 0.08);
}

.audience-kicker {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
}

.audience-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.96rem;
}

.landing-form {
  margin-top: 6px;
}

.landing-form-kicker {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.landing-form-lead {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.landing-note {
  margin-top: 2px;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  color: #39495a;
  line-height: 1.55;
}

.landing-note p {
  margin: 0;
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.landing-trust span {
  padding: 8px 12px;
  border: 1px solid rgba(21, 111, 89, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2b3d4f;
  font-size: 0.9rem;
  font-weight: 700;
}

.landing-faq {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.landing-faq h2 {
  margin-bottom: 14px;
}

.landing-faq details {
  margin-top: 10px;
  padding: 12px 0 0;
}

.landing-faq summary {
  cursor: pointer;
  font-weight: 800;
}

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

.landing-faq p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.note {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
  color: #39495a;
  line-height: 1.55;
}

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(31, 49, 68, 0.12);
}

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

label {
  display: block;
  margin-bottom: 16px;
}

label span {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 0.95rem;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7e2;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fbfdff;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(21, 111, 89, 0.18);
  border-color: var(--primary);
}

small {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-weight: 600;
}

.privacy {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

a {
  color: var(--primary-dark);
  font-weight: 700;
}

button,
.back,
.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button.secondary {
  background: #2b3d4f;
}

button:hover,
.back:hover,
.whatsapp:hover {
  background: var(--primary-dark);
}

.whatsapp {
  margin: 18px 12px 0 0;
  background: #1a7f55;
}

.whatsapp.mini {
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  font-size: 0.92rem;
}

.whatsapp-icon-link {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  align-self: flex-start;
  margin-top: 2px;
  border-radius: 999px;
  color: #5f756c;
  text-decoration: none;
  background: transparent;
}

.whatsapp-icon-link:hover {
  background: rgba(95, 117, 108, 0.08);
}

.whatsapp-icon-link svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .landing-audience {
    grid-template-columns: 1fr;
  }

  .intro {
    padding: 0;
  }

  h1 {
    font-size: 2.1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.table-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(31, 49, 68, 0.1);
}

.lead-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.lead-row:last-child {
  border-bottom: 0;
}

.lead-row-main {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.lead-row strong,
.lead-row span,
.lead-row time {
  display: block;
}

.lead-row span,
.lead-row time,
.lead-meta {
  color: var(--muted);
}

.lead-row time {
  margin-top: 4px;
  font-size: 0.9rem;
}

.lead-meta {
  text-align: right;
  min-width: 190px;
}

.badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8eef5;
  color: #2b3d4f;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.awaiting_approval {
  background: #e7f7ee;
  color: #11643f;
}

.badge.email_sent {
  background: #e7f0ff;
  color: #174ea6;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 20px;
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.3rem;
}

h3 {
  margin: 18px 0 8px;
}

dl {
  margin: 0;
}

dt {
  margin-top: 13px;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #f6c2bd;
  border-radius: 8px;
  background: #fff4f2;
  color: #8a1f16;
}

.empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .admin-header,
  .lead-row {
    display: block;
  }

  .lead-meta {
    margin-top: 10px;
    text-align: left;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}
