/* ==========================================================================
   Calculator suite (Gemstone / Rudraksha / Bracelet / Converter)
   Loaded only on Calculator routes. Brand tokens come from front.css.

   The four tools share one layout and swap --calc-accent, so each reads as a
   distinct instrument without forking the stylesheet.
   ========================================================================== */
.calc-page {
  --calc-accent: var(--brand-primary);
  --calc-accent-2: var(--brand-primary-dark);
  --calc-soft: rgba(138, 38, 164, 0.08);
}

.calc-theme-gem {
  --calc-accent: #8A26A4;
  --calc-accent-2: #48439F;
  --calc-soft: rgba(138, 38, 164, 0.08);
}

.calc-theme-rudraksha {
  --calc-accent: #8A5A22;
  --calc-accent-2: #B8721A;
  --calc-soft: rgba(184, 114, 26, 0.1);
}

.calc-theme-bracelet {
  --calc-accent: #6B1F2A;
  --calc-accent-2: #A6365B;
  --calc-soft: rgba(107, 31, 42, 0.09);
}

.calc-theme-converter {
  --calc-accent: #1F5F6B;
  --calc-accent-2: #2F6B3A;
  --calc-soft: rgba(31, 95, 107, 0.1);
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Kept deliberately shallow: the form below is the point of the page, so the banner
   should introduce the tool and get out of the way rather than fill the fold. */
.calc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 2.4vw, 1.5rem) 0 clamp(1.6rem, 3.4vw, 2.25rem);
  color: #fff;
  background: linear-gradient(135deg, #241A3F 0%, var(--calc-accent-2) 48%, var(--calc-accent) 100%);
}

.calc-hero-glow {
  position: absolute;
  inset: -50% -20% auto -20%;
  height: 200%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 70%) 20% 40% / 44% 60% no-repeat,
    radial-gradient(closest-side, rgba(255, 185, 85, 0.18), transparent 70%) 78% 62% / 38% 54% no-repeat;
  pointer-events: none;
}

/* A slow orbit ring behind the crest — enough motion to feel like an instrument,
   not enough to distract from the form below. */
/* Scaled down by the same ~15% as the hero above, so the rings keep their old relationship
   to the crest and are cropped by the banner edge to the same degree they were before. */
.calc-hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  pointer-events: none;
  animation: calc-spin 46s linear infinite;
}

.calc-hero-orbit::before,
.calc-hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-hero-orbit::before { inset: 50px; }
.calc-hero-orbit::after { inset: 110px; }

@keyframes calc-spin {
  to { transform: rotate(360deg); }
}

.calc-crumbs {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.calc-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.calc-crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.calc-crumbs a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.calc-crumbs a:hover { border-bottom-color: #fff; }

.calc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.calc-hero-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #FFD79A;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.calc-hero-mark svg {
  width: 26px;
  height: 26px;
}

.calc-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFD79A;
  margin-bottom: 0.4rem;
}

.calc-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.18;
  color: #fff;
  margin-bottom: 0.55rem;
}

.calc-hero-lead {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.9rem;
}

.calc-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
}

.calc-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.calc-hero-trust span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background-color: #FFD79A;
}

/* ==========================================================================
   Tool switcher
   ========================================================================== */
.calc-switcher {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 2px 12px rgba(33, 29, 54, 0.05);
}

.calc-switcher-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  scrollbar-width: none;
}

.calc-switcher-rail::-webkit-scrollbar { display: none; }

.calc-switch {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 190px;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--brand-muted);
  transition: background-color var(--brand-transition), border-color var(--brand-transition), color var(--brand-transition);
}

.calc-switch:hover {
  background-color: var(--calc-soft);
  color: var(--brand-fg);
}

.calc-switch.is-current {
  border-color: var(--calc-accent);
  background-color: var(--calc-soft);
  color: var(--calc-accent);
}

.calc-switch-icon {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background-color: var(--calc-soft);
  color: var(--calc-accent);
}

.calc-switch-icon svg { width: 17px; height: 17px; }

.calc-switch.is-current .calc-switch-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-accent-2));
}

.calc-switch-text { display: flex; flex-direction: column; min-width: 0; }

