/* ================================================
   Meeting Cost Calculator — Custom CSS
   Matched to kewzee.com/labs aesthetic:
   charcoal #141310, lime #c5ed3c, Fraunces serif.
   ================================================ */

* { box-sizing: border-box; }

html { background: #141310; }

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

::selection {
  background: #c5ed3c;
  color: #1a1814;
}

/* --- Reusable: specimen card (paper bg, ink border, lime offset shadow) --- */

.specimen-card {
  background: #1f1d19;
  border: 2px solid #f4ecd5;
  box-shadow: 6px 6px 0 #c5ed3c;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 200ms ease;
}

/* --- Hero stamp (rotated lime sticker with cherry shadow) --- */

.labs-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 2px solid #c5ed3c;
  background: #c5ed3c;
  color: #1a1814;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 #d46a3e;
}

.labs-stamp .stamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d46a3e;
}

/* --- Hero stack — width: max-content lets the meta bar span exactly the H1's
   intrinsic width, so the dashed top/bottom lines stretch across the title.
   max-width: 100% caps to viewport on mobile (where H1 wraps). --- */

.hero-stack {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

/* --- Hero meta bar (real-time / free / open on next call) ---
   Hidden on mobile, full-width block on desktop so the dashes span the title. */

.labs-meter-mini {
  display: none;
}

@media (min-width: 1024px) {
  .labs-meter-mini {
    display: flex;
    margin: 28px -64px 0;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 10px 64px;
    border-top: 1px dashed rgba(244, 236, 213, 0.22);
    border-bottom: 1px dashed rgba(244, 236, 213, 0.22);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 236, 213, 0.6);
  }
}

/* Slow-spinning loader icon */
.icon-spin {
  animation: icon-spin 6s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

.meter-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meter-sep {
  opacity: 0.5;
}

.labs-meter-mini svg {
  color: #c5ed3c;
}

/* --- Settings heading --- */

.settings-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c5ed3c;
  border-bottom: 2px dashed rgba(244, 236, 213, 0.18);
  padding-bottom: 14px;
  margin: 0;
}

.settings-heading > span:first-child {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  line-height: 1;
}

/* --- Field label & input --- */

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 236, 213, 0.65);
}

.field-label svg {
  color: #c5ed3c;
}

.field-input {
  width: 100%;
  background: #141310;
  border: 1.5px solid rgba(244, 236, 213, 0.18);
  border-radius: 0;
  padding: 11px 14px;
  color: #f4ecd5;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  transition: border-color 200ms ease;
}

.field-input::placeholder {
  color: rgba(244, 236, 213, 0.35);
}

.field-input:focus {
  outline: none;
  border-color: #c5ed3c;
}

/* --- Buttons --- */

.btn-primary,
.btn-ghost,
.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 0;
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease, box-shadow 100ms ease;
}

.btn-primary {
  background: #c5ed3c;
  color: #1a1814;
  border: 2px solid #c5ed3c;
}

.btn-primary:hover {
  background: #a3c728;
  border-color: #a3c728;
}

.btn-primary.is-pause-state {
  background: #d46a3e;
  border-color: #d46a3e;
}

.btn-primary.is-pause-state:hover {
  background: #b8552d;
  border-color: #b8552d;
}

.btn-ghost {
  background: transparent;
  color: #f4ecd5;
  border: 2px solid rgba(244, 236, 213, 0.4);
}

.btn-ghost:hover {
  border-color: #c5ed3c;
  color: #c5ed3c;
}

.btn-lime {
  background: #c5ed3c;
  color: #1a1814;
  border: 2px solid #1a1814;
  box-shadow: 3px 3px 0 #1a1814;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
}

.btn-lime:hover {
  background: #a3c728;
}

.btn-lime:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1a1814;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #1f1d19;
  color: rgba(244, 236, 213, 0.7);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.mode-btn:hover {
  color: #c5ed3c;
  background: rgba(20, 19, 16, 0.7);
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  color: #c5ed3c;
  border: 1.5px solid rgba(197, 237, 60, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.add-btn:hover {
  border-color: #c5ed3c;
  background: rgba(197, 237, 60, 0.08);
}

/* --- Attendee rows --- */

.attendee-row {
  background: #1f1d19;
  border: 1.5px solid rgba(244, 236, 213, 0.15);
  padding: 12px;
  transition: border-color 200ms ease;
}

.attendee-row:focus-within {
  border-color: #c5ed3c;
}

/* Vertical stack of user-round icon + numeric index inside each attendee row. */
.attendee-id-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  color: rgba(244, 236, 213, 0.45);
}

.attendee-id-stack svg {
  width: 16px;
  height: 16px;
}

/* --- Feature row (paid features list) --- */

.feature-row {
  display: flex;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 2px dashed rgba(244, 236, 213, 0.12);
  align-items: flex-start;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c5ed3c;
  color: #1a1814;
  border: 1.5px solid #1a1814;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #f4ecd5;
  margin: 0 0 2px;
}

.feature-body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  color: rgba(244, 236, 213, 0.7);
  line-height: 1.5;
  margin: 0;
}

