@font-face {
  font-family: Inter;
  src: url("/assets/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B3251;
  --navy-ink: #0B3251;
  --red: #C82333;
  --blue: #1F6FB2;
  --whatsapp: #25D366;
  --bg: #E8EEF3;
  --card: #FFFFFF;
  --muted: #5B6E7D;
  --line: #D3DCE4;
  --ok: #1F7A4D;
  --ok-soft: #E8F6EE;
  --amber: #8A5A00;
  --amber-soft: #FFF4E0;
  --danger-soft: #FDECEE;
  --shadow: 0 1px 3px rgba(11, 50, 81, 0.08), 0 4px 14px rgba(11, 50, 81, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--navy-ink);
  font-family: Inter, "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { margin: 0; }

.wrap {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.header {
  min-height: 56px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px calc(8px + env(safe-area-inset-top, 0px));
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

.header img.logo {
  height: 32px;
  width: auto;
  display: block;
}

.header .domain,
.header .brand {
  text-decoration: none;
}

.header .domain {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.01em;
  padding-top: 8px;
}

.accent { height: 3px; background: var(--red); flex-shrink: 0; }

main {
  flex: 1 1 auto;
  padding: 14px 16px 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

.hero p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

.preview-banner {
  margin-top: 12px;
  background: #FFF4E0;
  color: #6B4300;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.4;
}

.photo {
  margin-top: 12px;
  position: relative;
  height: 158px;
  border-radius: 14px;
  overflow: hidden;
  background: #d9cbb8;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(11, 50, 81, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
}

.photo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(11,50,81,0.12);
}

.dropzone {
  margin-top: 12px;
  background: var(--card);
  border: 1.5px dashed #B7C4CE;
  border-radius: 14px;
  min-height: 148px;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--navy);
}

.dropzone:hover, .dropzone:focus, .dropzone.drag {
  border-color: var(--blue);
  outline: none;
}

.dropzone .cam {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E4EEF8;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.dropzone strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dropzone span {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.field {
  margin-top: 14px;
}

.field label, .field .lab {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.chip[aria-pressed="true"], .chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.field input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  background: #fff;
}

.field input[type="text"]:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.area-live {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ok);
}

.area-live.outside { color: #8A5A00; }
.area-live.error { color: #8E1522; }

.card {
  margin-top: 10px;
  background: var(--card);
  border-radius: 14px;
  padding: 13px 14px 14px;
  box-shadow: var(--shadow);
}

.card.tight { padding: 11px 14px; }

.kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.kicker .label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  background: #E8EEF3;
  color: var(--navy);
  white-space: nowrap;
}

.pill.accent { background: #E4EEF8; color: var(--blue); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: #FFF4E0; color: #8A5A00; }

.card h2 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
}

.card .clues {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #3E5160;
}

.area {
  margin-top: 10px;
  background: var(--ok-soft);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.area.outside, .area.limited { background: var(--amber-soft); }

.area .tick {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.area.outside .tick, .area.limited .tick { background: #C47B00; }

.area h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--navy);
}

.area p {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ok);
  font-weight: 550;
}

.area.outside p, .area.limited p { color: #8A5A00; }

.banner {
  margin-top: 12px;
  border-radius: 14px;
  padding: 13px 14px 14px;
  box-shadow: var(--shadow);
}

.banner.warning { background: var(--amber-soft); }
.banner.danger { background: var(--danger-soft); }

.banner .lead {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.banner .icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.banner.warning .icon { background: #F3D392; }
.banner.danger .icon { background: #F5C1C6; }

.banner h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.banner.warning h2 { color: #6B4300; }
.banner.danger h2 { color: #8E1522; }

.banner .body {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.4;
}

.banner.warning .body { color: #5C3C08; }
.banner.danger .body { color: #5A2430; }

.rules { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }

.rule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  color: #6B4300;
  line-height: 1.25;
}

.helpline {
  margin-top: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}

.helpline .tag {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.helpline h3 {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.helpline .number {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #3E5160;
}

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

.btn {
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.btn:disabled { opacity: 0.65; cursor: progress; }

.btn.wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20, 120, 60, 0.25);
}

.btn.call, .btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn.primary {
  background: var(--navy);
  color: #fff;
}

.btn.call .num { font-weight: 700; white-space: nowrap; }

.linkish {
  margin-top: 12px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  text-align: center;
  width: 100%;
  padding: 8px 0;
}

.error {
  margin-top: 10px;
  background: var(--danger-soft);
  color: #8E1522;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.demos {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demos .lab { margin-bottom: 2px; }

.btn.sample {
  height: 40px;
  font-size: 13.5px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--navy);
}

.foot {
  margin-top: auto;
  padding: 16px 0 calc(22px + env(safe-area-inset-bottom, 0px));
}

.disclaimer {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.insured {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 550;
  color: #7A8B97;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (min-width: 720px) {
  body { background: #d4dee6; }
  .wrap {
    margin: 24px auto 40px;
    min-height: calc(100dvh - 64px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(11,50,81,0.12);
  }
}
