/* BulletQuote — clean, professional, mobile-first */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #152033;
  --muted: #5b6b7f;
  --line: #dfe4ea;
  --accent: #16325c;
  --accent-hover: #0f2444;
  --focus: #2b6cb0;
  --shadow: 0 10px 30px rgba(21, 32, 51, 0.06);
  --radius: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

.frame {
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(18px + var(--safe-t)) 20px calc(20px + var(--safe-b));
  display: flex;
  flex-direction: column;
}

.top { margin-bottom: 28px; }

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

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.app {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 24px;
}

.screen { display: none; }
.screen.is-active { display: block; animation: rise 280ms ease-out; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active { animation: none; }
  .gauge-arc, .gauge-arc-a, .gauge-arc-b, .gauge-arc-c { animation: none !important; }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(1.7rem, 7vw, 2.15rem); }
h2 { font-size: clamp(1.35rem, 6vw, 1.75rem); }

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.choice:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); }

.progress { margin-bottom: 22px; }
.progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 220ms ease;
}
.progress-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.choices { display: grid; gap: 10px; }

.choice {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--accent); }
.choice:active, .choice.is-picked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 22px;
  text-align: center;
}
.gauge svg {
  width: 88px;
  height: 88px;
  display: block;
  margin: 0 auto 8px;
  transform: rotate(-90deg);
}
.gauge span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gauge-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}
.gauge-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 210;
}
.gauge-arc-a { animation: spin-a 1.1s linear infinite; }
.gauge-arc-b { animation: spin-b 0.85s linear infinite; stroke: #3d6b9a; }
.gauge-arc-c { animation: spin-c 0.65s linear infinite; stroke: #c9a227; }

@keyframes spin-a {
  0% { stroke-dashoffset: 250; }
  50% { stroke-dashoffset: 80; }
  100% { stroke-dashoffset: 250; }
}
@keyframes spin-b {
  0% { stroke-dashoffset: 220; }
  50% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 220; }
}
@keyframes spin-c {
  from { stroke-dashoffset: 260; }
  to { stroke-dashoffset: -29; }
}

.calc-status {
  margin: 0;
  text-align: center;
  font-weight: 600;
  min-height: 1.5em;
}

.price {
  margin: 0 0 22px;
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.quote-meta {
  margin: 0 0 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}
.quote-meta dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.quote-meta dd {
  margin: 0;
  font-weight: 700;
}

.close-line {
  margin: 0 0 24px;
  color: var(--ink);
}

.foot {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.foot p { margin: 0 0 4px; }

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

@media (min-width: 640px) {
  .app { padding: 36px 32px 32px; }
}
