/* Family Rhythm Journal marketing site */

:root {
  --ink: #18322d;
  --ink-soft: #405650;
  --teal: #168d86;
  --teal-deep: #0e6d67;
  --coral: #ef6a5b;
  --gold: #e8ac45;
  --canvas: #f6f8f7;
  --surface: #ffffff;
  --auber: #624a6b;
  --line: rgba(24, 50, 45, 0.14);
  --shadow: 0 20px 60px rgba(24, 50, 45, 0.14);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem max(1.25rem, calc((100vw - var(--max)) / 2));
  color: white;
}

.site-header a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:not(.btn) {
  opacity: 0.9;
}

.nav-links a:not(.btn):hover {
  opacity: 1;
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border: 0;
  border-radius: 8px;
  font: 600 0.92rem/1.25 var(--font-body);
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #241a08;
}

.btn-primary:hover {
  background: #f0bc5d;
  color: #241a08;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: white;
}

.btn-ink {
  background: var(--ink);
  color: white;
}

.btn-ink:hover {
  background: var(--teal-deep);
  color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.text-link::after {
  content: "\2192";
}

/* Full-bleed family hero */
.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media,
.hero-veil {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  animation: heroDrift 26s var(--ease) infinite alternate;
}

.hero-veil {
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 34, 29, 0.3), rgba(15, 34, 29, 0.18) 38%, rgba(15, 34, 29, 0.82));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 7rem 1.5rem 3.5rem;
}

.hero-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-brand {
  margin: 0 0 0.45rem;
  max-width: 14ch;
  font: 600 4.15rem/1.02 var(--font-display);
  letter-spacing: 0;
}

.hero-headline {
  margin: 0 0 0.75rem;
  max-width: 28ch;
  font: 500 1.7rem/1.2 var(--font-display);
  letter-spacing: 0;
}

.hero-support {
  margin: 0 0 1.3rem;
  max-width: 43ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1%, -0.5%, 0); }
}

.rhythm-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 84px;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: white;
  text-align: center;
}

.rhythm-statement p {
  margin: 0;
  font: 600 1.08rem/1.3 var(--font-display);
}

.rhythm-statement span {
  width: 24px;
  height: 2px;
  background: var(--coral);
}

.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  max-width: 17ch;
  font: 600 3rem/1.08 var(--font-display);
  letter-spacing: 0;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.connection-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 4.5rem;
}

.rhythm-steps {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rhythm-step;
}

