/* Manifess landing page. "First light": pearl and lilac haze, an apricot sun, plum ink.
   Type: Cormorant Garamond (semibold headings, medium italic for spoken lines, never below ~18px), Jost for everything else. */
:root {
  --pearl: #fbf8fd;
  --mist: #efe7f8;
  --lilac: #cbb9ec;
  --apricot: #ffc9a0;
  --blush: #f3a7a4;
  --gold: #ffd98a;
  --plum: #2e1a3b;
  --plum-hover: #45295a;
  --plum-soft: #5b4868;
  --copper: #8a5a43;
  --line: rgba(46, 26, 59, 0.1);
  --line-strong: rgba(46, 26, 59, 0.22);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 24px;
  --rhythm: clamp(30px, 4vw, 52px); /* applied top and bottom, so sections sit 60-104px apart */
  --sun-morning: radial-gradient(circle at 40% 35%, #fff4e8, var(--apricot) 55%, var(--blush));
  --sun-midday: radial-gradient(circle at 40% 35%, #fffbea, var(--gold) 60%, #f5c06a);
  --sun-evening: radial-gradient(circle at 40% 35%, #f3ecff, var(--lilac) 55%, #8f72bd);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--plum);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid #e58f5e; outline-offset: 3px; border-radius: 10px; }

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

/* Horizontal column only; vertical rhythm lives on the sections. */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-block;
  font: 500 16px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--pearl);
  background: var(--plum);
  padding: 17px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(46, 26, 59, 0.55);
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--plum-hover); }

/* ---------- Dawn haze behind the header and hero ---------- */
.dawn {
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(255, 214, 184, 0.75), transparent 70%),
    radial-gradient(ellipse 60% 60% at 95% 8%, rgba(214, 198, 246, 0.8), transparent 70%),
    linear-gradient(180deg, #f5eefb 0%, var(--pearl) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 25px/1 var(--serif);
}
.brand__mark { width: 28px; height: 28px; flex: none; display: block; }
.nav__signin {
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.nav__signin:hover { background: rgba(255, 255, 255, 0.85); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 36px;
  padding-top: clamp(16px, 4vw, 40px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.hero__title {
  font: 600 clamp(44px, 5.6vw, 70px)/1.04 var(--serif);
  letter-spacing: -0.005em;
  max-width: 16ch;
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--plum-soft);
  max-width: 34em;
}
.hero__copy .btn { margin-top: 30px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--plum-soft); }

.hero__visual {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.hero__caption { font-size: 13px; color: var(--plum-soft); }

/* A floating card showing what a practice looks like. */
.preview {
  width: min(100%, 360px);
  padding: 24px 24px 20px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 40px 80px -44px rgba(46, 26, 59, 0.45),
    0 0 0 1px rgba(46, 26, 59, 0.04);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: center;
}
.preview__date { font-size: 13px; color: var(--plum-soft); }
.preview__title { margin-top: 2px; font: 600 26px/1.2 var(--serif); }
.preview__turn {
  margin-top: 4px;
  font: italic 500 20px/1.35 var(--serif);
  color: var(--plum);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.preview__turn.is-visible { opacity: 1; }

/* The sun that speaks a line, then pauses for you. */
.orb {
  position: relative;
  width: min(100%, 236px);
  aspect-ratio: 1;
  margin: 22px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff7ef 0%, #ffe6cf 30%, #ffcaa6 58%, #f6aea6 80%, #e9a7c0 100%);
  box-shadow:
    0 0 40px 6px rgba(255, 196, 160, 0.5),
    0 0 90px 30px rgba(212, 194, 246, 0.4);
  animation: breathe 9s ease-in-out infinite;
}
.orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 26, 59, 0.3);
  opacity: 0;
  pointer-events: none;
}
.orb[data-phase='pause'] .orb__ring { animation: ripple 3.2s ease-out forwards; }
.orb__line {
  max-width: 74%;
  font: italic 500 22px/1.25 var(--serif);
  color: var(--plum);
  transition: opacity 0.9s ease, filter 0.9s ease;
}
.orb__line.is-hidden { opacity: 0; filter: blur(6px); }

.player {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.player__play {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: var(--pearl);
}
.player__play svg { width: 18px; height: 18px; fill: currentColor; }
.player__track {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.player__fill {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--apricot), var(--blush));
}
.player__time { font-size: 13px; color: var(--plum-soft); font-variant-numeric: tabular-nums; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes ripple {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.3); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--rhythm); }
.section__title {
  font: 600 clamp(34px, 4.6vw, 50px)/1.08 var(--serif);
  max-width: 20ch;
}
.section__lead {
  margin-top: 14px;
  color: var(--plum-soft);
  max-width: 36em;
}
.section__title--center, .section__lead--center { text-align: center; margin-inline: auto; }

/* How it works: a real sequence, each step with a glimpse of what you'll see. */
.steps {
  margin-top: 36px;
  display: grid;
  gap: 36px;
}
.step__visual {
  height: 220px;
  padding: 18px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #fcefe6 0%, #f1e8fa 100%);
}
.step:nth-child(2) .step__visual { background: linear-gradient(155deg, #f3ecfc 0%, #ebe1f8 100%); }
.step:nth-child(3) .step__visual { background: linear-gradient(155deg, #f1e8fa 0%, #fbe7e5 100%); }
.step__title {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 26px/1.2 var(--serif);
}
.step__n {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font: 500 14px/1 var(--sans);
  color: var(--copper);
}
.step__text { margin-top: 8px; color: var(--plum-soft); max-width: 32em; }

.mini {
  width: 100%;
  max-width: 280px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px -26px rgba(46, 26, 59, 0.4);
}
.mini__meta { font-size: 13px; font-weight: 500; color: var(--copper); }
.mini__question { margin-top: 6px; font: 500 16px/1.4 var(--sans); }
.mini__mic {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--pearl);
  font-size: 13px;
  font-weight: 500;
}
.mini__mic svg { width: 15px; height: 15px; fill: currentColor; }
.mini__line { margin-top: 6px; font: italic 500 19px/1.25 var(--serif); }
.mini__line--fade { opacity: 0.4; }
.mini--notice { display: flex; gap: 12px; align-items: flex-start; }
.mini__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 55%, #fff4e8 0 22%, var(--apricot) 40%, transparent 62%),
    linear-gradient(160deg, #f6eefc, #ead9f6);
}
.mini__app { font-size: 12px; font-weight: 500; color: var(--plum-soft); }
.mini__app span { font-weight: 400; margin-left: 4px; }
.mini__title { margin-top: 2px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.mini__body { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--plum-soft); }

/* Rounded color panels break the page into clear chapters without hard dividers. */
.wrap--panel { padding-inline: 12px; }
.panel {
  border-radius: 32px;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px);
}
.panel--mist {
  background: linear-gradient(160deg, #f4edfc 0%, #ebe1f8 60%, #f5ecf5 100%);
  border: 1px solid rgba(203, 185, 236, 0.5);
}
.panel--night {
  color: var(--pearl);
  background:
    radial-gradient(ellipse 70% 90% at 100% 100%, rgba(143, 114, 189, 0.5), transparent 70%),
    radial-gradient(ellipse 50% 70% at 0% 0%, rgba(255, 201, 160, 0.16), transparent 70%),
    var(--plum);
}
.panel--night .section__lead { color: #d9cce7; }
.panel--dawn {
  background:
    radial-gradient(ellipse 70% 80% at 50% 115%, rgba(255, 188, 148, 0.9), transparent 70%),
    linear-gradient(180deg, #f3eafb 0%, #fbe8e3 100%);
}

/* Three practices: tabs, a sky that moves through the day, and what's inside each one. */
.tabs {
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(203, 185, 236, 0.45);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--plum-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab:hover { color: var(--plum); }
.tab[aria-selected='true'] {
  background: #fff;
  color: var(--plum);
  box-shadow: 0 6px 18px -10px rgba(46, 26, 59, 0.45);
}
.tab__sun { width: 14px; height: 14px; border-radius: 50%; }
.tab__sun--morning { background: var(--sun-morning); }
.tab__sun--midday { background: var(--sun-midday); }
.tab__sun--evening { background: var(--sun-evening); }

.showcase {
  --dot: var(--apricot);
  margin: 28px auto 0;
  max-width: 920px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(203, 185, 236, 0.5);
  box-shadow: 0 30px 60px -44px rgba(46, 26, 59, 0.4);
}
.showcase[data-time='midday'] { --dot: var(--gold); }
.showcase[data-time='evening'] { --dot: var(--lilac); }

.sky {
  position: relative;
  height: clamp(150px, 24vw, 210px);
  overflow: hidden;
  background: linear-gradient(180deg, #e3ecfb 0%, #f5f0fb 55%, #fff3d9 100%); /* midday */
}
.sky::before,
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  transition: opacity 0.9s ease;
}
.sky::before { background: linear-gradient(180deg, #fde3d2 0%, #f9d4dc 55%, #f1e4f6 100%); opacity: 1; }
.sky::after { background: linear-gradient(180deg, #a993d6 0%, #d9b3d3 55%, #f6c6bd 100%); opacity: 0; }
.sky[data-sky='midday']::before { opacity: 0; }
.sky[data-sky='evening']::before { opacity: 0; }
.sky[data-sky='evening']::after { opacity: 1; }
.sky__arc {
  position: absolute;
  z-index: 1;
  left: 14%;
  right: 14%;
  top: 26%;
  height: 56%;
  border: 1.5px dashed rgba(46, 26, 59, 0.22);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.sky__sun {
  position: absolute;
  z-index: 2;
  left: 14%;
  top: 82%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--sun-morning);
  box-shadow: 0 0 36px 6px rgba(255, 186, 150, 0.7);
  transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1), top 0.9s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.9s ease;
}
.sky[data-sky='midday'] .sky__sun {
  left: 50%;
  top: 26%;
  background: var(--sun-midday);
  box-shadow: 0 0 40px 8px rgba(255, 214, 130, 0.8);
}
.sky[data-sky='evening'] .sky__sun {
  left: 86%;
  top: 82%;
  background: var(--sun-evening);
  box-shadow: 0 0 36px 6px rgba(160, 130, 210, 0.7);
}
.sky__time {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 60%;
  text-align: center;
  font: italic 500 24px/1 var(--serif);
  font-variant-numeric: lining-nums; /* Cormorant's default numbers dip below the line ("7:oo") */
}

.practice { padding: 24px 22px 26px; }
.practice__name { font: 600 32px/1.15 var(--serif); }
.practice__length { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--copper); }
.practice__desc { margin-top: 10px; color: var(--plum-soft); }
.tracks { margin-top: 16px; }
.tracks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}
.tracks li::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}

/* Voice sample, on the night panel */
.listen { display: grid; gap: 32px; align-items: center; }
.sample {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.sample__play {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--plum);
  background: radial-gradient(circle at 45% 38%, #fff6ee, var(--apricot) 60%, var(--blush));
  box-shadow: 0 0 30px rgba(255, 186, 150, 0.6);
}
.sample__play svg { width: 28px; height: 28px; fill: currentColor; }
.sample__play .icon-pause { display: none; }
.sample[data-state='playing'] .icon-play { display: none; }
.sample[data-state='playing'] .icon-pause { display: block; }
.sample__play:disabled { cursor: default; opacity: 0.55; box-shadow: none; }
.sample__text { min-width: 0; flex: 1; }
.sample__title { font: 600 25px/1.2 var(--serif); }
.sample__status { margin-top: 4px; font-size: 15px; color: #cdbfdc; }
.sample__track {
  margin-top: 14px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.sample__bar {
  display: block;
  height: 100%;
  background: var(--apricot);
  transform: scaleX(0);
  transform-origin: left;
}
.sample audio { display: none; }

/* Life areas */
.chips {
  margin: 26px auto 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
}
.areas__tone {
  margin: 22px auto 0;
  max-width: 36em;
  text-align: center;
  color: var(--plum-soft);
}

/* Closing call to action, on the sunrise panel */
.close { display: grid; justify-items: center; text-align: center; }
.close__title {
  font: 600 clamp(34px, 4.8vw, 54px)/1.08 var(--serif);
  max-width: 18ch;
}
.close .btn { margin-top: 30px; }
.close__note { margin-top: 18px; font-size: 15px; color: var(--plum-soft); max-width: 30em; }
.close__signin { margin-top: 12px; font-size: 15px; color: var(--plum-soft); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-size: 14px;
  color: var(--plum-soft);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .wrap--panel { padding-inline: var(--gutter); }
  .panel { border-radius: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .listen { grid-template-columns: 1fr 1fr; gap: 56px; }
}

@media (min-width: 760px) {
  /* Name and description on the left, what's inside on the right. */
  .practice:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 44px;
    align-content: start;
    padding: 30px 36px 32px;
  }
  .practice__name, .practice__length, .practice__desc { grid-column: 1; }
  .tracks { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .tracks li:first-child { border-top: 0; padding-top: 4px; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .orb[data-phase='pause'] .orb__ring { animation: none; }
  .orb__line, .preview__turn, .sky::before, .sky::after, .sky__sun { transition: none; }
}
