/* ============================================================
   Zenca Services — additive styles (Phase 1)
   Extends css/site.css. Reuses the same tokens; adds nothing to
   the palette. Pricing + service-card components only.
   ============================================================ */

/* [hidden] must win over component display rules (e.g. .field{display:grid})
   so conditionally-hidden intake fields actually disappear. */
[hidden] { display: none !important; }

/* ---------- Currency toggle (matches the Zenca tools; our design tokens) ---------- */
/* Injected into .header-inner by pricing.js on pages that show prices. */
.header-inner { gap: 14px; }
.brand { margin-right: auto; }        /* keep brand left; group nav + toggle right */
.site-nav { order: 1; }
.ccy {
  order: 2; display: flex; align-items: stretch;
  border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
}
.ccy-btn {
  -webkit-appearance: none; appearance: none; background: transparent; border: none;
  cursor: pointer; color: var(--muted); font: inherit; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.02em; padding: 7px 14px; white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.ccy-btn:hover { color: var(--text); }
.ccy-btn.is-active { background: var(--gold); color: #000; }
.ccy-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-toggle { order: 3; }             /* mobile hamburger sits rightmost */

/* ---------- Live price display ---------- */
/* sats price (prominent, left) and the fiat estimate (muted, right) share one
   baseline-aligned row; the "updated …" freshness lives in the page status line. */
.price {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; width: 100%; line-height: 1.2;
}
.price-sats {
  font-size: 1.12rem; font-weight: 600; color: var(--gold); letter-spacing: 0.01em;
}
.price-inr { display: inline-flex; align-items: baseline; }
.price-inr-amount { font-size: 0.95rem; color: var(--muted); font-weight: 400; white-space: nowrap; }

/* Page-level live-rate status line */
[data-price-status] {
  font-size: 0.8rem; color: var(--faint); font-weight: 300; margin: 0;
}
[data-price-status].is-stale { color: #b8895f; }

/* ---------- "What's a sat?" explainer (shown before any sat price) ---------- */
.sats-note {
  display: block; margin: 0 0 24px; padding: 16px 20px;
  border: 1px solid var(--line); border-left: 2px solid var(--gold-2); border-radius: 10px;
  background: rgba(198,161,91,0.03);
  color: var(--muted); font-weight: 300; font-size: 0.92rem; line-height: 1.6;
  /* Full container width so every note box lines up (with each other and the
     price grid above). Do not cap width per-box — keep them uniform. */
}
.sats-note-q {
  color: var(--gold); font-weight: 600; letter-spacing: 0.02em;
}

/* ---------- Pricing cards (Private tiers etc.) ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px;
}
.price-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px;
  background: var(--surface); display: flex; flex-direction: column; gap: 14px;
}
.price-card h3 { font-size: 1.15rem; }
.price-card .price-card-sub { color: var(--muted); font-weight: 300; font-size: 0.9rem; }
.price-card .price { margin-top: auto; }
.price-card .price-note { color: var(--faint); font-weight: 300; font-size: 0.82rem; line-height: 1.5; }

/* ---------- Boundary (what Zenca does / does not do) ---------- */
.boundary { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.boundary ul li {
  position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-weight: 300; font-size: 1rem;
}
.boundary .does li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }
.boundary .does li { color: var(--text); }
.boundary .doesnot li::before { content: "×"; position: absolute; left: 0; color: var(--faint); }

.price-grid-wide { grid-template-columns: repeat(3, 1fr); }

/* Stacked variant (used for organizations' range cards): every piece of info on
   its own line, top-down — no cross-card horizontal alignment to fight. */
.price-card--stack { justify-content: flex-start; gap: 4px; }
.price-card--stack h3 { margin-bottom: 0; }
.price-format {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.price-card--stack .price { margin-top: 4px; }          /* not bottom-pushed here */
.price-card--stack .price-note { margin-top: 10px; }
.price-plus {
  display: block; font-size: 0.72rem; color: var(--gold-2);
  letter-spacing: 0.04em; margin-top: 2px;
}

/* Range prices stack: sats on one line, fiat estimate on the next (with room). */
.price.is-range { flex-direction: column; align-items: flex-start; gap: 7px; }
.price.is-range .price-inr-amount { color: var(--muted); }

/* ---------- Shared CTA (matches the tools-page aesthetic) ---------- */
.tool-cta {
  margin-top: auto; color: var(--gold); font-size: 0.9rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.tool-cta span { transition: transform 0.2s var(--ease); }
a:hover > .tool-cta span,
.tri-card:hover .tool-cta span,
.svc-card:hover .tool-cta span { transform: translateX(4px); }

/* ---------- Trilemma cards ---------- */
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tri-card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.tri-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.tri-card h3 { font-size: 1.25rem; }
.tri-dims { display: grid; gap: 8px; }
.tri-dims li {
  display: flex; justify-content: space-between; font-size: 0.95rem;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.tri-dims li span { color: var(--faint); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tri-win { color: var(--gold); }
.tri-give { color: var(--muted); }
.tri-trade { color: var(--faint); font-weight: 300; font-size: 0.88rem; line-height: 1.5; }

/* ---------- Service directory cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.svc-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.svc-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc-card-top .eyebrow { margin: 0; }
.svc-price { font-size: 0.78rem; color: var(--gold-2); font-weight: 500; white-space: nowrap; }
.svc-desc { color: var(--muted); font-weight: 300; font-size: 0.98rem; line-height: 1.55; }
.svc-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.svc-delivery {
  align-self: flex-start; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px;
}

/* ---------- Masterclass pricing (open per-seat card + private group grid) ---------- */
.mc-mode .eyebrow { margin: 0 0 10px; }
.mc-open { max-width: 440px; }

/* ---------- Named "uses" of hourly Private time (same rate) ---------- */
.use-block .eyebrow { margin: 0 0 6px; }
.use-note { color: var(--muted); font-weight: 300; font-size: 0.9rem; margin: 0 0 16px; }
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px;
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
}
.use-card h4 { font-size: 1.02rem; color: var(--gold); font-weight: 500; }
.use-desc { color: var(--muted); font-weight: 300; font-size: 0.92rem; line-height: 1.55; }
.use-topics {
  margin-top: auto; color: var(--faint); font-weight: 300;
  font-size: 0.78rem; line-height: 1.6;
}

/* Quick-jump between Private formats (in the hero) */
.format-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.format-jump a {
  display: inline-flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 16px;
  color: var(--text); font-size: 0.95rem; font-weight: 500;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.format-jump a:hover { border-color: var(--gold); transform: translateY(-1px); }
.format-jump .fj-sub { color: var(--faint); font-size: 0.72rem; font-weight: 300; letter-spacing: 0.04em; }

.cta-row { margin-top: clamp(28px, 4vw, 40px); }

/* Delivery line on service detail pages */
.delivery-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 22px; }
.delivery-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-2); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.delivery-detail { color: var(--muted); font-weight: 300; font-size: 0.95rem; line-height: 1.5; flex: 1 1 260px; }

/* ---------- Journeys ---------- */
.journeys { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.journeys li {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 24px; border-top: 1px solid var(--line);
}
.journeys li:first-child { border-top: none; }
.journey-intent { color: var(--text); font-weight: 300; font-size: 1.02rem; }
.journey-go { color: var(--gold); font-size: 0.9rem; font-weight: 500; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.journey-go span { transition: transform 0.2s var(--ease); }
.journeys li:hover .journey-go span { transform: translateX(4px); }

/* ---------- Definition list (partnership structure) ---------- */
.def-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.def-list li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--line); }
.def-list li:first-child { border-top: none; }
.def-term { color: var(--gold); font-weight: 500; font-size: 0.95rem; }
.def-desc { color: var(--muted); font-weight: 300; }

/* ---------- Ordered outline (money→bitcoin, memo) ---------- */
.mb-outline { counter-reset: step; display: grid; gap: 2px; }
.mb-outline li {
  position: relative; counter-increment: step; padding: 14px 0 14px 48px;
  border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 300; font-size: 1.02rem; line-height: 1.5;
}
.mb-outline li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px;
  color: var(--gold-2); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
}

/* ---------- Book form extras ---------- */
select {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 1rem; padding: 13px 15px; cursor: pointer;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select:focus { outline: none; border-color: var(--gold); }
select option { background: #0a0a0a; color: var(--text); }
.consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 16px; border: 1px solid var(--line-2); border-radius: 10px;
}
.consent:hover { border-color: var(--faint); }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.consent span { color: var(--muted); font-weight: 300; font-size: 0.9rem; line-height: 1.5; }
.consent input:checked ~ span { color: var(--text); }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 300; }

/* Service selector as toggle buttons (replaces the dropdown) */
.svc-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.svc-btn {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); font: inherit; font-size: 0.9rem; padding: 10px 16px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.svc-btn:hover { border-color: var(--faint); color: var(--text); }
.svc-btn.is-active { border-color: var(--gold); color: var(--gold); background: rgba(198,161,91,0.10); }
.svc-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Second toggle set — the price variable (participants / location) */
.svc-suboptions { margin-top: 14px; }
.svc-sub-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.svc-toggle-sub { margin-top: 0; }
.svc-btn-sub { font-size: 0.85rem; padding: 8px 14px; }

/* Live price of the selected service, shown before sending a request */
.svc-price {
  margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line);
  border-left: 2px solid var(--gold-2); border-radius: 10px; background: rgba(198,161,91,0.03);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
}
.svc-price .price { width: auto; }          /* inline, not full-width, in this context */
.svc-price .price-sats { font-size: 1.1rem; }
.svc-price-unit { color: var(--muted); font-size: 0.9rem; }
.svc-price-text { color: var(--gold); font-weight: 600; font-size: 1.05rem; }
.boundary-note {
  display: block; margin: 20px 0 0; padding: 14px 16px;
  border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 10px;
  background: rgba(198,161,91,0.04);
  color: var(--muted); font-weight: 300; font-size: 0.88rem; line-height: 1.55;
}
.request-note {
  margin: 4px 0 14px; padding: 12px 16px; border: 1px solid var(--line);
  border-left: 2px solid var(--gold-2); border-radius: 10px; background: rgba(198,161,91,0.03);
  color: var(--muted); font-weight: 300; font-size: 0.9rem; line-height: 1.55;
}

@media (max-width: 760px) {
  .price-grid, .price-grid-wide, .tri-grid, .svc-grid, .use-grid { grid-template-columns: 1fr; }
  .boundary { grid-template-columns: 1fr; }
  .def-list li { grid-template-columns: 1fr; gap: 4px; }
  .journeys li { flex-direction: column; align-items: flex-start; gap: 10px; }
}
