/* DIScovery News — marketing landing page.
 * Page layout + faithful CSS recreations of the design-system components
 * (Button, StoryCard, Tag, Badge, MediaPill, SourceRow) the page uses.
 * Everything is driven by the design tokens in styles.css / tokens/*.
 * Recreated from ui_kits/web/site.jsx + components/{core,content}/*.jsx.
 */

/* ----------------------------------------------------------------------------
 * Base / reset additions (styles.css already sets box-sizing + body font)
 * ------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { background: var(--surface-1); color: var(--text-body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--r-sm); }

/* ----------------------------------------------------------------------------
 * Theme — light (default) + dark. tokens/dark.css already flips every
 * surface / ink / line token under [data-theme="dark"], so the body sections
 * adapt for free. These add the "chrome" tokens (nav + hero + glass buttons)
 * so the signature cosmic band also has a real light and a real dark treatment.
 * ------------------------------------------------------------------------- */
:root {
  --chrome-bg: radial-gradient(120% 92% at 78% -8%, #E9F0FF 0%, #F5F8FD 46%, #EFEAFF 100%);
  --chrome-ink: var(--ink-900);
  --chrome-ink-soft: var(--ink-500);
  --chrome-ink-mute: var(--ink-400);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: var(--line-200);
  --hero-pill-bg: rgba(77, 145, 252, 0.09);
  --hero-pill-border: rgba(77, 145, 252, 0.22);
  --glass-bg: var(--surface-0);
  --glass-border: var(--line-300);
  --glass-fg: var(--ink-700);
  --glass-bg-hover: var(--surface-2);
  --app-tile-ring: rgba(14, 21, 40, 0.10);
}
[data-theme="dark"] {
  --chrome-bg: var(--grad-cosmic-radial);
  --chrome-ink: #ffffff;
  --chrome-ink-soft: rgba(255, 255, 255, 0.72);
  --chrome-ink-mute: rgba(255, 255, 255, 0.45);
  --nav-bg: rgba(8, 16, 40, 0.72);
  --nav-border: rgba(255, 255, 255, 0.08);
  --hero-pill-bg: rgba(255, 255, 255, 0.08);
  --hero-pill-border: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-fg: #ffffff;
  --glass-bg-hover: rgba(255, 255, 255, 0.16);
  --app-tile-ring: rgba(255, 255, 255, 0.14);
}
/* Ease the color flip between themes (reduced-motion resets it below). */
body, .nav, .feat, .diff-card, .story-card, .source-chip, .btn { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }

/* Mono eyebrow / kicker — uppercase, tracked. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline); text-transform: uppercase;
  color: var(--dis-blue-500);
}
.eyebrow--mono { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: 12px; }

/* Signature gradient text. */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Four-point brand sparkle (decorative). */
.sparkle { position: absolute; pointer-events: none; }

/* ----------------------------------------------------------------------------
 * Button — recreated from components/core/Button.jsx
 * ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 15px; line-height: 1; letter-spacing: -0.01em;
  padding: 11px 18px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.btn--lg { font-size: 16px; padding: 14px 24px; gap: 9px; }
.btn--pill { border-radius: var(--r-pill); }
.btn--full { width: 100%; }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow-blue); }
.btn--primary:hover { box-shadow: var(--shadow-glow-purple); }

.btn--glass {
  background: var(--glass-bg); color: var(--glass-fg);
  border: 1px solid var(--glass-border); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: var(--glass-bg-hover); }
/* The CTA card is cosmic in every theme, so its glass buttons stay light-on-dark. */
.cta-card .btn--glass { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.cta-card .btn--glass:hover { background: rgba(255, 255, 255, 0.18); }

.btn--ghost { background: transparent; color: var(--dis-blue-600); }

/* App Store "coming soon" badge styled as a primary gradient pill (honest placeholder). */
.btn .apple { width: 17px; height: 17px; flex: none; }
.btn__sub {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  line-height: 1.05; text-align: left;
}
.btn__sub small {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: var(--fw-medium);
  letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.92;
}
.btn__sub b { font-weight: var(--fw-bold); font-size: 16px; letter-spacing: -0.01em; }

/* ----------------------------------------------------------------------------
 * Tag / category chip — recreated from components/core/Tag.jsx
 * ------------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: 13px;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-200); background: var(--surface-0); color: var(--ink-700);
  white-space: nowrap;
}
.tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--tag-dot, var(--dis-blue-500));
}
.tag--wdw { --tag-dot: var(--cat-wdw); }
.tag--disneyland { --tag-dot: var(--cat-disneyland); }
.tag--cruise { --tag-dot: var(--cat-cruise); }
.tag--marvel { --tag-dot: var(--cat-marvel); }
.tag--starwars { --tag-dot: var(--cat-starwars); }
.tag--podcast { --tag-dot: var(--cat-podcast); }

/* ----------------------------------------------------------------------------
 * Badge — recreated from components/core/Badge.jsx
 * ------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 11px; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.badge--breaking { background: var(--negative-500); color: #fff; }
.badge--new { background: var(--dis-blue-100); color: var(--dis-blue-600); }
.badge--cosmic { background: rgba(255, 255, 255, 0.16); color: #fff; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----------------------------------------------------------------------------
 * Cosmic chrome (nav + hero share the radial background)
 * ------------------------------------------------------------------------- */
.cosmic { position: relative; background: var(--chrome-bg); overflow: hidden; }

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
}
.nav__brand { display: inline-flex; align-items: center; height: 32px; }
.brand-img { height: 32px; width: auto; display: block; }
.brand-dark { display: none; }
[data-theme="dark"] .brand-light { display: none; }
[data-theme="dark"] .brand-dark { display: block; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 14.5px;
  color: var(--chrome-ink-soft); text-decoration: none; transition: color .15s ease;
}
.nav__links a:hover { color: var(--chrome-ink); }

/* Light / dark toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; padding: 0; cursor: pointer;
  border-radius: var(--r-pill); border: 1px solid var(--nav-border);
  background: var(--glass-bg); color: var(--chrome-ink-soft);
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, background .2s ease, border-color .2s ease, transform .12s ease;
}
.theme-toggle:hover { color: var(--chrome-ink); background: var(--glass-bg-hover); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }

/* ---- App-icon tile (hero + CTA), CSS-rounded like an iOS squircle ---- */
.app-tile {
  border-radius: 22.37%; display: block;
  box-shadow: 0 14px 34px rgba(10, 20, 60, 0.28);
  outline: 1px solid var(--app-tile-ring); outline-offset: -1px;
}
.hero__app { width: 82px; height: 82px; margin: 0 auto 26px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 84px 40px 100px; text-align: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-pill);
  background: var(--hero-pill-bg); border: 1px solid var(--hero-pill-border);
  margin-bottom: 28px;
}
.hero__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16); }
.hero__pill span {
  font-family: var(--font-mono); font-size: 12px; color: var(--chrome-ink-soft);
  letter-spacing: 0.04em;
}
.hero__title {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: clamp(38px, 7vw, 64px); line-height: 1.04; letter-spacing: -0.03em;
  color: var(--chrome-ink); margin: 0 auto 22px; max-width: 900px; text-wrap: balance;
}
.hero__sub {
  font-family: var(--font-body); font-size: clamp(17px, 2.4vw, 20px); line-height: 1.55;
  color: var(--chrome-ink-soft); margin: 0 auto 36px; max-width: 620px;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note {
  margin-top: 22px; font-family: var(--font-mono); font-size: 12px;
  color: var(--chrome-ink-mute); letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------------------
 * Sources strip
 * ------------------------------------------------------------------------- */
.sources { background: var(--surface-0); border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200); }
.sources .container { padding-top: 36px; padding-bottom: 36px; }
.sources__label {
  text-align: center; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 20px;
}
.sources__row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; }
.source-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 15px;
  color: var(--ink-700);
}
.source-chip .avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 12px; color: #fff;
  background: var(--grad-brand); border: 1px solid var(--line-200);
}
.source-chip .avatar--alt { background: var(--grad-cosmic); }
.source-chip .avatar--amber { background: linear-gradient(135deg, #F4A82C, #E8910C); }
.source-chip .avatar--teal { background: linear-gradient(135deg, #2BC6E6, #16A6C9); }
.source-chip .avatar--purple { background: linear-gradient(135deg, #A487FC, #6E3FF0); }

/* ----------------------------------------------------------------------------
 * Section header (eyebrow + title + optional lead)
 * ------------------------------------------------------------------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -0.02em; color: var(--ink-900);
}
.section-head p {
  margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-500);
}

/* ----------------------------------------------------------------------------
 * Features grid — the app's tabs, each led by its finalized brand icon.
 * ------------------------------------------------------------------------- */
.features { background: var(--surface-1); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-grid { gap: 22px; }

.feat {
  position: relative;
  background: var(--surface-0); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .25s ease, border-color .25s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat__icon {
  width: 62px; height: 62px; border-radius: var(--r-lg); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line-200);
}
.feat__icon img { width: 40px; height: 40px; }
.feat h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 20px;
  letter-spacing: -0.01em; color: var(--ink-900);
}
.feat p { font-size: 15px; line-height: 1.55; color: var(--ink-500); }
.feat__badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 10px; font-weight: var(--fw-semibold);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--dis-purple-100); color: var(--dis-purple-600);
}

/* ----------------------------------------------------------------------------
 * Differentiators grid (icon cards)
 * ------------------------------------------------------------------------- */
.diffs { background: var(--surface-0); }
.diffs__foot { text-align: center; margin-top: 32px; }
.grid-auto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.diff-card {
  background: var(--surface-0); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.diff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.diff-icon {
  width: 46px; height: 46px; border-radius: var(--r-md); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dis-blue-100); color: var(--dis-blue-600);
}
.diff-icon svg { width: 24px; height: 24px; }
.diff-icon--purple { background: var(--dis-purple-100); color: var(--dis-purple-600); }
.diff-card h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 19px;
  letter-spacing: -0.01em; color: var(--ink-900);
}
.diff-card p { font-size: 15px; line-height: 1.55; color: var(--ink-500); }
.diff-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.time-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-200);
}
.time-chip b { font-family: var(--font-mono); font-size: 12px; font-weight: var(--fw-semibold); color: var(--ink-700); }
.time-chip span { font-family: var(--font-display); font-size: 12px; font-weight: var(--fw-semibold); color: var(--ink-500); }

/* ----------------------------------------------------------------------------
 * Trending feed preview — StoryCard (standard) from components/content/StoryCard.jsx
 * ------------------------------------------------------------------------- */
.trending { background: var(--surface-1); }
.trending__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.trending__head h2 {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: clamp(26px, 3.6vw, 32px); letter-spacing: -0.02em; color: var(--ink-900);
}
.trending__filters { display: flex; gap: 8px; flex-wrap: wrap; }

.story-card {
  display: flex; flex-direction: column;
  background: var(--surface-0); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.story-card__thumb { position: relative; height: 184px; background-size: cover; background-position: center; flex: none; }
.story-card__body { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.story-card__meta { display: flex; align-items: center; gap: 8px; }
.story-card__cat {
  font-family: var(--font-display); font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cat, var(--dis-blue-500));
}
.cat-wdw { --cat: var(--cat-wdw); }
.cat-disneyland { --cat: var(--cat-disneyland); }
.cat-cruise { --cat: var(--cat-cruise); }
.cat-marvel { --cat: var(--cat-marvel); }
.cat-starwars { --cat: var(--cat-starwars); }
.cat-podcast { --cat: var(--cat-podcast); }
.story-card__title {
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 19px;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink-900); text-wrap: balance;
}
.story-card__excerpt {
  font-size: 14.5px; line-height: 1.5; color: var(--ink-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* SourceRow */
.source-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.source-row .avatar {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 10px; color: #fff;
  background: var(--grad-brand);
}
.source-row .name { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: 13px; color: var(--ink-700); }
.source-row .time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }
.source-row .time::before { content: "· "; color: var(--ink-300); }

/* MediaPill (over imagery) */
.media-pill {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-medium); line-height: 1;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(8, 12, 30, 0.62); color: #fff; backdrop-filter: blur(6px);
}
.media-pill svg { width: 12px; height: 12px; }

/* ----------------------------------------------------------------------------
 * CTA band (cosmic radial card) — from site.jsx CTA()
 * ------------------------------------------------------------------------- */
.cta-section { background: var(--surface-0); }
.cta-card {
  position: relative; max-width: 1080px; margin: 0 auto; overflow: hidden;
  border-radius: var(--r-2xl); background: var(--grad-cosmic-radial);
  padding: 64px 56px; box-shadow: var(--shadow-cosmic);
}
.cta-card__inner { position: relative; max-width: 560px; }
.cta-card__icon { width: 64px; height: 64px; margin-bottom: 22px; }
.cta-card h2 {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: clamp(30px, 4.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 16px;
}
.cta-card p { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); margin-bottom: 28px; }
.cta-card__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----------------------------------------------------------------------------
 * Footer — from site.jsx Footer()
 * ------------------------------------------------------------------------- */
.footer { background: var(--dis-navy-900); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 44px 40px; }
.footer__inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__brand { height: 26px; }
.footer__legal { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.4); line-height: 1.5; }

/* ----------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-auto { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .hero { padding: 72px 20px 80px; }
  .cta-card { padding: 44px 28px; }
  .footer { padding: 36px 20px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-auto, .trending .grid-3 { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Honor reduced-motion: drop press-scale, hover lifts, and smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:active { transform: none; }
  .feat:hover, .diff-card:hover, .story-card:hover { transform: none; }
}