.calc-switch-text strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: inherit;
}

.calc-switch-text small {
  font-size: 0.7rem;
  color: var(--brand-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.calc-section { padding: 3rem 0; }
.calc-section-tight { padding: 1rem 0 2rem; }

.calc-section-alt {
  background-color: var(--brand-surface);
  border-block: 1px solid var(--brand-border);
}

.calc-section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.calc-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.calc-section-sub {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Console (the form card)
   ========================================================================== */
.calc-console {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.9rem;
  border-radius: 20px;
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  box-shadow: 0 16px 38px rgba(33, 29, 54, 0.09);
}

.calc-console-head { margin-bottom: 1.5rem; }

.calc-console-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.calc-console-note {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--brand-muted);
  margin-bottom: 0;
}

.calc-alert:not(:empty) {
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #B3261E;
  background-color: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.2);
}

.calc-alert .validation-summary-valid,
.calc-error.field-validation-valid {
  display: none;
}

.calc-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}

.calc-legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  float: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--brand-border);
}

.calc-legend-no {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-accent-2));
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.calc-field { display: flex; flex-direction: column; }

.calc-field-wide { grid-column: 1 / -1; }

.calc-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-muted);
  margin-bottom: 0.35rem;
}

.calc-input {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-surface);
  color: var(--brand-fg);
  font-size: 0.92rem;
  transition: border-color var(--brand-transition), box-shadow var(--brand-transition);
}

.calc-input:focus {
  outline: 0;
  border-color: var(--calc-accent);
  box-shadow: 0 0 0 3px var(--calc-soft);
}

.calc-input:disabled {
  background-color: var(--brand-bg);
  color: var(--brand-muted);
}

select.calc-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand-muted) 50%),
                    linear-gradient(135deg, var(--brand-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.calc-error {
  font-size: 0.76rem;
  color: #B3261E;
  margin-top: 0.3rem;
}

.calc-error:empty { display: none; }

/* Radio / checkbox */
.calc-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.calc-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--brand-radius-pill);
  border: 1px solid var(--brand-border);
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color var(--brand-transition), background-color var(--brand-transition);
}

.calc-choice:hover { border-color: var(--calc-accent); }

.calc-choice:has(input:checked) {
  border-color: var(--calc-accent);
  background-color: var(--calc-soft);
  color: var(--calc-accent);
  font-weight: 600;
}

.calc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--brand-muted);
  cursor: pointer;
}

/* Purpose chips */
.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.calc-chip {
  padding: 0.45rem 0.95rem;
  border-radius: var(--brand-radius-pill);
  border: 1px solid var(--brand-border);
  background-color: var(--brand-surface);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--brand-muted);
  cursor: pointer;
  transition: transform var(--brand-transition), border-color var(--brand-transition),
              background-color var(--brand-transition), color var(--brand-transition);
}

.calc-chip:hover {
  transform: translateY(-2px);
  border-color: var(--calc-accent);
  color: var(--calc-accent);
}

.calc-chip.is-active {
  border-color: transparent;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-accent-2));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--calc-accent) 30%, transparent);
}

/* When the chips are live, the raw <select> becomes a redundant duplicate —
   JS adds this class so no-JS visitors keep a usable control. */
.calc-select-fallback.is-chip-driven { display: none; }

/* Wrist slider */
.calc-wrist {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .calc-wrist { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
}

.calc-range {
  width: 100%;
  accent-color: var(--calc-accent);
}

.calc-wrist-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--brand-muted);
}

.calc-wrist-hint {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--brand-muted);
}

.calc-wrist-hint strong { color: var(--calc-accent); }

/* Submit */
.calc-submit {
  position: relative;
  min-width: 15rem;
  min-height: 3rem;
  padding: 0.7rem 2rem;
  border: 0;
  border-radius: var(--brand-radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--calc-accent), var(--calc-accent-2));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--calc-accent) 32%, transparent);
  transition: transform var(--brand-transition), box-shadow var(--brand-transition);
}

.calc-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--calc-accent) 42%, transparent);
}

.calc-submit:disabled { cursor: progress; }

.calc-submit-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  opacity: 0;
  animation: calc-spin 640ms linear infinite;
}

