/* ==========================================================================
   Handpan Soul Studio (studio.handpansoul.com)
   100% Aligned with handpansoul.com Editorial Luxury Design System
   ========================================================================== */

:root {
  --slate: #1C2F3C;
  --ink: #1C2F3C;
  --ink-2: #5A6870;
  --ink-muted: #55636B;
  --gold: #6F604B;
  --gold-lt: #D2BE93;
  --paper: #F8F6F3;
  --paper-deep: #F1EDE4;
  --surface: #FFFFFF;
  --surface-elev: #FFFFFF;
  --line: #E6E1D6;
  --line-strong: #D4CCB8;
  --navy: #001524;

  /* Dynamic Scale Accent (Default: SOUL8 D Kurd 14 Signature Green) */
  --g: #8BC34A;
  --g-hover: #7CB342;
  --g-ink: #1C2A10;
  --g-soft: #F4F9EE;
  --g-border: #CFE6B3;
  --accent-t: #3E6B18;

  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --danger-border: #FECACA;
  --amber: #D97706;
  --amber-soft: #FFFBEB;

  --shadow-sm: 0 6px 20px rgba(28, 47, 60, 0.05);
  --shadow-md: 0 14px 36px rgba(28, 47, 60, 0.09);
  --shadow-lg: 0 24px 56px rgba(28, 47, 60, 0.13);

  --font-serif: Merriweather, Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Scale-specific editorial palettes (matching handpansoul-bf2026-14note.php) */
[data-scale-theme="concert"] {
  --g: #C59F5A;
  --g-hover: #A8843F;
  --g-ink: #1C1608;
  --g-soft: #FCF8EE;
  --g-border: #E5D2AA;
  --accent-t: #7A5B21;
}

[data-scale-theme="aegean"] {
  --g: #1F5662;
  --g-hover: #163F48;
  --g-ink: #FFFFFF;
  --g-soft: #E8F4F6;
  --g-border: #B2D8DF;
  --accent-t: #1F5662;
}

/* Optional Evening Sanctuary Dark Mode for dim sound-bath / evening sessions */
[data-theme="sanctuary"] {
  --ink: #F4F1EA;
  --ink-2: #C2CDD4;
  --ink-muted: #9BAAB4;
  --gold: #D2BE93;
  --paper: #0E171F;
  --paper-deep: #13202B;
  --surface: #162430;
  --surface-elev: #1B2C3B;
  --line: rgba(210, 190, 147, 0.2);
  --line-strong: rgba(210, 190, 147, 0.36);
  --g-soft: rgba(139, 195, 74, 0.14);
  --g-border: rgba(139, 195, 74, 0.38);
  --accent-t: #A7DC6A;
  --danger-soft: rgba(220, 38, 38, 0.16);
  --danger-border: rgba(248, 113, 113, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.48);
}

[data-theme="sanctuary"][data-scale-theme="concert"] {
  --g-soft: rgba(197, 159, 90, 0.16);
  --g-border: rgba(197, 159, 90, 0.42);
  --accent-t: #E6C687;
}

[data-theme="sanctuary"][data-scale-theme="aegean"] {
  --g: #348899;
  --g-hover: #286E7C;
  --g-soft: rgba(52, 136, 153, 0.18);
  --g-border: rgba(110, 196, 212, 0.4);
  --accent-t: #7FD4E4;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.58;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.22s ease, color 0.22s ease;
}

a {
  color: var(--accent-t);
  text-decoration: none;
}

button, select, input {
  font-family: inherit;
}

:where(a, button, input, select, iframe):focus-visible {
  outline: 3px solid var(--accent-t);
  outline-offset: 3px;
}

.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;
}

/* 1. Exact handpansoul.com Black Friday Top Bar */
.hs-bf26-topbar {
  background: #1C2F3C;
  color: #FAF8F4;
  text-align: center;
  padding: calc(9px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 9px calc(16px + env(safe-area-inset-left, 0px));
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(210, 190, 147, 0.35);
}

.hs-bf26-topbar strong {
  color: #8BC34A;
}

.hs-bf26-topbar a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  white-space: nowrap;
}

.hs-bf26-topbar a:hover {
  color: #8BC34A;
}

/* 2. Editorial Header & Navigation */
.hs-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

[data-theme="sanctuary"] .hs-header {
  background: rgba(14, 23, 31, 0.92);
}

