/* Homepage and inner pages (features, pricing, download, about). Loaded after main.css. */
.home-page {
  --blush: #fbeeee;
  --butter: #fff5cc;
  --lilac: #ece6ff;
  --mint: #dcf4e3;
  --sky: #e0f2ff;
  --paper: #fffdfb;
  --ink: #2e2440;
  --ink-soft: #5d5470;
  --line: #eaded9;
  --raspberry: #a63c74;
  color: var(--ink);
  background: var(--paper);
}
.home-page .header,
.home-page .pageWrapper,
.home-page .home-page-head,
.home-page .footer--site {
  background: var(--blush);
}
.home-page .footer--site {
  border-top: 0;
}
.home-page .pageWrapper {
  min-height: 0;
}
.home-page .pageWrapper__left,
.home-page .pageWrapper__right {
  display: none;
}

.home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.home-page .header__inner-logo {
  color: var(--ink);
}
.home-page .header__nav {
  gap: 2px;
  padding: 4px;
  background: rgba(255, 253, 251, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.home-page .header__nav a {
  padding: 8px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
}
.home-page .header__nav a:hover {
  color: var(--ink);
  background: var(--blush);
}
.home-page .header__nav .header__nav-cta,
.home-page .header__nav .header__nav-cta:hover {
  color: #fff;
  background: var(--ink);
}

/* Hero */
.home-page .intro__inner {
  gap: 48px;
  padding: 48px 0 72px;
}
.home-page .intro__inner-content {
  order: 1;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
}
.home-page .intro__inner-content-title {
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(54px, 4.7vw, 70px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.home-page .intro__inner-content-para {
  margin: 20px 0 28px;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.4;
}
.home-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.home-stats > span + span::before {
  margin-right: 12px;
  color: var(--ink-soft);
  content: "·";
}
.home-stats__rating {
  font-weight: 700;
}
.home-stats__star {
  color: #f5a524;
}
.home-page .download-actions,
.home-page .store-buttons {
  flex-wrap: nowrap;
}
.home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.home-proof li {
  list-style: none;
}
.home-proof a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 253, 251, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.home-proof a:hover {
  color: var(--raspberry);
}
.home-hero-phones {
  position: relative;
  order: 2;
  flex: 0 0 auto;
  width: 48%;
  max-width: 560px;
  aspect-ratio: 1 / 1.1;
}
.home-hero-phones .home-phone {
  position: absolute;
  width: 45%;
}
.home-hero-phones .home-phone--center {
  top: 0;
  left: 26%;
  z-index: 2;
  width: 48%;
}
.home-phone--left {
  top: 10%;
  left: 0;
  transform: rotate(-5deg);
}
.home-phone--right {
  top: 10%;
  right: 0;
  transform: rotate(5deg);
}

/* App screenshots */
.home-phone {
  display: block;
  margin: 0;
}
.home-phone img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 6px solid var(--ink);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(46, 36, 64, 0.16);
}
.home-phone figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
}

/* Sections */
.home-sections {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}
.home-sections a {
  color: var(--raspberry);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-sections h2 {
  margin: 0 0 16px;
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.home-sections h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}
.home-sections p {
  margin: 0 0 16px;
}

/* Feature folds */
.home-feature {
  padding: 88px 0;
  scroll-margin-top: 16px;
}
#gratitude-journal {
  background: var(--butter);
}
#affirmations {
  background: var(--lilac);
}
#daily-zen {
  background: var(--mint);
}
#vision-board {
  background: var(--sky);
}
.home-feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
}
.home-feature--flip .home-feature__text {
  order: 2;
}
.home-feature--flip .home-feature__inner {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.home-sections .home-feature__label {
  margin: 0 0 12px;
  color: var(--raspberry);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.home-page h1,
.home-feature__line,
.home-sections h2 {
  text-wrap: balance;
}
.home-feature__line {
  margin: 0 0 16px !important;
  font-family: "Lora", Georgia, serif;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.home-feature__sub {
  margin: 0 0 24px !important;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.45;
}
.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.home-pills li {
  padding: 6px 14px;
  list-style: none;
  background: rgba(255, 253, 251, 0.75);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.4;
}
.home-list,
.home-panel ul {
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  list-style: disc;
}
.home-list li,
.home-panel li {
  margin: 0 0 6px;
  list-style: inherit;
}
.home-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 310px));
  gap: 24px;
  justify-content: center;
}
.home-phones--one {
  grid-template-columns: minmax(0, 300px);
}
.home-feature h2:not(.home-feature__label) {
  font-size: 44px;
}
.home-feature .home-list {
  margin-bottom: 20px;
}

