/* ForceFlow — Blog, Testimonials, FAQ, Contact, Footer */

/* ─────────── BLOG ─────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  overflow: hidden;
  transition: transform 260ms var(--ease-out), border-color 260ms var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.post-cover {
  aspect-ratio: 16 / 8;
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.post-cat {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 6px;
}
.post-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}
.post-desc {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.5;
}
.post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.post-dot {
  width: 3px; height: 3px;
  background: var(--fg-4);
  border-radius: 999px;
  display: inline-block;
}

/* ─────────── TESTIMONIALS (signed page) ─────────── */
/*
 * Concept: each testimonial is a signed page from a ledger.
 * Quote opens with a tall serif drop-cap in the accent colour;
 * a single hairline above the byline turns name + role into a signature.
 * Brand W-glyph sits low in the corner as a watermark. No box, no card —
 * two hairline rules frame the page; the typography is the architecture.
 */

.section-test .section-head { margin-bottom: 56px; }
.section-test .section-head h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  max-width: 820px;
}

.test-page {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  padding: 8px clamp(18px, 6vw, 88px) 12px;
  box-sizing: border-box;
  isolation: isolate;
}

/* Body */
.test-page-body { padding-top: 28px; }

.test-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.95);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.test-avatar-ocean  { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.test-avatar-amber  { background: linear-gradient(135deg, #451a03, #f59e0b); }
.test-avatar-rose   { background: linear-gradient(135deg, #4c0519, #e11d48); }
.test-avatar-teal   { background: linear-gradient(135deg, #042f2e, #14b8a6); }
.test-avatar-violet { background: linear-gradient(135deg, #3b0764, #8b5cf6); }
.test-avatar-lime   { background: linear-gradient(135deg, #1a2e05, #84cc16); }

/* Two hairline framing rules — left + right only.
   Architectural, not a box. Tint shifts toward accent on each cycle. */
.test-page-rule {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--line) 14%,
    var(--line-strong) 50%,
    var(--line) 86%,
    transparent 100%
  );
  pointer-events: none;
}
.test-page-rule-l { left: 0; }
.test-page-rule-r { right: 0; }

/* Page index — top-right, mono. Accent current, muted total. */
.test-page-index {
  position: absolute;
  top: 0;
  right: clamp(18px, 6vw, 88px);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.test-page-index-n {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  transition: color 320ms var(--ease);
}
.test-page-index-s { color: var(--fg-4); }
.test-page-index-t { color: var(--fg-4); font-variant-numeric: tabular-nums; }

/* Body: composes the quote + signature as one block.
   key={i} on the body triggers a unified reflow each rotation. */
.test-page-body {
  position: relative;
  z-index: 1;
  animation: testPageIn 620ms var(--ease-out) both;
}
@keyframes testPageIn {
  0%   { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* The quote */
.test-quote {
  margin: 0;
  padding: 0;
  color: var(--fg);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  hyphens: none;
}

/* Drop-cap — serif italic accent letter, hangs into the first line. */
.test-dropcap {
  float: left;
  font-family: "Iowan Old Style", "Charter", "Cambria", Georgia, "Times New Roman", serif;
  font-feature-settings: "ss01", "liga", "kern";
  font-weight: 500;
  font-style: italic;
  font-size: 3em;
  line-height: 0.88;
  margin: 0.08em 0.16em -0.05em -0.04em;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.test-quote-text {
  /* Inherits from .test-quote */
}

/* Signature line — avatar + name + role on a single baseline. */
.test-sign {
  clear: both;
  margin: 32px 0 0;
  padding-top: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.test-sign-rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 1px;
  background: var(--fg);
  opacity: 0.55;
}
.test-sign-name {
  font-family: "Iowan Old Style", "Charter", "Cambria", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
}
.test-sign-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}


/* ─── Progress tabs — kept, tightened ─── */
.test-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.test-tab {
  position: relative;
  display: block;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 18px 0;
  width: 56px;
  cursor: pointer;
}
.test-tab::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  transform: translateY(-50%);
  transition: background .25s var(--ease);
}
.test-tab:hover::before { background: var(--line-strong); }
.test-tab.on::before { background: color-mix(in oklab, var(--accent) 18%, var(--line)); }

.test-tab-fill {
  position: absolute;
  left: 0; top: 50%;
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px -2px color-mix(in oklab, var(--accent) 50%, transparent);
}
.test-tab.on .test-tab-fill {
  animation: testTabFill 6500ms linear forwards;
}
@keyframes testTabFill {
  from { transform: translateY(-50%) scaleX(0); }
  to   { transform: translateY(-50%) scaleX(1); }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .test-page { padding: 8px clamp(14px, 5vw, 28px) 14px; min-height: 320px; }
  .test-page-index { right: clamp(14px, 5vw, 28px); }
  .test-page-mark { right: clamp(14px, 5vw, 28px); }
}
@media (max-width: 700px) {
  .section-test .section-head { margin-bottom: 36px; }
  .test-page { padding-top: 16px; }
  .test-page-body { padding-top: 16px; }
  .test-avatar { width: 32px; height: 32px; font-size: 10px; }
  .test-quote { font-size: clamp(17px, 4.4vw, 22px); line-height: 1.4; }
  .test-dropcap { font-size: 2.7em; margin: 0.08em 0.1em -0.04em -0.04em; }
  .test-sign { gap: 10px; padding-top: 14px; margin-top: 24px; }
  .test-sign-rule { width: 88px; }
  .test-tab { width: 44px; }
  .test-tabs { gap: 8px; margin-top: 32px; }
}
@media (max-width: 480px) {
  .test-page-index { font-size: 10.5px; }
  .test-page-rule { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .test-page-body { animation: none; opacity: 1; transform: none; filter: none; }
  .test-tab.on .test-tab-fill { animation: none; transform: translateY(-50%) scaleX(1); }
}

/* ─────────── FAQ ─────────── */

.faq-wrap {
  max-width: 920px;
}
.faq-head { margin-bottom: 48px; }
.faq-head h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  max-width: 740px;
  text-wrap: balance;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 4px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding 200ms var(--ease);
}
.faq-q:hover { background: var(--bg-1); padding-left: 14px; }
.faq-n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-4);
}
.faq-qt {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-icon {
  position: relative;
  width: 16px; height: 16px;
  justify-self: end;
}
.faq-icon span {
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--fg-2);
  transition: transform 250ms var(--ease);
}
.faq-icon span:nth-child(1) { width: 14px; height: 1.5px; top: 50%; transform: translateY(-50%); }
.faq-icon span:nth-child(2) { width: 1.5px; height: 14px; left: 50%; transform: translateX(-50%); }
.faq-item.open .faq-icon span:nth-child(2) { transform: translateX(-50%) scaleY(0); }

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease);
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-wrap > .faq-a {
  overflow: hidden;
}
.faq-a {
  padding-left: 72px;
  padding-right: 40px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}
.faq-item.open .faq-a { padding-bottom: 24px; }

@media (max-width: 640px) {
  .faq-q { grid-template-columns: 38px 1fr 28px; }
  .faq-a { padding-left: 54px; padding-right: 8px; }
}

/* ─────────── CONTACT ─────────── */

.section-contact {
  background:
    radial-gradient(ellipse 50% 50% at 100% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
    var(--bg);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}
.contact-title {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 18px;
  text-wrap: balance;
}
.contact-lede {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 440px;
  margin: 0 0 36px;
}
.contact-channels {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-channel {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 200ms var(--ease), color 200ms var(--ease);
}
.contact-channel:hover { padding-left: 8px; color: var(--accent); }
.contact-channel-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact-channel-v {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.contact-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .contact-row-2 { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-l {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field-err { color: #f87171; text-transform: none; letter-spacing: 0; font-size: 11px; }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--fg);
  outline: none;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-4); }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-1);
}
.field.err input, .field.err textarea { border-color: #f87171; }

.contact-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
}
.contact-agree.err { color: #f87171; }
.contact-agree input {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 150ms var(--ease);
}
.contact-agree input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.contact-agree input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.contact-submit { width: 100%; justify-content: center; margin-top: 4px; }
.contact-fineprint {
  font-size: 12.5px;
  color: var(--fg-3);
  text-align: center;
  margin-top: 2px;
}
.contact-fineprint strong { color: var(--fg); font-weight: 500; }

.contact-thanks {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-height: 320px;
  justify-content: center;
}
.contact-thanks h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.contact-thanks p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.5;
  max-width: 340px;
}
.contact-thanks-mark { animation: pulse 1.4s var(--ease) infinite; }

/* ─────────── FOOTER ─────────── */

.footer {
  position: relative;
  background: #06070a;
  padding: 96px 0 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
}
[data-theme="light"] .footer { background: var(--bg-2); }
.footer::before {
  /* faint accent wash at the top edge — Linear-style halo */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(60% 100% at 50% 0%,
      color-mix(in oklab, var(--accent) 6%, transparent),
      transparent 70%);
  opacity: .9;
}
.footer > .wrap { position: relative; z-index: 1; }

/* ── ASK AI · prompt console ───────────────────────────────── */

.footer-ai {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .footer-ai { grid-template-columns: 1fr; gap: 28px; padding-bottom: 48px; }
}

.footer-ai-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.footer-ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-ai-eyebrow-dash {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.footer-ai-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-weight: 500;
}
.footer-ai-sub {
  margin: 0;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36ch;
}

.footer-ai-console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg) 60%, transparent),
      color-mix(in oklab, var(--bg-2) 50%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 8%, transparent);
  overflow: hidden;
}

.footer-ai-prompt {
  display: flex;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%,
      color-mix(in oklab, var(--accent) 8%, transparent),
      transparent 60%);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
}
.footer-ai-prompt-caret {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.55;
}
.footer-ai-prompt-text {
  display: block;
}

.footer-ai-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 700px) {
  .footer-ai-chips { grid-template-columns: repeat(2, 1fr); }
  .footer-ai-chips .footer-ai-chip:nth-child(2) { border-right: 0; }
}
@media (max-width: 420px) {
  .footer-ai-chips { grid-template-columns: 1fr; }
  .footer-ai-chips .footer-ai-chip { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-ai-chips .footer-ai-chip:last-child { border-bottom: 0; }
}

.footer-ai-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  border-right: 1px solid var(--line);
  transition: color 200ms var(--ease), background 200ms var(--ease);
  overflow: hidden;
}
.footer-ai-chip:last-child { border-right: 0; }
.footer-ai-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 30% 20%,
    color-mix(in oklab, var(--accent) 18%, transparent),
    transparent 70%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
}
.footer-ai-chip > * { position: relative; z-index: 1; }
.footer-ai-chip:hover { color: var(--fg); }
.footer-ai-chip:hover::before { opacity: 1; }
.footer-ai-chip:focus-visible {
  outline: none;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent);
}

.footer-ai-chip-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--fg-3);
  transition: color 200ms var(--ease);
}
.footer-ai-chip-glyph svg { width: 100%; height: 100%; display: block; }
.footer-ai-chip:hover .footer-ai-chip-glyph { color: var(--accent); }

.footer-ai-chip-label { flex: 1; }

.footer-ai-chip-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--fg-4);
  transition: color 200ms var(--ease), transform 220ms var(--ease-out);
}
.footer-ai-chip-ext svg { width: 100%; height: 100%; display: block; }
.footer-ai-chip:hover .footer-ai-chip-ext {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ── hairline divider ── */
.footer-rule {
  height: 1px;
  background: var(--line);
  margin: 0 0 56px;
}

/* ── nav grid ───────────────────────────────────────────────── */

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 56px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand-mark {
  display: inline-flex;
  color: var(--fg);
}
.footer-tagline {
  margin: 0;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.55;
  max-width: 32ch;
}

.footer-socials {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--fg-3);
  background: transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.footer-social svg { width: 16px; height: 16px; display: block; }
.footer-social:hover {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.footer-social:focus-visible {
  outline: none;
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  gap: 56px;
}
@media (max-width: 900px) {
  .footer-cols { justify-content: start; gap: 40px; }
}
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-h {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-2);
  transition: color 200ms var(--ease);
  text-decoration: none;
  width: max-content;
  max-width: 100%;
}
.footer-col a:hover { color: var(--fg); }
.footer-col a:focus-visible {
  outline: none;
  color: var(--accent);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-contact-ico {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--fg-4);
  transition: color 200ms var(--ease);
}
.footer-contact-ico svg { width: 100%; height: 100%; display: block; }
.footer-contact:hover .footer-contact-ico { color: var(--accent); }

.solar-ico { width: 100%; height: 100%; display: block; }

/* ── ledger base row ──────────────────────────────────────── */

.footer-base {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-base-copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-base-idx {
  color: var(--accent);
  font-weight: 600;
}
.footer-base-sep { opacity: .6; }
.footer-base-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-base-dash {
  width: 20px;
  height: 1px;
  background: var(--line-strong, var(--line));
}
.footer-base-loc { color: var(--fg-2); }

/* ─────────── STICKY MOBILE CTA ─────────── */

.sticky-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px;
  bottom: 16px;
  z-index: 45;
  justify-content: center;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.5),
              0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent);
}
@media (max-width: 640px) {
  .sticky-cta { display: inline-flex; }
  body { padding-bottom: 80px; }
}

