:root {
  --bg: #f7fbff;
  --panel: #ffffff;
  --panel-soft: #f0fbf8;
  --line: rgba(21, 84, 209, 0.17);
  --text: #10223a;
  --muted: #5a6b82;
  --blue: #1554d1;
  --blue-dark: #0c2f73;
  --aqua: #65e5d5;
  --aqua-deep: #15998d;
  --gold: #c8872c;
  --error: #b42318;
  --success: #0f7b67;
  --shadow: rgba(21, 50, 92, 0.12);
  --breath-scale: 0.72;
  --session-progress: 0%;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(101, 229, 213, 0.18) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 42%, #eefbf8 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 430px;
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 128px);
}

.brand-logo {
  width: clamp(118px, 15vw, 180px);
  height: auto;
  margin-bottom: 26px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(21, 84, 209, 0.12);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.subheadline {
  max-width: 690px;
  margin-bottom: 18px;
  color: #274463;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.body-copy {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.signup-panel,
.routine-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.96));
  box-shadow: 0 24px 70px var(--shadow);
}

.signup-panel {
  padding: clamp(22px, 3vw, 32px);
}

.lead-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 7px;
}

label {
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 720;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(21, 84, 209, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 84, 209, 0.12);
}

.field-group.has-error input {
  border-color: var(--error);
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: var(--error);
  font-size: 0.86rem;
  line-height: 1.35;
}

.consent-group {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 2px;
}

.consent-group input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.consent-group label {
  color: #304761;
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.5;
}

.supporting-text {
  margin: -10px 0 2px 31px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-status.is-error {
  color: var(--error);
}

.submit-button {
  min-height: 54px;
  border: 1px solid rgba(21, 84, 209, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #0f46b8);
  color: #ffffff;
  cursor: pointer;
  font-weight: 820;
  box-shadow: 0 16px 34px rgba(21, 84, 209, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 20px 42px rgba(21, 84, 209, 0.3);
}

.submit-button:disabled {
  cursor: wait;
  filter: saturate(0.78);
  opacity: 0.72;
  transform: none;
}

.submit-button:focus-visible,
.consent-group input:focus-visible {
  outline: 3px solid rgba(101, 229, 213, 0.9);
  outline-offset: 3px;
}

.success-state {
  border-left: 4px solid var(--success);
  padding-left: 18px;
}

.success-state p:last-child {
  margin-bottom: 0;
  color: #24435e;
  font-size: 1.05rem;
  line-height: 1.55;
}

.routine-section {
  padding-top: clamp(28px, 5vw, 56px);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  max-width: 720px;
}

.practice-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.7fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  margin-bottom: 20px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 251, 248, 0.82));
  box-shadow: 0 24px 70px var(--shadow);
}

.practice-copy p:not(.eyebrow) {
  max-width: 54ch;
  color: #415872;
  line-height: 1.65;
}

.practice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.practice-option,
.timer-action {
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.practice-option {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  text-align: left;
}

.practice-option span,
.practice-option small {
  display: block;
}

.practice-option span {
  color: var(--blue-dark);
  font-weight: 820;
  line-height: 1.25;
}

.practice-option small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.practice-option:hover,
.timer-action:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 84, 209, 0.42);
}

.practice-option.is-selected {
  border-color: var(--blue);
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(21, 84, 209, 0.18);
}

.timer-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.progress-shell {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--blue) var(--session-progress), rgba(21, 84, 209, 0.12) 0),
    radial-gradient(circle, #ffffff 60%, transparent 61%);
  transition: background 180ms linear;
}

.breath-circle {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  transform: scale(var(--breath-scale));
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.82), transparent 31%),
    linear-gradient(145deg, var(--aqua), var(--blue) 64%, rgba(200, 135, 44, 0.72));
  color: #ffffff;
  box-shadow:
    0 22px 54px rgba(21, 84, 209, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  will-change: transform;
}

.breath-circle span {
  font-size: 0.98rem;
  font-weight: 780;
}

.breath-circle strong {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

.breath-cue {
  min-height: 28px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 780;
  line-height: 1.35;
  text-align: center;
}

.timer-meta {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.timer-meta div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.timer-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.timer-meta strong {
  color: var(--blue-dark);
  line-height: 1.3;
}

.timer-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.timer-action {
  min-height: 50px;
  border: 1px solid transparent;
  font-weight: 820;
}

.timer-action.primary {
  background: linear-gradient(135deg, var(--blue), #0f46b8);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(21, 84, 209, 0.22);
}

.timer-action.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--blue-dark);
}

.practice-option:focus-visible,
.timer-action:focus-visible {
  outline: 3px solid rgba(101, 229, 213, 0.9);
  outline-offset: 3px;
}

.routine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.routine-card {
  padding: clamp(22px, 3vw, 32px);
}

.routine-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.routine-topline strong {
  color: var(--gold);
  text-transform: none;
}

.best-for,
.explanation,
.routine-card li {
  color: #415872;
  line-height: 1.6;
}

.best-for {
  margin-bottom: 18px;
}

.best-for strong {
  color: var(--blue-dark);
}

.routine-card ol {
  margin: 0 0 20px;
  padding-left: 23px;
}

.routine-card li + li {
  margin-top: 8px;
}

.explanation {
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-footer {
  padding: clamp(30px, 5vw, 54px) 0 0;
}

.contact-footer address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
}

.contact-footer strong {
  color: var(--blue-dark);
}

.contact-footer a {
  color: var(--blue);
  font-weight: 720;
  text-decoration: none;
}

.contact-footer a:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

@media (max-width: 930px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .practice-panel {
    grid-template-columns: 1fr;
  }

  .routine-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1160px);
    padding: 22px 0;
  }

  .brand-logo {
    width: 138px;
    margin-bottom: 20px;
  }

  .signup-panel,
  .routine-card {
    padding: 20px;
  }

  .supporting-text {
    margin-left: 0;
  }

  .practice-options,
  .timer-meta,
  .timer-actions {
    grid-template-columns: 1fr;
  }

  .progress-shell {
    width: min(100%, 280px);
  }

  .routine-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .contact-footer address {
    align-items: flex-start;
    flex-direction: column;
  }
}
