/* MythicHoard website: one stylesheet for every page. Colors are the app's own tokens
   (mythichoard/lib/theme.dart AppColors: bg #0A0F1C, panel #111A2C, raised #1A2540, line #243150,
   text #E7ECF6, muted #98A5C3, accent #5CC8F2; section colors = the app's nav* colors; the heading
   gradient = the app's brand gradient); the light theme is derived from them for this site only
   (the app itself is dark). Fonts are self-hosted (no request to any other host). */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); }

:root {
  color-scheme: light dark;
  --bg: #F5F7FB;
  --panel: #FFFFFF;
  --raised: #EAF0F8;
  --line: #D8E0EE;
  --text: #0A0F1C;
  --muted: #4B5878;
  --accent: #0B79A8;
  --accent-soft: rgba(11, 121, 168, 0.10);
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(10, 15, 28, 0.06), 0 8px 24px rgba(10, 15, 28, 0.06);
  /* section colors: the app's nav colors, darkened for contrast on the light page */
  --c-scan: #0B79A8;
  --c-collection: #0B79A8;
  --c-decks: #7A4CD9;
  --c-search: #1B7F45;
  --c-stats: #8A6200;
  --c-tags: #557510;
  --grad: linear-gradient(90deg, #B7791F, #D0543A 35%, #7A4CD9 68%, #0B79A8);
  --phone-bezel: #0A0F1C;
  --phone-shadow: 0 2px 6px rgba(10, 15, 28, 0.18), 0 30px 60px -12px rgba(10, 15, 28, 0.35);
  --glow-a: rgba(11, 121, 168, 0.20);
  --glow-b: rgba(122, 76, 217, 0.12);
  --glow-c: rgba(208, 84, 58, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0F1C;
    --panel: #111A2C;
    --raised: #1A2540;
    --line: #243150;
    --text: #E7ECF6;
    --muted: #98A5C3;
    --accent: #5CC8F2;
    --accent-soft: rgba(92, 200, 242, 0.14);
    --on-accent: #03131B;
    --shadow: none;
    --c-scan: #5CC8F2;
    --c-collection: #5CC8F2;
    --c-decks: #B48CF2;
    --c-search: #5FD38A;
    --c-stats: #F2C94C;
    --c-tags: #B5D954;
    --grad: linear-gradient(90deg, #F9D976, #F39F86 35%, #B8A1F5 68%, #7FD3F2);
    --phone-bezel: #02040A;
    --phone-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px -10px rgba(0, 0, 0, 0.7);
    --glow-a: rgba(92, 200, 242, 0.20);
    --glow-b: rgba(180, 140, 242, 0.16);
    --glow-c: rgba(243, 159, 134, 0.10);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* header */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* buttons */
.button { display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.button.ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--accent); filter: none; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 64px 56px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 50% at 76% 45%, var(--glow-a), transparent 70%),
    radial-gradient(30% 40% at 58% 80%, var(--glow-b), transparent 70%),
    radial-gradient(30% 40% at 12% 15%, var(--glow-c), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 32px; }
.hero h1 { margin: 18px 0 16px; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
.grad { white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pitch { margin: 0; max-width: 560px; font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 14px 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta .button { margin-top: 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; }
.platforms svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* phone frame (drawn in CSS) around a real app screenshot */
.phone { margin: 0; padding: 7px; border-radius: 34px; background: var(--phone-bezel); box-shadow: var(--phone-shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px;
  /* a black screen margin inside the rounded corners, so the corners never clip the screenshot's own content */
  box-sizing: border-box; padding: 5% 3.5%; background: #000; }
.hero-phones { position: relative; height: 580px; }
.hero-phones .phone { position: absolute; top: 50%; left: 50%; }
.hero-phones .front { width: 280px; transform: translate(-28%, -50%) rotate(3deg); z-index: 2; }
.hero-phones .back { width: 240px; transform: translate(-100%, -46%) rotate(-7deg); }

/* highlights strip */
.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 0 auto; padding-block: 18px; list-style: none; }
.strip-list li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 15px; }

/* features: alternating rows, one screenshot each */
.features { padding-block: 80px 24px; }
.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 10px; text-align: center; }
.section-sub { margin: 0 auto 8px; max-width: 640px; text-align: center; color: var(--muted); font-size: 18px; }
.feature { --c: var(--accent); display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 72px;
  padding: 56px 0; max-width: 900px; margin: 0 auto; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 270px minmax(0, 1fr); }
.feature.flip .phone { order: -1; }
.feature .phone, .shots .phone { position: relative; isolation: isolate; }
.feature .phone::before, .shots .phone::before { content: ""; position: absolute; inset: 6% -22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 34%, transparent), transparent); }
.eyebrow { margin: 0 0 8px; color: var(--c); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.feature h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.feature-text > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 18px; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 18%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(0.2em + 4px); width: 5px; height: 9px;
  border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* gallery of more screens */
.gallery { padding-block: 56px 72px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.shots figure { --c: var(--accent); margin: 0; }
.shots .phone { max-width: 220px; margin: 0 auto; padding: 6px; border-radius: 28px; }
.shots .phone img { border-radius: 22px; }
.shots figcaption { margin: 20px auto 0; max-width: 230px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5; }
.shots figcaption strong { display: block; color: var(--c); font-size: 17px; margin-bottom: 2px; }

/* the Windows app, in a CSS-drawn window */
.desktop { padding-block: 8px 72px; }
.eyebrow.center { text-align: center; color: var(--accent); }
.window { margin: 28px auto 0; max-width: 1000px; border-radius: 14px; overflow: hidden; background: var(--phone-bezel);
  box-shadow: var(--phone-shadow); border: 1px solid var(--line); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; background: #0D1424; color: #98A5C3; font-size: 12px; }
.window-bar img { width: 16px; height: 16px; }
.window-bar b { flex: 1; font-weight: 600; }
.window-bar i { position: relative; width: 40px; height: 34px; }
.window-bar i::before, .window-bar i::after { content: ""; position: absolute; left: 50%; top: 50%; border-color: #98A5C3; }
.window-bar .min::before { width: 10px; transform: translate(-50%, 0); border-top: 1px solid; }
.window-bar .max::before { width: 9px; height: 9px; transform: translate(-50%, -50%); border: 1px solid; }
.window-bar .close::before, .window-bar .close::after { width: 12px; border-top: 1px solid; }
.window-bar .close::before { transform: translate(-50%, 0) rotate(45deg); }
.window-bar .close::after { transform: translate(-50%, 0) rotate(-45deg); }
.window > img { display: block; width: 100%; height: auto; }

/* privacy band */
.privacy-band { padding-block: 0 48px; }
.band { display: flex; gap: 24px; align-items: flex-start; padding: 32px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--panel); box-shadow: var(--shadow); }
.band h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.band p { margin: 0; color: var(--muted); max-width: 700px; }
.band p.more { margin-top: 12px; font-weight: 600; }
.shield { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; }
.shield svg { width: 30px; height: 30px; stroke: var(--on-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* small icon tiles */
.dot { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--accent-soft); display: inline-grid; place-items: center; }
.dot svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* beta */
.beta { padding-block: 24px 88px; }
.beta-card { text-align: center; padding: 48px 24px; border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, var(--glow-a), transparent 70%),
    radial-gradient(40% 60% at 90% 100%, var(--glow-b), transparent 70%),
    var(--panel); box-shadow: var(--shadow); }
.beta-card img { width: 72px; height: 72px; }
.beta h2 { margin: 12px 0 10px; font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.015em; }
.beta p { margin: 0 auto 10px; max-width: 580px; color: var(--muted); }
.beta .button { margin-top: 14px; }

/* long text pages (privacy) */
.doc { padding-block: 48px 72px; }
.doc h1 { font-size: clamp(32px, 6vw, 42px); line-height: 1.15; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px 22px; box-shadow: var(--shadow); }
.summary ul { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--muted); }
code { font-size: 0.92em; background: var(--raised); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* 404 */
.notfound { padding-block: 96px; text-align: center; }
.notfound h1 { font-size: 48px; margin: 16px 0 8px; font-weight: 800; }
.notfound p { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .pitch { margin-inline: auto; }
  .cta, .platforms { justify-content: center; }
  .hero-phones { height: 540px; }
  .strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-list li { justify-content: flex-start; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature .phone, .feature.flip .phone { order: 0; width: 250px; margin: 0 auto; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-block: 36px 32px; }
  .hero-phones { height: 400px; }
  .hero-phones .front { width: 190px; }
  .hero-phones .back { width: 160px; }
  .phone { padding: 5px; border-radius: 26px; }
  .phone img { border-radius: 21px; }
  .cta { flex-direction: column; align-self: stretch; }
  .cta .button { text-align: center; }
  .strip-list { gap: 12px; padding-block: 16px; }
  .strip-list li { font-size: 14px; gap: 8px; }
  .features { padding-block: 56px 8px; }
  .feature { padding: 40px 0; }
  .feature .phone, .feature.flip .phone { width: 220px; }
  .feature-text > p:not(.eyebrow) { font-size: 17px; }
  .shots .phone { padding: 4px; border-radius: 20px; }
  .shots .phone img { border-radius: 16px; }
  .shots figcaption { font-size: 14px; }
  .band { flex-direction: column; padding: 24px 20px; gap: 16px; }
  .desktop { padding-bottom: 56px; }
  .window { border-radius: 10px; }
  .window-bar { height: 26px; font-size: 11px; }
  .window-bar i { width: 28px; height: 26px; }
  .beta-card { padding: 36px 18px; }
  .site-nav { gap: 14px; }
  .brand span { display: none; }
  .grad { white-space: normal; }
}
