/* Generator Size Calculator
   Night-glass palette shared with the Generator Load Check iPhone app.
   Mobile first. One self-hosted font. No framework. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback so the swap to Inter barely moves anything. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107.1%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  --ink: #0b0f14;
  --ink-1: #10161d;
  --ink-2: #151c25;
  --text: #f4f0e8;
  --muted: #aaa7a1;
  --subtle: #9c9993;
  --amber: #e8b86d;
  --amber-hi: #f3cf92;
  --amber-ink: #1a1206;
  --good: #8fcb9b;
  --warn: #e8b86d;
  --bad: #e07a6a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: dark;
}

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

* {
  margin: 0;
}

/* Author display rules must never beat the hidden attribute. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
  background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Keep keyboard focus clear of the mobile dock. */
@media (max-width: 979px) {
  html {
    scroll-padding-bottom: 96px;
  }
}

body {
  min-height: 100vh;
  font: 400 16px/1.6 var(--font);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient night sky: warm glow top right, cool bounce bottom left (echoes the app icon). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 85% -12%, rgba(232, 184, 109, 0.14), transparent 62%),
    radial-gradient(800px 560px at -12% 38%, rgba(98, 88, 176, 0.1), transparent 62%),
    radial-gradient(900px 600px at 50% 120%, rgba(232, 150, 90, 0.06), transparent 60%),
    linear-gradient(180deg, #0b0f14 0%, #0d1218 55%, #110f0d 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: var(--amber-hi);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

::selection {
  background: rgba(232, 184, 109, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nowrap {
  white-space: nowrap;
}

.num {
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 650;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ header */

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-name {
  white-space: nowrap;
}

.brand-name span {
  color: var(--muted);
  font-weight: 500;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--amber-ink);
  background: linear-gradient(150deg, #f6d9a6, #d99a45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 6px 18px -6px rgba(232, 184, 109, 0.7);
}

.brand-mark .ico {
  width: 17px;
  height: 17px;
  stroke-width: 2.3;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 719px) {
  .nav-wide {
    display: none !important;
  }
  .brand {
    font-size: 15px;
  }
  .nav a {
    padding: 0 8px;
    font-size: 14px;
  }
}

@media (max-width: 379px) {
  .brand-name span {
    display: none;
  }
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding-top: clamp(22px, 5vw, 64px);
  padding-bottom: clamp(22px, 3.2vw, 40px);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero .eyebrow {
  margin-bottom: 14px;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 1.45rem + 4.1vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 720;
  background: linear-gradient(180deg, #fffaf0 30%, #e9dcc4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 980px) {
  h1 {
    max-width: none;
    font-size: clamp(3rem, 1.2rem + 3.1vw, 4.1rem);
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 32px;
  }
  .hero .lede {
    max-width: 64ch;
  }
}

.lede {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.28rem);
  line-height: 1.55;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust .ico {
  width: 16px;
  height: 16px;
  color: var(--amber);
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.7s var(--ease) both;
  }
  .hero > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .calc {
    animation: rise 0.8s 0.16s var(--ease) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* -------------------------------------------------------------- calculator */

.calc:focus {
  outline: none;
}

.calc-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 980px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr) 436px;
    gap: 26px;
    align-items: start;
  }
  .plan {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--r-xl);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }
  .plan::-webkit-scrollbar {
    width: 8px;
  }
  .plan::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
  }
}

@media (min-width: 1180px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr) 456px;
  }
}

.picker,
.card {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px -32px rgba(0, 0, 0, 0.8);
}

.picker {
  padding: clamp(16px, 3vw, 28px);
}

.card {
  padding: clamp(18px, 3vw, 28px);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(232, 184, 109, 0.12);
  border: 1px solid rgba(232, 184, 109, 0.38);
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.step-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

/* Quick start */

.kits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 599px) {
  .kits-label {
    flex-basis: 100%;
  }
}

.kits-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.kits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 184, 109, 0.32);
  background: rgba(232, 184, 109, 0.06);
  color: var(--amber-hi);
  font-size: 14px;
  font-weight: 580;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.15s var(--ease);
}

.kit .ico {
  width: 16px;
  height: 16px;
}