/* ─────────── WELCOME MODAL ─────────── */

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: welcome-overlay-in 240ms var(--ease-out, ease-out);
}
@keyframes welcome-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.welcome-card {
  position: relative;
  width: min(1040px, 100%);
  background: #07080b;
  border: 0;
  border-radius: 20px;
  box-shadow:
    0 40px 90px -20px rgba(0,0,0,.75),
    0 16px 48px -16px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  animation: welcome-card-in 360ms cubic-bezier(.2,.7,.2,1);
  outline: none;
}
[data-theme="light"] .welcome-card {
  background: #f6f6f3;
  box-shadow:
    0 32px 70px -18px rgba(0,0,0,.18),
    0 8px 28px -12px rgba(0,0,0,.12),
    0 0 0 1px rgba(0,0,0,.06);
}
@keyframes welcome-card-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.welcome-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 0;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
[data-theme="light"] .welcome-close { background: rgba(0,0,0,.05); }
.welcome-close svg { width: 13px; height: 13px; display: block; }
.welcome-close:hover {
  color: var(--fg);
  background: rgba(255,255,255,.1);
}
[data-theme="light"] .welcome-close:hover { background: rgba(0,0,0,.08); }
.welcome-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.welcome-stage {
  position: relative;
  min-height: 520px;
}

