/* =========================================================
   Bloomfall: promo + policy site
   Plain CSS, no build step. Warm desert / oasis palette,
   matched to the game's visual identity.
   ========================================================= */

:root {
  /* Palette */
  --cream:      #F6F2E7;
  --cream-deep: #efe7d2;
  --peach:      #F7C9B6;
  --coral:      #ff9d7a;
  --coral-deep: #f0784f;
  --ion:        #16c2b3;
  --ion-deep:   #0a8f86;
  --ion-mid:    #14b3a5;
  --green:      #5bbf78;
  --green-deep: #3a965a;
  --gold:       #e7c46a;
  --ink:        #06403d;
  --ink-soft:   #2c5e5a;
  --sand:       #fbf6ea;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:   20px;
  --radius-sm: 12px;
  --shadow:   0 14px 40px rgba(6, 64, 61, 0.12);
  --shadow-sm: 0 6px 18px rgba(6, 64, 61, 0.10);
  --maxw: 1080px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--ink); }

a { color: var(--ion-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================== NAV ===================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 231, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(6, 64, 61, 0.08);
}
.site-nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-nav__brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  color: var(--ink); display: inline-flex; align-items: center; gap: .45rem;
}
.site-nav__brand:hover { text-decoration: none; }
.site-nav__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #aef6ee, var(--ion) 70%);
  box-shadow: 0 0 0 3px rgba(22, 194, 179, 0.18);
}
.site-nav__logo {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 18%;
  background: linear-gradient(160deg, #fff6e4, var(--peach));
  box-shadow: 0 0 0 2px rgba(22, 194, 179, 0.22), var(--shadow-sm);
}
.site-nav__links { display: flex; gap: 1.4rem; align-items: center; }
.site-nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.site-nav__links a:hover { color: var(--ion-deep); text-decoration: none; }

.nav-toggle {
  display: none; border: 1px solid rgba(6, 64, 61, 0.18); background: var(--cream);
  color: var(--ink); border-radius: 10px; padding: .45rem .8rem; font: inherit; font-size: .92rem; cursor: pointer;
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .site-nav__links {
    display: none; position: absolute; top: 100%; right: 1.25rem; left: 1.25rem;
    flex-direction: column; gap: 0; background: var(--cream);
    border: 1px solid rgba(6, 64, 61, 0.12); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); padding: .4rem; margin-top: .4rem;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links a { padding: .7rem .8rem; border-radius: 8px; width: 100%; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(255, 246, 217, 0.95) 0%, rgba(247, 201, 182, 0) 55%),
    linear-gradient(170deg, #fff6e4 0%, var(--peach) 38%, var(--coral) 78%, var(--coral-deep) 100%);
  color: #5a2a18;
  padding: 3.5rem 0 5.5rem;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--cream);
  clip-path: ellipse(75% 100% at 50% 100%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.hero__eyebrow {
  display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ion-deep); background: rgba(255, 255, 255, 0.55);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 5rem); margin: 0 0 .4rem; color: #4a1f10;
  letter-spacing: -0.01em;
}
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  color: #6e3320; margin: 0 0 1rem; font-weight: 400;
}
.hero__desc { font-size: 1.06rem; color: #6e3320; max-width: 30rem; margin: 0 0 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__art { position: relative; text-align: center; }
.hero__art img.hero__remi {
  width: min(330px, 78%); margin: 0 auto;
  filter: drop-shadow(0 22px 28px rgba(90, 40, 20, 0.28));
  animation: bob 5s ease-in-out infinite;
}
.hero__art img.hero__palm {
  position: absolute; right: 2%; bottom: -4%; left: auto; width: 120px; opacity: .95;
  filter: drop-shadow(0 14px 16px rgba(90, 40, 20, 0.22));
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art img.hero__remi { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(180deg, var(--ion) 0%, var(--ion-deep) 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(10, 143, 134, 0.35);
}
.btn--secondary {
  background: rgba(255, 255, 255, 0.7); color: #5a2a18; border-color: rgba(90, 42, 24, 0.18);
}
.btn--ghost { background: var(--cream); color: var(--ink); border-color: rgba(6, 64, 61, 0.18); }
.btn--disabled {
  background: linear-gradient(180deg, #1a2b2b 0%, #06403d 100%); color: var(--cream);
  cursor: default; box-shadow: var(--shadow-sm);
}
.btn--disabled:hover { transform: none; }
.btn__apple { font-size: 1.3rem; line-height: 1; }
.btn__sub { display: block; font-size: .68rem; font-weight: 500; opacity: .8; letter-spacing: .04em; }
.btn__main { display: block; font-size: 1.05rem; }

/* ===================== SECTIONS ===================== */
section { padding: 3.5rem 0; }
.section--alt { background: var(--sand); }
.section__head { text-align: center; max-width: 38rem; margin: 0 auto 2.5rem; }
.section__head h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 .6rem; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* Story */
.story {
  background:
    radial-gradient(140% 100% at 10% 0%, rgba(22, 194, 179, 0.10), transparent 55%);
}
.story__card {
  background: linear-gradient(160deg, #ffffff 0%, var(--sand) 100%);
  border: 1px solid rgba(6, 64, 61, 0.08); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow); max-width: 50rem; margin: 0 auto;
}
.story__card h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); margin: 0 0 1rem; }
.story__card p { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 1rem; }
.story__card p:last-child { margin-bottom: 0; }
.story__card b { color: var(--ink); }
.story__card .lead { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }

/* Story as a parchment letter */
.story__letter {
  position: relative;
  max-width: 46rem;
  border: 1px solid #d8c39a;
  border-radius: 6px;
  padding: 2.6rem 2.8rem 2.4rem;
  color: #4f3b22;
  background-color: #f5e8c8;
  background-image:
    radial-gradient(120% 90% at 12% 8%, rgba(255, 250, 235, 0.85), transparent 55%),
    radial-gradient(140% 120% at 88% 96%, rgba(150, 116, 64, 0.18), transparent 50%),
    radial-gradient(60% 60% at 50% 50%, rgba(214, 184, 130, 0.0), rgba(176, 140, 84, 0.16) 100%),
    linear-gradient(160deg, #f8edd0 0%, #f0dfb4 60%, #e8d3a0 100%);
  box-shadow:
    0 18px 44px rgba(90, 64, 24, 0.22),
    inset 0 0 60px rgba(150, 110, 56, 0.14),
    inset 0 0 0 1px rgba(255, 252, 240, 0.4);
}
.story__letter::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px dashed rgba(120, 92, 48, 0.35);
  border-radius: 4px;
  pointer-events: none;
}
.story__letter h2 {
  font-family: var(--serif); font-style: italic;
  color: #5e451f; text-align: center; margin-bottom: 1.4rem;
}
.story__letter p {
  font-family: var(--serif);
  color: #503b21; font-size: 1.1rem; line-height: 1.7;
}
.story__letter b { color: #3f2e16; }
.story__greeting { font-style: italic; font-size: 1.2rem; }
.story__sign { margin-top: 1.6rem; font-style: italic; }
.story__name {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.5rem; color: #5e451f;
}
@media (max-width: 540px) {
  .story__letter { padding: 1.9rem 1.5rem; }
}

/* Features grid */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.feature {
  background: #fff; border: 1px solid rgba(6, 64, 61, 0.08); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1rem;
  background: linear-gradient(160deg, rgba(22, 194, 179, 0.16), rgba(91, 191, 120, 0.16));
}
.feature h3 { font-size: 1.22rem; margin: 0 0 .4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Screenshots / phone frames */
.shots {
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
}
.phone {
  width: 230px; aspect-ratio: 9 / 19.5; border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #0d2b2a, #06403d);
  box-shadow: var(--shadow); flex: 0 0 auto;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--cream); padding: 1.4rem 1rem;
}
.phone--sunset .phone__screen { background: linear-gradient(180deg, #ffd9a8, var(--coral) 60%, var(--coral-deep)); }
.phone--ion .phone__screen { background: linear-gradient(180deg, #aef6ee, var(--ion) 60%, var(--ion-deep)); }
.phone--oasis .phone__screen { background: linear-gradient(180deg, #bfeacb, var(--green) 60%, var(--green-deep)); }
.phone__screen img { width: 64%; margin-bottom: .8rem; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
.phone__cap {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.phone__sub { font-size: .82rem; color: rgba(255,255,255,.9); margin-top: .25rem; }

/* Phone frames showing real screenshots */
.phone--shot { margin: 0; background: linear-gradient(160deg, #0d2b2a, #06403d); }
.phone--shot .phone__screen {
  padding: 0; background: #06403d; justify-content: flex-start;
}
.phone--shot .phone__screen img.phone__shot {
  width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: top center;
  border-radius: 26px; filter: none;
}
.phone__label {
  display: flex; flex-direction: column; align-items: center;
  margin-top: .9rem; color: var(--ink); text-align: center;
}
.phone__label .phone__cap { color: var(--ink); text-shadow: none; }
.phone__label .phone__sub { color: var(--ink-soft); }

/* Zones chips */
.zones { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
.zone-chip {
  background: rgba(255,255,255,.8); border: 1px solid rgba(6,64,61,.12);
  border-radius: 999px; padding: .5rem 1rem; font-weight: 500; font-size: .92rem; color: var(--ink-soft);
}

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(165deg, var(--ion-mid), var(--ion-deep));
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 .6rem; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.08rem; max-width: 36rem; margin: 0 auto 1.6rem; }
.cta-band .price-pill {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: .4rem 1rem; font-weight: 600; font-size: .92rem; margin-bottom: 1.4rem;
}

/* ===================== POLICY / DOC PAGES ===================== */
.doc-hero {
  background: linear-gradient(170deg, #fff6e4 0%, var(--peach) 100%);
  color: #5a2a18; padding: 3rem 0 2.4rem; text-align: center;
}
.doc-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .4rem; color: #4a1f10; }
.doc-hero p { margin: 0; color: #6e3320; font-size: 1.05rem; }
.doc {
  max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem;
}
.doc h2 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); font-size: 1.04rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: .4rem 0; }
.doc a { font-weight: 500; }
.doc__meta {
  font-size: .92rem; color: var(--ink-soft); background: var(--sand);
  border: 1px solid rgba(6,64,61,.08); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin-bottom: 2rem;
}
.doc__back { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq__item {
  background: #fff; border: 1px solid rgba(6,64,61,.08); border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.faq__item h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.faq__item p { margin: 0; color: var(--ink-soft); }
.contact-card {
  text-align: center; background: var(--sand); border: 1px solid rgba(6,64,61,.08);
  border-radius: var(--radius); padding: 2rem; margin: 0 auto 2.5rem; max-width: 46rem;
}
.contact-card p { color: var(--ink-soft); margin: 0 0 1.2rem; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--ink); color: rgba(246, 242, 231, 0.82);
  padding: 2.5rem 0; text-align: center;
}
.site-footer a { color: var(--cream); font-weight: 500; }
.site-footer__links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.site-footer p { margin: .3rem 0; font-size: .92rem; }
.heart { color: var(--coral); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; }
  .hero__art img.hero__remi { width: min(280px, 64%); }
  .hero__art img.hero__palm { width: 92px; right: 8%; bottom: -2%; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  section { padding: 2.8rem 0; }
}