.rhythm-steps li {
  position: relative;
  min-height: 62px;
  padding: 1rem 0 1rem 3.3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.rhythm-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.rhythm-steps li::before {
  counter-increment: rhythm-step;
  content: "0" counter(rhythm-step);
  position: absolute;
  left: 0;
  top: 0.9rem;
  color: var(--coral);
  font-weight: 700;
}

.rhythm-steps strong {
  color: var(--ink);
}

.app-shot {
  margin: 0;
  justify-self: center;
}

.app-shot img,
.screen-chapter img,
.watch-shot img {
  width: 100%;
  aspect-ratio: 417 / 900;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.app-shot-hero {
  width: min(390px, 100%);
  transform: rotate(1.5deg);
}

.product-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-band-inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.screen-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.screen-chapter {
  margin: 0;
}

.screen-chapter:nth-child(2) {
  transform: translateY(1.5rem);
}

.screen-chapter figcaption {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 0.25rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.screen-chapter figcaption span {
  color: var(--coral);
  font-weight: 700;
}

.screen-chapter figcaption strong {
  color: var(--ink);
  font: 600 1.25rem/1.2 var(--font-display);
}

.everyday-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 4rem;
}

.everyday-photo {
  min-height: 520px;
}

.everyday-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

.feature-lines {
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-lines li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.feature-lines li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.resource-band {
  background: #eef3f1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.resource-link {
  display: grid;
  gap: 0.65rem;
  padding: 1.4rem 0;
  border-top: 4px solid var(--teal);
  color: var(--ink);
  text-decoration: none;
}

.resource-link:nth-child(2) {
  border-color: var(--coral);
}

.resource-link:nth-child(3) {
  border-color: var(--gold);
}

.resource-link span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-link strong {
  font: 600 1.35rem/1.25 var(--font-display);
}

.resource-link:hover strong {
  color: var(--teal-deep);
}

.watch-band {
  background: var(--ink);
  color: white;
}

.watch-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 4rem;
}

.watch-copy .section-kicker {
  color: #76d4cc;
}

.watch-copy .section-title {
  color: white;
}

.watch-copy p:not(.section-kicker) {
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.78);
}

.watch-copy .text-link {
  margin-top: 1rem;
  color: #ffffff;
}

.watch-shot {
  width: min(330px, 100%);
  margin: 0;
  justify-self: center;
}

.plans-section > .section-title {
  max-width: 20ch;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 430px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.plan-plus {
  border-top: 5px solid var(--auber);
}

.plan-name {
  margin: 0 0 0.55rem;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-plus .plan-name {
  color: var(--auber);
}

.plan h3 {
  margin: 0;
  font: 600 1.8rem/1.15 var(--font-display);
}

.plan ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal-deep);
  font-weight: 700;
}

.plan .btn {
  margin-top: auto;
}

.plan-note {
  margin: auto 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.privacy-band {
  padding: 5rem 1.5rem;
  background: #e8f1ef;
  border-top: 1px solid rgba(22, 141, 134, 0.18);
  border-bottom: 1px solid rgba(22, 141, 134, 0.18);
}

.privacy-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.privacy-inner .section-title {
  margin-left: auto;
  margin-right: auto;
}

.privacy-inner > p:not(.section-kicker) {
  color: var(--ink-soft);
}

.faq details {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  max-width: 65ch;
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.cta-final {
  padding-bottom: 6rem;
  text-align: center;
}

.cta-final .section-title,
.cta-final .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.site-footer {
  padding: 2rem 1.5rem 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

/* Support and privacy pages */
.inner-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(14px);
}

.inner-header .brand-mark {
  color: var(--ink);
  text-decoration: none;
}

.inner-header .nav-links a {
  color: var(--ink-soft);
}

.page-hero {
  padding: 5.5rem 1.5rem 2.5rem;
  background: #e8f1ef;
}

.page-hero-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font: 600 3rem/1.08 var(--font-display);
  letter-spacing: 0;
}

.page-hero p {
  max-width: 50ch;
  margin: 0;
  color: var(--ink-soft);
}

.prose {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem 4.5rem;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font: 600 1.6rem/1.2 var(--font-display);
  letter-spacing: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.support-form {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.support-form label {
  font-weight: 600;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(24, 50, 45, 0.28);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.support-form textarea {
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: var(--teal-deep);
  outline: 3px solid rgba(22, 141, 134, 0.18);
}

.support-form .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.support-route {
  display: grid;
  justify-items: start;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem;
  border-left: 4px solid var(--coral);
  background: var(--surface);
}

.support-route p {
  margin: 0;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: 1.5rem;
}

.guide-nav a {
  font-weight: 600;
}

.answer-block {
  margin: 1.5rem 0 2.25rem;
  padding: 1.25rem;
  border-left: 4px solid var(--teal);
  background: #eef5f3;
}

.answer-block p {
  margin: 0;
  color: var(--ink);
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.fact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
  }

  html.js-ready .reveal {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  html.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero-brand {
    font-size: 3.25rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .connection-story,
  .everyday-section,
  .watch-inner {
    grid-template-columns: 1fr 0.78fr;
    gap: 2.5rem;
  }

  .screen-story {
    gap: 1rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.98rem;
  }

  .site-header {
    padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1rem 0.9rem;
  }

  .brand-mark {
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn {
    min-height: 42px;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-media img {
    object-position: center 28%;
    animation: none;
    transform: none;
  }

  .hero-veil {
    background: linear-gradient(180deg, rgba(15, 34, 29, 0.42), rgba(15, 34, 29, 0.12) 34%, rgba(15, 34, 29, 0.9));
  }

  .hero-copy {
    padding: calc(5rem + env(safe-area-inset-top, 0px)) 1.1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-kicker {
    max-width: 31ch;
    font-size: 0.72rem;
  }

  .hero-brand {
    max-width: 12ch;
    font-size: 2.65rem;
  }

  .hero-headline {
    max-width: 24ch;
    font-size: 1.35rem;
  }

  .hero-support {
    max-width: 34ch;
    font-size: 0.92rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .rhythm-statement {
    gap: 0.6rem;
    min-height: 70px;
    padding: 0.8rem;
  }

  .rhythm-statement p {
    font-size: 0.82rem;
  }

  .rhythm-statement span {
    width: 10px;
  }

  .section,
  .watch-inner {
    padding: 4rem 1.1rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .connection-story,
  .everyday-section,
  .watch-inner,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .connection-story,
  .everyday-section,
  .watch-inner {
    gap: 2.3rem;
  }

  .app-shot-hero,
  .watch-shot {
    width: min(330px, 88vw);
  }

  .screen-story {
    display: flex;
    gap: 1rem;
    margin-right: -1.1rem;
    padding-right: 1.1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .screen-chapter {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
  }

  .screen-chapter:nth-child(2) {
    transform: none;
  }

  .everyday-photo,
  .everyday-photo img {
    min-height: 360px;
  }

  .everyday-copy {
    grid-row: 1;
  }

  .plan {
    min-height: auto;
    padding: 1.4rem;
  }

  .plan-note,
  .plan .btn {
    margin-top: 1rem;
  }

  .privacy-band {
    padding: 4rem 1.1rem;
  }

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

  .inner-header {
    padding: 0.9rem 1rem;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }
}
