:root {
  --midnight: #0f172a;
  --navy: #10223a;
  --ocean: #1c5d99;
  --sunrise: #f2994a;
  --sunrise-2: #f2c94c;
  --sand: #f6f0e9;
  --mint: #55c2a3;
  --text: #0d1017;
  --muted: #5d6473;
  --card: rgba(255, 255, 255, 0.9);
  --border: #e4e8f0;
  --shadow: 0 20px 60px rgba(12, 33, 71, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, rgba(242, 201, 76, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(85, 194, 163, 0.12), transparent 35%),
    linear-gradient(145deg, #f8fbff 0%, #eef2f8 60%, #f7f2eb 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Work Sans", sans-serif;
  margin: 0 0 0.35em;
  color: var(--midnight);
}

p {
  margin: 0 0 0.75em;
  line-height: 1.6;
}

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

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 240, 233, 0.9);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-inner .primary-nav {
  margin-left: auto;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.logo {
  width: var(--logo-size, 52px);
  height: var(--logo-size, 52px);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: none;
  z-index: 1;
}

.logo-text {
  position: relative;
  z-index: 2;
  letter-spacing: 0.08em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--ocean);
  margin: 0 0 6px;
}

.tagline {
  color: var(--muted);
  font-weight: 500;
}

.primary-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.primary-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.primary-nav a:hover {
  background: rgba(16, 35, 58, 0.07);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-icon {
  display: grid;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(28, 93, 153, 0.08), rgba(242, 153, 74, 0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  gap: 12px;
  margin: 16px 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn.compact {
  padding: 10px 18px;
  min-width: auto;
}

.btn.primary {
  background: linear-gradient(145deg, var(--ocean), var(--midnight));
  color: #fff;
  box-shadow: 0 18px 38px rgba(28, 93, 153, 0.3);
}

.btn.ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn.whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
}

.btn.whatsapp[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.btn.disabled {
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.contact-chip {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--ocean);
  border-radius: 16px;
  background: rgba(28, 93, 153, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}

.contact-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-line .divider {
  color: var(--muted);
}

.contact-line strong {
  color: var(--navy);
}

.contact-line span {
  color: var(--navy);
}

.contact-line #chipRoleWrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.chip-meta {
  color: var(--muted);
  text-align: right;
}

.scorecard {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.scorecard .metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--navy);
}

.fineprint {
  color: var(--muted);
  font-size: 13px;
}

.grid {
  margin: 32px 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel.highlight {
  background: linear-gradient(145deg, rgba(242, 153, 74, 0.1), rgba(16, 34, 58, 0.06));
  border-color: rgba(242, 153, 74, 0.4);
}

.feature-media {
  display: flex;
  margin-bottom: 10px;
}

.feature-media.align-left {
  justify-content: flex-start;
}

.feature-media.align-center {
  justify-content: center;
}

.feature-media.align-right {
  justify-content: flex-end;
}

.feature-photo {
  width: var(--feature-card1-photo-size, 120px);
  height: var(--feature-card1-photo-size, 120px);
  border-radius: 12px;
  object-fit: cover;
  display: none;
  border: 1px solid rgba(16, 34, 58, 0.08);
  margin-bottom: 10px;
}

.panel ul,
.card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card.wide {
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.muted-text {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 400;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.logo-preview img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: none;
  border: 1px solid rgba(16, 34, 58, 0.14);
}

.logo-preview span {
  color: var(--muted);
  font-size: 13px;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: linear-gradient(145deg, var(--ocean), var(--midnight));
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

label {
  font-weight: 600;
  color: var(--navy);
}

input,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fdfdfd;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.status {
  margin-top: 8px;
  min-height: 18px;
  color: var(--muted);
  font-size: 14px;
}

.analysis-results {
  background: linear-gradient(145deg, rgba(16, 34, 58, 0.85), rgba(28, 93, 153, 0.85));
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 200px;
}

.analysis-results ul {
  color: #fff;
}

.analysis-results .fineprint {
  color: var(--sunrise);
  font-weight: 600;
}

.analysis-results .eyebrow {
  color: var(--sunrise);
}

.analysis-results .summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.analysis-results .summary div {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 10px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  gap: 10px;
}

.list li {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafbff;
}

.strategy-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.chip-action {
  border: 1px solid #e4e8f0;
  background: #fff;
  color: #b42318;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.chip-action:hover {
  background: rgba(180, 35, 24, 0.08);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.pill {
  background: #fdfcf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

footer {
  margin: 32px 0 0;
  padding: 18px 32px;
  background: var(--midnight);
  color: #e9ecf4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

@media (max-width: 820px) {
  .hero-inner {
    align-items: flex-start;
    gap: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner .primary-nav {
    margin-left: 0;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .intro,
  .card.wide {
    grid-template-columns: 1fr;
  }

  main {
    padding: 20px;
  }
}

.admin-tabs {
  display: flex;
  gap: 12px;
  margin: 0 auto 20px;
  max-width: 1200px;
  padding: 0 16px;
}

.admin-tabs .tab {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.admin-tabs .tab.is-active {
  background: linear-gradient(145deg, var(--ocean), var(--midnight));
  color: #fff;
  box-shadow: 0 12px 24px rgba(28, 93, 153, 0.25);
  border-color: transparent;
}

.form-subhead {
  grid-column: span 2;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 -4px;
}

.tab-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.tab-panel[hidden] {
  display: none;
}
