/* Cardchase: shared styles */
:root {
  --blue: #1e5aa8;
  --blue-dark: #174a8c;
  --blue-bright: #2f7de1;
  --blue-light: #6aa6e8;
  --blue-tint: #eaf1fb;
  --navy: #0b1f5c;
  --navy-deep: #06112f;
  --ink: #0e1116;
  --ink-soft: #4f5662;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --green: #11915a;
  --gold: #f5b82e;
  --radius: 16px;
  --shadow: 0 10px 34px rgba(8, 20, 54, .14);
  --maxw: 1120px;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff !important;
  font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 9px 18px; font-size: .9rem; }
.btn.ghost { background: #fff; color: var(--blue) !important; border: 2px solid var(--blue); }
.btn.ghost:hover { background: var(--blue-tint); }
.store-badge img { height: 54px; width: auto; }
.store-badges { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.store-badges img { height: 54px; width: auto; }

/* ---------- Hero ----------
   Navy like the store screenshots, with the same faint dot grid. */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(ellipse 70% 60% at 75% 40%, #1f4fb8 0%, rgba(31,79,184,0) 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px;
  align-items: center; padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.hero h1 em { color: var(--blue-light); font-style: normal; }
.hero h1, h2.section-title, .article-hero h1 { text-wrap: balance; }
.hero .lede { margin: 20px 0 28px; font-size: 1.15rem; color: #c9d5ee; max-width: 33em; }
.hero .lede a { color: #fff; text-decoration: underline; text-underline-offset: .14em; text-decoration-color: rgba(255,255,255,.4); }
.hero .lede-mobile { display: none; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-facts li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .86rem; font-weight: 600; color: #dfe7f7; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 290px; }
.hero-art .fan { position: absolute; width: 58%; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.hero-art .fan.left { left: -30%; top: 20%; transform: rotate(-12deg); }
.hero-art .fan.right { right: -34%; top: 28%; transform: rotate(11deg); }
@media (min-width: 861px) and (max-width: 1100px) {
  .hero-art { max-width: 250px; }
  .hero-art .fan.left { left: -18%; }
  .hero-art .fan.right { right: -18%; }
}
.hero .qr-cta { color: #b9c6e3; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 36px; padding-bottom: 56px; gap: 40px; }
  .hero h1 br { display: none; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .hero-facts { justify-content: center; }
  .hero .lede-full { display: none; }
  .hero .lede-mobile { display: block; margin: 14px auto 22px; }
  .hero-art { max-width: 220px; }
  .hero-art .fan { width: 52%; }
  .hero-art .fan.left { left: -30%; }
  .hero-art .fan.right { right: -30%; }
}
@media (max-width: 420px) {
  .hero-art .fan.left { left: -22%; }
  .hero-art .fan.right { right: -22%; }
}
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; padding: 18px 20px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.trust-strip span::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* iPhone-style frame around an app screen */
.phone { position: relative; z-index: 1; padding: 11px; background: #0b0c0e; border-radius: 48px; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 2px #2a2d33 inset; }
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 38px; }
.phone::before { content: ""; position: absolute; top: 3.2%; left: 50%; transform: translateX(-50%); width: 27%; aspect-ratio: 3.4 / 1; background: #000; border-radius: 999px; z-index: 2; }
@media (max-width: 560px) { .phone { padding: 9px; border-radius: 40px; } .phone img { border-radius: 32px; } }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--bg-soft); }
.kicker { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
h2.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em; margin: 8px 0 12px; }
.section-sub { color: var(--ink-soft); max-width: 46em; font-size: 1.06rem; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* ---------- Sports row ---------- */
.sports { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.sports a, .sports span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.sports a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- Feature rows (screen + copy) ---------- */
.feature-rows { display: grid; gap: 72px; margin-top: 56px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; text-align: left; }
.feature-row:nth-child(even) .feature-shot { order: 2; }
.feature-shot { justify-self: center; width: 100%; max-width: 290px; }
.feature-shot img { border-radius: 26px; box-shadow: var(--shadow); }
.feature-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -.02em; margin: 8px 0 12px; }
.feature-copy p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 14px; }
.feature-copy ul { list-style: none; display: grid; gap: 8px; }
.feature-copy li { color: var(--ink-soft); padding-left: 26px; position: relative; }
.feature-copy li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 800; }
@media (max-width: 860px) {
  .feature-rows { gap: 56px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature-row:nth-child(even) .feature-shot { order: 0; }
  .feature-shot { max-width: 250px; }
  .feature-copy ul { justify-items: center; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; text-align: left; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; text-align: left; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 44px auto 0; text-align: left; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.pro { border: 2px solid var(--blue); }
.plan h3 { font-size: 1.2rem; }
.plan .plan-sub { color: var(--ink-soft); font-size: .95rem; margin: 4px 0 16px; }
.plan ul { list-style: none; display: grid; gap: 9px; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 800; }
.plans-note { margin-top: 18px; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; text-align: left; }
.guide-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  color: var(--ink); transition: box-shadow .15s ease, transform .15s ease;
}
.guide-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card .tag { color: var(--blue); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.guide-card h3 { font-size: 1.05rem; line-height: 1.35; }
.guide-card p { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.guide-card .more { color: var(--blue); font-weight: 700; font-size: .9rem; }
@media (max-width: 980px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 4px 22px; }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; padding: 16px 0; list-style: none; position: relative; padding-right: 34px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .a { padding: 0 0 18px; color: var(--ink-soft); }
.faq-list .a a { font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  color: #fff; text-align: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, #1d4fb0 0%, var(--navy) 100%);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 12px; }
.cta-band p { max-width: 40em; margin: 0 auto 30px; font-size: 1.1rem; color: #d4def3; }
.cta-band .fineprint { font-size: .85rem; margin: 18px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0b0d; color: #b9bec7; padding: 56px 0 40px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-heading { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid #23262c; font-size: .8rem; color: #8a9099; line-height: 1.55; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Guide article pages ---------- */
.article-hero { background: var(--bg-soft); padding: 48px 0 40px; }
.breadcrumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.article-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; max-width: 24em; }
.article-hero .lede { margin-top: 16px; font-size: 1.12rem; color: var(--ink-soft); max-width: 42em; }
.article-meta { margin-top: 14px; color: var(--ink-soft); font-size: .88rem; }
.article { max-width: 780px; margin: 0 auto; padding: 48px 20px 20px; }
.article h2 { font-size: 1.55rem; line-height: 1.25; margin: 42px 0 14px; letter-spacing: -.015em; }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article p, .article li { color: #2c313a; font-size: 1.04rem; }
.article p { margin-bottom: 16px; }
.article a:not(.btn) { text-decoration: underline; text-underline-offset: .12em; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .97rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--bg-soft); }
.quick-answer {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 0 0 32px;
  color: #2c313a; font-size: 1.04rem;
}
.quick-answer strong:first-child { color: var(--blue-dark); }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.table-scroll table { min-width: 620px; margin: 0; }
.article .shot-inline { max-width: 290px; margin: 30px auto; }
.article .shot-inline img { border-radius: 24px; box-shadow: var(--shadow); }
.article .shot-inline figcaption { text-align: center; font-size: .86rem; color: var(--ink-soft); margin-top: 10px; }
.tip {
  background: var(--blue-tint); border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 24px 0;
}
.tip strong { color: var(--blue-dark); }
.tip a { color: var(--blue-dark); font-weight: 600; }
.inline-cta {
  color: #fff; border-radius: var(--radius); padding: 30px; margin: 36px 0; text-align: center;
  background: linear-gradient(160deg, #173f94 0%, var(--navy-deep) 100%);
}
.inline-cta h3 { font-size: 1.3rem; margin: 0 0 8px; }
.article .inline-cta p { color: #c9d5ee; margin-bottom: 18px; }
.related { background: var(--bg-soft); padding: 56px 0; margin-top: 56px; }
.related h2 { font-size: 1.4rem; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Side-scrolling strips (homepage screenshots) ----------
   The track scrolls natively with snap points; site.js adds the arrow
   buttons' behavior and the page dots. */
.carousel { --strip-w: 1300px; position: relative; max-width: var(--strip-w); margin: 36px auto 0; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px 20px 14px; scroll-padding-inline: 20px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.carousel-track > * { flex: 0 0 auto; scroll-snap-align: start; }
.carousel-track:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.carousel-btn { position: absolute; top: calc(50% - 35px); z-index: 2; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(8,20,54,.14); transition: opacity .2s; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { color: var(--blue); }
.carousel-btn.prev { left: clamp(-62px, calc((var(--strip-w) - 100vw) / 2 + 10px), 10px); }
.carousel-btn.next { right: clamp(-62px, calc((var(--strip-w) - 100vw) / 2 + 10px), 10px); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-btn[hidden], .carousel-dots[hidden] { display: none; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #d3d8e0; cursor: pointer; transition: width .2s, background-color .2s; }
.carousel-dots button.on { width: 22px; background: var(--blue); }
@media (hover: none) { .carousel-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } .carousel-dots button { transition: none; } }
.shot-slide { width: 280px; margin: 0; }
.shot-slide img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 6px 22px rgba(8,20,54,.13); }
.shot-slide figcaption { font-size: .92rem; color: var(--ink-soft); text-align: center; margin-top: 12px; font-weight: 600; }
@media (max-width: 560px) { .carousel-track { gap: 14px; } .shot-slide { width: 70vw; } }

/* ---------- Download prompts ---------- */
.qr-cta { display: none; }
@media (min-width: 861px) and (hover: hover) {
  .qr-cta { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .82rem; line-height: 1.3; max-width: 190px; text-align: left; }
  .qr-cta img { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 8px; padding: 4px; background: #fff; }
}
.guide-cta { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; margin: 0 0 32px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.guide-cta img { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; }
.article .guide-cta p { margin: 0; font-size: .98rem; flex: 1 1 260px; color: var(--ink-soft); }
.guide-cta p strong { color: var(--ink); }
.app-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgba(8,20,54,.2); }
.app-bar img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.app-bar-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; font-size: .82rem; color: var(--ink-soft); line-height: 1.25; }
.app-bar-text strong { color: var(--ink); font-size: .95rem; }
.app-bar-btn { flex: 0 0 auto; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; padding: 9px 14px; border-radius: 999px; }
.app-bar-btn:hover { text-decoration: none; }
.app-bar-close { flex: 0 0 auto; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; }
body.has-app-bar { padding-bottom: 84px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.025em; line-height: 1.15; }
.legal .updated { color: var(--ink-soft); margin: 8px 0 28px; font-size: .92rem; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #2c313a; margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); }
.article .sources li { font-size: .92rem; color: var(--ink-soft); margin-bottom: 6px; }