.welcome-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 520px;
  animation: welcome-slide-in 380ms cubic-bezier(.2,.7,.2,1);
}
.welcome-slide-dir-prev { animation-name: welcome-slide-in-prev; }
@keyframes welcome-slide-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes welcome-slide-in-prev {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* LEFT — PNG image */
.welcome-visual {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 20%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(80% 60% at 80% 80%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
    #0a0c12;
  overflow: hidden;
  isolation: isolate;
}
[data-theme="light"] .welcome-visual { background:
  radial-gradient(120% 80% at 20% 20%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
  radial-gradient(80% 60% at 80% 80%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
  #eeeeea;
}
.welcome-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 200ms var(--ease);
}

/* RIGHT — text column */
.welcome-text {
  min-width: 0;
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
}
.welcome-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-right: 52px;
}
.welcome-brand {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
}
.welcome-brand .brand-logo { display: block; }
.welcome-lang {
  display: inline-flex;
  padding: 3px;
  background: rgba(255,255,255,.04);
  border: 0;
  border-radius: 8px;
}
[data-theme="light"] .welcome-lang { background: rgba(0,0,0,.05); }
.welcome-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.welcome-lang-btn:hover { color: var(--fg-2); }
.welcome-lang-btn.on {
  background: var(--bg-1);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, var(--line));
}
.welcome-h {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 16px;
  color: var(--fg);
  text-wrap: balance;
}
.welcome-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

.welcome-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  margin-top: auto;
}

