/* Divine Awakening by Strawberry Hope — landing page.
 *
 * The palette and type are the app's own (divine_healing/lib/theme.dart):
 * Deep Plum for headings and primary buttons, Rose Purple for accents,
 * Blush Mist for the page, Playfair Display over Nunito. Someone arriving
 * from an ad and then opening the app should feel they never left.
 */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --plum: #5B3A5E;
  --plum-deep: #47294A;
  --rose-purple: #8B5A8C;
  --lavender: #E9D5EA;
  --blush-mist: #FCF5F8;
  --warm-blush: #F5D4D9;
  --sandstone: #F5E4E7;
  --rose-gold: #C48B95;
  --soft-rose: #C7A0AB;

  --text: #4A3550;
  --text-muted: #7A5A7C;
  --surface: #FFFFFF;
  /* Opaque, and the same colour rose gold at 35% makes over white. A
     translucent border on a rounded box is what a Huawei MGA-LX3 (Android
     10, Chrome 149) drew as a stack of smeared copies of the cards while
     scrolling. Bisected on the device: opaque or no borders were clean,
     the rgba border corrupted every time. Keep every border opaque. */
  --border: #EAD6DA;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(91, 58, 94, 0.06), 0 4px 12px rgba(91, 58, 94, 0.07);
  --shadow-lg: 0 2px 6px rgba(91, 58, 94, 0.08), 0 10px 24px rgba(91, 58, 94, 0.12);

  --gutter: 20px;
  --max: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* clip, not hidden: hidden makes the root a scroll container, which
     breaks the sticky header in some mobile browsers. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--blush-mist);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--plum);
  font-weight: 500;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--rose-purple);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--plum);
  color: #fff;
  border-radius: 10px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

/* Opaque on purpose. A frosted backdrop-filter header looked right on
   desktop and smeared the cards beneath it on an Android phone: some
   mobile browsers stop repainting what scrolls under a blurred layer. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blush-mist);
  border-bottom: 1px solid #F0DEE2;
  box-shadow: 0 1px 12px rgba(91, 58, 94, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
}
.brand__by {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--rose-purple);
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-purple);
  margin-bottom: 14px;
}

.section { padding-block: 48px; }

.section__title {
  font-size: clamp(1.75rem, 5.2vw, 2.6rem);
  text-align: center;
  margin-bottom: 36px;
}
.section__title--left { text-align: left; margin-bottom: 16px; }

/* A short paragraph under a centred title. The title gives up most of its
   bottom margin so the two read as one block. */
.section__intro {
  max-width: 40rem;
  margin: -20px auto 32px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* A pair of buttons is always one size. On a phone they stack at the same
   full width; from 640px they sit side by side in equal columns, each as
   wide as the longer label needs, which is what 1fr does in a grid that
   sizes itself to its content. */
.actions {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-top: 28px;
}
.actions .btn { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--plum);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 58, 94, 0.26);
}
.btn--primary:hover { background: var(--plum-deep); }

.btn--secondary {
  background: #fff;
  color: var(--plum);
  border: 1.5px solid var(--rose-gold);
}
.btn--secondary:hover { background: #fff; }

.icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Phone frame round the app screenshots */
/* The rim is an inset shadow in an opaque colour: a translucent rim is
   the thing that corrupted rendering on the Huawei (see --border). */
.phone {
  position: relative;
  aspect-ratio: 1320 / 2868;
  padding: 8px;
  border-radius: 38px;
  background: linear-gradient(160deg, #ffffff, #f3e6ee);
  box-shadow:
    0 2px 4px rgba(91, 58, 94, 0.06),
    0 24px 60px rgba(91, 58, 94, 0.14),
    inset 0 0 0 1px var(--border);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 31px;
}

/* ---------- 1. Hero ---------- */

/* The page used to sit on two viewport-sized radial gradients. On a
   budget Android phone Chrome could not re-raster them as fast as a
   fling scrolls, and showed stale tiles from other scroll positions
   instead, the "smeared cards". The colour wash now lives only here, as a
   plain linear gradient, and everything below sits on a flat colour. */
.hero {
  padding-block: 40px 64px;
  background: linear-gradient(180deg, #F6E8F1 0%, var(--blush-mist) 100%);
}

/* minmax(0, 1fr) rather than the implicit auto track: an auto track grows
   to its widest child, which pushed the lead paragraph past the edge of a
   390px phone and clipped it. */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero__inner > * { min-width: 0; }

/* Centred while the hero is a single column, which is every phone and
   tablet. From 900px the copy sits beside the phone and reads better
   aligned left. */
.hero__copy { text-align: center; }
.hero__copy .lead,
.hero__copy .actions { margin-inline: auto; }

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.5rem);
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  color: var(--rose-purple);
}

.lead {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.hero__note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 12px;
}
.hero__halo {
  position: absolute;
  width: min(100%, 520px);
  height: auto;
  opacity: 0.22;
  pointer-events: none;
}
.phone--hero {
  width: min(62vw, 280px);
  transform: rotate(-3deg);
}

/* ---------- 2. Helps ---------- */

.helps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 14px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--plum);
  line-height: 1.35;
}
.help .icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 50%;
  background: var(--sandstone);
  color: var(--rose-purple);
}