/* --- Pro section clock-alert icon ---
   Massive lucide clock-alert above the H2. Mask-image fades the bottom so
   the title can sit underneath/overlap the icon's lower half. --- */

.pro-icon-wrap {
  position: relative;
  z-index: 0;
  margin: 8px 0 -56px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
          mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
}

.pro-icon {
  display: block;
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  color: #c5ed3c;
  opacity: 0.55;
}

@media (max-width: 639px) {
  .pro-icon-wrap { margin-bottom: -42px; }
  .pro-icon { width: 140px; height: 140px; }
}

/* --- Bit/Tool/Ask cards (specimen-style, slightly tilted) --- */

.bta-card {
  background: #1f1d19;
  border: 2px solid #f4ecd5;
  padding: 32px 28px;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.bta-card:nth-child(1) { transform: rotate(-0.6deg); }
.bta-card:nth-child(2) { transform: rotate(0.4deg); }
.bta-card:nth-child(3) { transform: rotate(-0.3deg); }

.bta-card:hover {
  transform: rotate(0) translate(-2px, -2px);
  box-shadow: 6px 6px 0 #c5ed3c;
}

.bta-glyph {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
  color: #c5ed3c;
  margin-bottom: 16px;
}

.bta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 213, 0.5);
  margin: 0 0 10px;
}

.bta-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #f4ecd5;
  margin: 0 0 12px;
}

.bta-body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  color: rgba(244, 236, 213, 0.7);
  line-height: 1.5;
  margin: 0;
}

/* --- Live status pill --- */

#live-dot.live {
  background: #c5ed3c;
  box-shadow: 0 0 0 3px rgba(197, 237, 60, 0.18);
  animation: live-pulse 1.6s ease-in-out infinite;
}

#live-dot.paused {
  background: #d46a3e;
}

#live-status.live { color: #c5ed3c; }
#live-status.paused { color: #d46a3e; }

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(197, 237, 60, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(197, 237, 60, 0.06); }
}

/* --- Warn glow when over $500 (cherry, on-brand) --- */

.glow-warn {
  box-shadow:
    6px 6px 0 #d46a3e,
    0 0 30px rgba(212, 106, 62, 0.25) !important;
  border-color: #f4ecd5 !important;
}

#counter.text-warn { color: #d46a3e; }
#screenshot-counter.text-warn { color: #d46a3e; }

/* --- Counter optical detail ---
   Each character of the formatted cost ("$1,234.56") renders into its own
   fixed-width column (.counter-char). The column locks the glyph's
   horizontal slot so digit changes can't shift neighbours sideways — the
   classic split-flap / odometer trick. Columns intentionally narrower than
   natural digit width so the digits *overlap* slightly, keeping the number
   visually tight without leaving big inter-glyph gaps. */

#counter,
#screenshot-counter,
#fs-counter {
  display: inline-flex;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-kerning: none;
  letter-spacing: 0; /* per-char columns control spacing now; uniform letter-spacing would just offset every column */
}

.counter-char {
  display: inline-block;
  text-align: center;
  width: 0.62em;        /* digit column width; tweak if Fraunces feels too cramped or too loose */
  flex-shrink: 0;
}

.counter-char[data-kind="dollar"] {
  width: 0.55em;
  margin-right: 0.18em; /* visible breathing space between $ and the first digit */
}

.counter-char[data-kind="dot"]   { width: 0.24em; }
.counter-char[data-kind="comma"] { width: 0.2em; }

/* --- "What this could buy" comparison line (main + fullscreen) --- */

.comparison-line {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(244, 236, 213, 0.7);
  line-height: 1.4;
  margin: 36px 0 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(244, 236, 213, 0.12);
  min-height: 1.4em;
  transition: opacity 500ms ease;
}

.comparison-line.is-hidden { opacity: 0; }

