/* DeckLogic product site — single-file design system (Catppuccin Mocha). */

/* ============ tokens ============ */
@font-face {
  font-family: "InterVar";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Color comes from the shared tokens.css (linked before this file):
   dark = :root (Blueprint), light = [data-theme="blueprint-light"].
   The names below are site-local aliases; --accent/--accent-2/--border/
   --text are consumed directly from the shared tokens. */
:root {
  --bg: var(--surface-0);
  --bg-raise: var(--surface-1);
  --panel: var(--surface-2);
  --panel-2: var(--surface-3);
  --muted: var(--text-muted);
  --dim: var(--text-dim);
  --good: var(--status-good);
  --warn: var(--status-warn);
  --bad: var(--status-danger);
  --radius: 12px;
  --radius-lg: 18px;
  --font: "InterVar", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --w: 1080px;
}

/* ============ base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--panel); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6em;
}
.lede { color: var(--muted); font-size: 1.15rem; max-width: 46rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ============ header / footer ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 20, 32, 0.82);
  background: rgb(from var(--surface-0) r g b / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 79, 110, 0.5);
  border-bottom: 1px solid rgb(from var(--border) r g b / 0.5);
}
.site-header nav {
  max-width: var(--w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.site-header ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.site-header ul a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-header ul a.active, .site-header ul a:hover { color: var(--text); text-decoration: none; }
.theme-toggle {
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 2px 9px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border); }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 48px 20px 32px; background: var(--bg-raise); }
.foot-grid { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; }
.site-footer h3 { color: var(--text); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer, .site-footer a { color: var(--muted); font-size: 0.92rem; }
.brandline { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.legal {
  max-width: var(--w);
  margin: 28px auto 0;
  font-size: 0.8rem;
  color: var(--dim);
  border-top: 1px solid rgb(from var(--border) r g b / 0.4);
  padding-top: 20px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============ buttons / cards / badges ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-bright); text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }

.card { background: var(--panel); border: 1px solid rgba(56, 79, 110, 0.6); border: 1px solid rgb(from var(--border) r g b / 0.6); border-radius: var(--radius-lg); padding: 26px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--muted);
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ hero ============ */
.hero { padding: 88px 0 56px; }
.hero .lede { font-size: 1.25rem; }

/* ============ product shots (mockups) ============ */
.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raise);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.shot figcaption { padding: 10px 16px; font-size: 0.85rem; color: var(--dim); border-top: 1px solid rgb(from var(--border) r g b / 0.4); }
/* Mockup primitives are PINNED to jewel-dark literals: product shots
   depict the app's default theme and do not follow the site theme. */
.shot .surface {
  aspect-ratio: 16 / 9;
  position: relative;
  background: radial-gradient(120% 90% at 70% 10%, #1b2b47 0%, #0d1420 60%);
}
.hud-panel {
  position: absolute;
  background: rgba(13, 20, 32, 0.86);
  border: 1px solid rgba(242, 85, 125, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.78rem;
  backdrop-filter: blur(4px);
  color: #eef2f9;
}
.hud-panel .label { color: #77879f; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.meter { height: 8px; border-radius: 4px; background: #23334d; overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, #f2557d, #06d6a0); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.pill.good { background: rgba(6, 214, 160, 0.15); color: #06d6a0; }
.pill.warn { background: rgba(255, 209, 102, 0.15); color: #ffd166; }
.pill.bad { background: rgba(255, 71, 87, 0.18); color: #ff6b78; }
.mini-card { position: relative; border-radius: 6px; background: #23334d; border: 1px solid #384f6e; }
.mini-card::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 9%;
  right: 9%;
  height: 44%;
  border-radius: 3px;
  background: linear-gradient(135deg, #35415c, #1d2940);
}
.mini-card::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 9%;
  right: 9%;
  height: 26%;
  background: repeating-linear-gradient(to bottom, #38445f 0 3px, transparent 3px 9px);
  opacity: 0.55;
}
.score { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ============ download page ============ */
.dl-state { text-align: center; padding: 40px 20px; }
.dl-state h2 { margin-bottom: 0.35em; }
.asset-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; margin-bottom: 14px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 54px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 24px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #11111b;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ faq ============ */
details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "\2013"; }
details > div { padding: 0 20px 16px; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* ============ tables (privacy page) ============ */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(69, 71, 90, 0.5); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* ============ cta band ============ */
.cta-band {
  background: linear-gradient(135deg, rgba(137, 180, 250, 0.10), rgba(180, 190, 254, 0.05));
  border: 1px solid rgba(137, 180, 250, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}

/* SHARE-1 share-link page. */
.share-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.share-chip {
  border: 1px solid rgba(137, 180, 250, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
}
.share-chip strong {
  opacity: 0.7;
  font-weight: 600;
}
.share-cards {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.share-cards li {
  break-inside: avoid;
  padding: 2px 0;
}
.share-note {
  margin-top: 24px;
  opacity: 0.7;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .share-cards {
    columns: 1;
  }
}