@media (max-width: 419px) {
  .kits-row {
    gap: 6px;
  }
  .kit {
    gap: 6px;
    padding: 0 12px 0 10px;
    font-size: 13.5px;
  }
}

.kit:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .kit:hover {
    background: rgba(232, 184, 109, 0.13);
    border-color: rgba(232, 184, 109, 0.55);
  }
}

/* Appliance chips */

.groups {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.group-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(232, 184, 109, 0.16);
  color: var(--amber-hi);
  font-size: 11.5px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.group-count[hidden] {
  display: none;
}

.group-note {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--subtle);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.22s,
    border-color 0.22s,
    box-shadow 0.22s,
    color 0.22s,
    transform 0.16s var(--ease);
}

.chip .ico {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.22s;
}

@media (hover: hover) {
  .chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.24);
  }
  .chip[aria-pressed='true']:hover {
    background: linear-gradient(180deg, rgba(232, 184, 109, 0.3), rgba(232, 184, 109, 0.17));
    border-color: rgba(243, 207, 146, 0.9);
  }
}

.chip:active {
  transform: scale(0.95);
}

.chip[aria-pressed='true'] {
  color: #fff6e6;
  border-color: rgba(232, 184, 109, 0.78);
  background: linear-gradient(180deg, rgba(232, 184, 109, 0.26), rgba(232, 184, 109, 0.13));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px -14px rgba(232, 184, 109, 0.85);
}

.chip[aria-pressed='true'] .ico {
  color: var(--amber-hi);
}

.chip-qty {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--ink-1);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.2s,
    transform 0.3s var(--ease);
  pointer-events: none;
}

.chip-qty.is-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .chip.pop {
    animation: pop 0.34s var(--ease);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.93);
  }
  55% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.noscript {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(232, 184, 109, 0.35);
  color: var(--muted);
  font-size: 14.5px;
}

/* Add your own */

.custom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.custom-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.custom-toggle .ico {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(232, 184, 109, 0.14);
  color: var(--amber);
  transition: transform 0.3s var(--ease);
}

.custom-toggle[aria-expanded='true'] .ico {
  transform: rotate(45deg);
}

.custom-toggle span {
  font-weight: 620;
}

.custom-toggle small {
  color: var(--subtle);
  font-size: 13.5px;
}

@media (hover: hover) {
  .custom-toggle:hover {
    border-color: rgba(232, 184, 109, 0.5);
    background: rgba(232, 184, 109, 0.04);
  }
}

.custom-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.custom-form:not([hidden]) {
  animation: rise 0.35s var(--ease);
}

.custom-form .field-name,
.custom-form .hint,
.custom-form .form-error,
.custom-form .form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.form-error {
  color: var(--bad);
  font-size: 14px;
  font-weight: 550;
}

.form-error:empty {
  display: none;
}

.hint {
  color: var(--subtle);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Fields */

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 560;
}

.opt {
  color: var(--subtle);
  font-weight: 400;
}

.field small {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 12.5px;
}

input[type='text'] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.3);
  font-size: 16px;
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

input[type='text']::placeholder {
  color: #85827d;
  font-weight: 400;
}

input[type='text']:focus {
  outline: none;
  border-color: rgba(232, 184, 109, 0.85);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.22);
}

input[aria-invalid='true'] {
  border-color: rgba(224, 122, 106, 0.85);
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-right: 44px;
}

.input-unit > span {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--subtle);
  font-size: 14px;
  font-weight: 560;
  pointer-events: none;
}

