/* Giveaway calculator: reuses the home page's dark token set (same --h-* values) so this reads as one brand, not a bolted-on tool. */
.giveaway {
  --h-bg: #070B12; --h-bg-2: #0B111C; --h-panel: #0F1724; --h-panel-2: #131D2D; --h-line: #1E2A3C; --h-line-2: #2A3950;
  --h-text: #E8EDF4; --h-muted: #8E9BAE; --h-dim: #5F6D82;
  --h-pass: #2FBF71; --h-fail: #FF5A4A; --h-warn: #FFA22E;
  background: var(--h-bg); color: var(--h-text);
}
.giveaway h1, .giveaway h2, .giveaway h3 { color: #fff; }
.gw-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* hero */
.gw-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 40px; }
.gw-hero-bg { position: absolute; inset: -1px -24px auto auto; width: 62%; height: 100%;
  background-image: linear-gradient(var(--h-line) 1px, transparent 1px), linear-gradient(90deg, var(--h-line) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .6;
  mask-image: radial-gradient(ellipse 85% 75% at 85% 15%, #000 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 85% 15%, #000 45%, transparent 85%);
  pointer-events: none; }
.gw-glow { position: absolute; top: -30%; right: -12%; width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,198,41,.16), transparent 70%); filter: blur(2px); pointer-events: none; }
.gw-hero-in { position: relative; }
.gw-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; max-width: 16ch; margin: 0; text-wrap: balance; }
.gw-hero h1 .hl { color: var(--brand); }
.gw-hero .lede { margin-top: 16px; max-width: 60ch; color: var(--h-muted); font-size: 17px; line-height: 1.6; }
.gw-hero .lede strong { color: #fff; }

.gw-section { padding: 0 0 48px; }

/* rig layout */
.gw-rig { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 28px; align-items: start; margin-top: 40px; }
@media (max-width: 860px) { .gw-rig { grid-template-columns: 1fr; } }

.gw-card { background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 16px; padding: 26px; }
.gw-card + .gw-card { margin-top: 20px; }
.gw-card h3 { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--h-muted); margin: 0 0 18px; }

.gw-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gw-chip { font: inherit; font-family: var(--mono); font-size: 13px; background: transparent; color: var(--h-muted);
  border: 1px solid var(--h-line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s; }
.gw-chip:hover { border-color: var(--brand); color: #fff; }
.gw-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 650; }

.gw-field { margin-bottom: 22px; }
.gw-field:last-child { margin-bottom: 0; }
.gw-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.gw-field-top label { font-size: 14px; font-weight: 600; color: #fff; }
.gw-field-top .val { font-size: 15px; font-weight: 650; color: var(--brand); }
.gw-hint { font-size: 12.5px; color: var(--h-muted); margin-top: 6px; line-height: 1.5; }

.giveaway input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) var(--fill,50%), var(--h-line) 0);
  outline: none; cursor: pointer; }
.giveaway input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--brand);
  border: 3px solid var(--h-bg-2); box-shadow: 0 0 0 1px var(--brand); cursor: grab; }
.giveaway input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid var(--h-bg-2); box-shadow: 0 0 0 1px var(--brand); cursor: grab; }
.giveaway input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--h-line); }

/* headline readout */
.gw-headline { padding: 28px 26px 24px; }
.gw-headline .lbl { font-size: 13px; color: var(--h-muted); font-weight: 600; }
.gw-headline .big { font-size: clamp(38px, 6vw, 56px); font-weight: 700; color: var(--brand); line-height: 1.05; margin-top: 6px; letter-spacing: -.02em; }
.gw-sub-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--h-line); border-radius: 12px; overflow: hidden; margin-top: 20px; }
.gw-sub-stats div { background: var(--h-panel); padding: 14px 16px; }
.gw-sub-stats .lbl { display: block; font-size: 11.5px; color: var(--h-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.gw-sub-stats .v { font-size: 19px; font-weight: 650; color: #fff; }
.gw-cost-split { font-size: 12.5px; color: var(--h-muted); margin-top: 12px; }
.gw-cost-split b { color: #fff; font-weight: 600; }

.gw-relatable { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,198,41,.08); border: 1px solid rgba(255,198,41,.22); border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.gw-relatable svg { flex: none; margin-top: 2px; }
.gw-relatable p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--h-text); }
.gw-relatable b { color: var(--brand); }

/* toggle switch */
.gw-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.gw-toggle { position: relative; display: inline-block; width: 38px; height: 21px; flex: none; cursor: pointer; }
.gw-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.gw-toggle .track { position: absolute; inset: 0; background: var(--h-line); border-radius: 999px; transition: background .15s; }
.gw-toggle .thumb { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gw-toggle input:checked ~ .track { background: var(--brand); }
.gw-toggle input:checked ~ .track .thumb { transform: translateX(17px); background: var(--brand-ink); }
#hiddenFields { transition: opacity .15s; }
#hiddenFields.dimmed { opacity: .4; pointer-events: none; }
.gw-loaded-cost { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--h-line); font-size: 13px; color: var(--h-muted); }
.gw-loaded-cost b { color: #fff; font-weight: 650; }
.gw-loaded-cost .pct { color: var(--brand); }

/* compliance gauge */
.gw-status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 999px; }
.gw-status-pill.good { background: rgba(47,191,113,.15); color: var(--h-pass); }
.gw-status-pill.warn { background: rgba(255,162,46,.15); color: var(--h-warn); }
.gw-status-pill.critical { background: rgba(255,90,74,.15); color: var(--h-fail); }
.gw-status-pill svg { width: 13px; height: 13px; }
.gw-gauge-svg { width: 100%; height: auto; display: block; }
.gw-gauge-svg text { font-family: var(--mono); fill: var(--h-muted); font-size: 11px; }
.gw-gauge-svg .axis { stroke: var(--h-line); stroke-width: 1; }
.gw-gauge-svg .allowed-zone { fill: rgba(142,155,174,.14); }
.gw-gauge-svg .violation-zone { fill: rgba(255,90,74,.16); }
.gw-gauge-svg .violation-label { fill: var(--h-fail); font-weight: 650; font-size: 11px; }
.gw-gauge-svg .cushion { stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.gw-gauge-svg .tick { stroke: var(--h-muted); stroke-width: 1; }
.gw-gauge-svg .nom-label { fill: #fff; font-weight: 650; font-size: 12px; }
.gw-mav-note { font-size: 12.5px; color: var(--h-muted); line-height: 1.55; margin-top: 12px; }
.gw-mav-note .src { opacity: .75; }

/* chart */
.gw-chart-wrap { position: relative; }
.gw-chart-svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: none; }
.gw-chart-svg .grid { stroke: var(--h-line); stroke-width: 1; }
.gw-chart-svg .area { fill: url(#gwAreaFill); }
.gw-chart-svg .line { fill: none; stroke: var(--brand); stroke-width: 2; }
.gw-chart-svg .end-dot { fill: var(--brand); }
.gw-chart-svg .axis-label { font-family: var(--mono); font-size: 11px; fill: var(--h-muted); }
.gw-chart-tip { position: absolute; pointer-events: none; background: var(--h-bg-2); border: 1px solid var(--h-line); border-radius: 8px;
  padding: 8px 10px; font-family: var(--mono); font-size: 12px; white-space: nowrap; transform: translate(-50%,-115%); opacity: 0; transition: opacity .1s; }
.gw-chart-tip b { color: var(--brand); display: block; font-size: 13px; }
.gw-crosshair { stroke: var(--h-muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }

.gw-caveat { font-size: 13.5px; color: var(--h-muted); line-height: 1.6; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--h-line); }
.gw-caveat a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
