:root {
  --ink: #0d1b2a;
  --ink-soft: #25364c;
  --muted: #647086;
  --cream: #f8f1e6;
  --cream-2: #fff9ec;
  --parchment: #fffcf5;
  --paper: #f2e5d5;
  --border: #e0d3c1;
  --hairline: #efe4d6;
  --teal: #2ec4b6;
  --coral: #ff7a59;
  --gold: #ffd166;
  --red: #9a3e2f;
  --shadow: 0 26px 70px rgba(13, 27, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

body::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 209, 102, 0.2), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(46, 196, 182, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(242, 229, 213, 0.66)),
    url("/assets/splash-brand-plate.png");
  background-size: auto, auto, auto, cover;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::after {
  background-image:
    linear-gradient(rgba(13, 27, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 42, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  margin: 0 auto;
  max-width: 1220px;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px;
}

.hero,
.app-preview,
.daily-stream,
.pillars {
  position: relative;
}

.hero {
  border: 1px solid rgba(224, 211, 193, 0.86);
  border-radius: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--shadow);
  min-height: min(860px, calc(100vh - 56px));
  overflow: hidden;
  padding: 26px 30px;
}

.ambient {
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
  position: absolute;
}

.ambient-one {
  background: rgba(255, 209, 102, 0.28);
  height: 340px;
  right: 90px;
  top: 80px;
  width: 340px;
}

.ambient-two {
  background: rgba(255, 122, 89, 0.12);
  bottom: -110px;
  height: 280px;
  left: -80px;
  width: 280px;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 13px;
}

.brand img {
  height: 48px;
  width: 48px;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand small {
  color: var(--teal);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.28em;
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-pill {
  align-items: center;
  background: rgba(255, 249, 236, 0.72);
  border: 1px solid rgba(154, 62, 47, 0.34);
  border-radius: 999px;
  color: #6f3c14;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  min-height: 46px;
  padding: 0 22px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  min-height: 500px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 630px;
  padding-left: clamp(0px, 4vw, 54px);
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.24em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.072em;
  margin: 0;
}

h1 {
  font-size: clamp(54px, 6.4vw, 86px);
  line-height: 0.91;
}

h2 {
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.98;
}

.dek,
.app-preview-copy p,
.stream-copy p {
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.54;
  margin: 22px 0 0;
  max-width: 610px;
}

.cta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.primary-cta {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(13, 27, 42, 0.22);
  color: var(--cream-2);
  display: inline-flex;
  font-size: 17px;
  font-weight: 950;
  min-height: 58px;
  padding: 0 26px;
}

.microcopy {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.track-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 24px;
  gap: 14px;
  margin-top: 26px;
}

.track-line i {
  background: var(--gold);
  border: 2px solid rgba(255, 252, 245, 0.92);
  display: block;
  height: 9px;
  transform: rotate(45deg);
  width: 9px;
}

.stream-tease {
  align-items: center;
  background: rgba(255, 252, 245, 0.66);
  border: 1px solid rgba(224, 211, 193, 0.9);
  border-radius: 20px;
  display: inline-flex;
  gap: 13px;
  margin-top: 18px;
  padding: 12px 16px;
}

.stream-tease span,
.bubble-card span,
.stream-card span {
  color: var(--red);
  display: block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stream-tease strong {
  color: var(--ink);
  font-size: 15px;
}

.hero-art {
  min-height: 540px;
  position: relative;
}

.sunburst {
  border: 1px solid rgba(255, 209, 102, 0.72);
  border-radius: 999px;
  height: min(44vw, 560px);
  max-height: 560px;
  max-width: 560px;
  position: absolute;
  right: 28px;
  top: 10px;
  width: min(44vw, 560px);
}

.sunburst::before {
  background: radial-gradient(circle, rgba(255, 209, 102, 0.2), transparent 68%);
  border-radius: inherit;
  content: "";
  inset: 28px;
  position: absolute;
}

.sunburst span {
  background: rgba(210, 153, 56, 0.38);
  height: 86px;
  left: 50%;
  position: absolute;
  top: -42px;
  transform-origin: 0 calc(280px + 42px);
  width: 1px;
}

.sunburst span:nth-child(2) { transform: rotate(36deg); }
.sunburst span:nth-child(3) { transform: rotate(72deg); }
.sunburst span:nth-child(4) { transform: rotate(108deg); }
.sunburst span:nth-child(5) { transform: rotate(144deg); }
.sunburst span:nth-child(6) { transform: rotate(180deg); }

.stream-orbit {
  height: 500px;
  position: absolute;
  right: -10px;
  top: 4px;
  width: min(47vw, 590px);
}

.stream-orbit::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 252, 245, 0.7), rgba(255, 209, 102, 0.16) 56%, transparent 58%),
    conic-gradient(from 228deg, transparent 0deg, rgba(46, 196, 182, 0.35) 54deg, transparent 102deg, rgba(255, 122, 89, 0.32) 162deg, transparent 225deg, rgba(255, 209, 102, 0.38) 300deg, transparent 360deg);
  border-radius: 999px;
  content: "";
  inset: 18px 10px 44px 24px;
  mask: radial-gradient(circle, transparent 52%, #000 53%, #000 58%, transparent 59%);
  opacity: 0.72;
  position: absolute;
}

.bubble-card {
  animation: bubbleFloat 4.8s ease-in-out infinite alternate;
  background: rgba(255, 252, 245, 0.88);
  border: 1px solid rgba(224, 211, 193, 0.9);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(13, 27, 42, 0.12);
  min-width: 168px;
  padding: 16px 20px;
  position: absolute;
}

.bubble-card strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.bubble-source {
  left: 34px;
  top: 22px;
  transform: rotate(-7deg);
}

.bubble-chumash {
  right: 24px;
  top: 84px;
  transform: rotate(5deg);
}

.bubble-tehillim {
  left: 24px;
  top: 278px;
  transform: rotate(6deg);
}

.bubble-tanya {
  right: 76px;
  top: 330px;
  transform: rotate(-5deg);
}

.bubble-streak {
  left: 200px;
  top: 402px;
  transform: rotate(2deg);
}

.mascot {
  animation: mascotFloat 3.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 22px 24px rgba(13, 27, 42, 0.22));
  position: absolute;
  z-index: 3;
}

.stream-mascot {
  bottom: 26px;
  left: 92px;
  max-width: 380px;
  width: 36vw;
}

.app-preview {
  align-items: center;
  display: grid;
  gap: 50px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 350px);
  margin: 42px auto 0;
  max-width: 1100px;
  overflow: hidden;
  padding: 34px 0 92px;
}

.app-preview::before {
  background: linear-gradient(120deg, rgba(46, 196, 182, 0.13), rgba(255, 209, 102, 0.16));
  border: 1px solid rgba(224, 211, 193, 0.7);
  border-radius: 34px;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.phone-card {
  background: linear-gradient(160deg, #fffdf8, #f6ead8);
  border: 7px solid #171d23;
  border-radius: 42px;
  box-shadow: 30px 34px 80px rgba(13, 27, 42, 0.24);
  height: 560px;
  padding: 18px;
  width: 304px;
}

.app-screenshot {
  justify-self: center;
  position: relative;
  transform: rotate(2deg);
}

.phone-card::after {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 34px;
  content: "";
  inset: 7px;
  pointer-events: none;
  position: absolute;
}

.phone-top {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 8px;
}

.dynamic-island {
  background: #05080b;
  border-radius: 999px;
  height: 24px;
  width: 94px;
}

.bars {
  color: var(--ink);
  letter-spacing: 0.1em;
}

.app-header-row {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-header-row small {
  color: var(--red);
  display: block;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header-row strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.app-header-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.app-header-row img {
  filter: drop-shadow(0 8px 16px rgba(13, 27, 42, 0.16));
  margin-top: -8px;
  width: 72px;
}

.app-card,
.mini-card {
  background: rgba(255, 252, 245, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.07);
}

.hero-card {
  padding: 14px;
}

.card-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.card-topline span,
.hero-card small,
.mini-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.card-topline em {
  background: rgba(46, 196, 182, 0.13);
  border: 1px solid rgba(46, 196, 182, 0.28);
  border-radius: 999px;
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  padding: 7px 10px;
}

.hero-card > strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -0.04em;
  margin-top: 9px;
}

.stats {
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
}

.stats span {
  color: var(--muted);
  flex: 1;
  font-size: 12px;
  font-weight: 750;
}

.stats b {
  color: var(--ink);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

button {
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  color: var(--cream-2);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  margin-top: 14px;
  min-height: 44px;
  width: 100%;
}

.mini-card {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 10px;
  min-height: 64px;
  padding: 12px;
}

.mini-card strong {
  display: block;
  font-size: 14px;
}

.mini-card em {
  border: 1px solid rgba(46, 196, 182, 0.34);
  border-radius: 999px;
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  margin-left: auto;
  padding: 7px 9px;
}

.icon {
  align-items: center;
  border-radius: 13px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.book-icon::before {
  border: 3px solid currentColor;
  border-bottom-width: 4px;
  border-radius: 5px 5px 7px 7px;
  border-top: 0;
  height: 18px;
  transform: skewY(-5deg);
  width: 22px;
}

.book-icon::after {
  background: currentColor;
  border-radius: 999px;
  height: 19px;
  width: 3px;
}

.note-icon::before {
  background: currentColor;
  border-radius: 2px;
  height: 21px;
  transform: rotate(-10deg);
  width: 6px;
}

.note-icon::after {
  border: 5px solid currentColor;
  border-radius: 999px;
  bottom: 8px;
  height: 9px;
  left: 11px;
  width: 9px;
}

.flame-icon::before {
  background: currentColor;
  border-radius: 65% 35% 56% 44% / 62% 37% 63% 38%;
  height: 24px;
  transform: rotate(34deg);
  width: 17px;
}

.flame-icon::after {
  background: rgba(255, 252, 245, 0.9);
  border-radius: 60% 40% 58% 42% / 62% 40% 60% 38%;
  bottom: 9px;
  height: 11px;
  transform: rotate(34deg);
  width: 7px;
}

.teal .icon {
  background: rgba(46, 196, 182, 0.16);
  color: var(--teal);
}

.coral .icon {
  background: rgba(255, 122, 89, 0.14);
  color: var(--coral);
}

.navy .icon {
  background: rgba(13, 27, 42, 0.08);
  color: var(--ink);
}

.daily-stream {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  margin: 44px auto 0;
  max-width: 1100px;
}

.stream-river {
  min-height: 560px;
  position: relative;
}

.stream-river::before {
  background: linear-gradient(180deg, rgba(46, 196, 182, 0.36), rgba(255, 209, 102, 0.42), rgba(255, 122, 89, 0.3));
  border-radius: 999px;
  content: "";
  left: 48%;
  min-height: 520px;
  position: absolute;
  top: 16px;
  transform: rotate(14deg);
  width: 10px;
}

.stream-card {
  background: rgba(255, 252, 245, 0.88);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(13, 27, 42, 0.1);
  max-width: 290px;
  padding: 20px;
  position: absolute;
}

.stream-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-top: 5px;
}

.stream-card small {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 8px;
}

.source-card { left: 18%; top: 0; }
.chumash-card { right: 2%; top: 84px; }
.tehillim-card { left: 0; top: 176px; }
.tanya-card { right: 8%; top: 274px; }
.streak-card { left: 20%; top: 438px; }

.pillars {
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 16px 50px rgba(13, 27, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 46px auto 0;
  max-width: 1050px;
  overflow: hidden;
  z-index: 4;
}

.pillars article {
  padding: 30px;
}

.pillars article + article {
  border-left: 1px solid var(--border);
}

.pillar-icon {
  display: inline-block;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.pillar-icon.teal { color: var(--teal); }
.pillar-icon.coral { color: var(--coral); }
.pillar-icon.gold { color: #b17b12; }

.pillars h2 {
  font-size: 28px;
  letter-spacing: -0.05em;
}

.pillars p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 10px 0 0;
}

.footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  margin: 28px auto 0;
  max-width: 1050px;
  padding: 18px 4px 8px;
}

.footer a {
  color: var(--red);
}

.policy-page {
  background: rgba(255, 252, 245, 0.86);
  border: 1px solid rgba(224, 211, 193, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 920px;
  padding: 26px 30px 42px;
}

.policy-hero {
  border-bottom: 1px solid var(--hairline);
  padding: 56px 0 28px;
}

.policy-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.policy-section {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.policy-section p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.68;
  margin: 12px 0 0;
}

.policy-section a {
  color: var(--red);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-found {
  min-height: calc(100vh - 56px);
}

.not-found-copy {
  margin: clamp(80px, 16vh, 170px) auto 0;
  max-width: 760px;
  text-align: center;
}

.not-found-copy .primary-cta {
  margin-top: 28px;
}

@keyframes mascotFloat {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes bubbleFloat {
  from {
    margin-top: 0;
  }
  to {
    margin-top: -8px;
  }
}

@media (max-width: 940px) {
  .page-shell {
    padding: 14px;
  }

  .hero {
    border-radius: 28px;
    min-height: 0;
    padding: 22px;
  }

  .nav-pill {
    display: none;
  }

  .hero-grid,
  .app-preview,
  .daily-stream {
    display: block;
    min-height: 0;
  }

  .hero-grid {
    padding-top: 54px;
  }

  .hero-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .dek,
  .app-preview-copy p,
  .stream-copy p {
    font-size: 17px;
  }

  .hero-art {
    min-height: 520px;
    margin-top: 18px;
  }

  .sunburst {
    height: 420px;
    right: -80px;
    top: 20px;
    width: 420px;
  }

  .stream-orbit {
    height: 500px;
    left: 50%;
    right: auto;
    top: 18px;
    transform: translateX(-50%);
    width: min(92vw, 520px);
  }

  .stream-mascot {
    bottom: 24px;
    left: clamp(48px, 18vw, 84px);
    max-width: 270px;
    width: 70vw;
  }

  .bubble-card {
    min-width: 142px;
    padding: 13px 16px;
  }

  .bubble-card strong {
    font-size: 16px;
  }

  .bubble-source { left: 6%; top: 8px; }
  .bubble-chumash { right: 2%; top: 78px; }
  .bubble-tehillim { left: 0; top: 230px; }
  .bubble-tanya { right: 4%; top: 284px; }
  .bubble-streak { left: 26%; top: 408px; }

  .app-preview {
    margin-top: 28px;
    padding: 28px 14px;
  }

  .app-preview::before {
    inset: 0;
  }

  .app-screenshot {
    margin: 28px auto 0;
    transform: none;
  }

  .daily-stream {
    margin-top: 38px;
  }

  .stream-river {
    margin-top: 18px;
  }

  .pillars {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .pillars article + article {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 24px;
  }

  .brand small {
    font-size: 9px;
  }

  .brand img {
    height: 42px;
    width: 42px;
  }

  .track-line {
    font-size: 18px;
  }

  .stream-tease {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-cta {
    justify-content: center;
    width: 100%;
  }

  .phone-card {
    border-width: 6px;
    height: 646px;
    max-width: 360px;
    width: 100%;
  }

  .app-header-row strong {
    font-size: 29px;
  }

  .app-header-row img {
    width: 76px;
  }

  .stream-river {
    min-height: 690px;
  }

  .stream-river::before {
    left: 22px;
    min-height: 640px;
    top: 20px;
    transform: none;
  }

  .stream-card {
    left: 44px;
    max-width: calc(100% - 44px);
    right: auto;
  }

  .source-card { top: 0; }
  .chumash-card { top: 128px; }
  .tehillim-card { top: 256px; }
  .tanya-card { top: 384px; }
  .streak-card { top: 512px; }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