/* Reviews */
.home-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.home-review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(46, 36, 64, 0.05);
}
.home-review__stars {
  margin-bottom: 10px;
  color: #f5a524;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
}
.home-sections .home-review h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.home-review blockquote {
  flex: 1;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}
.home-review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-review__avatar {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: "Lora", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  border-radius: 50%;
}
.home-review:nth-child(6n + 1) .home-review__avatar { background: var(--butter); }
.home-review:nth-child(6n + 2) .home-review__avatar { background: var(--lilac); }
.home-review:nth-child(6n + 3) .home-review__avatar { background: var(--mint); }
.home-review:nth-child(6n + 4) .home-review__avatar { background: var(--sky); }
.home-review:nth-child(6n + 5) .home-review__avatar { background: var(--blush); }
.home-review:nth-child(6n + 6) .home-review__avatar { background: #ffe6d5; }
.home-review figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.home-review figcaption small {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

/* Closing call to action */
.home-cta {
  padding: 88px 0;
  text-align: center;
  background: var(--lilac);
}
.home-cta h2 {
  font-size: 50px;
}
.home-cta p {
  color: var(--ink-soft);
  font-size: 20px;
}
.home-cta .store-buttons {
  justify-content: center;
  margin-top: 24px;
}

/* Privacy */
.home-privacy {
  padding: 72px 0;
  background: var(--blush);
}
.home-privacy h2 {
  font-size: 44px;
}
.home-privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 28px 0;
}
.home-privacy__grid h3 {
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}
.home-privacy__grid p {
  margin: 0;
  color: var(--ink-soft);
}
.home-privacy__note {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* Plain sections */
.home-section {
  padding: 64px 0;
  scroll-margin-top: 16px;
}
.home-section h2 {
  font-size: 36px;
}
.home-narrow > * {
  max-width: 760px;
}
.home-narrow h3 {
  margin-top: 28px;
}
.home-grid {
  display: grid;
  gap: 24px;
}
.home-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-panel {
  padding: 32px;
  border-radius: 20px;
}
.home-panel:nth-child(1) {
  background: var(--butter);
}
.home-panel:nth-child(2) {
  background: var(--lilac);
}
.home-panel ul {
  margin-bottom: 0;
}
.home-panel__title {
  margin: 0 0 4px !important;
  font-size: 24px !important;
}
.home-price {
  margin: 16px 0 0;
  font-weight: 600;
}
.home-panel .home-panel__title + .home-price {
  margin: 0 0 14px;
}
.home-section .store-buttons {
  margin-top: 8px;
}

.home-plan-price {
  margin: 0 0 16px !important;
  font-family: "Lora", Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
}
.home-plan-price span {
  color: var(--ink-soft);
  font-size: 18px;
}
.home-plan-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* Who makes it: one centred column */
.home-maker {
  padding: 88px 0;
  text-align: center;
  background: var(--mint);
}
.home-maker__photo {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  object-fit: cover;
  border: 5px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(46, 36, 64, 0.14);
}
.home-sections .home-maker .home-feature__label {
  margin-bottom: 12px;
}
.home-maker blockquote {
  max-width: 820px;
  margin: 0 auto 14px;
  padding: 0;
  border: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
.home-maker__name {
  margin: 0 0 14px !important;
  font-weight: 600;
}
.home-maker__team {
  max-width: 600px;
  margin: 0 auto 16px !important;
  color: var(--ink-soft);
}
.home-maker__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin: 0 !important;
}

/* Questions */
.home-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  margin-top: 8px;
}
.home-faq p {
  margin: 0;
}

/* Download gallery */
.home-gallery {
  padding: 56px 0 24px;
}
.home-gallery__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.home-page-head .store-buttons {
  margin-top: 24px;
}
.home-page-head .home-page-head__proof {
  margin-top: 16px;
  font-size: 16px;
}

/* Inner page heading */
.home-page-head {
  padding: 40px 0 56px;
}
.home-page-head h1 {
  margin: 0 0 12px;
  font-family: "Lora", Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.home-page-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
}

/* Footer on these pages */
.home-page .footer__brand,
.home-page .footer--site .footer__column h2 {
  color: var(--ink);
}
.home-page .footer--site .footer__column a {
  color: var(--ink-soft);
}
.home-page .footer--site .footer__column a:hover {
  color: var(--ink);
}

/* One idea per screen on the homepage */
.home-fold {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
}
.home-fold > .auto__container,
.home-fold-end > .auto__container,
.home-page .intro > .auto__container {
  flex: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  min-width: 0;
}
.home-page .intro {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 90px);
  min-height: calc(100svh - 90px);
}
/* The closing section and the footer share the last screen. */
.home-fold-end {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: calc(100vh - 328px);
  min-height: calc(100svh - 328px);
}
.home-privacy.home-fold h2,
.home-section.home-fold h2 {
  font-size: 50px;
}
.home-privacy.home-fold .home-privacy__grid h3 {
  font-size: 30px;
}
.home-privacy.home-fold .home-privacy__grid p {
  font-size: 20px;
}
.home-privacy.home-fold .home-privacy__grid {
  margin: 44px 0;
}
@media (min-width: 901px) {
  /* Phones always fit inside one screen */
  .home-fold .home-phones {
    --phone-h: min(calc(100vh - 96px), 700px);
    grid-template-columns: repeat(2, calc(var(--phone-h) * 0.46));
  }
  .home-fold.home-feature {
    padding: 48px 0;
  }
  .home-fold.home-section,
  .home-fold.home-privacy,
  .home-fold.home-maker {
    padding: 40px 0;
  }
  .home-hero-phones {
    width: min(48%, calc((100vh - 130px) / 1.1));
  }
}
@media (max-width: 1100px) {
  .home-page .intro__inner-content-title {
    font-size: 52px;
  }
  .home-feature__inner {
    gap: 40px;
  }
  .home-feature__line {
    font-size: 42px;
  }
}
@media (max-width: 900px) {
  .home-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .home-gallery__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-privacy__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Reviews swipe sideways, so they still take one screen */
  .home-reviews__grid {
    display: flex;
    gap: 14px;
    margin: 8px -16px 0;
    padding: 4px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .home-reviews__grid::-webkit-scrollbar {
    display: none;
  }
  .home-review {
    flex: 0 0 min(84%, 380px);
    scroll-snap-align: center;
  }
  .home-page .intro__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 28px 0 56px;
  }
  .home-page .intro__inner-content {
    flex: 0 0 auto;
    max-width: none;
  }
  .home-hero-phones {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .home-feature {
    padding: 64px 0;
  }
  .home-feature__inner,
  .home-feature--flip .home-feature__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-feature--flip .home-feature__text {
    order: 0;
  }
}
@media (max-width: 640px) {
  .home-page .auto__container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-page .header__nav {
    flex: 0 0 auto;
    gap: 0;
    padding: 0;
    background: none;
    border: 0;
  }
  .home-page .header__nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    font-size: 14px;
    white-space: nowrap;
  }
  .home-page .header__inner-logo {
    min-height: 44px;
  }
  /* Comfortable tap targets for links that stand on their own */
  .home-feature__text > a,
  .home-maker__links a,
  .home-plan-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .home-maker__links {
    gap: 0 20px;
  }
  .home-page .header__nav .header__nav-cta {
    display: none;
  }
  .home-page .intro__inner-content-title {
    font-size: 48px;
  }
  .home-page .intro__inner-content-para {
    font-size: 20px;
  }
  .home-stats {
    justify-content: center;
    font-size: 16px;
  }
  .home-proof {
    justify-content: center;
  }
  .home-proof a {
    min-height: 40px;
  }
  .home-maker__photo {
    width: 124px;
    height: 124px;
  }
  .home-feature,
  .home-section {
    padding: 48px 0;
  }
  .home-feature__line,
  .home-cta h2,
  .home-privacy h2 {
    font-size: 36px;
  }
  .home-privacy {
    padding: 48px 0;
  }
  .home-privacy.home-fold h2,
  .home-section.home-fold h2 {
    font-size: 36px;
  }
  .home-maker {
    padding: 56px 0;
  }
  .home-maker blockquote {
    font-size: 32px;
  }
  .home-cta {
    padding: 56px 0;
  }
  .home-section h2 {
    font-size: 30px;
  }
  .home-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-phones {
    gap: 14px;
  }
  .home-phone img {
    border-width: 4px;
    border-radius: 22px;
  }
  .home-page-head h1 {
    font-size: 40px;
  }
}
@media (max-width: 430px) {
  .home-page .header__inner-logo {
    font-size: 18px;
  }
  .home-page .header__nav a {
    padding: 0 6px;
    font-size: 13px;
  }
}
@media (max-width: 370px) {
  .home-page .header__inner-logo span {
    display: none;
  }
}
