/* Fresh Bloom website — shared design system
   Brand colors mirror the iOS app (FreshBloom/Core/AppTheme.swift). */

:root {
  --blossom: #d94d7a;
  --blossom-bright: #f58aaf;
  --petal: #fadbe5;
  --cream: #fff8ef;
  --sand: #f4ece1;
  --leaf: #4f9d69;
  --mint: #ddf2e4;
  --lavender: #c9b6ff;
  --butter: #ffe58a;
  --charcoal: #2f2d31;
  --muted: #6e6872;
  --border: #eadde3;

  --maxw: 1080px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 18px 44px rgba(90, 54, 66, 0.12);
  --shadow-soft: 0 8px 24px rgba(90, 54, 66, 0.08);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background:
    radial-gradient(1200px 620px at 82% -8%, rgba(245, 138, 175, 0.18), transparent 60%),
    radial-gradient(900px 520px at -8% 8%, rgba(201, 182, 255, 0.16), transparent 55%),
    radial-gradient(760px 360px at 50% 48%, rgba(221, 242, 228, 0.34), transparent 68%),
    linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(255, 248, 239, 0.84);
  border-bottom: 1px solid rgba(234, 221, 227, 0.7);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: var(--charcoal);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--charcoal);
  font-weight: 700;
  font-size: 15px;
  opacity: 0.82;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--blossom);
  color: #fff;
  box-shadow: 0 10px 26px rgba(217, 77, 122, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 14px 32px rgba(217, 77, 122, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--charcoal);
  border-color: var(--border);
}
.btn-ghost:hover { background: #fff; text-decoration: none; }

/* App Store badge button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--charcoal);
  color: #fff;
  border-radius: 16px;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}
.appstore-btn:hover { transform: translateY(-1px); text-decoration: none; }
.appstore-btn .apple { font-size: 30px; line-height: 1; }
.appstore-btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.8; }
.appstore-btn strong { display: block; font-size: 19px; font-weight: 800; margin-top: -2px; }
.appstore-btn-disabled { cursor: default; pointer-events: none; }
.appstore-btn-disabled:hover { transform: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 30px;
  overflow: hidden;
}
.hero-center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 138, 175, 0.16);
  color: var(--blossom);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 77, 122, 0.18);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 0.99;
  margin: 18px auto 16px;
  max-width: 16ch;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--blossom); }
.hero .lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 26px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-note { color: var(--muted); font-size: 13px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.trust-row span {
  border: 1px solid rgba(234, 221, 227, 0.92);
  background: rgba(255, 255, 255, 0.66);
  color: #594f54;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}
.hero-banner {
  position: relative;
  margin: 38px auto 0;
  max-width: 940px;
  padding: clamp(10px, 2vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background:
    radial-gradient(520px 280px at 18% 10%, rgba(250, 219, 229, 0.8), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 239, 0.74));
  box-shadow: 0 30px 76px rgba(90, 54, 66, 0.2);
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: -40px -30px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 229, 138, 0.45), rgba(245, 138, 175, 0));
  z-index: -1;
}
.hero-banner img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 22px;
  background: #fff8ef;
}

/* ---------- Section ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-kicker {
  display: inline-block;
  color: var(--blossom);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -52px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(245, 138, 175, 0.08);
}
.feature-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feature-card .ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 900;
  color: var(--blossom);
  background: rgba(245, 138, 175, 0.16);
}
.feature-card h3 { margin: 0; font-size: 19px; line-height: 1.15; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Example carousel ---------- */
.examples-section {
  background:
    radial-gradient(800px 420px at 20% 20%, rgba(250, 219, 229, 0.42), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
}
.example-carousel {
  position: relative;
  isolation: isolate;
}
.example-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 980px);
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - min(100%, 980px)) / 2);
  padding: 10px max(22px, calc((100% - min(100%, 980px)) / 2)) 24px;
  scrollbar-color: rgba(217, 77, 122, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}
.example-card {
  scroll-snap-align: center;
  scroll-margin-top: 92px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 221, 227, 0.95);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(90, 54, 66, 0.16);
  overflow: hidden;
  min-width: 0;
  transform: translateZ(0);
  opacity: 0.72;
  scale: 0.965;
  transition: opacity 0.28s ease, scale 0.28s ease, box-shadow 0.28s ease;
}
.example-card.is-active {
  opacity: 1;
  scale: 1;
  box-shadow: 0 34px 92px rgba(90, 54, 66, 0.22);
}
.example-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: linear-gradient(135deg, #fff8ef, #fff);
}
.example-control {
  position: absolute;
  top: 44%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 221, 227, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--charcoal);
  box-shadow: 0 14px 34px rgba(90, 54, 66, 0.14);
  cursor: pointer;
  font-size: 34px;
  font-family: var(--font);
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.example-control:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(90, 54, 66, 0.18);
}
.example-control:focus-visible,
.example-dots button:focus-visible {
  outline: 3px solid rgba(217, 77, 122, 0.34);
  outline-offset: 3px;
}
.example-control-prev { left: 8px; }
.example-control-next { right: 8px; }
.example-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}
.example-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  background: rgba(217, 77, 122, 0.26);
  border: 1px solid rgba(217, 77, 122, 0.22);
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}
.example-dots button:hover,
.example-dots button.is-active {
  background: var(--blossom);
}
.example-dots button.is-active {
  width: 28px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(234, 221, 227, 0.85);
  border-radius: var(--radius);
}
.step .num {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--blossom);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(217, 77, 122, 0.3);
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Support / trust band ---------- */
.band {
  background:
    radial-gradient(520px 260px at 12% 0%, rgba(250, 219, 229, 0.72), transparent 65%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.band-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: center; }
.band h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 12px; }
.band p { color: var(--muted); font-size: 16px; margin: 0 0 10px; }
.info-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.info-card p:first-child { margin-top: 0; }
.info-card p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-final {
  text-align: center;
  background: linear-gradient(135deg, var(--blossom) 0%, var(--blossom-bright) 100%);
  color: #fff;
  border-radius: 30px;
  padding: 54px 30px;
  box-shadow: 0 22px 50px rgba(217, 77, 122, 0.32);
}
.cta-final h2 { font-size: clamp(28px, 4.6vw, 44px); margin: 0 0 12px; }
.cta-final p { font-size: 18px; opacity: 0.92; margin: 0 0 24px; }
.cta-final .appstore-btn { background: #fff; color: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: rgba(255, 248, 239, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0 28px;
}
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--charcoal); font-weight: 600; opacity: 0.85; }
.footer-tagline { color: var(--muted); max-width: 34ch; margin: 12px 0 0; font-size: 15px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Legal / content pages ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 22px 72px;
}
.page .kicker { color: var(--blossom); font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.page h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.08; margin: 8px 0 8px; letter-spacing: -0.01em; }
.page .effective { color: var(--muted); margin: 0 0 26px; }
.page h2 { margin-top: 34px; font-size: 23px; }
.page p, .page li { color: #564b50; font-size: 16px; }
.page .card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}
.page .card p:last-child { margin-bottom: 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .example-track {
    grid-auto-columns: min(88vw, 760px);
    scroll-padding-inline: 22px;
    padding-inline: 22px;
  }
  .example-control {
    top: auto;
    bottom: 58px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .example-control-prev { left: 28px; }
  .example-control-next { right: 28px; }
  .band-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav .nav-cta { display: inline-flex; }
}
@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(38px, 13vw, 54px); }
  .hero-banner { border-radius: 24px; }
  .example-track { grid-auto-columns: 88vw; gap: 16px; }
  .example-card { border-radius: 24px; }
  .example-control { display: none; }
  .band { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
