/* ============================================================
   Mainline — studio site shared styles
   Built entirely on the fullstack-kit design system tokens.
   ============================================================ */

@import "../_ds/fullstack-kit-design-system-bfa70c59-910d-4ef5-8252-5f8324db235b/styles.css";

/* ---- site-level tokens ---- */
:root {
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 9vw, 132px);
  --acc-soft: color-mix(in oklch, var(--primary) 8%, var(--background));
  --acc-line: color-mix(in oklch, var(--primary) 22%, var(--border));
  --ink-2: var(--mauve-600);
  --ink-3: var(--mauve-500);
}

/* ---- accent variants (Tweak-controlled) ---- */
body[data-accent="blue"] {
  --primary: oklch(0.52 0.19 256);
  --primary-foreground: oklch(0.985 0 0);
}
body[data-accent="emerald"] {
  --primary: oklch(0.55 0.12 162);
  --primary-foreground: oklch(0.985 0 0);
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: color-mix(in oklch, var(--primary) 20%, transparent); }

/* ---- layout primitives ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--muted); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--plain::before { display: none; }
.display {
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  text-wrap: balance;
}
h1.display { letter-spacing: -0.03em; }
.h2 {
  font-weight: var(--weight-semibold);
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  text-wrap: balance;
}
.h3 {
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  font-size: var(--text-xl);
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.muted { color: var(--ink-2); }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }
.mono { font-family: var(--font-mono); }
.section-head { max-width: 720px; }
.section-head .h2 { margin-top: 16px; }
.section-head p { margin: 16px 0 0; }

/* ============================================================
   Buttons — fullstack-kit Button CSS (verbatim tokens)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium);
  line-height: 1; cursor: pointer; border: 1px solid transparent;
  height: var(--control-lg); padding: 0 1.4rem;
  transition: background-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
  user-select: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
.btn--outline { border-color: var(--input); background: var(--background); color: var(--foreground); }
.btn--outline:hover { background: var(--accent); border-color: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--foreground); }
.btn--ghost:hover { background: var(--accent); }
.btn--lg { height: 3.25rem; padding: 0 1.7rem; font-size: var(--text-base); }
.btn--on-dark.btn--outline { background: transparent; color: var(--mauve-50); border-color: oklch(1 0 0 / 0.22); }
.btn--on-dark.btn--outline:hover { background: oklch(1 0 0 / 0.08); border-color: oklch(1 0 0 / 0.4); }
.btn-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: var(--weight-medium); font-size: var(--text-sm); color: var(--primary);
}
.btn-link svg { width: 1rem; height: 1rem; transition: transform var(--duration-base) var(--ease-out); }
.btn-link:hover svg { transform: translateX(3px); }

/* ---- badge / pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: var(--radius-full);
  padding: .28rem .72rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  background: var(--secondary); color: var(--secondary-foreground);
  border: 1px solid var(--border);
}
.pill--accent { background: var(--acc-soft); color: var(--primary); border-color: var(--acc-line); }
.pill--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--background) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
}
.site-header[data-stuck="true"] { border-bottom-color: var(--border); }
.nav {
  height: 76px; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: var(--weight-semibold); font-size: 1.18rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand .brand-dot { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--ink-2);
  transition: color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard);
}
.nav-links a:hover { color: var(--foreground); background: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--foreground); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--background); cursor: pointer;
  place-items: center; color: var(--foreground);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); background: var(--background); color: var(--foreground);
  border-radius: var(--radius-md); cursor: pointer; font-family: inherit;
  font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1;
}
.lang-btn:hover { background: var(--accent); border-color: var(--ink-3); }
.lang-btn svg { width: 16px; height: 16px; color: var(--ink-3); }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .16s ease; }
.lang[data-open] .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 148px; z-index: 30;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 5px; display: none;
}
.lang[data-open] .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2);
  border-radius: var(--radius-sm); font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium);
}
.lang-menu button:hover { background: var(--accent); color: var(--foreground); }
.lang-menu button[aria-current="true"] { color: var(--primary); }
.lang-menu button .flag { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); margin-left: auto; }
.lang-menu button[aria-current="true"] .flag { color: var(--primary); }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav[data-open] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px var(--gutter) 22px; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a { padding: 13px 12px; border-radius: var(--radius-md); font-weight: var(--weight-medium); color: var(--ink-2); }
.mobile-nav a:hover { background: var(--accent); color: var(--foreground); }
.mobile-nav .btn { margin: 12px 12px 0; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions .btn--outline { display: none; }
  .nav-toggle { display: grid; }
}
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }
@media (max-width: 520px) { .nav-actions .lang { display: none; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--mauve-950); color: var(--mauve-300); padding-block: clamp(56px, 7vw, 88px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand { color: var(--mauve-50); }
.footer-brand p { color: var(--mauve-400); margin: 18px 0 0; max-width: 30ch; font-size: var(--text-sm); line-height: 1.6; }
.footer-col h4 { color: var(--mauve-100); font-size: var(--text-sm); font-weight: var(--weight-semibold); margin-bottom: 16px; letter-spacing: 0.01em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--mauve-400); font-size: var(--text-sm); transition: color var(--duration-base) var(--ease-standard); }
.footer-col a:hover { color: var(--mauve-50); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px); padding-top: 28px;
  border-top: 1px solid oklch(1 0 0 / 0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--mauve-500); font-size: var(--text-xs);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  display: grid; place-items: center; border: 1px solid oklch(1 0 0 / 0.1);
  color: var(--mauve-300); transition: all var(--duration-base) var(--ease-standard);
}
.footer-social a:hover { background: oklch(1 0 0 / 0.07); color: var(--mauve-50); border-color: oklch(1 0 0 / 0.22); }
.footer-social svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Cards (generic surface)
   ============================================================ */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.card--hover:hover { border-color: var(--acc-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* service card */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { padding: 30px; display: flex; flex-direction: column; min-height: 268px; }
.svc-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--acc-soft); color: var(--primary); border: 1px solid var(--acc-line);
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card h3 { font-size: var(--text-lg); margin-bottom: 10px; }
.svc-card p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; flex: 1; }
.svc-card .btn-link { margin-top: 20px; }
body[data-cards="flat"] .card--hover:hover { box-shadow: none; transform: none; border-color: var(--acc-line); background: var(--acc-soft); }