.welcome-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.welcome-dot {
  appearance: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--line-strong, var(--line));
  cursor: pointer;
  transition: background-color 200ms var(--ease), width 240ms var(--ease-out, ease-out), transform 200ms var(--ease);
}
.welcome-dot:hover { background: var(--fg-4); }
.welcome-dot.on {
  background: var(--accent);
  width: 22px;
}
.welcome-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.welcome-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.welcome-arrow {
  appearance: none;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 0;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 200ms var(--ease), background-color 200ms var(--ease), opacity 200ms var(--ease);
}
[data-theme="light"] .welcome-arrow { background: rgba(0,0,0,.05); }
.welcome-arrow svg { width: 13px; height: 13px; display: block; }
.welcome-arrow:hover:not(:disabled) {
  color: var(--fg);
  background: rgba(255,255,255,.1);
}
[data-theme="light"] .welcome-arrow:hover:not(:disabled) { background: rgba(0,0,0,.08); }
.welcome-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.welcome-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.welcome-next,
.welcome-cta {
  min-width: 110px;
  justify-content: center;
  gap: 8px;
}
.welcome-btn-arrow {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  transition: transform .2s var(--ease-out, ease);
}
.welcome-next:hover .welcome-btn-arrow,
.welcome-cta:hover .welcome-btn-arrow {
  transform: translateX(2px);
}

@media (max-width: 760px) {
  .welcome-overlay { padding: 12px; }
  .welcome-stage { min-height: 0; }
  .welcome-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .welcome-visual {
    height: 200px;
    min-height: 200px;
  }
  .welcome-text { padding: 24px 22px 22px; }
  .welcome-h { font-size: 20px; }
  .welcome-desc { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-overlay,
  .welcome-card,
  .welcome-slide {
    animation: none !important;
  }
  .welcome-dot { transition: background-color 0ms; }
}