.calc-submit.is-busy .calc-submit-label { opacity: 0; }
.calc-submit.is-busy .calc-submit-spinner { opacity: 1; }

/* ==========================================================================
   Result
   ========================================================================== */
.calc-result {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-accent-2) 60%, #FFB955);
  box-shadow: 0 18px 42px rgba(33, 29, 54, 0.16);
  animation: calc-rise 420ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes calc-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.calc-result > * { background-color: var(--brand-surface); }
.calc-result > *:first-child { border-radius: 17px 17px 0 0; }
.calc-result > *:last-child { border-radius: 0 0 17px 17px; }

.calc-result-head {
  padding: 1.6rem 1.85rem 1.25rem;
  text-align: center;
  border-bottom: 1px dashed var(--brand-border);
}

.calc-result-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--calc-accent);
  margin-bottom: 0.4rem;
}

.calc-result-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.3rem;
}

.calc-result-native {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--brand-muted);
  margin-top: 0.2rem;
}

.calc-result-basis {
  font-size: 0.82rem;
  color: var(--brand-muted);
  margin-bottom: 0;
}

.calc-result-body {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 1.85rem;
}

@media (min-width: 768px) {
  .calc-result-body {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: start;
  }
}

.calc-result-emblem { display: flex; justify-content: center; }

.calc-emblem {
  width: 132px;
  height: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  position: relative;
}

.calc-emblem::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px dashed currentColor;
  opacity: 0.32;
  animation: calc-spin 26s linear infinite;
}

.calc-emblem svg { width: 62px; height: 62px; }

.calc-emblem-sm {
  width: 52px;
  height: 52px;
}

.calc-emblem-sm::after { display: none; }
.calc-emblem-sm svg { width: 26px; height: 26px; }

/* Catalogue photo inside the round emblem. The product shots are landscape and
   centre-composed, so a centre crop keeps the bracelet itself in frame. */
.calc-emblem-photo {
  overflow: hidden;
  background-color: var(--brand-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent);
}