@media (max-width: 940px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---- metrics ---- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric { padding: 4px 28px; border-left: 1px solid var(--border); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric-num { font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: var(--weight-semibold); letter-spacing: -0.03em; line-height: 1; }
.metric-num .unit { color: var(--primary); }
.metric-label { margin-top: 12px; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.4; }
@media (max-width: 760px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---- logo strip ---- */
.logo-strip { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.logo-strip .client {
  font-weight: var(--weight-semibold); font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 9px; opacity: 0.9;
}
.logo-strip .client svg { width: 22px; height: 22px; }

/* ---- process steps ---- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 28px 26px 28px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--border); }
.step-num {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-medium);
  color: var(--primary); letter-spacing: 0.08em; margin-bottom: 18px;
}
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-bottom: 18px; }
.step h3 { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-bottom: 8px; }
.step p { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.55; }
.step-meta { margin-top: 14px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { border-left: 0; padding: 24px 0; border-top: 1px solid var(--border); }
  .steps .step:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps .step:nth-child(2) { border-top: 1px solid var(--border); } }

/* ---- case cards ---- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { overflow: hidden; display: flex; flex-direction: column; }
.case-thumb { aspect-ratio: 16 / 11; width: 100%; position: relative; background: var(--muted); border-bottom: 1px solid var(--border); }
.case-thumb image-slot { width: 100%; height: 100%; }
.case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.case-card h3 { font-size: var(--text-lg); margin-bottom: 10px; }
.case-card .case-result { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; flex: 1; }
.case-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.case-kpi { font-family: var(--font-mono); font-weight: var(--weight-semibold); color: var(--foreground); font-size: var(--text-sm); }
.case-kpi b { color: var(--primary); font-weight: var(--weight-semibold); }
@media (max-width: 940px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }

/* ---- differentiators ---- */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.diff { background: var(--card); padding: 36px; }
.diff-num { font-family: var(--font-mono); color: var(--primary); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.diff h3 { font-size: var(--text-xl); margin: 16px 0 12px; letter-spacing: -0.015em; }
.diff p { color: var(--ink-2); line-height: 1.6; }
@media (max-width: 700px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---- engagement model cards ---- */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-card { padding: 32px; display: flex; flex-direction: column; }
.model-card.is-featured { border-color: var(--acc-line); box-shadow: var(--shadow-md); }
.model-card h3 { font-size: var(--text-xl); margin-bottom: 6px; }
.model-card .model-for { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--primary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }
.model-card p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }
.model-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.model-list li { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--foreground); align-items: flex-start; }
.model-list svg { width: 17px; height: 17px; color: var(--primary); flex: 0 0 auto; margin-top: 2px; }
.model-card .btn { margin-top: 28px; }
@media (max-width: 880px) { .model-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---- testimonials ---- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote-card { padding: 38px; display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0; font-size: var(--text-xl); line-height: 1.5; letter-spacing: -0.01em; font-weight: var(--weight-medium); color: var(--foreground); text-wrap: pretty; }
.quote-mark { font-family: var(--font-mono); color: var(--primary); font-size: 2rem; line-height: 1; margin-bottom: 18px; }
.quote-author { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 14px; }
.quote-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--secondary); display: grid; place-items: center; font-weight: var(--weight-semibold); color: var(--ink-2); border: 1px solid var(--border); }
.quote-meta strong { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.quote-meta span { font-size: var(--text-xs); color: var(--ink-3); font-family: var(--font-mono); }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---- final CTA ---- */
.cta-band { background: var(--mauve-950); color: var(--mauve-50); border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band .h2 { color: var(--mauve-50); }
.cta-band p { color: var(--mauve-300); }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta-glow { position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklch, var(--primary) 55%, transparent), transparent 65%); filter: blur(40px); opacity: 0.5; pointer-events: none; }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- form ---- */
.form-row { display: grid; gap: 18px; }
.form-2col { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.field label .req { color: var(--primary); }
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: var(--text-base); color: var(--foreground);
  background: var(--background); border: 1px solid var(--input); border-radius: var(--radius-sm);
  padding: 0 14px; height: var(--control-lg);
  transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.textarea { height: auto; padding: 12px 14px; min-height: 130px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 16%, transparent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; padding: 9px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--input); font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--ink-2); transition: all var(--duration-base) var(--ease-standard); user-select: none;
}
.chip:hover span { border-color: var(--ink-3); color: var(--foreground); }
.chip input:checked + span { background: var(--acc-soft); border-color: var(--primary); color: var(--primary); }
@media (max-width: 560px) { .form-2col { grid-template-columns: 1fr; } }

/* ---- FAQ accordion ---- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-ico { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.faq summary .faq-ico::before, .faq summary .faq-ico::after { content: ""; position: absolute; background: var(--ink-3); border-radius: 2px; transition: transform var(--duration-base) var(--ease-standard); }
.faq summary .faq-ico::before { top: 10px; left: 2px; width: 18px; height: 2px; }
.faq summary .faq-ico::after { top: 2px; left: 10px; width: 2px; height: 18px; }
.faq details[open] summary .faq-ico::after { transform: scaleY(0); }
.faq details[open] summary { color: var(--foreground); }
.faq .faq-body { padding: 0 42px 28px 0; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }

/* ---- breadcrumb / page hero ---- */
.page-hero { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(36px, 4vw, 56px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); margin-bottom: 28px; }
.breadcrumb a, .breadcrumb > span { white-space: nowrap; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---- reveal: minimal-motion entrance. Content is ALWAYS visible (opacity
   stays 1); only a small one-time rise is applied, and only via CSS animation
   so a failed observer can never leave content hidden. ---- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { animation: fk-rise .55s var(--ease-out) both; }
}
@keyframes fk-rise { from { transform: translateY(12px); } to { transform: none; } }

/* ---- generic helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }

/* ============================================================
   Account menu / avatar (auth-aware header)
   ============================================================ */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--acc-soft); color: var(--primary); border: 1px solid var(--acc-line); display: grid; place-items: center; font-weight: var(--weight-semibold); font-size: var(--text-xs); letter-spacing: 0.02em; flex: 0 0 auto; }
