:root {
  --paper: #f7f3ec;
  --ink: #202422;
  --muted: #656b66;
  --sage: #6c806f;
  --sage-dark: #35483b;
  --clay: #c0795f;
  --cream: #fffaf2;
  --line: rgba(32, 36, 34, 0.14);
  --shadow: 0 18px 45px rgba(25, 31, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.player-actions,
.premium-toolbar,
.segmented {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(52px, 7vw, 64px);
  object-fit: contain;
  object-position: right center;
  border-radius: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, var(--cream) 0 20%, transparent 21%),
    conic-gradient(from 30deg, var(--sage), var(--clay), #d4b65c, var(--sage));
  border: 1px solid rgba(32, 36, 34, 0.12);
}

.site-header nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-header nav a:hover {
  color: var(--ink);
}

.header-action {
  justify-self: end;
  border: 1px solid var(--sage-dark);
  color: var(--sage-dark);
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 250, 242, 0.95), transparent 26%),
    linear-gradient(135deg, #ead5d3 0%, #f6e8e3 48%, #dce7cf 100%);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: min(58vw, 720px);
  height: auto;
  object-fit: contain;
  inset: auto 7vw auto auto;
  top: 50%;
  transform: translateY(-45%);
  opacity: 0.68;
  filter: contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(247, 243, 236, 0.96), rgba(247, 243, 236, 0.82) 44%, rgba(247, 243, 236, 0.18)),
    linear-gradient(0deg, rgba(247, 243, 236, 0.92), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 32px));
  margin-inline: auto 8vw;
  padding-block: 54px 96px;
}

.hero-symbol {
  display: block;
  width: clamp(130px, 18vw, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(53, 72, 59, 0.12);
  box-shadow: 0 18px 38px rgba(53, 72, 59, 0.12);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.8rem, 12vw, 8.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
}

.hero-copy,
.section-heading p,
.signup-copy p,
.locked-panel p,
.card p,
#playerDescription {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--sage-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(53, 72, 59, 0.22);
}

.secondary-button {
  background: rgba(255, 250, 242, 0.76);
  color: var(--ink);
  border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.header-action:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.section {
  padding: clamp(48px, 8vw, 88px) clamp(16px, 5vw, 70px);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.promise-section,
.about-us {
  background: #fffaf2;
}

.fit-section,
.faq-section {
  background: #ece3d4;
  border-block: 1px solid var(--line);
}

.benefit-grid,
.about-grid,
.faq-grid,
.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.benefit-grid article,
.about-grid article,
.check-list p,
details {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 8px 24px rgba(34, 38, 35, 0.06);
}

.benefit-grid h3,
.about-grid h3 {
  margin-bottom: 10px;
}

.benefit-grid p,
.about-grid p,
.check-list p,
details p {
  color: var(--muted);
  line-height: 1.72;
}

.check-list p {
  min-height: 116px;
  margin: 0;
  display: flex;
  align-items: center;
}

.check-list p::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: var(--clay);
}

details {
  min-height: auto;
}

summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--sage-dark);
}

details p {
  margin: 12px 0 0;
}

.section-heading {
  position: sticky;
  top: 98px;
}

.section-heading.compact {
  position: static;
  max-width: 720px;
}

.meditation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(34, 38, 35, 0.07);
  overflow: hidden;
}

/* Subgrid: aligns image / title / description / meta / button rows
   to the tallest card in each row so everything lines up. */
.media-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  row-gap: 0;
  padding: 0;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e4d8c5;
  border-bottom: 1px solid var(--line);
}