.calc-emblem-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Tone palette shared with the reference cards. */
.calc-emblem.tone-ruby { background-color: #9B1B3018; color: #9B1B30; }
.calc-emblem.tone-pearl,
.calc-card-media.tone-pearl { background-color: #EDE6DC; color: #8A7B65; }
.calc-emblem.tone-coral { background-color: #C2410C18; color: #C2410C; }
.calc-emblem.tone-emerald { background-color: #1F7A4D18; color: #1F7A4D; }
.calc-emblem.tone-yellow { background-color: #CA8A0418; color: #CA8A04; }
.calc-emblem.tone-diamond { background-color: #7C93A818; color: #5A7186; }
.calc-emblem.tone-blue { background-color: #1E40AF18; color: #1E40AF; }
.calc-emblem.tone-hessonite { background-color: #B4530918; color: #B45309; }
.calc-emblem.tone-catseye { background-color: #6B7A3A18; color: #6B7A3A; }

.calc-emblem.tone-mukhi-1,
.calc-card-media.tone-mukhi-1 { background-color: #6B1F2A18; color: #6B1F2A; }
.calc-emblem.tone-mukhi-2,
.calc-card-media.tone-mukhi-2 { background-color: #8A7B6518; color: #8A7B65; }
.calc-emblem.tone-mukhi-3,
.calc-card-media.tone-mukhi-3 { background-color: #C2410C18; color: #C2410C; }
.calc-emblem.tone-mukhi-4,
.calc-card-media.tone-mukhi-4 { background-color: #1F7A4D18; color: #1F7A4D; }
.calc-emblem.tone-mukhi-5,
.calc-card-media.tone-mukhi-5 { background-color: #A1620718; color: #A16207; }
.calc-emblem.tone-mukhi-6,
.calc-card-media.tone-mukhi-6 { background-color: #7C3AED18; color: #7C3AED; }
.calc-emblem.tone-mukhi-7,
.calc-card-media.tone-mukhi-7 { background-color: #1E40AF18; color: #1E40AF; }
.calc-emblem.tone-mukhi-8,
.calc-card-media.tone-mukhi-8 { background-color: #B4530918; color: #B45309; }
.calc-emblem.tone-mukhi-9,
.calc-card-media.tone-mukhi-9 { background-color: #6B7A3A18; color: #6B7A3A; }
.calc-emblem.tone-mukhi-10,
.calc-card-media.tone-mukhi-10 { background-color: #0E766E18; color: #0E766E; }
.calc-emblem.tone-mukhi-11,
.calc-card-media.tone-mukhi-11 { background-color: #9B1B3018; color: #9B1B30; }
.calc-emblem.tone-mukhi-12,
.calc-card-media.tone-mukhi-12 { background-color: #CA8A0418; color: #CA8A04; }
.calc-emblem.tone-mukhi-13,
.calc-card-media.tone-mukhi-13 { background-color: #A6365B18; color: #A6365B; }
.calc-emblem.tone-mukhi-14,
.calc-card-media.tone-mukhi-14 { background-color: #5A718618; color: #5A7186; }

/* Crystal bracelets — each tone is the dominant colour of that stone. */
.calc-emblem.tone-quartz,
.calc-card-media.tone-quartz { background-color: #7C93A818; color: #5A7186; }
.calc-emblem.tone-bloodstone,
.calc-card-media.tone-bloodstone { background-color: #2F5D4118; color: #2F5D41; }
.calc-emblem.tone-aventurine,
.calc-card-media.tone-aventurine { background-color: #1F7A4D18; color: #1F7A4D; }
.calc-emblem.tone-amethyst,
.calc-card-media.tone-amethyst { background-color: #7C3AED18; color: #6D28D9; }
.calc-emblem.tone-pyrite,
.calc-card-media.tone-pyrite { background-color: #A1620718; color: #A16207; }
.calc-emblem.tone-citrine,
.calc-card-media.tone-citrine { background-color: #CA8A0418; color: #CA8A04; }
.calc-emblem.tone-obsidian,
.calc-card-media.tone-obsidian { background-color: #78350F18; color: #78350F; }
.calc-emblem.tone-rosequartz,
.calc-card-media.tone-rosequartz { background-color: #DB277718; color: #BE185D; }
.calc-emblem.tone-sunstone,
.calc-card-media.tone-sunstone { background-color: #C2410C18; color: #C2410C; }
.calc-emblem.tone-turquoise,
.calc-card-media.tone-turquoise { background-color: #0E766E18; color: #0E766E; }
.calc-emblem.tone-dragonagate,
.calc-card-media.tone-dragonagate { background-color: #6B1F2A18; color: #6B1F2A; }
.calc-emblem.tone-moonstone,
.calc-card-media.tone-moonstone { background-color: #8A7B6518; color: #7C6F5C; }
.calc-emblem.tone-azurite,
.calc-card-media.tone-azurite { background-color: #1E40AF18; color: #1E40AF; }
.calc-emblem.tone-jade,
.calc-card-media.tone-jade { background-color: #15803D18; color: #15803D; }

/* Any tone the palette above doesn't name still gets a readable surface. */
.calc-emblem:not([class*="tone-"]) {
  background-color: var(--calc-soft);
  color: var(--calc-accent);
}

.calc-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.calc-fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
  background: linear-gradient(160deg, var(--calc-soft), transparent 70%);
}

.calc-fact-hero { grid-column: 1 / -1; }

.calc-fact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.calc-fact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-fg);
  line-height: 1.5;
}

.calc-fact-value em {
  font-style: normal;
  font-weight: 400;
  color: var(--brand-muted);
}

.calc-fact-mantra {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--calc-accent);
}

.calc-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calc-disclaimer {
  display: flex;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  border-top: 1px solid var(--brand-border);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--brand-muted);
}

.calc-disclaimer svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  color: var(--calc-accent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--brand-radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--brand-transition), box-shadow var(--brand-transition),
              background-color var(--brand-transition), color var(--brand-transition);
}

.calc-btn svg { width: 15px; height: 15px; }

.calc-btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, var(--calc-accent), var(--calc-accent-2));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--calc-accent) 28%, transparent);
}

.calc-btn-primary:hover,
.calc-btn-primary:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--calc-accent) 38%, transparent);
}

.calc-btn-ghost {
  border: 1px solid var(--brand-border);
  background-color: var(--brand-surface);
  color: var(--brand-muted);
}

.calc-btn-ghost:hover,
.calc-btn-ghost:focus {
  border-color: var(--calc-accent);
  color: var(--calc-accent);
}

.calc-btn-light {
  border: 0;
  background-color: #fff;
  color: var(--calc-accent);
  white-space: nowrap;
}

.calc-btn-light:hover,
.calc-btn-light:focus {
  color: var(--calc-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Filter + reference cards
   ========================================================================== */
.calc-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  border-radius: var(--brand-radius-pill);
  border: 1px solid var(--brand-border);
  background-color: var(--brand-surface);
  transition: border-color var(--brand-transition), box-shadow var(--brand-transition);
}

.calc-filter:focus-within {
  border-color: var(--calc-accent);
  box-shadow: 0 0 0 3px var(--calc-soft);
}

.calc-filter svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--brand-muted);
}

.calc-filter-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.25rem;
  font-size: 0.88rem;
  color: var(--brand-fg);
}

.calc-filter-input:focus { outline: 0; }

.calc-filter-count {
  flex: 0 0 auto;
  padding-right: 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-muted);
}

.calc-filter-empty {
  text-align: center;
  font-size: 0.88rem;
  color: var(--brand-muted);
  margin: 1.5rem 0 0;
}

.calc-filter-empty[hidden] { display: none; }

.calc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.calc-card {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-surface);
  transition: transform var(--brand-transition), box-shadow var(--brand-transition), border-color var(--brand-transition);
}

.calc-card:hover {
  transform: translateY(-5px);
  border-color: var(--calc-accent);
  box-shadow: var(--brand-shadow-lift);
}

.calc-card[hidden] { display: none; }

.calc-card .calc-emblem { margin-bottom: 0.8rem; }

/* Photo cards let the image run to the card edge, so the padding moves inward. */
.calc-card-photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calc-card-photo > :not(.calc-card-media) { margin-left: 1.25rem; margin-right: 1.25rem; }
.calc-card-photo > :last-child { margin-bottom: 1.25rem; }
.calc-card-photo .calc-emblem { margin: 1.25rem 1.25rem 0.8rem; }

.calc-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--brand-bg);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.calc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--brand-transition);
}

.calc-card-photo:hover .calc-card-media img { transform: scale(1.05); }

/* Fallback band for items with no catalogue photo: the same box, filled with the
   item's own glyph on its tone tint, so the grid keeps one card shape. */
.calc-card-media-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(closest-side, color-mix(in srgb, currentColor 12%, transparent), transparent 78%);
}

.calc-card-media-glyph svg {
  width: 58px;
  height: 58px;
  opacity: 0.85;
  transition: transform var(--brand-transition);
}

.calc-card-photo:hover .calc-card-media-glyph svg { transform: scale(1.06); }

/* The wash exists to settle busy photo backdrops; on a flat glyph it just muddies. */
.calc-card-media-glyph::after { display: none; }

/* Thin tinted wash keeps the varied product backdrops reading as one grid. */
.calc-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, currentColor 14%, transparent));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .calc-card-photo:hover .calc-card-media img,
  .calc-card-photo:hover .calc-card-media-glyph svg { transform: none; }
}

.calc-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  margin-bottom: 0.1rem;
}

.calc-card-native {
  font-size: 0.82rem;
  color: var(--brand-muted);
  margin-bottom: 0.8rem;
}

.calc-card-meta {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.7rem;
}

.calc-card-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed var(--brand-border);
}

.calc-card-meta dt {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--brand-muted);
}

.calc-card-meta dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
}

.calc-card-meta dd em {
  font-style: normal;
  font-weight: 400;
  color: var(--brand-muted);
}

.calc-card-note {
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--brand-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Converter
   ========================================================================== */
.calc-console-converter { max-width: 940px; }

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.calc-presets-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-right: 0.3rem;
}

.calc-units {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.calc-unit {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  background: linear-gradient(165deg, var(--calc-soft), transparent 65%);
  transition: border-color var(--brand-transition), box-shadow var(--brand-transition);
}

.calc-unit:focus-within {
  border-color: var(--calc-accent);
  box-shadow: 0 0 0 3px var(--calc-soft);
}

.calc-unit.is-source {
  border-color: var(--calc-accent);
}

.calc-unit-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: 0.45rem;
}

.calc-unit-field {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.calc-unit-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand-fg);
  -moz-appearance: textfield;
}

.calc-unit-input::-webkit-outer-spin-button,
.calc-unit-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-unit-input:focus { outline: 0; }

.calc-unit-input::placeholder {
  color: var(--brand-border);
  font-weight: 400;
}

.calc-unit-symbol {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--calc-accent);
}

.calc-unit-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.7rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-surface);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-muted);
  cursor: pointer;
  transition: color var(--brand-transition), border-color var(--brand-transition), opacity var(--brand-transition);
}

.calc-unit-copy svg { width: 12px; height: 12px; }

.calc-unit-copy:hover {
  color: var(--calc-accent);
  border-color: var(--calc-accent);
}

.calc-unit-copy.is-done {
  color: var(--brand-success);
  border-color: var(--brand-success);
}

.calc-unit-copy:disabled {
  opacity: 0.4;
  cursor: default;
}

.calc-converter-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--brand-border);
}

.calc-converter-equation {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-muted);
}

.calc-converter-equation strong { color: var(--calc-accent); }

.calc-factor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.calc-factor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-bg);
  font-size: 0.88rem;
}

