:root {
  --bg: #e8f4f1;
  --paper: #f7fffc;
  --ink: #12332f;
  --muted: #4d6b66;
  --line: rgba(15, 118, 110, 0.16);
  --teal: #0f766e;
  --teal-2: #115e59;
  --mint: #ccfbf1;
  --orange: #ea580c;
  --orange-2: #c2410c;
  --whatsapp: #16a34a;
  --shadow: 0 18px 40px rgba(18, 51, 47, 0.12);
  --dock-h: 60px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-padding-bottom: calc(var(--dock-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px 12px calc(var(--dock-h) + 36px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 12% 0%, #fdba74 0, transparent 28%),
    radial-gradient(circle at 90% 8%, #5eead4 0, transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

.app {
  width: min(100%, 460px);
  overflow-x: clip;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.note {
  margin: 0;
  padding: 11px 16px;
  background: var(--mint);
  color: var(--teal-2);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.top,
.board,
.cards,
.flow {
  padding: 16px 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, transparent 55%, #fdba74 56% 62%, transparent 63%),
    linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.brand-name,
.brand-sub,
h1,
h2,
h3,
p,
legend {
  margin: 0;
}

.brand-name {
  font-weight: 900;
  font-size: 18px;
}

.brand-sub,
.kicker,
.lead,
.cards p,
.flow li,
.legal-body p,
footer {
  color: var(--muted);
}

.kicker {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(24px, 6.4vw, 32px);
  line-height: 1.25;
  font-weight: 900;
}

.lead {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.75;
}

.board {
  padding-top: 18px;
}

.board-head {
  margin-bottom: 14px;
}

.board-head h2,
.cards h2,
.flow h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--teal-2);
}

.chips,
.nets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.net,
.use,
.btn,
.legal-toggle {
  font: inherit;
  cursor: pointer;
}

.chip,
.net {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.chip.is-on,
.net.is-on,
.use.is-on {
  border-color: transparent;
  background: var(--teal);
  color: #fff;
}

.use-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.field {
  scroll-margin-bottom: 96px;
}

.use {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
}

.use span {
  color: var(--muted);
  font-size: 13px;
}

.result {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(160deg, #115e59, #0f766e);
  color: #ecfdf8;
}

.result-tag {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #99f6e4;
}

.result h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.result-copy p:last-child {
  line-height: 1.7;
  color: #ccfbf1;
}

.gauge {
  position: relative;
  width: 140px;
  margin: 0 auto;
}

.gauge svg {
  width: 100%;
  display: block;
}

.gauge .track,
.gauge .fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge .track {
  stroke: rgba(255, 255, 255, 0.18);
}

.gauge .fill {
  stroke: #fdba74;
  stroke-dasharray: 157;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.35s ease;
}

.gauge b {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: 14px;
}

.result-actions {
  display: grid;
  gap: 8px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
}

.btn.primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
}

.btn.call {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cards {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.cards article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.flow ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.flow li {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  line-height: 1.6;
}

.flow strong {
  color: var(--ink);
}

.legal-box {
  margin: 18px 16px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.legal-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.legal-box.open .legal-toggle span {
  transform: rotate(180deg);
}

.legal-toggle span {
  transition: transform 0.2s ease;
}

.legal-body {
  padding: 0 16px 16px;
}

.legal-body a,
footer a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

footer {
  margin-top: 18px;
  padding: 16px 18px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

footer p {
  margin-bottom: 8px;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(428px, calc(100% - 24px));
  height: var(--dock-h);
  max-height: var(--dock-h);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: stretch;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(17, 94, 89, 0.96);
  box-shadow: 0 12px 28px rgba(18, 51, 47, 0.28);
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}

.dock-call,
.dock-wa {
  width: auto;
  height: auto;
  border-radius: 50%;
}

.dock-call {
  background: linear-gradient(135deg, #0f766e, #134e4a);
}

.dock-wa {
  background: linear-gradient(135deg, #15803d, var(--whatsapp));
}

.dock-order {
  min-height: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
}

.dock svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.legal {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 8px 8px 40px;
}

.legal h1 {
  font-size: 28px;
}

.legal h2 {
  margin: 22px 0 8px;
  font-size: 18px;
  color: var(--ink);
}

.legal p {
  color: var(--muted);
  line-height: 1.8;
}

.back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 380px) {
  body {
    padding: 0 0 calc(var(--dock-h) + 28px + env(safe-area-inset-bottom, 0px));
  }

  .app {
    border-radius: 0;
    min-height: 100vh;
    border-left: 0;
    border-right: 0;
  }
}
