/* =====================================================
   MIND NAV THERAPY — BREATHING SPACE
   Colour palette from brand assets:
     Mint/Seafoam:   #B7D7CF / #C3E1D7 / #9EC9BE
     Slate Blue-Grey:#5A7790 / #6B8394 / #4A6478
     Near-Black:     #1A1F2B
     Off-White:      #F6F8F7
     Warm Cream:     #FAFAF8
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mint:         #B7D7CF;
  --mint-light:   #D9EDE8;
  --mint-dark:    #7DADA0;
  --mint-deep:    #5A8E84;
  --slate:        #5A7790;
  --slate-light:  #8AABBB;
  --slate-dark:   #3E5A6D;
  --near-black:   #1A1F2B;
  --off-white:    #F6F8F7;
  --cream:        #FAFAF8;
  --text-main:    #2C3A42;
  --text-muted:   #6B8394;
  --text-soft:    #8FA5AE;
  --card-bg:      rgba(255,255,255,0.75);
  --shadow-soft:  0 4px 24px rgba(90,119,144,0.10);
  --shadow-card:  0 2px 16px rgba(90,119,144,0.12);
  --radius-lg:    20px;
  --radius-md:    14px;
  --radius-sm:    10px;
  --transition:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--cream);
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* ---- Background gradient ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(183,215,207,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(90,119,144,0.18) 0%, transparent 55%),
    linear-gradient(160deg, #F0F7F5 0%, #EAF2F8 50%, #F5F8FA 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Screen Management ---- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

/* Session screen — full-height 3-zone layout */
#screen-session {
  align-items: stretch;
  padding: 0;
  overflow: hidden; /* footer stays pinned, no page scroll */
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.screen.exit {
  opacity: 0;
  transform: translateY(-14px);
}

/* =========================================
   SCREEN 1 — WELCOME
   ========================================= */
.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 100%;
  gap: 0;
  padding: 12px 0 8px;
}

.logo-wrap {
  margin-bottom: 6px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo {
  width: min(200px, 52vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.22em;
  line-height: 1.2;
  margin-bottom: 28px;
}
.brand-top {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--slate);
}
.brand-bottom {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.32em;
}

.welcome-text {
  margin-bottom: 28px;
}
.welcome-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--near-black);
  margin-bottom: 8px;
  line-height: 1.2;
}
.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.55;
}
.intro-body {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 10px;
}
/* Combined intro section */
.intro-combined {
  background: linear-gradient(135deg, rgba(183,215,207,0.18) 0%, rgba(90,119,144,0.07) 100%);
  border: 1px solid rgba(183,215,207,0.5);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(183,215,207,0.15);
  margin-bottom: 0;
}
.intro-combined p {
  font-size: 0.91rem;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0;
}
.intro-tagline {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-size: 1.05rem !important;
  color: var(--slate) !important;
  margin-bottom: 10px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(183,215,207,0.4);
}
.intro-control {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-size: 1.02rem !important;
  color: var(--slate) !important;
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(183,215,207,0.4);
}

/* ---- iOS Install Banner ---- */
.ios-install-banner {
  display: none; /* shown via JS only on iOS Safari */
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 10px auto 4px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(183,215,207,0.6);
  border-radius: 16px;
  padding: 14px 36px 14px 14px;
  box-shadow: 0 4px 20px rgba(90,142,132,0.12);
  display: none;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: banner-slide-up 0.4s ease forwards;
}
.ios-install-banner.visible {
  display: flex;
}
@keyframes banner-slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ios-install-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
}
.ios-install-close:hover { opacity: 1; }
.ios-install-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ios-install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ios-install-text {
  flex: 1;
}
.ios-install-text strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 3px;
}
.ios-install-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.ios-share-icon {
  display: inline-block;
  font-size: 0.9rem;
  color: #007AFF; /* iOS blue */
  vertical-align: middle;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 18px rgba(58,90,109,0.28);
  margin-bottom: 18px;
}
.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(58,90,109,0.35);
  outline: none;
}
.btn-primary:active { transform: translateY(0); }

/* Welcome screen — "Begin when you're ready" larger than other buttons */
#btn-start {
  max-width: 340px;
  padding: 20px 36px;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 24px rgba(58,90,109,0.32);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--slate);
  border: 1.5px solid var(--mint);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(183,215,207,0.2);
  transform: translateY(-1px);
  outline: none;
}

/* ---- Contact button group ---- */
.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 340px;
  margin: 4px auto 10px;
}

.btn-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--mint-dark) 0%, var(--mint-deep) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(90,142,132,0.28);
}
.btn-book:hover, .btn-book:focus {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(90,142,132,0.38);
  outline: none;
}
.btn-book:active { transform: translateY(0); }

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  background: rgba(255,255,255,0.7);
  color: var(--slate);
  border: 1.5px solid rgba(183,215,207,0.8);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-contact:hover, .btn-contact:focus {
  background: rgba(183,215,207,0.2);
  border-color: var(--mint-dark);
  transform: translateY(-1px);
  outline: none;
}
.btn-contact:active { transform: translateY(0); }