.calc-factor-from { color: var(--brand-muted); }
.calc-factor-eq { color: var(--calc-accent); font-weight: 700; }
.calc-factor-to { font-weight: 700; color: var(--brand-fg); }

/* Wrist bands */
.calc-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.calc-band {
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  background: linear-gradient(165deg, var(--calc-soft), transparent 65%);
  transition: transform var(--brand-transition), border-color var(--brand-transition);
}

.calc-band:hover {
  transform: translateY(-4px);
  border-color: var(--calc-accent);
}

.calc-band-range {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-muted);
  margin-bottom: 0.35rem;
}

.calc-band-size {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--calc-accent);
  margin-bottom: 0.15rem;
  line-height: 1;
}

.calc-band-size span {
  font-size: 0.9rem;
  margin-left: 0.15rem;
}

.calc-band-count {
  font-size: 0.76rem;
  color: var(--brand-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Learn columns
   ========================================================================== */
.calc-learn {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .calc-learn { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; }
}

.calc-learn-main p {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--brand-muted);
}

.calc-steps {
  counter-reset: calc-step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-steps li {
  position: relative;
  counter-increment: calc-step;
  padding: 0 0 1.1rem 2.6rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--brand-muted);
  border-left: 1px dashed var(--brand-border);
  margin-left: 0.85rem;
}

.calc-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.calc-steps li::before {
  content: counter(calc-step);
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-accent-2));
}