.hs-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px calc(20px + env(safe-area-inset-right, 0px)) 10px calc(20px + env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.hs-brand img {
  height: 38px;
  width: auto;
  display: block;
}

[data-theme="sanctuary"] .hs-brand img {
  filter: brightness(1.18) contrast(1.05);
}

.hs-brand-divider {
  width: 1px;
  height: 26px;
  background: var(--line-strong);
}

.hs-brand-title {
  display: flex;
  flex-direction: column;
}

.hs-brand-title strong {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.hs-brand-title span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hs-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hs-seg-pill {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.hs-seg-btn {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  min-height: 32px;
}

.hs-seg-btn.is-active {
  background: var(--slate);
  color: #FFFFFF;
}

[data-theme="sanctuary"] .hs-seg-btn.is-active {
  background: var(--gold-lt);
  color: #1C2F3C;
}

.hs-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.hs-icon-btn:hover {
  border-color: var(--g);
  background: var(--g-soft);
}

.hs-shop-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--g);
  border: 1.5px solid var(--g);
  color: var(--g-ink) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.hs-shop-cta-pill:hover {
  background: var(--g-hover);
  border-color: var(--g-hover);
  transform: translateY(-1px);
}

/* 3. Main Container & Hero Intro Strip */
.hs-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}

.hs-hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hs-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.hs-hero-strip h1 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.hs-hero-strip h1 .hs-accent {
  color: var(--accent-t);
}

.hs-hero-sub {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 690px;
}

.hs-audio-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--g-soft);
  border: 1px solid var(--g-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.hs-dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.25);
  flex-shrink: 0;
}

/* 4. Primary 4-Module Studio Tabs */
.hs-module-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.hs-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
  box-shadow: var(--shadow-sm);
  min-height: 62px;
}

.hs-tab-btn:hover {
  border-color: var(--g);
}

.hs-tab-btn.is-active {
  border-color: var(--g);
  background: var(--g-soft);
  box-shadow: 0 10px 24px rgba(28, 47, 60, 0.1);
}

.hs-tab-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.hs-tab-sub {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}

.hs-panel {
  display: none;
}

.hs-panel.is-active {
  display: block;
}

/* 5. Studio Card Surface */
.hs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hs-card + .hs-card {
  margin-top: 20px;
}

/* Scale Selector Bar inside Tab 1 */
.hs-scale-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hs-scale-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs-scale-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.hs-scale-pill:hover {
  border-color: var(--g);
}

.hs-scale-pill.is-active {
  border-color: var(--g);
  background: var(--g-soft);
  box-shadow: 0 4px 14px rgba(28, 47, 60, 0.1);
}

.hs-badge-mini {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--g);
  color: var(--g-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hs-stage-mode-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* 6. "Can Your Pan Play This?" 9-vs-14 Compatibility Challenge Box */
.hs-compat-banner {
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.hs-compat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hs-compat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
}

.hs-pan-tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hs-tier-btn {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hs-tier-btn:hover {
  border-color: var(--g);
}

.hs-tier-btn.is-active {
  background: #1C2F3C;
  border-color: #1C2F3C;
  color: #FFFFFF;
}

.hs-tier-btn.is-hero-tier.is-active {
  background: var(--g);
  border-color: var(--g);
  color: var(--g-ink);
}

.hs-compat-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--g-soft);
  border: 1px solid var(--g-border);
  font-size: 13.5px;
}

.hs-compat-result.has-missing {
  background: var(--danger-soft);
  border-color: var(--danger-border);
}

.hs-missing-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin: 2px 3px;
  border-radius: 6px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
}

.hs-unlock-link-btn {
  border: 0;
  background: var(--g);
  color: var(--g-ink);
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* 7. Guided Song & Tempo Bar */
.hs-song-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hs-song-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs-song-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.hs-song-btn:hover {
  border-color: var(--g);
  background: var(--g-soft);
}

.hs-song-btn.is-playing {
  background: var(--g);
  border-color: var(--g);
  color: var(--g-ink);
  box-shadow: 0 8px 20px rgba(28, 47, 60, 0.18);
}

.hs-playback-opts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Live Status + Next-Note Tab Ribbon */
.hs-status-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  font-size: 13.5px;
}

.hs-status-text {
  font-weight: 600;
  color: var(--ink-2);
}

.hs-status-text strong {
  color: var(--ink);
}

.hs-next-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
}

.hs-hand-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--slate);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
}

/* 8. Photorealistic Dual-Shell Stage (Matching post_7389_updated.html) */
.hs-dual-stage {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: start;
}

.hs-shell-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 14px 18px;
  text-align: center;
  position: relative;
}

.hs-shell-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.hs-shell-label.is-accent {
  color: var(--accent-t);
}

.hs-note-stage {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.hs-note-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none;
}

.hs-constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hs-tone-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hs-tone {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: max(var(--w), 44px);
  height: max(var(--h), 44px);
  transform: translate(-50%, -50%) rotate(var(--r));
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  font: 800 clamp(11px, 1.6vw, 14px)/1 var(--font-sans);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  touch-action: manipulation;
}

.hs-tone-surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 2.3px solid var(--c, #8BC34A);
  border-radius: 50%;
  background: rgba(28, 47, 60, 0.34);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
  transition: transform 0.13s ease, background 0.13s ease, box-shadow 0.13s ease, border-color 0.13s ease;
}

