/* F.O.M.O. Shield — landing page.
   Palette is the app's own Black & White theme, values copied from
   lib/src/core/theme/reference/black_white_colors.dart (2026-09-27).
   One deliberate deviation: bwBodyText (#9A9A9E) is a body colour for dark
   "instrument panel" windows in the app; on this page's white cards it fails
   contrast, so body text uses --ink-body below and #9A9A9E is kept for muted
   captions on dark backgrounds only. */

:root {
  --bg-light: #ffffff;          /* bwGradientLight */
  --bg-dark: #525c69;           /* bwGradientDark */
  --card-top: #ffffff;          /* bwCardWhite */
  --card-bottom: #cdcdd0;       /* bwCardGradientBottom */
  --steel: #919191;             /* bwSteel — border ring top */
  --graphite: #18181a;          /* bwCharcoal — border ring bottom, footer */
  --silver: #b8b8bc;            /* bwSilver — ring glint, muted text on dark */
  --slate: #2b2b2e;             /* bwSlate — shadow tint */
  --ink: #0c0c0d;               /* bwBlack — headers, accent */
  --ink-body: #4a4a4e;          /* body text on light (see note above) */
  --ink-muted: #6e6e73;
  --radius: 22px;               /* FomoShieldTheme.cardRadius */
  --shadow: 0 3px 4px rgba(43, 43, 46, 0.25);  /* BlackWhiteTheme.cardGlow */
  --wrap: 1080px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--ink-body);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 5.5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(25px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; }
a { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e6e8;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: 0.03em; font-size: 23px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
/* the icon carries its own off-white ground, which would otherwise read as a
   smudge on the white header — the hairline turns that edge into an app tile */
.wordmark img { width: 44px; height: 44px; border-radius: 11px; display: block; border: 1px solid #e3e3e5; }
.lang { display: flex; gap: 4px; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--steel); background: transparent; color: var(--ink-muted);
}
.lang button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-light) 30%, var(--bg-dark) 100%);
  padding: 64px 0 52px;
  overflow: hidden;
}
.hero-grid {
  display: grid; align-items: center; gap: 40px;
  grid-template-columns: 1fr 300px;
}
.badge {
  display: inline-block; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--steel); color: var(--ink-muted); background: #fff;
}
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); margin-bottom: 20px; }
/* the three negatives sit in the app's own "window" panel treatment —
   reuses .card, which is that recipe (see the card grid below) */
.hero .negatives {
  display: inline-block; padding: 14px 22px;
  font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 0;
}
.hero-shot { margin: 0; align-self: end; }
.hero-shot img { width: 284px; display: block; }

/* phone frame — CSS, not baked into the screenshots */
.phone {
  display: block; margin-inline: auto; border-radius: 26px; border: 3px solid var(--graphite);
  box-shadow: 0 18px 40px rgba(12, 12, 13, 0.35); background: #fff;
}

/* ---------- honesty strip ---------- */

.strip { background: var(--bg-dark); color: #fff; padding: 52px 0; }
.strip h2 { color: #fff; text-align: center; margin-bottom: 36px; }
.strip .cols { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.strip h3 { color: #fff; margin-bottom: 8px; }
.strip p { color: #e4e4e6; margin: 0; font-size: 16px; }

/* ---------- features ---------- */

.section { padding: 72px 0; }
.section-intro { max-width: 680px; margin-bottom: 44px; }
.section-intro p { font-size: 18px; }

.feature {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr 340px;
  margin-bottom: 76px;
}
.feature:last-child { margin-bottom: 0; }
.features .feature:nth-child(even) .feature-text { order: 2; }
.feature-shot { justify-self: center; }
.feature-shot img { width: 300px; }
.feature ul { padding-left: 20px; margin: 0; }
.feature li { margin-bottom: 8px; }

/* ---------- card grid (features without screenshots) ---------- */

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  /* the app's gradient ring: card gradient inside, steel→graphite ring outside */
  border: 1px solid transparent;
  background-image:
    linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%),
    linear-gradient(180deg, var(--silver) 0%, var(--steel) 12%, var(--graphite) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 16px; }

/* ---------- theme strip ---------- */

.theme-strip {
  display: flex; gap: 20px; overflow-x: auto;
  /* same column as every other section, so the strip lines up with its own
     heading instead of running full-bleed; it still scrolls when narrow.
     Centring is done by the auto margins, not justify-content, which clips
     the first item once the row overflows. */
  max-width: var(--wrap); margin-inline: auto;
  padding: 4px 24px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.theme-strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.theme-strip img { width: 190px; }
.theme-strip figcaption {
  margin-top: 12px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.theme-strip em {
  display: block; margin-top: 2px; font-style: normal;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- in-development section ---------- */

.wip { background: #f2f2f3; }
.wip .section-intro { max-width: 760px; }
.badge-wip {
  background: var(--ink); color: #fff; border-color: var(--ink);
  margin-bottom: 18px;
}
.wip .fineprint { margin-top: 24px; max-width: 860px; }

/* the Funds rows under the main Free/Premium table */
.tiers-wip { margin-top: 60px; }
.tiers-wip h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tiers-wip > p { max-width: 720px; }
.badge-inline { font-size: 11px; padding: 4px 10px; margin-bottom: 0; }

/* ---------- premium table ---------- */

.tiers { width: 100%; border-collapse: collapse; font-size: 16px; }
.tiers th, .tiers td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #e0e0e2; }
.tiers thead th { color: var(--ink); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.tiers td:not(:first-child), .tiers th:not(:first-child) { text-align: center; width: 24%; }
.tiers tbody th { font-weight: 500; color: var(--ink-body); }
.tiers .premium-col { background: rgba(12, 12, 13, 0.04); font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; }
.fineprint { font-size: 14px; color: var(--ink-muted); margin-top: 18px; }

/* ---------- disclaimer ---------- */

.disclaimer { background: #f2f2f3; padding: 52px 0; }
.disclaimer .box {
  border-radius: var(--radius); padding: 28px; background: #fff;
  border: 1px solid #dcdcde; max-width: 860px; margin: 0 auto;
}
.disclaimer p { color: var(--ink); margin-bottom: 0; font-size: 16px; }

/* ---------- footer ---------- */

.site-footer { background: var(--graphite); color: var(--silver); padding: 44px 0 36px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.site-footer a:hover { border-bottom-color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.site-footer .legal { margin: 0; color: #86868b; font-size: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero p.lead { max-width: 620px; margin-left: auto; margin-right: auto; }
  .hero-shot { padding-bottom: 0; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .features .feature:nth-child(even) .feature-text { order: 0; }
  .strip .cols, .grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 64px; }
  .wordmark { font-size: 17px; gap: 9px; }
  .wordmark img { width: 34px; height: 34px; border-radius: 9px; }
  .section { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .hero-shot img, .feature-shot img { width: 240px; }
  .wrap { padding: 0 18px; }
}