.card-body {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 10px;
  padding: 18px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.badge {
  flex: 0 0 auto;
  border: 1px solid rgba(192, 121, 95, 0.3);
  color: #8d4f3a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.card h3 {
  margin: 0;
  line-height: 1.25;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.play-card {
  flex: 1 1 150px;
  border: 1px solid var(--sage-dark);
  background: transparent;
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.play-card:disabled {
  cursor: not-allowed;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.show-more {
  width: 100%;
  margin-top: 16px;
  font-weight: 750;
}

.count-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(108, 128, 111, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--sage-dark);
  background: rgba(255, 250, 242, 0.72);
  font-weight: 800;
}

.signup-band {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #e4d8c5;
  border-block: 1px solid var(--line);
}

.signup-form {
  display: grid;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--sage-dark);
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

input:focus {
  outline: 3px solid rgba(108, 128, 111, 0.22);
  border-color: var(--sage);
}

.full {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.premium-section {
  background: #f3efe7;
}

.audience-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.audience-section {
  padding-top: clamp(20px, 3vw, 32px);
  min-width: 0;
}

.audience-heading {
  margin-bottom: 18px;
}

.audience-section .meditation-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 210px));
  justify-content: start;
  gap: 14px;
}

.audience-section .card-body {
  padding: 12px 13px;
  gap: 8px;
}

.audience-section .card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.audience-section .card p {
  font-size: 0.84rem;
  line-height: 1.5;
}

.audience-section .badge {
  font-size: 0.68rem;
  padding: 3px 8px;
}

.audience-section .meta {
  font-size: 0.78rem;
}

.audience-section .play-card {
  flex: 1 1 auto;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.premium-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}

.segmented {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.7);
  overflow-x: auto;
}

.segmented button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 10px 14px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.segmented button.active {
  background: var(--sage-dark);
  color: #fff;
}

.small {
  min-height: 40px;
  padding: 9px 16px;
}

.premium-grid.locked .card {
  filter: saturate(0.5);
  opacity: 0.54;
}

.premium-grid.locked .play-card {
  pointer-events: none;
}

.player {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.player::backdrop {
  background: rgba(23, 26, 24, 0.45);
  backdrop-filter: blur(4px);
}

.icon-button {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.35rem;
}

.player-body {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 42px 28px 30px;
}

#mediaPlayer {
  width: 100%;
  max-height: min(58vh, 420px);
  border-radius: 8px;
  background: #141715;
}

.breath-orb {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle, #d9c487, var(--sage));
  box-shadow: 0 20px 50px rgba(108, 128, 111, 0.34);
  animation: breathe 6s ease-in-out infinite;
}

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 850;
}

.site-footer {
  background: var(--sage-dark);
  color: rgba(255, 250, 242, 0.88);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(130px, 1fr) minmax(150px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 70px);
}

.footer-wordmark {
  display: block;
  margin-bottom: 16px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  max-width: 380px;
  color: rgba(255, 250, 242, 0.72);
  line-height: 1.8;
  font-size: 0.95rem;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-col p {
  margin: 0;
  color: rgba(255, 250, 242, 0.82);
}

.footer-col a {
  color: rgba(255, 250, 242, 0.82);
  transition: color 140ms ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-base {
  padding: 20px clamp(20px, 5vw, 70px);
  border-top: 1px solid rgba(255, 250, 242, 0.14);
  text-align: center;
}

.footer-base p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255, 250, 242, 0.6);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.88);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 92svh;
    align-items: end;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(247, 243, 236, 0.98) 8%, rgba(247, 243, 236, 0.72) 58%, rgba(247, 243, 236, 0.18));
  }

  .hero-image {
    width: min(86vw, 480px);
    inset: auto auto auto 50%;
    top: 28%;
    transform: translateX(50%);
    opacity: 0.42;
  }

  .hero-content {
    margin: 0 auto;
    padding-block: 42px 70px;
  }

  .hero-symbol {
    width: clamp(118px, 34vw, 170px);
    margin-inline: auto;
  }

  .split,
  .signup-band {
    grid-template-columns: 1fr;
  }

  .audience-columns {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-heading {
    position: static;
  }

  .premium-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    border-radius: 8px;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 62px;
    padding-inline: 14px;
  }

  .header-action {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
    text-align: center;
  }
}
