/* Tacet — site stylesheet. Zero external requests: no fonts, no
   CDN, no icons. Everything below is CSS + system font stacks.

   COLOR SOURCE OF TRUTH
   Dark tokens are copied verbatim from src/config/theme.ts, the
   `boldPlayful` preset (the app's "Bold & Playful" appearance) — same hexes,
   same names where practical. The three invariant tracking colors
   (--track-following / --track-waiting / --track-lost) are copied from the
   same file's `track` export; in the app these NEVER change with the theme,
   so this stylesheet never repurposes them for decoration — they only ever
   label the same tracking states they label on-device.

   Light tokens are a DERIVED adaptation, not a literal in-app preset: the
   app's "Bold & Playful" is a dark-only theme (there is no shipped light
   variant of it — the in-app light theme, "Clean Light", uses a green accent
   family instead). To keep this marketing site visually consistent with the
   Bold & Playful store plaques (violet + amber) in both color schemes, the
   light palette below keeps the same violet/amber hue family and reuses two
   values that already exist in theme.ts (`accent.inverse` #7c3aed as the
   light-mode link/accent color), darkened elsewhere only as needed for
   text-on-white contrast. This substitution is called out explicitly here
   so nobody mistakes it for an in-app screenshot of a "light Bold & Playful"
   mode that does not exist. */

:root {
  color-scheme: dark;

  /* surfaces */
  --s0: #12101c;
  --s1: #1c1830;
  --s2: #272140;
  --s3: #322a50;

  /* text */
  --text-primary: #f5f3ff;
  --text-secondary: #a5a0c2;

  /* accent (violet) + tertiary (amber) — verbatim boldPlayful.accent */
  --accent: #a78bfa;
  --accent-on: #2e1065;
  --accent-deep: #7c3aed;
  --accent-wash: rgba(167, 139, 250, 0.18);
  --tertiary: #fbbf24;
  --tertiary-on: #451a03;

  /* borders */
  --hairline: rgba(245, 243, 255, 0.08);
  --outline: #47406b;

  /* invariant tracking colors — verbatim `track` export, theme.ts */
  --track-following: #00ff00;
  --track-waiting: #ffb020;
  --track-lost: #ff3b30;

  /* type */
  --font-display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;

  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --s0: #faf9fc;
    --s1: #ffffff;
    --s2: #f1eef8;
    --s3: #e4defa;

    --text-primary: #1c1830;
    --text-secondary: #5b5578;

    --accent: #7c3aed; /* boldPlayful.accent.inverse, reused for contrast on white */
    --accent-on: #ffffff;
    --accent-deep: #5b21b6;
    --accent-wash: rgba(124, 58, 237, 0.1);
    --tertiary: #92400e; /* amber-800: #fbbf24 fails contrast as text on white */
    --tertiary-on: #fffbeb;

    --hairline: rgba(28, 24, 48, 0.08);
    --outline: #d8d2ee;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--s0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--s0) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--track-following);
  box-shadow: 0 0 6px var(--track-following);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.6rem;
  font-size: 0.92rem;
}

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

.nav-links a:hover {
  color: var(--text-primary);
}

@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
}

/* ---------- eyebrow / section headers (cue-line convention, shared with
   the store plaques: a small dot + glowing line above every heading,
   colored with tracking semantics when the section is about a state) ---- */

.cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 0.9rem;
}

.cue::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--cue-color, var(--accent));
  box-shadow: 0 0 8px var(--cue-color, var(--accent));
}

section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

section:last-of-type {
  border-bottom: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.5rem);
  line-height: 1.15;
  max-width: 20ch;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ---------- hero ---------- */

.hero {
  padding-top: 4.5rem;
  background: radial-gradient(
      120% 100% at 15% -10%,
      color-mix(in srgb, var(--accent) 22%, transparent),
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 100% 0%,
      color-mix(in srgb, var(--tertiary) 12%, transparent),
      transparent 55%
    );
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem);
  line-height: 1.03;
}

.hero .subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--text-primary);
  margin-top: 1.1rem;
}

.hero .lede {
  margin-top: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  color: var(--text-secondary);
  background: var(--s1);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tertiary);
}

.text-link {
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--outline);
  padding-bottom: 2px;
}

.text-link:hover {
  border-color: var(--accent);
}

/* ---------- tally signature ---------- */

.tally-card {
  background: var(--s1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
}

.tally-stage {
  position: relative;
  height: 120px;
  background: var(--s0);
  border-radius: 10px;
  border: 1px solid var(--hairline);
}

.tally-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.2rem;
  opacity: 0;
}

