/* ====================================================================
   Daily Grace Landing Page - page sections, part 1
   Hero through the deep-dive rows. Depends on styles.css for tokens.
   Part 2 (blocks.css) carries the preview rail onward; the split exists
   only to keep every file inside the 800-line ceiling, so a rule's file
   is a line-count accident - search both when hunting a selector.
   ==================================================================== */

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 92px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero-lead {
  font-size: 1.16rem;
  color: var(--text-body);
  max-width: 550px;
  margin-bottom: 32px;
  line-height: 1.74;
}
.hero-mini { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-mini-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 12px;
  box-shadow: var(--shadow-xs);
}
.hero-mini-item svg { width: 16px; height: 16px; color: var(--brand-800); flex-shrink: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-trust { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.62rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-900);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-num .accent-alt { color: var(--rose-700); }
.trust-label {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.trust-divider { width: 1px; height: 34px; background: var(--border-strong); }

/* ===== Hero visual - the phone inside the rising sun ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 640px;
}
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(221, 191, 105, 0.50) 0%, rgba(240, 231, 202, 0.55) 46%, transparent 68%);
  filter: blur(34px);
  border-radius: 50%;
  z-index: 0;
  animation: heroGlow 6s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.06); }
}
.hero-phone { position: relative; width: min(292px, 74vw); z-index: 2; }

/* The sunburst sits behind the phone, sized off the visual rather than the
   phone so the rays clear the device on both sides. */
.hero-visual .sunburst { width: min(640px, 96%); }
.hero-visual .horizon { bottom: 12%; }

/* Floating chips - the app's own surfaces, pulled out of the screen */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
  box-shadow: var(--shadow-md);
  z-index: 4;
  animation: floatBob 6.5s ease-in-out infinite;
}
.float-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-icon svg { width: 18px; height: 18px; }
.float-text { line-height: 1.25; }
.float-text small { display: block; font-size: 0.65rem; color: var(--text-mute); font-weight: 600; margin-bottom: 1px; }
.float-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--brand-900); letter-spacing: -0.01em; }
.fc-streak .float-icon { background: var(--brand-100); color: var(--brand-800); }
.fc-audio .float-icon  { background: rgba(166, 68, 110, 0.12); color: var(--rose-700); }
.fc-mood .float-icon   { background: var(--brand-100); color: var(--brand-800); }
.fc-1 { top: 42px; left: -46px; animation-delay: 0s; }
.fc-2 { top: 47%; right: -58px; animation-delay: -2.2s; }
.fc-3 { bottom: 66px; left: -34px; animation-delay: -4.4s; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ===== Stats strip ===== */
.stats-bar {
  position: relative;
  padding: 30px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -11px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 36px;
  background: var(--border-strong);
}
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-900);
  line-height: 1;
  margin-bottom: 7px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-mute);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Topic tiles =====
   App-agnostic on purpose: the identifier forks browse by game / sport /
   country, Daily Grace browses by what the app calls a devotion. Whatever
   by renders here. Populate it from the app's REAL browse data, never from
   a config array invented for the page - these nine are
   TOPIC_CATEGORIES in src/screens/quotes/topics/topicCategoryData.ts. */
.taxonomy { padding: var(--section) 0 calc(var(--section) - 24px); }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.filter-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.filter-tile::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  /* --brand-700, not --brand-500: this bar is the only non-text marker on the
     tile, and the app's own gold #b8860b is 3.25:1 on white - too weak to
     read as a marker at 4px. --brand-700 is the derived text-safe step. */
  background: var(--brand-700);
}
.filter-tile:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
}
/* The mark holds a REAL asset from the app
   (src/assets/images/quotes/topics/category_*.webp) rather than a drawn icon,
   so each tile shows the exact cover the in-app category grid shows. Those
   covers ship at 676x528 (1.28:1) and already carry their own white card and
   tinted blob, so the box matches that ratio (78x61 = 1.28:1) and adds no
   background of its own - a --brand-100 fill behind them would double the
   card and read as a mistake. */