.input-lg input {
  min-height: 58px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.input-lg > span {
  font-size: 15px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn .ico {
  width: 17px;
  height: 17px;
}

.btn-amber {
  color: var(--amber-ink);
  background: linear-gradient(180deg, #f5d59d, #e3ad5b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 26px -14px rgba(232, 184, 109, 0.9);
}

.btn-soft {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
}

@media (hover: hover) {
  .btn-amber:hover {
    filter: brightness(1.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 16px 32px -14px rgba(232, 184, 109, 1);
  }
  .btn-soft:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
  }
  .btn-ghost:hover {
    color: var(--text);
  }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--amber-hi);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(232, 184, 109, 0.45);
  text-underline-offset: 4px;
  cursor: pointer;
}

.link-btn[hidden] {
  display: none;
}

/* Your list */

.list {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.list-head h3 {
  font-size: 1.05rem;
  font-weight: 660;
}

.list-head h3:focus {
  outline: none;
}

.count {
  margin-left: 4px;
  color: var(--subtle);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.list-empty {
  color: var(--subtle);
  font-size: 14.5px;
}

.list-items {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

@media (prefers-reduced-motion: no-preference) {
  .row.is-new {
    animation: row-in 0.4s var(--ease);
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.row-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(232, 184, 109, 0.1);
  color: var(--amber);
}

.row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.m-kick::before {
  content: '·';
  margin: 0 6px;
}

@media (max-width: 519px) {
  .row-meta {
    flex-direction: column;
  }
  .m-kick::before {
    content: none;
  }
}

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.28);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.12s var(--ease);
}

.stepper button:active {
  transform: scale(0.9);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

.stepper .is-remove {
  color: var(--muted);
}

@media (hover: hover) {
  .stepper .is-remove:hover {
    color: var(--bad);
  }
}

@media (hover: hover) {
  .stepper button:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.09);
  }
}

.stepper output {
  min-width: 18px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------- plan */

.plan:focus {
  outline: none;
}

.plan-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(232, 184, 109, 0.12), rgba(255, 255, 255, 0.035) 36%, rgba(255, 255, 255, 0.02)),
    rgba(14, 19, 26, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 40px 80px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(232, 184, 109, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.plan-card > :not(.plan-glow) {
  position: relative;
}

.plan-glow {
  position: absolute;
  top: -190px;
  right: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 184, 109, 0.42), rgba(232, 184, 109, 0.08) 60%, transparent);
  pointer-events: none;
  opacity: 0.7;
}

@media (prefers-reduced-motion: no-preference) {
  .plan-glow {
    animation: breathe 7s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

.step-plan {
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 14px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 12px 11px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.stat-label {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value {
  font-size: clamp(1.28rem, 1.05rem + 0.9vw, 1.62rem);
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -0.025em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stats.is-long .stat-value {
  font-size: clamp(1.02rem, 0.9rem + 0.6vw, 1.3rem);
}

.stat-value .unit {
  margin-left: 3px;
  font-size: 0.6em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.stat-value .plus {
  color: var(--muted);
  font-weight: 600;
}

.stat-sub {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  color: var(--subtle);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.stat-peak {
  border-color: rgba(232, 184, 109, 0.22);
}

.stat-peak .stat-value {
  color: var(--amber-hi);
}

/* Size to buy */

.buy {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(232, 184, 109, 0.32);
  background: linear-gradient(180deg, rgba(232, 184, 109, 0.14), rgba(232, 184, 109, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kicker {
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.buy-empty {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.05rem;
}

.buy-line {
  margin-top: 6px;
  font-size: clamp(1.2rem, 1.06rem + 0.6vw, 1.42rem);
  font-weight: 540;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.buy-line strong {
  font-weight: 760;
  color: #fff4df;
}

.buy-class {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
}

.buy-class strong {
  color: var(--amber-hi);
  font-weight: 700;
}

.buy-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.buy[data-state='empty'] .buy-line,
.buy[data-state='empty'] .buy-class,
.buy[data-state='empty'] .meter,
.buy[data-state='empty'] .buy-note,
.buy:not([data-state='empty']) .buy-empty {
  display: none;
}

/* Meter: gauge-style, straight leading edge, 80% notch */

.meter {
  --tone: var(--good);
  --fill: 0;
  margin-top: 16px;
}

.meter[data-tone='warn'] {
  --tone: var(--warn);
}

.meter[data-tone='bad'] {
  --tone: var(--bad);
}

.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.meter-pct {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.meter-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.meter-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 55%, transparent), var(--tone));
  transform: translateX(calc((var(--fill) - 1) * 100%));
  transition:
    transform 0.75s var(--ease),
    background 0.35s;
}

.meter-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80%;
  width: 2px;
  margin-left: -1px;
  background: rgba(11, 15, 20, 0.75);
}

.meter-scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.meter-80 {
  position: absolute;
  left: 80%;
  transform: translateX(-50%);
  color: var(--muted);
}

.meter-80::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 1px;
  height: 5px;
  background: rgba(244, 240, 232, 0.4);
}

.meter-demo {
  --fill: 0.78;
  margin-top: 0;
}

/* Your generator */

.own {
  min-width: 0;
  margin-top: 18px;
  padding: 0;
  border: 0;
}

.own legend {
  padding: 0;
  font-size: 1rem;
  font-weight: 660;
}

.own-hint {
  margin: 2px 0 12px;
  color: var(--subtle);
  font-size: 13.5px;
}

.own-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}

.check-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.check-box .ico {
  width: 14px;
  height: 14px;
  stroke-width: 3;
  color: var(--amber-ink);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease);
}

.check input:checked + .check-box {
  background: var(--amber);
  border-color: var(--amber);
}

.check input:checked + .check-box .ico {
  opacity: 1;
  transform: none;
}

.check input:focus-visible + .check-box {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.verdict {
  --tone: var(--muted);
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--tone) 42%, transparent);
  background: color-mix(in srgb, var(--tone) 11%, transparent);
}

.verdict[hidden] {
  display: none;
}

.verdict[data-tone='good'] {
  --tone: var(--good);
}

.verdict[data-tone='warn'] {
  --tone: var(--warn);
}

.verdict[data-tone='bad'] {
  --tone: var(--bad);
}

@media (prefers-reduced-motion: no-preference) {
  .verdict.is-changed {
    animation: rise 0.4s var(--ease);
  }
}

.badge {
  justify-self: start;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tone);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge:empty {
  display: none;
}

.v-title {
  color: var(--tone);
  font-size: 1.45rem;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.verdict[data-tone='muted'] .v-title {
  color: var(--text);
  font-size: 1.15rem;
}

.v-sub {
  color: var(--text);
  font-size: 15px;
}

.v-start {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.v-start:empty {
  display: none;
}

.tip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tip[hidden] {
  display: none;
}

.tip .ico {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--amber);
}

.plan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.plan-safety {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.plan-safety .ico {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--bad);
}

.plan-safety a {
  color: var(--text);
  white-space: nowrap;
}

/* --------------------------------------------------------------- sections */

.section {
  padding-top: clamp(56px, 8vw, 104px);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem);
  font-weight: 710;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.section-head p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Power station */

.ps {
  display: grid;
  gap: 22px;
}

@media (min-width: 860px) {
  .ps {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
  }
}

.ps-inputs {
  display: grid;
  align-content: start;
  gap: 20px;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.presets button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.15s var(--ease);
}

.presets button:active {
  transform: scale(0.95);
}

.presets button[aria-pressed='true'] {
  border-color: rgba(232, 184, 109, 0.7);
  background: rgba(232, 184, 109, 0.14);
  color: var(--amber-hi);
}

@media (hover: hover) {
  .presets button:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
  }
}

.ps-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 13.5px;
}

.linked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--good);
  font-weight: 600;
}

.linked[hidden],
.ps-eg[hidden] {
  display: none;
}

.linked .ico {
  width: 15px;
  height: 15px;
}

.ps-out {
  padding: clamp(18px, 3vw, 24px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.ps-time {
  margin-top: 6px;
  font-size: clamp(2.1rem, 1.55rem + 2.2vw, 3rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.ps-out[data-state='empty'] .ps-time {
  color: var(--subtle);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  font-weight: 650;
}

.ps-math {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.day {
  margin-top: 18px;
}

.day-track {
  --fill: 0;
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.day-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(11, 15, 20, 0.9) calc(25% - 1px) 25%);
  pointer-events: none;
}

.day-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(143, 203, 155, 0.5), var(--good));
  transform: translateX(calc((var(--fill) - 1) * 100%));
  transition: transform 0.8s var(--ease);
}

.day-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ps-notes {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ps-notes li::marker {
  color: var(--amber);
}

.ps-notes [hidden] {
  display: none;
}

/* App handoff */

.app-card {
  position: relative;
  display: grid;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(232, 184, 109, 0.24);
  background:
    radial-gradient(620px 320px at 0% 0%, rgba(232, 184, 109, 0.17), transparent 62%),
    radial-gradient(520px 300px at 100% 100%, rgba(98, 88, 176, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@media (min-width: 860px) {
  .app-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(36px, 5vw, 72px);
    padding-block: clamp(28px, 4vw, 44px);
  }
}

.app-main {
  display: grid;
  gap: 18px;
  align-content: center;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 21px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 22px 44px -20px rgba(232, 184, 109, 0.6);
}

@media (min-width: 780px) {
  .app-icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }
}

.app-copy .eyebrow {
  margin-bottom: 8px;
}

.app-copy h2 {
  font-size: clamp(1.35rem, 1.08rem + 1.1vw, 1.85rem);
}

.app-copy p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 10px;
  color: var(--muted);
}

.app-btn {
  justify-self: start;
  white-space: nowrap;
}

/* The demo: the promo film in a phone-shaped frame, played only while on screen. */

.app-demo {
  justify-self: center;
  width: min(100%, 272px);
}

@media (min-width: 860px) {
  .app-demo {
    width: 292px;
  }
}

.app-demo-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 30px;
  background: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 7px rgba(255, 255, 255, 0.03),
    0 40px 80px -30px rgba(0, 0, 0, 0.95),
    0 30px 90px -40px rgba(232, 184, 109, 0.55);
}

.app-demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.app-demo-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 15, 20, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s;
}

.app-demo-toggle .ico {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

@media (hover: hover) {
  .app-demo-toggle:hover {
    background: rgba(11, 15, 20, 0.86);
  }
}

.app-demo-cap {
  max-width: 34ch;
  margin: 14px auto 0;
  color: var(--subtle);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}

/* Explainers */

.explain {
  display: grid;
  gap: 16px;
}

@media (min-width: 780px) {
  .explain {
    grid-template-columns: 1fr 1fr;
  }
}

.ex {
  display: flex;
  flex-direction: column;
}

.ex h3 {
  margin-bottom: 16px;
  font-size: 1.22rem;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.ex > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15.5px;
}

.kick-art {
  width: 100%;
  height: auto;
  max-height: 150px;
}

.kick-grid {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.kick-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kick-dot {
  fill: var(--amber-hi);
}

.kick-t {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 12px;
}

.kick-t-amber {
  fill: var(--amber-hi);
  font-weight: 650;
}

.js .kick-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .kick-art:not(.is-seen) .kick-line {
    stroke-dashoffset: 420;
  }
  .js .kick-art:not(.is-seen) .kick-area,
  .js .kick-art:not(.is-seen) .kick-dot,
  .js .kick-art:not(.is-seen) text {
    opacity: 0;
  }
  .js .kick-art .kick-line {
    transition: stroke-dashoffset 1.6s var(--ease);
  }
  .js .kick-art .kick-area,
  .js .kick-art .kick-dot,
  .js .kick-art text {
    transition: opacity 0.6s 0.5s;
  }
}

.motor-list {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.motor-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 14px;
}

.motor-list span:first-child {
  font-weight: 620;
}

.motor-list span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sticker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sticker > div {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.sticker .sticker-main {
  border: 1px solid rgba(232, 184, 109, 0.6);
  background: rgba(232, 184, 109, 0.08);
}

.sticker-k {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.sticker-v {
  font-size: 1.55rem;
  font-weight: 740;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.sticker-n {
  color: var(--muted);
  font-size: 12.5px;
}

.sticker-main .sticker-n {
  color: var(--amber-hi);
}

/* Watts table */

.watts {
  margin-top: 16px;
  padding: 0;
}

.watts summary,
.faq-item summary {
  list-style: none;
  cursor: pointer;
}

.watts summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.watts summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 64px;
  padding: 16px 22px;
  border-radius: var(--r-xl);
}

.watts summary .chev {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.watts summary > span {
  font-size: 1.05rem;
  font-weight: 650;
}

.watts summary small {
  color: var(--subtle);
  font-size: 13.5px;
}

.chev {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

details[open] > summary .chev {
  transform: rotate(180deg);
}

.watts-body {
  padding: 0 22px 22px;
}

.watts-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.watts-table th,
.watts-table td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.watts-table td {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.watts-table thead th {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.watts-table thead th:not(:first-child) {
  text-align: right;
}

.watts-table tbody th {
  font-weight: 540;
}

.watts-table .watts-group th {
  padding-top: 20px;
  border-bottom-color: rgba(232, 184, 109, 0.24);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watts-body .hint {
  margin-top: 14px;
  max-width: 70ch;
}

/* Safety */

.safety {
  padding: clamp(20px, 4vw, 40px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(224, 122, 106, 0.3);
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(224, 122, 106, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(224, 122, 106, 0.06), rgba(224, 122, 106, 0.02));
}

.safety-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.safety-head .eyebrow {
  margin-bottom: 6px;
}

.safety-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(224, 122, 106, 0.16);
  color: var(--bad);
}

.safety-icon .ico {
  width: 26px;
  height: 26px;
}

.eyebrow-bad {
  color: #eb9587;
}

.safety-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

@media (min-width: 780px) {
  .safety-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .safety-list li:first-child {
    grid-column: 1 / -1;
  }
}

.safety-list li {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.24);
}

.safety-list li:first-child {
  border-color: rgba(224, 122, 106, 0.38);
  background: rgba(224, 122, 106, 0.08);
}

.safety-list h3 {
  margin-bottom: 6px;
  font-size: 1.06rem;
  font-weight: 670;
}

.safety-list p {
  color: var(--muted);
  font-size: 15px;
}

.safety-list a {
  color: var(--text);
  font-weight: 600;
}

.sources {
  margin-top: 18px;
  color: var(--subtle);
  font-size: 13.5px;
}

.sources a {
  color: var(--muted);
}

/* FAQ */

@media (min-width: 980px) {
  .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .faq-layout .section-head {
    position: sticky;
    top: 24px;
  }
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition:
    background-color 0.25s,
    border-color 0.25s;
}

.faq-item[open] {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  border-radius: 18px;
}

.faq-item summary h3 {
  font-size: 1.04rem;
  font-weight: 620;
  line-height: 1.4;
}

@media (hover: hover) {
  .faq-item:not([open]):hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

.faq-a {
  max-width: 72ch;
  padding: 0 20px 20px;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a {
    animation: rise 0.4s var(--ease);
  }
}

/* Footer */

.foot {
  margin-top: clamp(64px, 9vw, 120px);
  padding: 36px 0 calc(112px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13.5px;
}

@media (min-width: 980px) {
  .foot {
    padding-bottom: 56px;
  }
}

.foot-in {
  display: grid;
  gap: 10px;
}

.foot-in p {
  max-width: 78ch;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.foot a {
  color: var(--muted);
}

/* ------------------------------------------------------------ mobile dock */

.dock {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 540px;
  margin-inline: auto;
  padding: 9px 9px 9px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 22, 30, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 28px));
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s,
    visibility 0s 0.45s;
}

.dock.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s,
    visibility 0s;
}

@media (min-width: 980px) {
  .dock {
    display: none;
  }
}

.dock-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dock-k {
  color: var(--amber);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dock-v {
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dock-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 14px;
  font-weight: 680;
}

.dock-go .ico {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: max-content;
  margin-inline: auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: #f4f0e8;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    transform 0.4s var(--ease),
    opacity 0.25s,
    visibility 0s 0.4s;
}

.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    transform 0.4s var(--ease),
    opacity 0.25s,
    visibility 0s;
}

.toast.no-action {
  padding-right: 18px;
}

@media (min-width: 980px) {
  .toast {
    bottom: 28px;
  }
}

.toast-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
}

.toast-btn[hidden] {
  display: none;
}

/* -------------------------------------------------------------- app promo */

/* A small card, never a full-screen interstitial: it leaves the calculator in
   view on a phone and sits in the corner on a desktop. */
.app-promo {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 55;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 440px;
  margin-inline: auto;
  padding: 12px 14px 12px 12px;
  border-radius: 24px;
  border: 1px solid rgba(232, 184, 109, 0.3);
  background:
    radial-gradient(320px 180px at 0% 0%, rgba(232, 184, 109, 0.2), transparent 70%),
    rgba(16, 22, 30, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 30px 60px -18px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 28px));
  transition:
    transform 0.55s var(--ease),
    opacity 0.3s,
    visibility 0s 0.55s;
}

.app-promo.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    transform 0.55s var(--ease),
    opacity 0.3s,
    visibility 0s;
}

@media (min-width: 980px) {
  .app-promo {
    right: 28px;
    bottom: 28px;
    left: auto;
    width: 420px;
    margin: 0;
    gap: 16px;
    padding: 14px 16px 14px 14px;
  }
}

.app-promo-peek {
  position: relative;
  display: block;
  width: 76px;
  aspect-ratio: 216 / 468;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 16px 30px -14px rgba(0, 0, 0, 0.95);
}

@media (max-height: 700px) {
  .app-promo-peek {
    width: 62px;
    border-radius: 12px;
  }
}

@media (min-width: 980px) {
  .app-promo-peek {
    width: 88px;
  }
}

.app-promo-peek video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "Demo" chip: appears once the clip has shown the answer. */
.app-promo-watch {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 7px;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}

.app-promo-watch .ico {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke: none;
}

.app-promo.is-ended .app-promo-watch {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-promo-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-right: 22px;
}

.app-promo-k {
  color: var(--amber);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-promo-title {
  font-size: 16.5px;
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.app-promo-sub {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.38;
}

.app-promo-btn {
  justify-self: start;
  min-height: 40px;
  margin-top: 6px;
  padding: 0 16px;
  font-size: 14px;
}

.app-promo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

/* A 44 px touch target around the 32 px circle. */
.app-promo-close::before {
  content: '';
  position: absolute;
  inset: -6px;
}

.app-promo-close .ico {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .app-promo-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
  }
}

@media (max-width: 359px) {
  .app-promo-sub {
    display: none;
  }
}

/* ------------------------------------------------------------ small phones */

@media (max-width: 380px) {
  .stat {
    padding: 10px 9px 9px;
  }
  .stat-label {
    font-size: 12px;
  }
  .own-fields {
    gap: 8px;
  }
  .chip {
    font-size: 14.5px;
    padding: 0 13px 0 11px;
  }
}

/* ----------------------------------------------------------- reduce motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ------------------------------------------------------------------ print */

.print-sheet {
  display: none;
}

@media print {
  @page {
    margin: 16mm;
  }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }
  body::before {
    display: none;
  }
  body > :not(.print-sheet) {
    display: none !important;
  }
  .print-sheet {
    display: block;
    font: 11pt/1.45 var(--font);
    color: #111;
  }
  .print-sheet h1 {
    max-width: none;
    margin-bottom: 2mm;
    font-size: 20pt;
    letter-spacing: -0.02em;
    color: #111;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
  }
  .print-sheet h2 {
    margin: 6mm 0 2mm;
    font-size: 12.5pt;
    letter-spacing: 0;
  }
  .print-sheet .p-meta {
    color: #555;
    font-size: 9.5pt;
  }
  .print-sheet table {
    width: 100%;
    margin-top: 4mm;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }
  .print-sheet th,
  .print-sheet td {
    padding: 1.6mm 2mm;
    border-bottom: 0.3mm solid #ccc;
    text-align: left;
  }
  .print-sheet td.n,
  .print-sheet th.n {
    text-align: right;
  }
  .print-sheet tfoot td,
  .print-sheet tfoot th {
    border-bottom: 0;
    font-weight: 700;
  }
  .print-sheet tfoot tr:first-child > * {
    border-top: 0.5mm solid #111;
  }
  .print-sheet .p-buy {
    padding: 3mm 4mm;
    border: 0.4mm solid #111;
    border-radius: 2mm;
    font-size: 12.5pt;
  }
  .print-sheet ul {
    padding-left: 5mm;
  }
  .print-sheet li {
    margin-bottom: 1mm;
  }
  .print-sheet .p-foot {
    margin-top: 8mm;
    color: #555;
    font-size: 9pt;
  }
}