.hs-tone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: rotate(calc(-1 * var(--r)));
  pointer-events: none;
}

.hs-tone-num {
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.86;
  color: #FAF8F4;
}

.hs-tone:hover .hs-tone-surface,
.hs-tone.is-playing .hs-tone-surface {
  transform: scale(1.14);
  border-width: 3.5px;
  border-color: var(--g);
  background: rgba(139, 195, 74, 0.56);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7), 0 0 22px var(--g);
}

[data-scale-theme="concert"] .hs-tone.is-playing .hs-tone-surface {
  background: rgba(197, 159, 90, 0.62);
}

[data-scale-theme="aegean"] .hs-tone.is-playing .hs-tone-surface {
  background: rgba(52, 136, 153, 0.62);
}

/* Next-note guided glow */
.hs-tone.is-next-up .hs-tone-surface {
  border-color: #F59E0B;
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.38), 0 0 16px rgba(245, 158, 11, 0.85);
}

/* Chord member highlight */
.hs-tone.is-chord-note .hs-tone-surface {
  border-color: #D2BE93;
  border-width: 3px;
  background: rgba(28, 47, 60, 0.56);
  box-shadow: 0 0 0 4px rgba(210, 190, 147, 0.42);
}

/* Missing-note red dashed lock state when testing 9/10/12-note pans */
.hs-tone.is-missing .hs-tone-surface {
  border: 2.5px dashed #EF4444;
  background: rgba(127, 29, 29, 0.56);
  opacity: 0.86;
}

.hs-tone.is-missing-flash .hs-tone-surface {
  transform: scale(1.16);
  border: 3.5px dashed #EF4444;
  background: rgba(220, 38, 38, 0.78);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.45), 0 0 24px #EF4444;
}

.hs-gu-badge {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(210, 190, 147, 0.75);
  background: rgba(16, 24, 29, 0.78);
  color: #D2BE93;
  font: 700 11px/1 var(--font-sans);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hs-single-shell-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

.hs-kbd-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
}

.hs-kbd-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

/* 3D Flip Embed Stage */
.hs-3d-stage-wrap {
  display: none;
  margin-top: 8px;
}

.hs-3d-stage-wrap.is-visible {
  display: block;
}

.hs-3d-frame-box {
  width: 100%;
  height: 680px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #F4EFE4;
}

.hs-3d-frame-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 9. Quick Chord Strip underneath Tab 1 + Full Tab 2 Chords & Breathwork */
.hs-quick-chord-strip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hs-chord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hs-chord-pad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  min-height: 82px;
}

.hs-chord-pad:hover {
  border-color: var(--g);
  transform: translateY(-1px);
}

.hs-chord-pad.is-active {
  border-color: var(--g);
  background: var(--g-soft);
  box-shadow: 0 8px 20px rgba(28, 47, 60, 0.1);
}

.hs-chord-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.hs-chord-notes {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-t);
}

.hs-chord-mood {
  font-size: 12px;
  color: var(--ink-2);
}

/* Breathwork & Facilitator Teleprompter */
.hs-two-col {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  align-items: stretch;
}

.hs-breath-box {
  background: linear-gradient(160deg, #1C2F3C 0%, #101D26 100%);
  color: #FAF8F4;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  border: 1px solid rgba(210, 190, 147, 0.3);
}

.hs-mandala-ring-wrap {
  position: relative;
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  margin: 14px auto;
}

.hs-mandala-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2.5px solid #8BC34A;
  background: radial-gradient(circle, rgba(139, 195, 74, 0.28) 0%, rgba(210, 190, 147, 0.08) 70%);
  box-shadow: 0 0 32px rgba(139, 195, 74, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1s ease-in-out, border-color 0.4s ease;
}

.hs-breath-phase {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
}

.hs-breath-timer {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #CFE6B3;
  margin-top: 2px;
}

.hs-teleprompter-cue {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: #FAF8F4;
  max-width: 400px;
  min-height: 50px;
  margin: 8px 0 14px;
}

/* 10. Tab 3: 1:2:3 Compound Harmonic Strobe Tuner */
.hs-tuner-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.hs-tuner-display {
  background: #14222C;
  color: #FAF8F4;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(210, 190, 147, 0.32);
}

.hs-strobe-window {
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(210, 190, 147, 0.35);
  background: #0B1319;
  position: relative;
  margin: 14px 0;
}

.hs-strobe-track {
  width: 200%;
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(139, 195, 74, 0.88) 0px,
    rgba(139, 195, 74, 0.88) 22px,
    transparent 22px,
    transparent 44px
  );
  will-change: transform;
}

.hs-strobe-track.is-warn {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.88) 0px,
    rgba(245, 158, 11, 0.88) 22px,
    transparent 22px,
    transparent 44px
  );
}