.tally-state .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}

.tally-state .label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tally-state .desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.tally-state .col {
  display: flex;
  flex-direction: column;
}

.s-following {
  color: var(--track-following);
}
.s-following .dot {
  background: var(--track-following);
  box-shadow: 0 0 10px var(--track-following);
}

.s-waiting {
  color: var(--track-waiting);
}
.s-waiting .dot {
  background: var(--track-waiting);
  box-shadow: 0 0 10px var(--track-waiting);
  animation: breathe 1.6s ease-in-out infinite;
}

.s-found {
  color: var(--track-following);
}
.s-found .dot {
  background: var(--track-following);
  box-shadow: 0 0 14px var(--track-following);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.82;
  }
}

/* crossfade cycle: 7.5s total, one state visible at a time */
.tally-anim .s-following {
  animation: showFollowing 7.5s ease-in-out infinite;
}
.tally-anim .s-waiting {
  /* Opacity crossfade only — the amber dot's own breathing pulse comes from
     the separate `.s-waiting .dot` rule above (a different element, so it
     doesn't collide with this row's opacity keyframes). Animating `breathe`
     here too would fight `showWaiting` for the `opacity` property and keep
     this row partly visible even while another state is showing. */
  animation: showWaiting 7.5s ease-in-out infinite;
}
.tally-anim .s-found {
  animation: showFound 7.5s ease-in-out infinite;
}

@keyframes showFollowing {
  0%,
  38% {
    opacity: 1;
  }
  46%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes showWaiting {
  0%,
  38% {
    opacity: 0;
  }
  46%,
  68% {
    opacity: 1;
  }
  76%,
  100% {
    opacity: 0;
  }
}
@keyframes showFound {
  0%,
  68% {
    opacity: 0;
  }
  76%,
  90% {
    opacity: 1;
  }
  96%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tally-stage.tally-anim {
    height: auto;
  }
  .tally-anim .tally-state {
    position: static;
    opacity: 1 !important;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--hairline);
  }
  .tally-anim .tally-state:last-child {
    border-bottom: none;
  }
  .s-waiting .dot {
    animation: none;
  }
}

.tally-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* ---------- media slot (explicit placeholder for real screenshots/video) */

.media-slot {
  border: 1.5px dashed var(--outline);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg,
    var(--s1),
    var(--s1) 10px,
    var(--s2) 10px,
    var(--s2) 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

.media-slot strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.media-slot.video {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 3rem auto 0;
}

.media-slot.screenshot {
  aspect-ratio: 1206 / 2622;
  max-width: 240px;
  margin: 1.5rem auto 0;
}

/* ---------- mechanism ---------- */

.mech-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 760px) {
  .mech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mech-card {
  background: var(--s1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.mech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
}

.mech-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mech-card h3 {
  font-size: 1.3rem;
  margin: 1rem 0 0.6rem;
}

.mech-card p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- creators ---------- */

.creators-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .creators-grid {
    grid-template-columns: 1fr 0.75fr;
  }
}

.feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.feature-list .mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.feature-list p {
  margin: 0;
  color: var(--text-secondary);
}

.feature-list strong {
  color: var(--text-primary);
}

/* ---------- honest banner ---------- */

.honest {
  background: var(--s1);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 3.5rem 0;
}

.honest-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.honest h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  max-width: 16ch;
}

.honest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 26rem;
}

.honest-tags span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  color: var(--text-secondary);
}

/* ---------- faq ---------- */

.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 1.4rem 0;
}

.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- footer ---------- */

footer {
  padding: 3.5rem 0 4rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 32ch;
  font-size: 0.92rem;
  margin: 0.6rem 0 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* ---------- simple document pages (privacy / support) ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.doc .eff {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0 0 2rem;
  font-family: var(--font-mono);
}

.doc h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 2.2rem 0 0.5rem;
  max-width: none;
}

.doc p {
  margin: 0.5rem 0;
}

.doc .lede {
  font-size: 1.08rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.back-link:hover {
  color: var(--text-primary);
}


/* Link powrotny do strony marki (dodany 2026-08-20, TASK-44).
   Wyciszony celowo: to droga wyjscia, nie zaproszenie — strona produktu ma trzymac
   uwage na produkcie. Ta sama waga co reszta nawigacji, inny kolor. */
.site-nav .nav-brand {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  opacity: 0.85;
}
.site-nav .nav-brand:hover,
.site-nav .nav-brand:focus-visible { color: var(--accent); opacity: 1; }