.avatar--sm { width: 30px; height: 30px; font-size: 10px; }
.avatar--lg { width: 56px; height: 56px; font-size: var(--text-sm); }
.account { position: relative; }
.avatar-btn { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; padding: 4px; border-radius: var(--radius-full); cursor: pointer; color: var(--ink-3); }
.avatar-btn:hover .avatar { border-color: var(--primary); }
.avatar-btn .chev { width: 14px; height: 14px; transition: transform .16s ease; }
.account[data-open] .avatar-btn .chev { transform: rotate(180deg); }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 216px; z-index: 60; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 5px; display: none; }
.account[data-open] .account-menu { display: block; }
.account-id { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.account-id b { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.account-id span { font-size: var(--text-xs); color: var(--ink-3); font-family: var(--font-mono); }
.account-menu a, .account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); border-radius: var(--radius-sm); font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.account-menu a:hover, .account-menu button:hover { background: var(--accent); color: var(--foreground); }
.account-menu svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
/* footer gains a Resources column */
.footer-grid { grid-template-columns: 1.6fr repeat(5, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-full); padding: 0.24rem 0.66rem; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-medium); border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--new { background: color-mix(in oklch, var(--info) 13%, var(--background)); color: var(--info); border-color: color-mix(in oklch, var(--info) 30%, transparent); }
.badge--progress { background: color-mix(in oklch, var(--warning) 16%, var(--background)); color: oklch(0.52 0.12 78); border-color: color-mix(in oklch, var(--warning) 45%, transparent); }
.badge--done { background: color-mix(in oklch, var(--success) 13%, var(--background)); color: var(--success); border-color: color-mix(in oklch, var(--success) 30%, transparent); }
/* demo state switcher (prototype chrome) */
.demo-bar { position: fixed; bottom: 18px; left: 18px; z-index: 80; display: flex; align-items: center; gap: 3px; background: var(--mauve-950); border-radius: var(--radius-full); padding: 5px 6px; box-shadow: var(--shadow-lg); }
.demo-bar .db-k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mauve-500); padding: 0 8px; }
.demo-bar button { border: 0; background: transparent; color: var(--mauve-300); font-family: var(--font-mono); font-size: 11px; padding: 7px 12px; border-radius: var(--radius-full); cursor: pointer; }
.demo-bar button:hover { color: var(--mauve-50); }
.demo-bar button[aria-pressed="true"] { background: oklch(1 0 0 / 0.14); color: #fff; }

/* signed-in toast */
.ml-toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 8px); z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--mauve-950); color: var(--mauve-50); border-radius: var(--radius-full); padding: 11px 20px; font-size: var(--text-sm); font-weight: var(--weight-medium); box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.ml-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ml-toast svg { width: 16px; height: 16px; color: var(--success); }

/* city context */
.plat-bar { background: var(--mauve-950); color: var(--mauve-200); font-size: var(--text-xs); }
.plat-bar .container--wide { display: flex; align-items: center; gap: 10px; height: 40px; }
.plat-bar a { color: var(--mauve-200); font-weight: var(--weight-medium); }
.plat-bar a:hover { color: #fff; }
.plat-bar .pb-sep { color: var(--mauve-600); }
.plat-bar .pb-cur { color: #fff; font-weight: var(--weight-medium); }
.bcity { color: var(--primary); font-weight: var(--weight-medium); }
.tz-row .tz-dc { display: flex; flex-direction: column; gap: 3px; }
.tz-ct { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }

/* plat-bar travels with the sticky header */
.plat-bar { position: sticky; top: 0; z-index: 61; }
body:has(.plat-bar) .site-header { top: 40px; }
.news-item .tz-dc { display: flex; flex-direction: column; gap: 3px; }
a.tz-ct:hover { text-decoration: underline; text-underline-offset: 3px; }