.filter-mark {
  width: 78px; height: 61px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-700);
  background: var(--white);
}
.filter-mark svg { width: 26px; height: 26px; }
.filter-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.filter-tile strong { display: block; font-size: 1.04rem; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }
.filter-tile small { display: block; font-size: 0.85rem; color: var(--text-mute); margin-top: 2px; line-height: 1.5; }

/* ===== How it works ===== */
.how { padding: var(--section) 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 34px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 1;
  /* --brand-600, not a pale tint. Every donor sets this numeral in the 100
     step, which measures 1.17:1 - a ghost - and it is real text carrying the
     step order. --brand-600 is 3.86:1, clearing the 3:1 large-text floor
     (3.1rem at weight 600 is comfortably "large"). */
  color: var(--brand-600);
  letter-spacing: -0.04em;
}
.step-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-800));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-brand);
}
.step-icon svg { width: 26px; height: 26px; }
.step h3 { font-size: 1.24rem; margin-bottom: 10px; }
.step p { color: var(--text-body); font-size: 0.95rem; line-height: 1.68; }

/* ===== Features bento ===== */
.features { padding: var(--section) 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.feature-card {
  grid-column: span 2;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-card.wide { grid-column: span 3; }

/* Capstone row - the bento closes on one full-width card laid out
   horizontally, so the grid never ends on an orphan tile. */
.feature-card.full {
  grid-column: span 6;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  background:
    radial-gradient(circle at 6% 50%, rgba(143, 95, 100, 0.09), transparent 46%),
    var(--white);
}
.feature-card.full .feature-icon { margin-bottom: 0; width: 52px; height: 52px; }
.feature-card.full h3 { margin-bottom: 5px; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand-100);
  border: 1px solid var(--border-brand);
  color: var(--brand-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 17px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-body); font-size: 0.9rem; line-height: 1.65; }
/* Three icon tones. On a single-hue palette they cannot differ by tint alone
   or every card flattens into one, so this is a WEIGHT ladder plus the one
   genuinely different hue the brand actually owns: .tone-key fills with the
   brand gradient, the default tints, and .tone-rose takes the rose end of
   the store creative's own sweep. */
.feature-card.tone-key .feature-icon {
  background: linear-gradient(140deg, var(--brand-700), var(--brand-900));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 18px -8px rgba(107, 79, 6, 0.55);
}
.feature-card.tone-rose .feature-icon {
  background: rgba(161, 116, 121, 0.15);
  border-color: rgba(143, 95, 100, 0.24);
  color: var(--rose-700);
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-800);
  background: var(--brand-50);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-full);
  padding: 4px 11px;
}

/* ===== Deep-dive rows ===== */
.deep { padding: calc(var(--section) - 20px) 0; }
.deep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.deep-row + .deep-row { margin-top: calc(var(--section) - 10px); }
.deep-row.flip .deep-visual { order: -1; }
.deep-text .eyebrow { margin-bottom: 20px; }
.deep-text h2 {
  font-size: clamp(1.95rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.deep-text > p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.74;
  margin-bottom: 26px;
}
.deep-list { display: flex; flex-direction: column; gap: 12px; }
.deep-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
.deep-list li svg {
  width: 20px; height: 20px;
  color: var(--brand-800);
  flex-shrink: 0;
  margin-top: 2px;
}
.deep-list li strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink-900); margin-bottom: 2px; }
.deep-list li small { color: var(--text-mute); font-size: 0.85rem; line-height: 1.5; }

.deep-visual { position: relative; display: flex; justify-content: center; }
.deep-visual .phone-frame { width: min(300px, 78vw); }
.deep-visual::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 191, 105, 0.34), transparent 66%);
  filter: blur(28px);
  z-index: 0;
}
.deep-visual .phone-frame { position: relative; z-index: 1; }

/* Mirror variant. Three of the store screenshots have the phone exiting the
   TOP of the canvas, so those crops begin mid-screen - they get a frame that
   is open at the top instead, rather than being forced into a rounded top
   edge that would imply a screen start that is not in the image. */
.phone-frame.open-top {
  border-radius: 8px 8px 42px 42px;
  padding: 0 7px 7px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
}
.phone-frame.open-top img { border-radius: 0 0 36px 36px; }
