/* Bardstar — shared styles. Hand-written, no build step. */

:root {
  color-scheme: light;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;

  /* Light (default): soft cool off-white, not stark white */
  --bg: #f2f1f6;
  --bg-2: #eae9f0;
  --surface: #f9f9fb;
  --surface-2: #f3f3f7;
  --text: #0c0c14;
  --text-2: #464655;
  --text-3: #62627a;
  --line: rgba(12, 12, 40, 0.10);
  --line-2: rgba(12, 12, 40, 0.16);
  --shadow-sm: 0 1px 2px rgba(12, 12, 40, 0.06), 0 1px 1px rgba(12, 12, 40, 0.04);
  --shadow: 0 1px 2px rgba(12, 12, 40, 0.05), 0 8px 24px -6px rgba(12, 12, 40, 0.10), 0 24px 64px -24px rgba(12, 12, 40, 0.16);
  --shadow-lg: 0 2px 4px rgba(12, 12, 40, 0.04), 0 24px 48px -12px rgba(12, 12, 40, 0.18), 0 48px 120px -40px rgba(12, 12, 40, 0.28);

  /* Brand (Bardstar hub): night indigo + star gold */
  --accent: #5b46f0;
  --accent-2: #8a6dff;
  --accent-3: #4a2fd6;
  --accent-ink: #ffffff;
  --accent-soft: rgba(107, 78, 255, 0.10);
  --gold: #f5b83d;
  --gold-soft: rgba(245, 184, 61, 0.16);
  --ok: #15803d;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gutter: clamp(20px, 4vw, 32px);
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* Dark: chosen with the header toggle (html[data-theme="dark"], set by /assets/theme.js) */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #09090e;
    --bg-2: #0f0f16;
    --surface: #13131b;
    --surface-2: #181822;
    --text: #f3f3f8;
    --text-2: #cfcfdb;
    --text-3: #a4a4b6;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 80px -20px rgba(0, 0, 0, 0.7);
    --accent: #8a74ff;
    --accent-soft: rgba(138, 116, 255, 0.16);
    --gold-soft: rgba(245, 184, 61, 0.14);
    --ok: #4ade80;
}