.fs-comparison-line {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 26px);
  color: rgba(244, 236, 213, 0.75);
  line-height: 1.4;
  margin: 48px auto 0;
  min-height: 1.4em;
  max-width: 32ch;
  transition: opacity 500ms ease;
}

.fs-comparison-line.is-hidden { opacity: 0; }

/* --- Screenshot overlay --- */

#screenshot-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #141310;
}

/* --- Fullscreen mode --- */

#fullscreen-mode {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #141310;
  color: #f4ecd5;
  display: flex;
  flex-direction: column;
}

#fullscreen-mode.hidden { display: none; }

.fs-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fs-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(244, 236, 213, 0.6);
  border: 0;
  padding: 8px 12px;
  margin-left: -12px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 150ms ease;
}
.fs-exit-btn:hover { color: #c5ed3c; }

.fs-title-display {
  flex: 1;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(244, 236, 213, 0.7);
  margin: 0;
}

.fs-title-display:empty::before {
  content: '— meeting —';
  color: rgba(244, 236, 213, 0.3);
  font-style: italic;
}

.fs-status {
  color: rgba(244, 236, 213, 0.55);
  letter-spacing: 0.18em;
}

.fs-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

/* Giant play button (pre-start state) */

.fs-start-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: transparent;
  color: #c5ed3c;
  border: 0;
  cursor: pointer;
  padding: 24px;
  transition: transform 200ms ease, color 200ms ease;
}
.fs-start-btn:hover {
  transform: scale(1.05);
}
.fs-start-btn:active {
  transform: scale(0.98);
}

.fs-start-icon-wrap {
  display: flex;
  width: clamp(180px, 26vw, 320px);
  height: clamp(180px, 26vw, 320px);
}
.fs-start-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.fs-start-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 213, 0.7);
}

/* Counter wrap (running/paused state) */

.fs-counter-wrap {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  cursor: pointer;
}

.fs-counter-wrap.hidden { display: none; }

.fs-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 236, 213, 0.55);
  margin: 0 0 24px;
}

.fs-counter {
  font-family: 'Fraunces', serif;
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 400;
  font-feature-settings: 'tnum';
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.fs-counter.text-warn { color: #d46a3e; }

.fs-cost-per-sec {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(244, 236, 213, 0.6);
  font-feature-settings: 'tnum';
  letter-spacing: 0.05em;
  margin: 0;
}

/* Pause/Play overlay button — appears on hover over counter */

.fs-pause-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(110px, 16vw, 180px);
  height: clamp(110px, 16vw, 180px);
  background: rgba(20, 19, 16, 0.88);
  color: #c5ed3c;
  border: 2px solid #c5ed3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.fs-pause-overlay-btn svg {
  width: 50%;
  height: 50%;
}

.fs-counter-wrap:hover .fs-pause-overlay-btn,
.fs-pause-overlay-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.fs-pause-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #c5ed3c;
  color: #1a1814;
}

/* Attendees list (bottom) */

.fs-attendees-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 32px 36px;
  border-top: 1px dashed rgba(244, 236, 213, 0.18);
}

.fs-attendee-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #1f1d19;
  border: 1.5px solid rgba(244, 236, 213, 0.18);
  padding: 10px 14px;
  min-width: 140px;
  font-family: 'Instrument Sans', sans-serif;
}

.fs-attendee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(244, 236, 213, 0.55);
}

.fs-attendee-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fs-attendee-name {
  color: #f4ecd5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch;
}

.fs-attendee-rate {
  color: #c5ed3c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-feature-settings: 'tnum';
  letter-spacing: 0.04em;
}

@media (max-width: 639px) {
  .fs-top-bar { padding: 16px 20px; font-size: 10px; }
  .fs-attendees-list { padding: 16px 20px 24px; }
  .fs-attendee-chip { min-width: 100px; padding: 8px 10px; }
}

/* --- Action gate modal (email-required, hard-blocking) ---
   Fires when the user clicks Fullscreen or Screenshot without having
   already submitted an email. z-index: 200 sits above the fullscreen
   overlay (z-index 110) — defensive layering. */

.action-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
}

.action-gate[hidden] { display: none; }

.action-gate-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  background: #1f1d19;
  border: 2px solid #f4ecd5;
  box-shadow: 6px 6px 0 #c5ed3c;
  position: relative;
}

.action-gate-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c5ed3c;
  margin: 0 0 14px;
}

.action-gate-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f4ecd5;
  margin: 0 0 12px;
}

.action-gate-body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 236, 213, 0.7);
  margin: 0 0 22px;
}