.btn-donate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  background: rgba(255,255,255,0.7);
  color: var(--text-muted);
  border: 1.5px dashed rgba(183,215,207,0.8);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-donate:hover, .btn-donate:focus {
  background: rgba(255,255,220,0.35);
  border-color: rgba(200,180,80,0.4);
  transform: translateY(-1px);
  outline: none;
}
.btn-donate:active { transform: translateY(0); }

.footer-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.03em;
  margin-top: 4px;
  text-align: center;
  line-height: 1.8;
}
.footer-note a,
.contact-link {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid rgba(90,119,144,0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-note a:hover,
.contact-link:hover {
  color: var(--slate-dark);
  border-color: var(--slate-dark);
}

/* =========================================
   SCREEN 2 — CHOOSE TECHNIQUE
   ========================================= */
.choose-inner {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.logo-small-wrap { margin-bottom: 6px; }
.logo-small {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.85;
}

.choose-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--near-black);
  text-align: center;
  margin-bottom: 6px;
}
.choose-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.6;
  max-width: 360px;
}

.btn-back {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.btn-back:hover { color: var(--slate); }

.techniques-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

.technique-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1.5px solid rgba(183,215,207,0.55);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.technique-card:hover, .technique-card:focus {
  border-color: var(--mint-dark);
  background: rgba(183,215,207,0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(90,142,132,0.15);
  outline: none;
}
.technique-card:active { transform: translateY(0); }

.technique-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.technique-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--near-black);
  margin-bottom: 2px;
}
.technique-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 4px;
}
.technique-rhythm {
  font-size: 0.76rem;
  color: var(--mint-deep);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(183,215,207,0.22);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.safety-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 380px;
  padding: 10px 14px;
  background: rgba(255,255,200,0.35);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220,200,100,0.25);
}

/* Custom card highlight */
.technique-card--custom {
  border-color: rgba(90,119,144,0.35);
  border-style: dashed;
}
.technique-card--custom.selected {
  border-color: var(--slate);
  border-style: solid;
  background: rgba(90,119,144,0.07);
}

/* =========================================
   CUSTOM BREATHING PANEL
   ========================================= */
.custom-panel {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(183,215,207,0.7);
  border-radius: var(--radius-lg);
  padding: 20px 20px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;

  /* Hidden by default */
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.custom-panel.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.custom-panel-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--near-black);
  text-align: center;
  margin-bottom: 4px;
}
.custom-panel-hint {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.custom-sliders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-phase-label {
  font-size: 0.85rem;
  font-weight: 500;
  width: 68px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.inhale-label  { color: var(--mint-deep); }
.hold-label    { color: var(--slate); }
.exhale-label  { color: var(--slate-dark); }
.holdout-label { color: var(--text-muted); }

.custom-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(183,215,207,0.18);
  border: 1.5px solid rgba(183,215,207,0.6);
  border-radius: 50px;
  overflow: hidden;
  flex: 1;
}

.stepper-btn {
  background: none;
  border: none;
  width: 38px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.stepper-btn:hover  { background: rgba(183,215,207,0.4); color: var(--slate-dark); }
.stepper-btn:active { background: rgba(183,215,207,0.6); }
.stepper-btn:focus  { outline: 2px solid var(--mint-dark); outline-offset: -2px; }

.stepper-val {
  flex: 1;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--near-black);
  min-width: 32px;
  user-select: none;
}
.stepper-val.zero {
  color: var(--text-soft);
}

.custom-unit {
  font-size: 0.75rem;
  color: var(--text-soft);
  width: 26px;
  flex-shrink: 0;
  text-align: left;
}

.custom-start-btn {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

/* =========================================
   SCREEN 3 — SESSION
   ========================================= */
.session-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
}

/* TOP zone — back button + technique name */
.session-top {
  width: 100%;
  padding: 16px 20px 10px;
  flex-shrink: 0;
}

/* MIDDLE zone — orb fills all remaining space */
.session-orb-zone {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

/* BOTTOM zone — sound + stats pinned to bottom */
.session-footer {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 28px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(183,215,207,0.3);
}

.session-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 0;
  margin-top: 6px;
}
.session-title-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--near-black);
  margin-bottom: 2px;
}
#session-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

/* ---- Orb ---- */
.orb-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.orb-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--mint-light);
  opacity: 0;
  animation: ring-pulse 3s ease-out infinite;
}
.ring-1 { width: 100%; height: 100%; animation-delay: 0s; }
.ring-2 { width: 85%;  height: 85%;  animation-delay: 0.8s; border-color: var(--mint); opacity: 0.15; }
.ring-3 { width: 70%;  height: 70%;  animation-delay: 1.6s; border-color: var(--mint-dark); opacity: 0.2; }

