:root {
  --brand-primary: #004990;
  --brand-light: #A1DCEF;
  --brand-mid: #8090C0;
  --brand-white: #FFFFFF;
  --text: #004990;
  --muted: #4B6C92;
  --surface: #FFFFFF;
  --surface-soft: #F4FBFD;
  --surface-tint: #EEF8FC;
  --border: rgba(0, 73, 144, 0.12);
  --shadow: 0 20px 48px rgba(0, 73, 144, 0.12);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(161, 220, 239, 0.65), transparent 28rem),
    linear-gradient(180deg, var(--brand-white) 0%, var(--surface-soft) 50%, var(--brand-white) 100%);
}
.app-shell {
  width: min(1100px, calc(100% - 20px));
  margin: 0 auto;
  padding: 14px 0 32px;
}
.panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero {
  padding: 22px;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-white) 0%, var(--surface-tint) 100%);
}
.brand-logo {
  width: min(100%, 430px);
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  color: var(--brand-primary);
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.hero-copy {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}
.sound-row {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-white);
  border: 1px solid rgba(0, 73, 144, 0.16);
  color: var(--brand-primary);
  font-weight: 700;
}
.sound-toggle input { accent-color: var(--brand-primary); }
.hero-actions, .contact-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
button, .link-button {
  border: 0;
  border-radius: 18px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.primary {
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-primary), #003E7B);
}
.secondary {
  color: var(--brand-primary);
  background: var(--surface-tint);
  border: 1px solid rgba(0, 73, 144, 0.14);
}
.ghost {
  color: var(--brand-primary);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0, 73, 144, 0.2);
}
.timer-card, .phase-list, .contact {
  margin-top: 18px;
  padding: 22px;
}
.timer-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand-primary);
  font-weight: 800;
}
.timer {
  font-size: clamp(4rem, 18vw, 8.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--brand-primary);
  text-align: center;
  margin-top: 8px;
}
.progress-wrap {
  width: 100%;
  height: 14px;
  background: #DDEFF5;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 26px;
}
.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-primary), var(--brand-mid));
  border-radius: 999px;
  transition: width 0.2s linear;
}
.breath-zone {
  min-height: 240px;
  display: grid;
  place-items: center;
}
.breath-orb {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-white);
  font-size: 1.12rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(145deg, var(--brand-light), var(--brand-primary) 60%, var(--brand-mid) 100%);
  box-shadow: 0 22px 54px rgba(0, 73, 144, 0.22);
  transform: scale(1);
  transition-property: transform;
  transition-timing-function: ease-in-out;
  transition-duration: 1000ms;
}
.breath-orb.inhale { transform: scale(1.34); }
.breath-orb.exhale { transform: scale(0.82); }
.breath-orb.settle { transform: scale(1.02); }
#currentTitle {
  color: var(--brand-primary);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 8px;
  text-align: center;
}
#currentInstruction {
  max-width: 760px;
  margin: 0 auto 12px;
  text-align: center;
  color: var(--muted);
  line-height: 1.62;
}
.cue {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  background: var(--surface-tint);
  border: 1px solid rgba(0, 73, 144, 0.08);
  color: var(--brand-primary);
  font-weight: 800;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.phase-list h2, .contact h2 {
  margin-bottom: 0;
  color: var(--brand-primary);
  font-size: 1.9rem;
}
.section-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 700;
}
.phases { display: grid; gap: 12px; }
.phase-item {
  border: 1px solid rgba(0, 73, 144, 0.1);
  border-radius: 18px;
  padding: 16px;
  background: var(--brand-white);
}
.phase-item.active {
  background: linear-gradient(180deg, var(--surface-tint) 0%, var(--brand-white) 100%);
  border-color: rgba(0, 73, 144, 0.28);
}
.phase-item h3 {
  margin-bottom: 6px;
  color: var(--brand-primary);
  font-size: 1.03rem;
}
.phase-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.small-panel { padding: 22px; }
.small-panel h3 {
  margin-bottom: 12px;
  color: var(--brand-primary);
  font-size: 1.35rem;
}
ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}
.warning { background: linear-gradient(180deg, var(--brand-white) 0%, var(--surface-tint) 100%); }
.warning p, .contact p { color: var(--muted); line-height: 1.62; }
.contact-buttons { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .hero-actions, .contact-buttons, .notes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-shell { width: min(100% - 14px, 1100px); padding-top: 10px; }
  .hero, .timer-card, .phase-list, .small-panel, .contact { padding: 18px; border-radius: 24px; }
  .brand-logo { width: min(100%, 520px); }
  .timer-topline { font-size: 0.92rem; }
  .breath-zone { min-height: 220px; }
  .breath-orb { width: 156px; height: 156px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
.timing-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 auto 18px;
  max-width: 820px;
}
.timing-strip span {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-tint);
  border: 1px solid rgba(0, 73, 144, 0.14);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 0.92rem;
}
@media (max-width: 820px) {
  .timing-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .timing-strip { grid-template-columns: 1fr; }
}


.install-card {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF8FC 100%);
}
.install-card h2 {
  margin-bottom: 6px;
  color: var(--brand-primary, #004990);
  font-size: 1.8rem;
}
.install-card p {
  margin: 0;
  color: var(--muted, #4B6C92);
  line-height: 1.55;
}
.install-btn {
  width: 100%;
}
.install-message {
  padding: 14px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 73, 144, 0.12);
  color: var(--brand-primary, #004990);
  font-weight: 700;
  line-height: 1.45;
}
.install-help {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 73, 144, 0.1);
}
@media (min-width: 760px) {
  .install-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .install-help, .install-message {
    grid-column: 1 / -1;
  }
  .install-btn {
    width: auto;
    min-width: 170px;
  }
}