.calc-steps li strong { color: var(--brand-fg); }

.calc-learn-aside {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--brand-border);
  background: linear-gradient(175deg, var(--calc-soft), transparent 55%);
  align-self: start;
}

.calc-aside-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.calc-aside-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--brand-muted);
  margin-bottom: 1.1rem;
}

.calc-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.calc-benefits li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--brand-muted);
}

.calc-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-accent-2));
}

/* ==========================================================================
   Consultation CTA
   ========================================================================== */
.calc-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(120deg, var(--calc-accent), var(--calc-accent-2));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--calc-accent) 26%, transparent);
}

@media (min-width: 768px) {
  .calc-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.25rem 2.5rem; }
}

.calc-cta-glow {
  position: absolute;
  inset: -60% -10% auto auto;
  width: 60%;
  height: 220%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.calc-cta-copy { position: relative; z-index: 1; }

.calc-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: #fff;
  margin-bottom: 0.35rem;
}

.calc-cta-lead {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.calc-cta .calc-btn-light { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .calc-hero-orbit,
  .calc-emblem::after,
  .calc-result,
  .calc-submit-spinner {
    animation: none;
  }

  .calc-chip:hover,
  .calc-card:hover,
  .calc-band:hover,
  .calc-btn:hover,
  .calc-submit:hover {
    transform: none;
  }
}
