:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f7f7f9;
  --surface-warm: #fff8ea;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --line-strong: #d2d2d7;
  --orange: #f5a000;
  --orange-strong: #d97800;
  --orange-soft: #fff0d3;
  --orange-pale: #fffaf1;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --gmail: #ea4335;
  --gmail-dark: #c5221f;
  --black: #1d1d1f;
  --success: #22825f;
  --danger: #d94a3d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.055);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: #f5f5f7;
}

body {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f5f6f8 22%,
    #eef4fb 40%,
    #f7f2f7 57%,
    #f0f7f4 73%,
    #f2f3f5 88%,
    #ffffff 100%
  );
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 6px;
  background: #ffc400;
}

body.modal-open {
  overflow: hidden;
}

button,
select,
input {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  border: 1px solid rgba(229, 229, 231, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: var(--radius);
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(245, 160, 0, 0.25);
}

.brand-logo {
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.brand-name {
  color: var(--black);
  font-size: 20px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.official-badge,
.region-control {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 13px;
}

.official-badge {
  padding: 0 12px;
  color: var(--orange-strong);
  font-weight: 650;
  white-space: nowrap;
}

.official-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 160, 0, 0.13);
}

.region-control {
  gap: 8px;
  padding: 0 8px 0 11px;
}

.region-control span {
  white-space: nowrap;
}

.region-control select {
  max-width: 210px;
  min-height: 32px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 620;
}

.region-control select:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 160, 0, 0.2);
}

.hero-band {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 48px;
  align-items: center;
  min-height: 386px;
  padding: 50px;
  overflow: hidden;
  border: 1px solid #efdfbf;
  border-top: 4px solid #ffc400;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 68px rgba(93, 59, 0, 0.095);
}

.hero-copy {
  min-width: 0;
}

.status-line {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 11px;
  border: 1px solid #f5d89e;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--orange-strong);
  font-size: 13px;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--black);
  font-size: 60px;
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: 0;
}

.subtitle {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.trust-grid {
  display: grid;
  gap: 10px;
}

.trust-item {
  min-height: 90px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(229, 229, 231, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(81, 50, 0, 0.045);
}

.trust-icon,
.action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #f7d89d;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange-strong);
  font-weight: 760;
}

.trust-icon {
  width: 56px;
  height: 56px;
  padding: 7px;
  font-size: 16px;
}

.uploaded-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.legacy-icon {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-copy strong,
.trust-copy span {
  display: block;
}

.trust-copy strong {
  color: var(--black);
  font-size: 16px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.trust-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.action-card {
  grid-column: span 2;
  min-height: 150px;
  width: 100%;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 24px;
  gap: 15px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(210, 210, 215, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-card:nth-child(-n + 2) {
  grid-column: span 3;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-3px);
  border-color: #efbf68;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  outline: 0;
}

.action-card.primary {
  border-color: var(--whatsapp);
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 15px 34px rgba(37, 211, 102, 0.24);
}

.action-card:nth-child(2) {
  border-color: var(--gmail);
  background: var(--gmail);
  color: #fff;
  box-shadow: 0 15px 34px rgba(234, 67, 53, 0.22);
}

.action-card.primary:hover,
.action-card.primary:focus-visible {
  border-color: var(--whatsapp-dark);
  box-shadow: 0 20px 42px rgba(37, 211, 102, 0.31);
}

.action-card:nth-child(2):hover,
.action-card:nth-child(2):focus-visible {
  border-color: var(--gmail-dark);
  box-shadow: 0 20px 42px rgba(234, 67, 53, 0.29);
}

.action-card.disabled {
  cursor: not-allowed;
  border-color: var(--line);
  background: #f5f5f7;
  color: #a1a1a6;
  box-shadow: none;
}

.action-card.disabled:hover,
.action-card.disabled:focus-visible {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.action-icon {
  width: 60px;
  height: 60px;
  padding: 8px;
  font-size: 18px;
}

.primary .action-icon,
.action-card:nth-child(2) .action-icon {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.action-copy {
  min-width: 0;
}

.action-copy strong {
  display: block;
  color: var(--black);
  font-size: 17px;
  font-weight: 680;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.action-copy span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.primary .action-copy strong,
.action-card:nth-child(2) .action-copy strong {
  color: #fff;
}

.primary .action-copy span,
.action-card:nth-child(2) .action-copy span {
  color: rgba(255, 255, 255, 0.76);
}

.action-arrow,
.choice-arrow {
  color: var(--orange-strong);
  font-size: 20px;
  font-weight: 560;
  text-align: right;
}

.primary .action-arrow,
.action-card:nth-child(2) .action-arrow {
  color: rgba(255, 255, 255, 0.86);
}

.notice {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #f4d391;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.94);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer {
  padding: 24px 12px 0;
  color: #86868b;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.footer p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(620px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.modal-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 680;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f5f5f7;
  color: var(--text);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--orange);
  background: var(--orange-soft);
  outline: 0;
}

.choice-list {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.choice-copy {
  min-width: 66px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
}

.choice-copy:hover,
.choice-copy:focus-visible {
  border-color: #efbf68;
  background: var(--orange-pale);
  outline: 0;
}

.choice-link {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 5px 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.choice-link strong,
.choice-link span:not(.choice-arrow) {
  grid-column: 1;
}

.choice-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.choice-link:hover,
.choice-link:focus-visible {
  border-color: #efbf68;
  background: var(--orange-pale);
  outline: 0;
}

.choice-link span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 15px;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  transform: translateX(-50%);
}

@media (max-width: 560px) {
  .choice-row {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .choice-copy {
    min-width: 58px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 940px) {
  .hero-band {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-icon {
    margin: 0 auto;
  }

  .action-card,
  .action-card:nth-child(-n + 2) {
    grid-column: span 3;
  }
}

@media (max-width: 660px) {
  body::before {
    height: 5px;
  }

  .site-shell {
    width: min(100% - 24px, 1180px);
    padding: 12px 0 30px;
  }

  .topbar {
    position: static;
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .brand-mark,
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .topbar-controls {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .official-badge {
    justify-content: center;
    padding: 0 9px;
  }

  .region-control {
    min-width: 0;
  }

  .region-control select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero-band {
    margin-top: 12px;
    gap: 21px;
    padding: 26px 18px;
  }

  .status-line {
    margin-bottom: 16px;
    font-size: 12px;
  }

  h1 {
    font-size: 39px;
  }

  .subtitle {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.56;
  }

  .trust-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 74px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
    text-align: left;
  }

  .trust-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 6px;
  }

  .action-card,
  .action-card:nth-child(-n + 2) {
    grid-column: auto;
    min-height: 105px;
    grid-template-columns: 54px minmax(0, 1fr) 20px;
    gap: 13px;
    padding: 15px;
  }

  .action-icon {
    width: 54px;
    height: 54px;
    padding: 7px;
  }

  .action-copy strong {
    font-size: 16px;
  }

  .notice {
    padding: 14px;
  }
}

@media (max-width: 390px) {
  .topbar-controls {
    grid-template-columns: 1fr;
  }

  .official-badge {
    min-height: 36px;
  }

  h1 {
    font-size: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-card {
    transition: none;
  }
}
