/* ═══════════════════════════════════════════════════════
   WORKPLACE SPACE CALCULATOR — Page-Specific Styles
   /workplace-space-calculator. Loaded after guide-vN.css: the page reuses the Guide page's
   hero, download form and related-cards rules, and only the calculator itself lives here.
   ═══════════════════════════════════════════════════════ */

/* ── 1. Hero additions ─────────────────────────────── */
.sc-privacy {
  max-width: 500px;
  margin-top: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.sc-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The thank-you / welcome-back line that takes the form's place once it has gone through.
   Webflow's default is a centred grey box. */
.gd-hero .gd-form .w-form-done {
  max-width: 500px;
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border-left: 2px solid var(--color-copper);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ── 2. Calculator ─────────────────────────────────── */
/* It follows the hero directly, so only the bottom padding of .section is wanted. */
.sc-calc {
  padding-top: 0;
}

.sc-calc__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.sc-panel {
  padding: clamp(1.5rem, 2.6vw, 2.75rem);
  transition: filter 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}

.sc-inputs {
  background: var(--color-surface-light);
}

.sc-results {
  display: flex;
  flex-direction: column;
  background: var(--color-dark);
  color: var(--color-text-on-dark);
}

.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sc-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.9vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
}

.sc-reset {
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.sc-controls {
  display: grid;
  gap: 1.9rem;
}

.sc-control {
  display: grid;
  gap: 0.7rem;
}

.sc-control__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.sc-label {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
}

.sc-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-copper);
  font-variant-numeric: tabular-nums;
}

.sc-hint {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.sc-number {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.sc-number:focus-within {
  box-shadow: 0 0 0 2px var(--color-copper);
}

.sc-number input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  outline: none;
  -moz-appearance: textfield;
}

.sc-number input::-webkit-outer-spin-button,
.sc-number input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sc-number span {
  padding-right: 1rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.sc-range {
  width: 100%;
  margin: 0;
  accent-color: var(--color-copper);
  cursor: pointer;
}

.sc-profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.sc-profile {
  padding: 1rem;
  background: #fff;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--color-border);
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.sc-profile:hover {
  box-shadow: inset 0 0 0 1px var(--color-border-hover);
}

.sc-profile.is-active {
  box-shadow: inset 0 0 0 2px var(--color-copper);
}

.sc-profile strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.sc-profile em {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-copper);
}

.sc-profile span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* Results panel. It is not a .section--dark band, so the copper-light label and the cream
   button hover that styles-vN.css gives dark bands are repeated here. */
.sc-results .section-label {
  color: var(--color-copper-light);
}

.sc-results .section-label::before {
  background: var(--color-copper-light);
}

.sc-results__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.sc-area {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 2.2rem;
}

.sc-area__num {
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.sc-area__unit {
  margin-bottom: 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  color: var(--color-text-muted-on-dark);
}

.sc-area__copy {
  max-width: 34em;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted-on-dark);
}

.sc-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border-on-dark);
  border-bottom: 1px solid var(--color-border-on-dark);
}

.sc-metric {
  padding: 1.2rem 0.9rem;
  border-right: 1px solid var(--color-border-on-dark);
}

.sc-metric:first-child {
  padding-left: 0;
}

.sc-metric:last-child {
  border-right: 0;
}

.sc-metric strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.sc-metric span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--color-text-muted-on-dark);
}

.sc-alloc {
  margin-top: 1.8rem;
}

.sc-alloc__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted-on-dark);
}

.sc-alloc__head strong {
  font-weight: 400;
  color: #fff;
}

.sc-bar {
  display: flex;
  height: 10px;
  margin-top: 0.8rem;
  overflow: hidden;
  border-radius: 999px;
}

.sc-bar i,
.sc-legend i {
  display: block;
  background: var(--sc-swatch);
}

.sc-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.sc-legend span {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted-on-dark);
}

.sc-legend i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.3em;
  border-radius: 50%;
}

.sc-disclaimer {
  margin-top: auto;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-muted-on-dark);
}

.sc-cta {
  margin-top: 1.5rem;
}

.sc-results .btn.btn::before {
  background: var(--color-bg);
}

.sc-results .btn.btn:is(:hover, :focus-visible) {
  color: var(--color-dark);
  border-color: var(--color-bg);
}

/* ── Locked until the form above has gone through ── */
.sc-calc.is-locked .sc-panel {
  filter: blur(4px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.sc-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sc-calc.is-locked .sc-lock {
  display: flex;
}

.sc-lock__card {
  max-width: 420px;
  padding: 2rem 2.25rem;
  background: var(--color-bg);
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(35, 31, 32, 0.35);
}

.sc-lock__card p {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .sc-calc__grid {
    grid-template-columns: 1fr;
  }

  /* One column is tall, so the lock card would sit far below the top of the panel. */
  .sc-lock {
    align-items: flex-start;
    padding-top: 4rem;
  }
}

@media (max-width: 768px) {
  .sc-profiles {
    grid-template-columns: 1fr;
  }

  .sc-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-metric:nth-child(2) {
    border-right: 0;
  }

  .sc-metric:nth-child(3) {
    padding-left: 0;
  }

  .sc-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--color-border-on-dark);
  }

  .sc-legend {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-alloc__head {
    flex-direction: column;
    gap: 0.25rem;
  }
}
