:root {
  --radius: 16px;
  --radius-sm: 12px;
  --elev: 0 8px 24px rgba(0, 0, 0, 0.08);
  --elev-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --brand-yellow: #ffc200;
  --brand-orange: #e8720c;
  --brand-blue: #247ba0;
  --text: #1a1f24;
  --muted: #5c6570;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(36, 123, 160, 0.15);
  --positive: #15803d;
  --tight: #b45309;
  --negative: #b91c1c;
  --page-bg: linear-gradient(165deg, #fef9f3 0%, #e8f4fa 50%, #fff8ec 100%);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-top: env(safe-area-inset-top, 0);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  color: var(--text);
  min-height: 100dvh;
  background: var(--page-bg);
}

a {
  color: var(--brand-blue);
  font-weight: 700;
}

.gc-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gc-skip:focus {
  position: fixed;
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--surface);
  z-index: 9999;
  border-radius: 8px;
  box-shadow: var(--elev-lg);
}

.gc-app {
  max-width: 440px;
  margin: 0 auto;
  padding: calc(1rem + var(--safe-top)) 1.15rem calc(1.25rem + var(--safe-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.gc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.gc-brand {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--brand-blue);
  text-decoration: none;
}

.gc-brand:hover {
  text-decoration: underline;
}

.gc-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.gc-back-link {
  display: inline-block;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.gc-back-link:hover {
  text-decoration: underline;
}

.gc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gc-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  animation: gc-fade 0.28s ease;
  min-height: 0;
  padding-top: 0.15rem;
}

@keyframes gc-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gc-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--elev);
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 0 1 auto;
  width: 100%;
  min-height: 0;
}

.gc-card--compact {
  gap: 0.55rem;
}

.gc-card--intro .gc-title {
  text-align: center;
}

.gc-card--intro .gc-lead {
  text-align: center;
}

.gc-card--intro .gc-btn-row,
.gc-card--intro .gc-disclaimer {
  width: 100%;
}

.gc-live-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  margin: 0 0 0.25rem;
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--brand-blue);
}

.gc-progress-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.gc-progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(36, 123, 160, 0.12);
  overflow: hidden;
}

.gc-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  transition: width 0.25s ease;
}

.gc-progress-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.gc-progress-label--solo {
  margin-bottom: 0.15rem;
}

.gc-title {
  margin: 0;
  font-size: clamp(1.45rem, 5.2vw, 1.72rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text);
}

.gc-card--step .gc-title {
  margin-bottom: 0.1rem;
}

.gc-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
}

.gc-hint {
  margin: -0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.gc-micro {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.gc-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gc-options--tight {
  gap: 0.42rem;
}

.gc-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  min-height: 0;
}

.gc-option--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.gc-option__line1 {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.gc-option__sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.gc-option:hover {
  border-color: var(--brand-blue);
  background: rgba(36, 123, 160, 0.06);
}

.gc-option:active {
  transform: scale(0.99);
}

.gc-option.is-selected {
  border-color: var(--brand-blue);
  background: rgba(36, 123, 160, 0.1);
  box-shadow: inset 0 0 0 1px var(--brand-blue);
}

.gc-toggle-exact {
  margin-top: 0.25rem;
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}

.gc-exact-wrap {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.gc-exact-wrap.is-open {
  display: flex;
}

.gc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.gc-input-euro {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
}

.gc-input-euro:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.gc-btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0;
}

.gc-btn-row--inline {
  margin-top: 0.35rem;
}

.gc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.1s, box-shadow 0.15s;
}

.gc-btn:disabled {
  cursor: not-allowed;
}

.gc-btn:active {
  transform: scale(0.99);
}

.gc-btn--primary {
  background: linear-gradient(135deg, var(--brand-orange), #d4650a);
  color: #fff;
  box-shadow: var(--elev);
}

.gc-btn--primary:hover {
  box-shadow: var(--elev-lg);
}

.gc-btn--secondary {
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.gc-btn--ghost {
  background: transparent;
  color: var(--brand-blue);
  font-weight: 700;
  min-height: 48px;
}

.gc-big-number {
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--brand-blue);
  text-align: center;
  margin: 0.25rem 0;
}

.gc-big-number--result-pos {
  color: var(--positive);
}

.gc-big-number--result-tight {
  color: var(--tight);
}

.gc-big-number--result-neg {
  color: var(--negative);
}

.gc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.gc-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
}

.gc-breakdown li:last-child {
  border-bottom: none;
}

.gc-breakdown span:last-child {
  color: var(--brand-blue);
  white-space: nowrap;
}

.gc-compare {
  background: rgba(36, 123, 160, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.gc-compare__line {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.gc-compare__line--strong {
  margin: 0.4rem 0 0;
  font-weight: 900;
  font-size: 1rem;
  color: var(--brand-blue);
}

.gc-compare--final .gc-compare__line--strong {
  font-size: 1.02rem;
}

.gc-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gc-block-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.gc-line-summary {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.35rem 0;
}

.gc-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.gc-spacer {
  flex: 1;
  min-height: 0.5rem;
}

@media (min-width: 400px) {
  .gc-app {
    max-width: 460px;
  }

  .gc-card {
    padding: 1.1rem 1.1rem;
  }
}