/* Per-product accents (set on <body>) */
.theme-yapstar { --accent: #6b4eff; --accent-2: #8a6dff; --accent-3: #4a2fd6; --accent-soft: rgba(107, 78, 255, 0.10); }
.theme-recap  { --accent: #0e9384; --accent-2: #2dd4bf; --accent-3: #0b6b62; --accent-soft: rgba(14, 147, 132, 0.10); }
.theme-cue   { --accent: #e5532d; --accent-2: #ff8a5b; --accent-3: #b93a1a; --accent-soft: rgba(229, 83, 45, 0.10); }
.theme-tally  { --accent: #2f7d32; --accent-2: #6fcf73; --accent-3: #1f5c22; --accent-soft: rgba(47, 125, 50, 0.10); }
.theme-flick { --accent: #d6336c; --accent-2: #ff6fa3; --accent-3: #a61e4d; --accent-soft: rgba(214, 51, 108, 0.10); }
[data-theme="dark"] .theme-yapstar { --accent: #8a74ff; --accent-soft: rgba(138, 116, 255, 0.16); }
[data-theme="dark"] .theme-recap  { --accent: #2dd4bf; --accent-soft: rgba(45, 212, 191, 0.14); }
[data-theme="dark"] .theme-cue   { --accent: #ff7a50; --accent-soft: rgba(255, 122, 80, 0.14); }
[data-theme="dark"] .theme-tally  { --accent: #6fcf73; --accent-soft: rgba(111, 207, 115, 0.14); }
[data-theme="dark"] .theme-flick { --accent: #ff6fa3; --accent-soft: rgba(255, 111, 163, 0.14); }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 620; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* Clearly visible selection in both themes (the near-black accent made it invisible). */
::selection { background: #b3d4ff; color: #0b0c10; -webkit-text-fill-color: #0b0c10; }
:root[data-theme="dark"] ::selection { background: #3b5bdb; color: #fff; -webkit-text-fill-color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

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

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; font-size: 17px; white-space: nowrap; }
.brand img, .brand svg { width: 28px; height: 28px; border-radius: 8px; }
.brand svg.logotype { width: auto; height: 24.2px; border-radius: 0; display: block; color: var(--text); }
.brand .by { color: var(--text-3); font-weight: 500; font-size: 13px; letter-spacing: 0; }
@media (max-width: 640px) { .brand .by { display: none; } }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:not(.btn):hover { color: var(--text); background: var(--bg-2); }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }
/* product pages: Bardstar > App breadcrumb in the header */
.crumbs { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.crumbs .brand svg.logotype { height: 19px; opacity: .72; transition: opacity .2s; }
.crumbs .brand:hover svg.logotype { opacity: 1; }
.crumb-sep { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.brand-app img { width: 26px; height: 26px; border-radius: 24%; }
@media (max-width: 480px) { .brand-app span { display: none; } .crumbs { gap: 6px; } .crumbs .brand svg.logotype { height: 17px; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent) 55%, var(--accent-3));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 -1px 0 rgba(0,0,0,.15) inset, 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 -1px 0 rgba(0,0,0,.15) inset, 0 10px 28px -6px color-mix(in srgb, var(--accent) 80%, transparent); transform: translateY(-1px); }
.btn-dark { color: var(--bg); background: var(--text); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); transform: translateY(-1px); }
.btn-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { text-decoration: underline; }
.btn-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- type helpers */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--accent);
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.kicker { font-size: 12.5px; font-weight: 620; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.display { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
.h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 620; }
.h3 { font-size: clamp(19px, 1.7vw, 21px); letter-spacing: -0.015em; font-weight: 620; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); letter-spacing: -0.005em; }
.grad-text {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- layout */

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lead { margin-top: 16px; }
.section-head { max-width: 640px; }
.section-alt { background: var(--bg-2); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); position: relative; min-width: 0;
}
:where(.card) h3 { margin-bottom: 8px; }
:where(.card) p { color: var(--text-2); font-size: 17px; line-height: 1.6; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.icon-tile svg { width: 22px; height: 22px; }

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

.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 45% at 20% 20%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    radial-gradient(35% 40% at 80% 10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(50% 50% at 60% 60%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-split { grid-template-columns: minmax(0, 1fr); } }
.hero-copy .display { margin: 24px 0 18px; }
.hero-copy .lead { max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.fine { font-size: 13.5px; color: var(--text-3); margin-top: 16px; }
.fine span + span::before { content: "·"; margin: 0 8px; }

/* ---------------------------------------------------------------- dev banner */

.dev-banner {
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
  padding: 10px var(--gutter); font-size: 14px; color: var(--text-2);
  background: linear-gradient(90deg, var(--accent-soft), var(--gold-soft), var(--accent-soft));
  border-bottom: 1px solid var(--line);
}
.dev-banner strong { color: var(--text); font-weight: 650; }
.dev-banner .tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: var(--text); color: var(--bg); }

/* ---------------------------------------------------------------- waitlist form */

.waitlist { margin-top: 32px; max-width: 520px; }
.wl-row {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.wl-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.wl-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 16px; outline: none; }
.wl-row input::placeholder { color: var(--text-3); }
.wl-row .btn { flex: none; }
.wl-more { margin-top: 12px; }
.wl-more label { display: block; font-size: 14px; color: var(--text-2); margin: 0 0 6px 14px; }
.wl-more textarea {
  width: 100%; resize: vertical; min-height: 64px; max-height: 200px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; outline: none;
}
.wl-more textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { min-height: 22px; margin: 10px 0 0 14px; font-size: 14px; color: var(--text-3); }
.wl-msg.error { color: #d93025; }
[data-theme="dark"] .wl-msg.error { color: #ff7b72; }
.waitlist.is-center { margin-left: auto; margin-right: auto; }
@media (max-width: 480px) {
  .wl-row { flex-direction: column; border-radius: 20px; padding: 8px; }
  .wl-row input { height: 46px; }
  .wl-row .btn { width: 100%; }
}

.wl-done {
  display: none; margin-top: 32px; max-width: 520px; padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  animation: pop .5s var(--ease);
}
.waitlist-wrap.done .waitlist { display: none; }
.waitlist-wrap.done .wl-done { display: block; }
.wl-done .pos { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 30px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.wl-done .pos b { color: var(--accent); }
.wl-done p { color: var(--text-2); margin-top: 8px; font-size: 15.5px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.share-link {
  margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-2); font-family: var(--mono); font-size: 13px; color: var(--text-2); overflow: hidden;
}
.share-link svg { width: 16px; height: 16px; flex: none; }
.share-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-center .wl-done, .wl-done.is-center { margin-left: auto; margin-right: auto; text-align: left; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price-card { display: flex; flex-direction: column; gap: 0; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.price-card .tier { font-weight: 650; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.badge { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: 0; }
.badge-gold { background: var(--gold-soft); color: #b07a0c; }
[data-theme="dark"] .badge-gold { color: var(--gold); }
.amount { font-family: var(--font-display); font-size: 44px; font-weight: 650; letter-spacing: -0.03em; margin: 18px 0 2px; line-height: 1; }
.amount small { font-size: 16px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.price-sub { color: var(--text-3); font-size: 14.5px; min-height: 22px; }
.checks { list-style: none; margin: 24px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; color: var(--text-2); }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/18px no-repeat;
}
.checks li.off { color: var(--text-3); }
.checks li.off::before { background: var(--text-3); opacity: .5; }
.price-card .btn { margin-top: auto; width: 100%; }
.toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin: 0 auto 32px;
}
.toggle button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text-2); cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center;
}
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.toggle .save { font-size: 11.5px; color: var(--ok); font-weight: 700; }

.plan-note {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 880px; margin: 0 auto;
}

/* ---------------------------------------------------------------- FAQ */

.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 17.5px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 24px; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 680px; }
.faq .answer p + p { margin-top: 10px; }

/* ---------------------------------------------------------------- final CTA */

.final-cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(48px, 8vw, 96px) var(--gutter);
  text-align: center; color: #fff;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(50% 70% at 90% 100%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 60%),
    linear-gradient(135deg, var(--accent-2), var(--accent) 45%, var(--accent-3));
  box-shadow: var(--shadow-lg);
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.88); margin: 14px auto 0; max-width: 520px; font-size: 18px; }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-white { background: #fff; color: #111; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.final-cta .btn-white:hover { transform: translateY(-1px); }
.final-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.final-cta .btn-outline:hover { background: rgba(255,255,255,.16); }
.final-cta .fine { color: rgba(255,255,255,.7); }

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

.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14.5px; color: var(--text-2); margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer h4 { font-size: 13px; font-weight: 650; color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .tagline { margin-top: 12px; max-width: 280px; color: var(--text-3); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }

/* ---------------------------------------------------------------- prose (legal) */

.prose { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
.prose h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.025em; font-weight: 650; margin-bottom: 12px; }
.prose .updated { color: var(--text-3); font-size: 14.5px; margin-bottom: 40px; }
.prose h2 { font-size: 21px; margin: 44px 0 12px; letter-spacing: -0.015em; font-weight: 620; }
.prose p, .prose li { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose .summary { padding: 20px 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.prose .summary p { color: var(--text); }

/* ---------------------------------------------------------------- mock window (shared by visuals) */

.window {
  position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0;
}
.window-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar .lights { display: flex; gap: 7px; }
.window-bar .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar .lights i:nth-child(2) { background: #febc2e; }
.window-bar .lights i:nth-child(3) { background: #28c840; }
.window-bar .title { flex: 1; text-align: center; font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stage { position: relative; padding: clamp(16px, 3vw, 28px); border-radius: var(--radius-xl); }
.stage::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(70% 70% at 50% 40%, var(--accent-soft), transparent 75%);
}

/* ---------------------------------------------------------------- reveal on scroll */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- 404 */

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
.notfound .big { font-family: var(--font-display); font-size: clamp(80px, 14vw, 140px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }

/* ---------------------------------------------------------------- download buttons (Mac / Windows) */

.dl-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.dl-btn {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 262px; max-width: 350px;
  display: inline-flex; align-items: center; gap: 17px;
  min-height: 82px; padding: 13px 32px 13px 27px; border-radius: 24px;
  color: #fff; text-decoration: none; line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, .14);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease);
}
.dl-btn svg { width: 35px; height: 35px; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.dl-btn .dl-txt { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.dl-btn .dl-txt small { font-size: 15px; font-weight: 600; letter-spacing: .02em; opacity: .88; }
.dl-btn .dl-txt b { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.dl-btn::after {
  /* light sweep on hover */
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-160%) skewX(-18deg); transition: transform .8s var(--ease);
}
.dl-btn:hover::after, .dl-btn:focus-visible::after { transform: translateX(330%) skewX(-18deg); }
.dl-btn:hover, .dl-btn:focus-visible { transform: translateY(-2px); }
.dl-btn:active { transform: translateY(0) scale(.99); }
.dl-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 24px; }

.dl-mac {
  background: linear-gradient(120deg, #0c1541 0%, #251a66 42%, #8f1f7e 78%, #c9267f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 30px -12px rgba(170, 34, 128, .65), 0 2px 6px -2px rgba(12, 21, 65, .5);
}
.dl-mac:hover, .dl-mac:focus-visible { box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 20px 44px -12px rgba(214, 48, 140, .75), 0 0 0 5px rgba(214, 48, 140, .14); }
.dl-win {
  background: linear-gradient(120deg, #003a94 0%, #0a64e0 50%, #1d8fff 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 30px -12px rgba(10, 108, 240, .7), 0 2px 6px -2px rgba(0, 58, 148, .45);
}
.dl-win:hover, .dl-win:focus-visible { box-shadow: 0 1px 0 rgba(255,255,255,.24) inset, 0 20px 44px -12px rgba(29, 143, 255, .8), 0 0 0 5px rgba(29, 143, 255, .16); }
.dl-caption { font-size: 13.5px; color: var(--text-3); margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.dl-caption span { white-space: nowrap; }
.dl-caption span:not(:last-child)::after { content: "·"; margin: 0 8px; }
.dl-caption svg { width: 14px; height: 14px; margin-right: 6px; color: var(--ok); display: inline-block; vertical-align: -2px; }
@media (max-width: 480px) { .dl-btn { max-width: none; flex-basis: 100%; } }

/* sticky compact download chips (injected into the header by site.js) */
.nav-dl { display: flex; align-items: center; gap: 8px; margin-left: 4px; opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav-dl[hidden] { display: none; }
.nav-dl.in { opacity: 1; transform: none; }
.dl-chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px 0 12px; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap;
  font-size: 13.5px; font-weight: 650; letter-spacing: -0.005em; border: 1px solid rgba(255,255,255,.14);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.dl-chip svg { width: 16px; height: 16px; flex: none; }
.dl-chip:hover, .dl-chip:focus-visible { transform: translateY(-1px); }
.dl-chip:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 999px; }
.dl-chip.dl-mac { box-shadow: 0 6px 16px -8px rgba(170, 34, 128, .8); }
.dl-chip.dl-win { box-shadow: 0 6px 16px -8px rgba(10, 108, 240, .85); }
.dl-chip.dl-mac:hover { box-shadow: 0 10px 22px -8px rgba(214, 48, 140, .9), 0 0 0 4px rgba(214, 48, 140, .14); }
.dl-chip.dl-win:hover { box-shadow: 0 10px 22px -8px rgba(29, 143, 255, .9), 0 0 0 4px rgba(29, 143, 255, .16); }
.nav-dl-app { display: inline-flex; border-radius: 8px; margin-right: 2px; }
.nav-dl-app img { width: 26px; height: 26px; border-radius: 24%; box-shadow: var(--shadow-sm); }
.theme-yapstar .nav-dl-app { display: none; }
.dl-chip .lg { display: none; }
@media (min-width: 1100px) { .dl-chip .lg { display: inline; } }
.nav.dl-on .nav-links [data-nav-dl] { display: none; }
@media (max-width: 900px) { .nav.dl-on .nav-links a.hide-sm { display: none; } }
@media (max-width: 639px) {
  .nav.dl-on .nav-links { display: none; }
  .nav-dl { margin-left: auto; gap: 6px; }
  .nav-dl-app { display: none; }
  .dl-chip { height: 34px; padding: 0 12px 0 10px; font-size: 13px; gap: 6px; }
}
@media (max-width: 359px) { .dl-chip .sm-hide { display: none; } }

/* ---------------------------------------------------------------- support page */

.support-card { margin-top: 8px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.support-card .addr, .skin-doc .prose .support-card .addr { color: var(--cl-ink, var(--text)); font-family: var(--font-display); font-size: clamp(21px, 3vw, 27px); font-weight: 620; letter-spacing: -0.02em; user-select: all; -webkit-user-select: all; word-break: break-word; }
.support-card .addr-label { color: var(--text-2); font-size: 17px; margin-bottom: 6px; }
.support-card .support-note { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.prose ul.support-links { list-style: none; padding: 0; gap: 10px; }
.prose ul.support-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.prose ul.support-links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- legal (terms) */

.legal-banner { padding: 20px 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); }
.prose .legal-banner p { color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1.6; }
.legal-closing { margin-top: 40px; }
.toc { margin: 32px 0 8px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.prose .toc ol { columns: 2; column-gap: 28px; padding-left: 22px; margin: 0; display: block; }
.prose .toc li { font-size: 14.5px; margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 560px) { .prose .toc ol { columns: 1; } }
.legal h2 { scroll-margin-top: 84px; }
.prose.legal p { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- theme toggle (wired by /assets/theme.js) */

.theme-toggle {
  flex: none; width: 38px; height: 38px; margin-left: 6px; padding: 0; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 639px) { .theme-toggle { width: 36px; height: 36px; margin-left: 4px; } }
.nav .brand { flex: none; }
@media (max-width: 420px) {
  .nav-inner { gap: 8px; }
  .brand svg.logotype { height: 20.9px; }
  .nav-links { gap: 2px; }
  .nav-links a:not(.btn) { padding: 8px 9px; }
  .theme-toggle { margin-left: 2px; }
}
@media (max-width: 359px) { .nav-links a:not(.btn) { display: none; } }

/* colourful hero words (Yapstar purple → pink → gold) */
.grad-hero {
  background: linear-gradient(100deg, #6b4eff 0%, #c2308a 55%, #e0891a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}
[data-theme="dark"] .grad-hero { background-image: linear-gradient(100deg, #9a86ff 0%, #ff5fa8 55%, #f7c65a 100%); }

/* ---------------------------------------------------------------- mobile type floor */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .lead, :where(.card) p, .faq .answer, .prose p, .prose li { font-size: 16px; }
  .checks li { font-size: 15.5px; }
}

/* ---------------------------------------------------------------- ambient background
   A soft, slowly drifting aurora (lavender, peach, sky) over the base colour, plus a
   faint grain, fixed behind every page so white areas never look flat. */
html { background: var(--bg); }
body { background: transparent; position: relative; isolation: isolate; }
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -12vmax;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(42vmax 34vmax at 12% 8%, rgba(138, 109, 255, 0.30), transparent 62%),
    radial-gradient(38vmax 30vmax at 88% 14%, rgba(255, 170, 200, 0.27), transparent 60%),
    radial-gradient(46vmax 36vmax at 78% 82%, rgba(120, 190, 255, 0.24), transparent 62%),
    radial-gradient(40vmax 32vmax at 18% 88%, rgba(255, 205, 140, 0.24), transparent 60%),
    linear-gradient(180deg, #f6f5fb 0%, #f1eff8 45%, #f4f1f6 100%);
  animation: aurora-drift 36s ease-in-out infinite alternate;
  will-change: transform;
}
body::after {
  z-index: -1;
  opacity: 0.47;
  background-image:
    radial-gradient(rgba(60, 50, 120, 0.10) 1px, transparent 1.2px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.28 0 0 0 0 0.45 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 26px 26px, 160px 160px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-2.5vmax, 1.5vmax, 0) rotate(4deg) scale(1.05); }
  100% { transform: translate3d(2vmax, -1vmax, 0) rotate(-3deg) scale(1.02); }
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(42vmax 34vmax at 12% 8%, rgba(124, 92, 255, 0.24), transparent 62%),
    radial-gradient(38vmax 30vmax at 88% 14%, rgba(214, 51, 140, 0.16), transparent 60%),
    radial-gradient(46vmax 36vmax at 78% 82%, rgba(40, 110, 255, 0.16), transparent 62%),
    radial-gradient(40vmax 32vmax at 18% 88%, rgba(245, 184, 61, 0.08), transparent 60%),
    linear-gradient(180deg, #0b0a14 0%, #09090e 60%, #0c0a12 100%);
}
:root[data-theme="dark"] body::after { opacity: 0.5; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.2px), none; }
/* Alternate sections: a light frosted band instead of a flat block, so the aurora shows through. */
.section-alt { background: color-mix(in srgb, var(--bg-2) 45%, transparent); backdrop-filter: saturate(1.1); }
:root[data-theme="dark"] .section-alt { background: rgba(255, 255, 255, 0.02); }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* Dark mode: pricing cards inherited the muted paragraph colour and read as faded */
:root[data-theme="dark"] .price-card .tier,
:root[data-theme="dark"] .price-card .amount,
:root[data-theme="dark"] .price-card .checks li { color: var(--text); }
:root[data-theme="dark"] .price-card .amount small,
:root[data-theme="dark"] .price-card .price-sub { color: var(--text-2); }

/* "Get Yapstar" in the header: after the download chips, a little bigger than the chips */
.nav-inner .nav-get { --h: 42px; padding: 0 20px; font-size: 15.5px; font-weight: 650; flex: none; }
@media (max-width: 640px) { .nav-dl-on .nav-get, .nav.dl-on .nav-get { display: none; } }
.nav-links a:not(.btn) { white-space: nowrap; }
@media (max-width: 980px) { .nav.dl-on .nav-links a:not(.btn) { display: none; } }
em, i, cite, address, dfn, var { font-style: normal; }

/* ---------------------------------------------------------------- tools menu (nav, top right) */
.tools { position: relative; }
.tools-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; cursor: pointer; transition: color .2s, background-color .2s; }
.tools-btn:hover, .tools-btn[aria-expanded="true"] { color: var(--text); background: var(--bg-2); }
.tools-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.tools-btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.tools-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.tools-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 296px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transform-origin: top right; animation: tools-in .18s cubic-bezier(.23,1,.32,1); }
.tools-menu[hidden] { display: none; }
@keyframes tools-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.tools-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text); transition: background-color .15s; }
.tools-menu a:hover, .tools-menu a:focus-visible { background: var(--bg-2); outline: none; }
.tools-menu img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.tools-menu b { display: block; font-weight: 600; font-size: 15px; }
.tools-menu small { display: block; color: var(--text-3); font-size: 13px; line-height: 1.35; }
.tools-menu .tools-head { padding: 6px 10px 4px; font-size: 12.5px; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .tools-menu { animation: none; } .tools-btn svg { transition: none; } }
@media (max-width: 480px) { .nav-links > .btn-sm { display: none; } .nav-links { gap: 0; } }

/* Terms and Privacy only (owner, 29 Oct 2026): text cannot be selected or copied; links still work. */
.legal-nocopy main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Top-left Bardstar logo: one size on every page, breadcrumb pages (sQuit, xTab) included (owner, 29 Oct 2026). */
header .brand svg.logotype, header .crumbs .brand svg.logotype, .nav .brand svg.logotype, .nav .crumbs .brand svg.logotype { height: 26.6px; width: auto; opacity: 1; }
@media (max-width: 420px) {
  header .brand svg.logotype, header .crumbs .brand svg.logotype, .nav .brand svg.logotype, .nav .crumbs .brand svg.logotype { height: 23px; }
}