.hs-strobe-track.is-out {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.88) 0px,
    rgba(239, 68, 68, 0.88) 22px,
    transparent 22px,
    transparent 44px
  );
}

.hs-strobe-centerline {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 8px #FFFFFF;
}

.hs-tuner-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hs-tuner-note {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
}

.hs-tuner-cents {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #8BC34A;
}

.hs-cent-meter {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0 8px;
}

.hs-cent-safe-zone {
  position: absolute;
  left: 47%;
  width: 6%;
  top: 0;
  bottom: 0;
  background: rgba(139, 195, 74, 0.38);
  border-left: 1px solid #8BC34A;
  border-right: 1px solid #8BC34A;
}

.hs-cent-needle {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 6px;
  height: 24px;
  border-radius: 4px;
  background: #FFFFFF;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transition: left 0.08s linear;
}

.hs-harmonics-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hs-harm-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 10px 12px;
}

.hs-harm-box small {
  display: block;
  font-size: 11px;
  color: #B7C2C9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hs-harm-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  color: #FFFFFF;
  margin-top: 3px;
}

.hs-harm-box span {
  font-size: 11.5px;
  color: #CFE6B3;
}

/* Detune Beat-Frequency Audition Box */
.hs-audition-box {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hs-slider {
  width: 100%;
  accent-color: #8BC34A;
  cursor: pointer;
}

/* Acoustic Spec Table */
.hs-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 16px;
}

table.hs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.hs-table th,
table.hs-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

table.hs-table thead th {
  background: #1C2F3C;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* 11. Tab 4: 7-Day Roadmap & Atelier Store Cards */
.hs-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hs-day-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.hs-day-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-t);
  background: var(--g-soft);
  border: 1px solid var(--g-border);
  padding: 3px 9px;
  border-radius: 999px;
}

.hs-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.hs-product-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.hs-product-card.is-flagship {
  border-color: var(--g);
  background: linear-gradient(180deg, var(--g-soft) 0%, var(--surface) 44%);
}

.hs-prod-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hs-prod-top img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.hs-prod-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.hs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--g);
  background: var(--g);
  color: var(--g-ink) !important;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.16s ease;
}

.hs-btn-primary:hover {
  background: var(--g-hover);
  border-color: var(--g-hover);
}

.hs-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink) !important;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.16s ease;
}

.hs-btn-secondary:hover {
  border-color: var(--g);
  background: var(--g-soft);
}

/* Trust Footer matching handpansoul.com */
.hs-footer {
  background: #1C2F3C;
  color: #DCE3E8;
  padding: 38px calc(20px + env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
  margin-top: 44px;
  border-top: 1px solid rgba(210, 190, 147, 0.3);
}

.hs-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.hs-footer a {
  color: #CFE6B3;
}

/* Modal / PWA Install Drawer */
.hs-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 28, 0.64);
  backdrop-filter: blur(4px);
  z-index: 120;
  place-items: center;
  padding: 18px;
}

.hs-modal-backdrop.is-open {
  display: grid;
}

.hs-modal {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* EEA Consent Banner */
.hs-consent-bar {
  display: none;
  position: fixed;
  left: calc(16px + env(safe-area-inset-left, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 680px;
  margin: 0 auto;
  background: #1C2F3C;
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  z-index: 110;
  font-size: 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hs-consent-bar.is-visible {
  display: flex;
}

/* Responsive Mobile Layout (390px iPhone & Tablet) */
@media (max-width: 960px) {
  .hs-module-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .hs-dual-stage,
  .hs-two-col,
  .hs-tuner-grid,
  .hs-store-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hs-bf26-topbar {
    font-size: 11.8px;
    padding: 8px 12px;
  }
  .hs-header-inner {
    padding: 8px 12px;
  }
  .hs-brand-divider,
  .hs-brand-title span {
    display: none;
  }
  .hs-main {
    padding: 14px 12px 52px;
  }
  .hs-card {
    padding: 16px 14px;
    border-radius: 20px;
  }
  .hs-module-tabs {
    gap: 8px;
  }
  .hs-tab-btn {
    padding: 10px 12px;
    min-height: 54px;
  }
  .hs-tab-sub {
    font-size: 11px;
  }
  .hs-harmonics-3col {
    grid-template-columns: 1fr;
  }
  .hs-3d-frame-box {
    height: 560px;
  }
}

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

/* Clean 1-Page Printable Tab & Practice Sheet */
@media print {
  .hs-bf26-topbar,
  .hs-header,
  .hs-module-tabs,
  .hs-consent-bar,
  .hs-footer,
  .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .hs-panel {
    display: block !important;
  }
  .hs-card {
    box-shadow: none !important;
    border: 1px solid #CCCCCC !important;
    break-inside: avoid;
  }
}