@keyframes ring-pulse {
  0%   { opacity: 0;    transform: scale(0.85); }
  40%  { opacity: 0.25; }
  100% { opacity: 0;    transform: scale(1.15); }
}

.orb {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%,
    rgba(255,255,255,0.95) 0%,
    rgba(183,215,207,0.6) 45%,
    rgba(90,119,144,0.35) 100%);
  box-shadow:
    0 0 0 2px rgba(183,215,207,0.4),
    0 8px 40px rgba(90,142,132,0.22),
    inset 0 2px 8px rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Smooth continuous transition — no snapping */
  transition: transform 0.15s ease-out, box-shadow 0.4s ease;
  will-change: transform;
  /* Button reset */
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.orb:focus { outline: none; }
.orb:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 6px;
}
.orb.idle:hover {
  box-shadow:
    0 0 0 6px rgba(183,215,207,0.25),
    0 12px 44px rgba(90,142,132,0.28),
    inset 0 2px 8px rgba(255,255,255,0.6);
}

/* Orb animation — driven by JS Web Animations API for glitch-free transitions */
.orb.idle {
  animation: orb-breathe 5s ease-in-out infinite;
}

@keyframes orb-expand {
  0%   { transform: scale(var(--orb-from, 0.82)); }
  100% { transform: scale(1.22); }
}
@keyframes orb-shrink {
  0%   { transform: scale(var(--orb-from, 1.22)); }
  100% { transform: scale(0.82); }
}
@keyframes orb-hold-in {
  0%   { transform: scale(1.22); }
  100% { transform: scale(1.22); }
}
@keyframes orb-hold-out {
  0%   { transform: scale(0.82); }
  100% { transform: scale(0.82); }
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(0.88); }
  50%       { transform: scale(0.96); }
}

.orb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 50%;
}
.phase-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--near-black);
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
}
.phase-count {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--slate-dark);
  min-height: 32px;
  line-height: 1;
}

/* ---- Session Controls ---- */
/* .session-controls replaced by .session-footer */
/* .btn-session removed — orb is now the start/pause control */

/* ---- 3-way sound mode selector ---- */
.sound-mode-group {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(183,215,207,0.3);
  border-radius: 50px;
  overflow: hidden;
  align-self: center;
}

.sound-mode-btn {
  background: none;
  border: none;
  padding: 5px 9px;
  font-size: 0.82rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s ease, background 0.2s ease;
  line-height: 1;
  position: relative;
  filter: grayscale(0.6);
}
.sound-mode-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(183,215,207,0.3);
}
.sound-mode-btn:hover {
  opacity: 0.7;
}
.sound-mode-btn.active {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(183,215,207,0.15);
}
.sound-mode-btn:focus {
  outline: 1px solid var(--mint-dark);
  outline-offset: -2px;
}

/* voice picker removed */

.stats-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(183,215,207,0.5);
  border-radius: 12px;
  padding: 8px 16px;
  min-width: 72px;
  backdrop-filter: blur(4px);
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--slate-dark);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.68rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

#duration-select {
  background: none;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--slate-dark);
  cursor: pointer;
  text-align: center;
  padding: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.session-reminder {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
  min-height: 22px;
}
.session-reminder.visible { opacity: 1; }

/* =========================================
   SCREEN 4 — COMPLETION
   ========================================= */
.complete-inner {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.complete-icon {
  font-size: 2.4rem;
  color: var(--mint-dark);
  margin: 8px 0 12px;
  animation: spin-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes spin-in {
  from { transform: rotate(-30deg) scale(0.5); opacity: 0; }
  to   { transform: rotate(0deg) scale(1);   opacity: 1; }
}

.complete-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--near-black);
  margin-bottom: 10px;
}
.complete-message {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 340px;
}

.complete-stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(183,215,207,0.18);
  border: 1px solid rgba(183,215,207,0.5);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 80px;
}
.cstat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--slate-dark);
}
.cstat-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.complete-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 340px;
  font-style: italic;
}

.complete-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}
.complete-actions .btn-primary { margin-bottom: 0; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-height: 680px) {
  .logo { width: 62px; height: 62px; }
  .welcome-text h1 { font-size: 1.7rem; }
  .orb-container { width: 260px; height: 260px; margin-bottom: 12px; }
  .orb { width: 195px; height: 195px; }
  .complete-inner h2 { font-size: 1.6rem; }
}

@media (max-width: 380px) {
  .technique-card { padding: 11px 12px; }
  .technique-icon { font-size: 1.3rem; width: 32px; }
}

/* ---- Accessibility: focus visible ---- */
:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 3px;
}