.action-gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-gate-input {
  width: 100%;
  background: #141310;
  border: 1.5px solid rgba(244, 236, 213, 0.18);
  border-radius: 0;
  padding: 12px 14px;
  color: #f4ecd5;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  transition: border-color 200ms ease;
}

.action-gate-input::placeholder {
  color: rgba(244, 236, 213, 0.35);
}

.action-gate-input:focus {
  outline: none;
  border-color: #c5ed3c;
}

.action-gate-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c5ed3c;
  color: #1a1814;
  border: 2px solid #1a1814;
  box-shadow: 3px 3px 0 #1a1814;
  padding: 13px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease, box-shadow 100ms ease;
}

.action-gate-submit:hover { background: #a3c728; }

.action-gate-submit:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1a1814;
}

.action-gate-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-gate-error {
  margin: 4px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #d46a3e;
}

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

@media (max-width: 639px) {
  .action-gate-card { padding: 28px 22px 24px; box-shadow: 4px 4px 0 #c5ed3c; }
  .action-gate-title { font-size: 22px; }
}

/* --- Compact mode --- */

body.compact { overflow: hidden; background: #141310; }
body.compact .compact-hide { display: none !important; }

body.compact .hero-grid {
  display: block;
  max-width: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

body.compact main { display: block; }

body.compact #calculator {
  padding: 0;
  margin: 0;
  max-width: none;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
}

body.compact #calc-widget {
  width: 100%;
  height: 100%;
  border: 1px solid #f4ecd5;
  box-shadow: none;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

body.compact #counter-display { padding: 0; }
body.compact #compact-title { display: block; }

body.compact #counter {
  font-size: 56px;
  margin-bottom: 4px;
}

body.compact #cost-per-second { font-size: 13px; }

body.compact #compact-controls {
  display: flex;
  position: absolute;
  bottom: 6px;
  right: 6px;
}

body.compact .glow-warn {
  box-shadow: 0 0 12px #d46a3e !important;
  border-color: #d46a3e !important;
}

/* --- Responsive ---
   Mobile audit: shrink counter font/min-width so the widget fits comfortably
   on a 375px viewport, tighten paddings on cards, reduce fullscreen counter
   so its sticky pause overlay stays in bounds. */

@media (max-width: 639px) {
  /* Hero */
  .labs-stamp { font-size: 10px; padding: 7px 12px; }

  /* Calculator widget — tighter padding on mobile */
  #counter-display { padding-left: 16px; padding-right: 16px; padding-top: 32px; padding-bottom: 32px; }

  /* Counter — smaller font + tighter min-width so the widget fits 375px viewport */
  #counter {
    font-size: 56px;
    min-width: 4em;
  }

  /* Cost-per-second + comparison line — keep readable */
  #cost-per-second { font-size: 12px; }
  .comparison-line { font-size: 14px; margin-top: 24px; padding-top: 14px; }

  /* Fullscreen mode counter — scale down for narrow phones */
  #fs-counter {
    font-size: 64px;
    min-width: 4em;
  }
  .fs-eyebrow { font-size: 11px; margin-bottom: 14px; }
  .fs-cost-per-sec { font-size: 13px; }
  .fs-comparison-line { font-size: 16px; margin-top: 32px; }
  .fs-pause-overlay-btn { width: 100px; height: 100px; }
  .fs-start-icon-wrap { width: 160px; height: 160px; }
  .fs-top-bar { padding: 14px 18px; font-size: 10px; }
  .fs-attendees-list { padding: 14px 18px 22px; gap: 8px; }
  .fs-attendee-chip { min-width: 110px; padding: 8px 10px; gap: 8px; }
  .fs-attendee-name { font-size: 13px; max-width: 14ch; }

  /* Screenshot counter */
  #screenshot-counter { font-size: 72px !important; }

  /* Pro section — feature rows */
  .feature-row { padding: 14px 18px; gap: 12px; }
  .feature-icon { width: 32px; height: 32px; }
  .feature-icon svg { width: 16px; height: 16px; }
  .feature-title { font-size: 14px; }
  .feature-body { font-size: 12px; }

  /* Bit/tool/ask — flatten rotation on mobile */
  .bta-card { padding: 24px 20px; transform: none !important; }
  .bta-glyph { font-size: 56px; }

  /* Attendee rows — stack the unit + range selectors when very tight */
  .attendee-row select { font-size: 13px; padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 380px) {
  /* Very narrow phones — selectors stack vertically inside attendee rows */
  .attendee-row > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }
  #counter { font-size: 48px; }
  #fs-counter { font-size: 56px; }
}
