/* Dusk — BlinkBreak design tokens (source: BlinkBreakDesignSystem/BlinkBreak Design System.dc.html)
   Dark appearance is primary; light overrides follow the design system's light palette. */
:root {
  color-scheme: dark;

  /* dark appearance (primary) */
  --base: #131010;
  --base-warm: #1d1613;
  --text: #f6ede6;
  --text-muted: rgba(246, 237, 230, .55);
  --text-soft: rgba(246, 237, 230, .65);
  --text-dim: rgba(246, 237, 230, .7);
  --text-faint: rgba(246, 237, 230, .45);
  --apricot: #ffc59b;
  --sunset: #ff9a70;
  --coral: #ff7d6b;
  --accent-text: #ffcda6;
  --status-ring: #ffb586;
  --ink-on-accent: #2a130a;
  --glass-fill: rgba(255, 255, 255, .05);
  --glass-border: rgba(255, 255, 255, .08);
  --tint-fill: rgba(255, 197, 155, .09);
  --tint-border: rgba(255, 197, 155, .16);
  --button-fill: rgba(255, 255, 255, .06);
  --button-border: rgba(255, 255, 255, .1);
  --hairline: rgba(255, 255, 255, .07);
  --icon-chip-fill: rgba(255, 197, 155, .14);
  --callout-fill: rgba(255, 197, 155, .08);
  --callout-text: #ffe0c8;
  --preview-bg: linear-gradient(170deg, #221915, #141010);

  /* gradients & effects */
  --accent-gradient: linear-gradient(145deg, #ffc59b, #ff9a70);
  --ring-gradient: linear-gradient(145deg, #ffc59b, #ff7d6b);
  --accent-glow: 0 8px 24px rgba(255, 158, 109, .35);
  --pill-shadow: 0 10px 28px rgba(255, 158, 109, .35);
  --pill-shadow-small: 0 6px 18px rgba(255, 158, 109, .3);
  --page-bg:
    radial-gradient(1200px 800px at 8% -5%, rgba(255, 158, 109, .14), transparent 60%),
    radial-gradient(1000px 700px at 100% 12%, rgba(255, 126, 126, .09), transparent 55%),
    linear-gradient(175deg, #1d1613, #131010);
  --legal-bg:
    radial-gradient(900px 600px at 10% -5%, rgba(255, 158, 109, .1), transparent 60%),
    linear-gradient(175deg, #1b1512, #131010);

  /* shape */
  --r-window: 26px;
  --r-card: 20px;
  --r-tile: 17px;
  --r-row: 11px;
  --r-pill: 999px;
}

/* light appearance (design system "light" palette: paper, ink, apricot L / sunset L)
   applied two ways: system preference (unless manually overridden to dark), and a
   manual [data-theme="light"] override. Keep both blocks in sync. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --base: #fbf5ee;
    --base-warm: #f3e8dd;
    --text: #3a2519;
    --text-muted: rgba(58, 37, 25, .55);
    --text-soft: rgba(58, 37, 25, .66);
    --text-dim: rgba(58, 37, 25, .72);
    --text-faint: rgba(58, 37, 25, .45);
    --apricot: #ffab73;
    --sunset: #f4763f;
    --coral: #f4763f;
    --accent-text: #c25a2b;
    --status-ring: #f4763f;
    --ink-on-accent: #ffffff;
    --glass-fill: rgba(255, 255, 255, .7);
    --glass-border: rgba(58, 37, 25, .08);
    --tint-fill: rgba(194, 90, 43, .07);
    --tint-border: rgba(194, 90, 43, .18);
    --button-fill: rgba(58, 37, 25, .05);
    --button-border: rgba(58, 37, 25, .12);
    --hairline: rgba(58, 37, 25, .1);
    --icon-chip-fill: rgba(244, 118, 63, .12);
    --callout-fill: rgba(194, 90, 43, .07);
    --callout-text: #8a4526;
    --preview-bg: linear-gradient(170deg, #f3e8dd, #faf1e8);

    --accent-gradient: linear-gradient(145deg, #ffab73, #f4763f);
    --ring-gradient: linear-gradient(145deg, #ffab73, #f4763f);
    --accent-glow: 0 8px 24px rgba(244, 118, 63, .3);
    --pill-shadow: 0 10px 28px rgba(244, 118, 63, .28);
    --pill-shadow-small: 0 6px 18px rgba(244, 118, 63, .24);
    --page-bg:
      radial-gradient(1200px 800px at 8% -5%, rgba(244, 118, 63, .1), transparent 60%),
      radial-gradient(1000px 700px at 100% 12%, rgba(255, 126, 126, .07), transparent 55%),
      linear-gradient(175deg, #fbf5ee, #f3e8dd);
    --legal-bg:
      radial-gradient(900px 600px at 10% -5%, rgba(244, 118, 63, .07), transparent 60%),
      linear-gradient(175deg, #fbf5ee, #f3e8dd);
  }
}

/* manual light override — same tokens as the media block above */
:root[data-theme="light"] {
  color-scheme: light;

  --base: #fbf5ee;
  --base-warm: #f3e8dd;
  --text: #3a2519;
  --text-muted: rgba(58, 37, 25, .55);
  --text-soft: rgba(58, 37, 25, .66);
  --text-dim: rgba(58, 37, 25, .72);
  --text-faint: rgba(58, 37, 25, .45);
  --apricot: #ffab73;
  --sunset: #f4763f;
  --coral: #f4763f;
  --accent-text: #c25a2b;
  --status-ring: #f4763f;
  --ink-on-accent: #ffffff;
  --glass-fill: rgba(255, 255, 255, .7);
  --glass-border: rgba(58, 37, 25, .08);
  --tint-fill: rgba(194, 90, 43, .07);
  --tint-border: rgba(194, 90, 43, .18);
  --button-fill: rgba(58, 37, 25, .05);
  --button-border: rgba(58, 37, 25, .12);
  --hairline: rgba(58, 37, 25, .1);
  --icon-chip-fill: rgba(244, 118, 63, .12);
  --callout-fill: rgba(194, 90, 43, .07);
  --callout-text: #8a4526;
  --preview-bg: linear-gradient(170deg, #f3e8dd, #faf1e8);

  --accent-gradient: linear-gradient(145deg, #ffab73, #f4763f);
  --ring-gradient: linear-gradient(145deg, #ffab73, #f4763f);
  --accent-glow: 0 8px 24px rgba(244, 118, 63, .3);
  --pill-shadow: 0 10px 28px rgba(244, 118, 63, .28);
  --pill-shadow-small: 0 6px 18px rgba(244, 118, 63, .24);
  --page-bg:
    radial-gradient(1200px 800px at 8% -5%, rgba(244, 118, 63, .1), transparent 60%),
    radial-gradient(1000px 700px at 100% 12%, rgba(255, 126, 126, .07), transparent 55%),
    linear-gradient(175deg, #fbf5ee, #f3e8dd);
  --legal-bg:
    radial-gradient(900px 600px at 10% -5%, rgba(244, 118, 63, .07), transparent 60%),
    linear-gradient(175deg, #fbf5ee, #f3e8dd);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: 'Gantari', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background: var(--page-bg);
}

.page-legal {
  min-height: 100vh;
  background: var(--legal-bg);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* nav */
.nav {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.brand-glyph {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--accent-glow);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
}

.nav-links a { color: var(--text-dim); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* theme toggle — shows the mode you'll switch to (sun in dark, moon in light) */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--button-fill);
  border: 1px solid var(--button-border);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color .2s ease;
  flex: none;
}

.theme-toggle:hover { color: var(--text); }
.theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* buttons */
.pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--accent-gradient);
  color: var(--ink-on-accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--pill-shadow);
  transition: opacity .2s ease;
}

.pill-primary:hover { opacity: .92; }

.pill-primary.small { padding: 9px 18px; font-size: 13.5px; box-shadow: var(--pill-shadow-small); }

.pill-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  background: var(--button-fill);
  border: 1px solid var(--button-border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s ease;
}

.pill-secondary:hover { opacity: .8; }

/* type */
.overline {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.badge {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--tint-fill);
  border: 1px solid var(--tint-border);
}

.section { padding-top: 72px; }

.section h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}

.section-intro {
  font-size: 15.5px;
  color: var(--text-soft);
  margin: 12px 0 0;
  max-width: 560px;
  line-height: 1.55;
}

/* cards */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.glass-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
}

.stat-card { padding: 26px; }

.stat-card .big {
  font-size: 44px;
  font-weight: 200;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.stat-card .big span { font-size: 18px; font-weight: 500; }
.stat-card h3 { font-size: 15px; font-weight: 700; margin: 10px 0 0; }
.stat-card p { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5; }

.feature-card { padding: 24px; }

.feature-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--icon-chip-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
}

.feature-card h3 { font-size: 15.5px; font-weight: 700; margin: 14px 0 0; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5; }
.feature-card a { color: var(--accent-text); text-decoration: none; }

.style-card { overflow: hidden; }
.style-card .preview {
  height: 150px;
  position: relative;
  background: var(--preview-bg);
}
.style-card .caption { padding: 18px 20px; }
.style-card .caption h3 { font-size: 15px; font-weight: 700; margin: 0; }
.style-card .caption p { font-size: 13px; color: var(--text-muted); margin: 5px 0 0; line-height: 1.5; }

/* screenshots */
.shot {
  width: 100%;
  height: auto;
  display: block;
}

.shot-card { overflow: hidden; }
.shot-card figure { margin: 0; }
.shot-card img { width: 100%; height: auto; display: block; }
.shot-card figcaption { padding: 16px 20px 18px; }
.shot-card figcaption strong { font-size: 15px; font-weight: 700; display: block; }
.shot-card figcaption span { font-size: 13px; color: var(--text-muted); margin-top: 4px; display: block; line-height: 1.5; }

/* faq */
.faq details {
  border-radius: 16px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  margin-bottom: 10px;
  padding: 0 20px;
}

.faq summary {
  font-size: 15px;
  font-weight: 600;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
  padding-bottom: 17px;
}

.faq a { color: var(--accent-text); text-decoration: none; }

/* download band */
.cta-band {
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--tint-fill), transparent 70%),
    var(--glass-fill);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.cta-band .halo {
  position: absolute;
  left: 50%;
  top: -90px;
  width: 280px;
  height: 280px;
  margin-left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tint-fill), transparent 70%);
  animation: bbBreathe 6s ease-in-out infinite;
}

.cta-band h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
  position: relative;
}

.cta-band p {
  font-size: 15.5px;
  color: var(--text-soft);
  margin: 14px auto 0;
  max-width: 440px;
  position: relative;
  line-height: 1.55;
}

.cta-band .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  position: relative;
  flex-wrap: wrap;
}

.cta-band .fine-print {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
  position: relative;
}

.hero-note { font-size: 12.5px; color: var(--text-muted); }

/* footer */
.footer { border-top: 1px solid var(--hairline); }

.footer .inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.footer a { color: var(--text-soft); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 22px; }

/* legal pages */
.legal-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header .cross-link { font-size: 13px; color: var(--text-soft); text-decoration: none; }
.legal-header .cross-link:hover { color: var(--text); }

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 32px 80px;
}

.legal-body h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.legal-body .effective { font-size: 13px; color: var(--text-faint); margin: 10px 0 0; }
.legal-body h2 { font-size: 21px; font-weight: 700; margin: 32px 0 0; }
.legal-body h2:first-of-type { margin-top: 38px; }
.legal-body p { font-size: 15px; color: var(--text-dim); line-height: 1.65; margin: 10px 0 0; }
.legal-body a { color: var(--accent-text); text-decoration: none; }

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--callout-fill);
  border: 1px solid var(--tint-border);
  font-size: 15px;
  line-height: 1.6;
  color: var(--callout-text);
}

/* motion — only opacity, scale, dash-offset; never position */
@keyframes bbBreathe {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

details summary::-webkit-details-marker { display: none; }

/* responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links .nav-anchor { display: none; }
  .footer .inner { flex-direction: column; }
}