/* ---------- 3. Free meditation ---------- */

.free__card {
  display: grid;
  gap: 28px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #fff 0%, var(--sandstone) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.free__copy p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  align-self: center;
}
.track__play {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--plum);
}
.track__play svg { width: 26px; height: 26px; fill: #fff; }
.track__meta { display: flex; flex-direction: column; gap: 2px; }
.track__title { font-family: var(--serif); font-size: 1.2rem; color: var(--plum); }
.track__detail { font-size: 0.92rem; color: var(--text-muted); }
.pill {
  display: inline-block;
  padding: 1px 10px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--warm-blush);
  color: #A24A5B;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- 4. Features ---------- */

.features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--plum);
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.3rem; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 1rem; }

.gallery {
  display: flex;
  gap: 18px;
  margin-top: 48px;
  padding: 8px var(--gutter) 24px;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: none;
  width: min(58vw, 240px);
  margin: 0;
  scroll-snap-align: center;
}
.gallery__item figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose-purple);
}

/* ---------- 5. About ---------- */

.about { background: #F8ECF3; }

.about__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about__photo {
  width: min(70vw, 300px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  padding: 22px;
  background:
    #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: contain; }

.about__copy p:not(.eyebrow) {
  color: var(--text);
  margin-bottom: 28px;
}

/* ---------- 7. Pricing ---------- */

.pricing__grid {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.plan--premium {
  border: 2px solid var(--rose-gold);
  background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--sandstone) 100%);
}
.plan__name {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-purple);
}
.plan__price {
  margin: 10px 0 20px;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--plum);
}
.plan__price span {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 4px;
}
.plan__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  flex: 1;
}
.plan__list li {
  position: relative;
  padding-left: 32px;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%235B3A5E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--lavender);
}
.plan .btn { width: 100%; }

.pricing__note {
  margin: 22px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- 8. Work with me ---------- */

.work__card {
  max-width: 760px;
  margin-inline: auto;
  padding: 44px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--sandstone) 0%, #fff 55%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.work__card .section__title { margin-bottom: 14px; }
.work__card p {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 28px;
}

/* ---------- 9. Final CTA ---------- */

.final { padding-bottom: 88px; }

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.final__mark { width: 120px; height: 120px; margin-bottom: 18px; }
.final__title {
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-style: italic;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.badges a { border-radius: 10px; }
.badges img { height: 48px; width: auto; }

/* The hero's two store badges are the page's main action, so they are
   the largest thing in it that can be tapped. They grow with the screen,
   and at 360px still fit side by side (Apple's minimum is 40px tall). */
.badges--hero { margin-top: 28px; }
.badges--hero img { height: clamp(44px, 12.5vw, 60px); }

/* Where a "Download" button would only scroll on a computer, these badges
   stand in for it. A phone keeps the button, which goes to its own store. */
.badges--desktop { display: none; margin-top: 0; }
.os-other .badges--desktop { display: flex; }
.os-other [data-app-link] { display: none; }
.free__copy .badges--desktop { justify-content: flex-start; }
.plan .badges--desktop img { height: 44px; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid #EFDDE1;
  background: #FDF8FA;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.site-footer__inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.site-footer__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--plum);
}
.site-footer__brand span { font-style: italic; color: var(--rose-purple); }
.site-footer__disclaimer { max-width: 36rem; font-size: 0.85rem; }
.site-footer__copy { font-size: 0.85rem; }

.site-footer__copy a { color: inherit; text-underline-offset: 3px; }
.site-footer__copy a:hover { color: var(--plum); }

/* ---------- Privacy page ---------- */

.legal__inner { max-width: 720px; }
.legal h1 {
  font-size: clamp(2rem, 7vw, 2.8rem);
  margin-bottom: 6px;
}
.legal__updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 32px 0 10px;
}
.legal p,
.legal li { margin-bottom: 12px; }
.legal ul { padding-left: 1.2em; margin: 0; }
.legal a:not(.btn) { color: var(--rose-purple); text-underline-offset: 3px; }
.legal__back { margin-top: 36px; }

/* No scroll-reveal animation. It was here, and on an Android phone the
   faded-in cards were left half-painted and smeared as the page scrolled:
   each animating card becomes its own compositor layer, and a phone short
   of graphics memory drops some of them. Content that is simply there
   cannot fail that way. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .helps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free__card { padding: 44px; }

  .actions {
    width: max-content;
    max-width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 72px 96px; }
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
  .phone--hero { width: 280px; }
  .hero__copy { text-align: left; }
  .hero__copy .lead,
  .hero__copy .actions { margin-inline: 0; }
  .hero__copy .badges--hero { justify-content: flex-start; }

  .free__card {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    padding: 56px;
  }

  .features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .gallery {
    justify-content: center;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: 36px;
  }
  .gallery__item { width: 240px; }
  .gallery__item:nth-child(2) { transform: translateY(-24px); }

  .about__inner { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .about__photo { width: 340px; }

  .work__card { padding: 60px 56px; }
}

/* Final section: the store badges lead, as in the hero, and booking sits
   below them rather than competing with them. */
.final__book { margin-top: 22px; }
/* Each item of the line under the hero badges stays whole, so a narrow
   screen breaks between items rather than inside one. */
.hero__note span { white-space: nowrap; }
