/* ACPN Consulting - shared styles for all pages */
body { margin: 0; }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  :root {
    /* ---- palette tokens (light) ---- */
    --bg: #F5F6FA;
    --surface: #FFFFFF;
    --surface-2: #EBEDF6;
    --text: #12172B;
    --text-muted: #565D7D;
    --border: #DCE0EC;
    --accent-gold: #B9791F;
    --accent-cyan: #12879E;
    --shadow: 0 18px 40px -24px rgba(18, 23, 43, 0.35);

    /* ---- brand chrome: fixed dark navy, same in both themes (matches the logo) ---- */
    --brand-bg: #0A0D22;
    --brand-bg-2: #161C3C;
    --brand-text: #F4F5FA;
    --brand-text-muted: #A9AFCE;
    --brand-gold: #E8B85C;
    --brand-gold-2: #C98A2E;
    --brand-cyan: #3FCBE3;
    --brand-border: #2A3160;

    /* ---- type ---- */
    --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    --fs-h1: clamp(2.1rem, 1.55rem + 2.4vw, 3.4rem);
    --fs-h2: clamp(1.5rem, 1.28rem + 1vw, 2.15rem);
    --fs-h3: 1.2rem;
    --fs-eyebrow: 0.78rem;

    color-scheme: light;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0B0E1F;
      --surface: #141931;
      --surface-2: #1C2242;
      --text: #F1F2F8;
      --text-muted: #A9AFCE;
      --border: #2B3160;
      --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
      color-scheme: dark;
    }
  }

  :root[data-theme="dark"] {
    --bg: #0B0E1F;
    --surface: #141931;
    --surface-2: #1C2242;
    --text: #F1F2F8;
    --text-muted: #A9AFCE;
    --border: #2B3160;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }

  * { box-sizing: border-box; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  [hidden] { display: none !important; }

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

  h1, h2, h3 {
    font-family: var(--font-display);
    text-wrap: balance;
    line-height: 1.12;
    margin: 0;
  }

  h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.01em; }
  h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.01em; }
  h3 { font-size: var(--fs-h3); font-weight: 700; }

  p { margin: 0; }

  a { color: inherit; }

  .eyebrow {
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--brand-cyan);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
  }

  /* ---------------- header ---------------- */
  header.site {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: var(--brand-bg);
    border-bottom: 1px solid var(--brand-border);
  }

  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.7rem;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--brand-text);
    min-width: 0;
    flex: none;
  }

  .brand img { height: 34px; width: auto; border-radius: 4px; flex: none; }

  .brand-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  @media (max-width: 420px) {
    .brand-word { display: none; }
  }

  nav.links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }

  nav.links a {
    text-decoration: none;
    color: var(--brand-text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.15s ease;
  }
  nav.links a:hover { color: var(--brand-text); }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }

  .lang-toggle {
    display: inline-flex;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    overflow: hidden;
  }

  .lang-btn {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.7rem;
    background: transparent;
    color: var(--brand-text-muted);
    border: none;
    cursor: pointer;
  }
  .lang-btn[aria-pressed="true"] {
    background: var(--brand-gold);
    color: var(--brand-bg);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }

  .btn-gold {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
    color: #1A1204;
  }

  .btn-outline {
    background: transparent;
    color: var(--brand-text);
    border-color: var(--brand-border);
  }
  .btn-outline:hover { border-color: var(--brand-cyan); }

  .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    color: var(--brand-text);
    padding: 0.4rem 0.55rem;
    cursor: pointer;
  }

  @media (max-width: 760px) {
    nav.links { display: none; }
    .nav-actions .btn-gold.cta-nav { display: none; }
    .menu-toggle { display: inline-flex; }

    nav.links.open {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.9rem;
      position: absolute;
      left: 0; right: 0; top: 100%;
      background: var(--brand-bg);
      border-bottom: 1px solid var(--brand-border);
      padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.3rem;
    }
  }

  header.site { position: sticky; }
  .nav-row { position: relative; }

  /* ---------------- hero ---------------- */
  section.hero {
    background:
      radial-gradient(60% 80% at 85% 10%, rgba(63,203,227,0.16), transparent 60%),
      radial-gradient(50% 60% at 10% 100%, rgba(232,184,92,0.14), transparent 60%),
      linear-gradient(160deg, var(--brand-bg) 0%, var(--brand-bg-2) 100%);
    color: var(--brand-text);
    border-bottom: 1px solid var(--brand-border);
    overflow: hidden;
    position: relative;
  }

  .hero-diamond {
    position: absolute;
    right: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: min(48vw, 560px);
    aspect-ratio: 1;
    border: 1.5px solid rgba(63,203,227,0.28);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .hero-diamond { animation: spin 90s linear infinite; }
  }
  @keyframes spin {
    from { transform: translateY(-50%) rotate(45deg); }
    to { transform: translateY(-50%) rotate(405deg); }
  }

  .hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    padding-block: clamp(2.8rem, 7vw, 5.5rem);
  }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; max-width: 280px; margin-inline: auto; }
  }

  .hero-copy { display: flex; flex-direction: column; gap: 1.3rem; }

  .motto-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    font-family: var(--font-display);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gold);
    background: rgba(232, 184, 92, 0.1);
    border: 1px solid rgba(232, 184, 92, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
  }

  .hero-eyebrow { color: var(--brand-cyan); }

  .hero-copy p.lede {
    font-size: 1.08rem;
    color: var(--brand-text-muted);
    max-width: 46ch;
  }

  .hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }

  .hero-media img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  }

  /* ---------------- generic section ---------------- */
  section.block { padding-block: clamp(3rem, 7vw, 5rem); }
  section.block.alt { background: var(--surface-2); }

  .section-head {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 62ch;
    margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
  }
  .section-head .eyebrow { color: var(--accent-cyan); }
  .section-head p { color: var(--text-muted); font-size: 1.02rem; }

  /* ---------------- about ---------------- */
  .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.8rem, 4vw, 3rem);
    align-items: start;
  }
  @media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

  .about-copy { display: flex; flex-direction: column; gap: 1.1rem; }
  .about-copy p { color: var(--text-muted); font-size: 1.02rem; }
  .about-copy p strong { color: var(--text); }

  .purpose-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow);
  }
  .purpose-card h3 { display: flex; align-items: center; gap: 0.5rem; }
  .purpose-card .tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--accent-gold);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
  }
  .purpose-card summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 0.92rem;
    margin-top: 0.9rem;
  }
  .purpose-card blockquote {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--text-muted);
    border-left: 3px solid var(--border);
    margin: 0.8rem 0 0;
    padding: 0.2rem 0 0.2rem 1rem;
  }
  .purpose-card p.intro { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.6rem; }

  /* ---------------- services ---------------- */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
  }

  .service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.7rem 1.7rem 1.9rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .service-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  }
  .service-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; }

  .service-card p.desc { color: var(--text-muted); }

  .service-card ul {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .service-card li {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--text);
  }
  .service-card li::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 1px;
    background: var(--accent-gold);
    transform: rotate(45deg);
    flex: none;
    margin-top: 0.35em;
  }

  /* ---------------- team ---------------- */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
  }
  .team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
  .team-avatar {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-bg-2), var(--brand-bg));
    display: flex; align-items: center; justify-content: center;
  }
  .team-avatar svg { width: 24px; height: 24px; stroke: var(--brand-gold); fill: none; }
  .team-card .placeholder-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
  }

  /* ---------------- contact ---------------- */
  .contact-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.6rem;
  }
  .contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .contact-card .k {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
  }
  .contact-card .v { font-size: 1rem; }
  .contact-card a.v { text-decoration: none; }
  .contact-card a.v:hover { color: var(--accent-cyan); }

  .domains-row {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.2rem;
  }
  .chip {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
    color: var(--text);
  }
  .chip:hover { border-color: var(--accent-cyan); }

  .contact-cta { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
  .contact-cta .btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
    color: #fff;
  }
  .contact-cta .btn-outline {
    color: var(--text);
    border-color: var(--border);
  }

  /* ---------------- footer ---------------- */
  footer.site {
    background: var(--brand-bg);
    color: var(--brand-text-muted);
    border-top: 1px solid var(--brand-border);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
    padding-block: clamp(2.4rem, 5vw, 3.2rem) 1.6rem;
  }
  @media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

  .footer-brand { display: flex; align-items: center; gap: 0.6rem; }
  .footer-brand img { height: 30px; border-radius: 4px; }
  .footer-brand .brand-word { color: var(--brand-text); }
  .footer-tagline { margin-top: 0.7rem; font-size: 0.9rem; max-width: 32ch; }

  .footer-col h3 {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-text);
    margin-bottom: 0.8rem;
  }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
  .footer-col a { text-decoration: none; font-size: 0.92rem; color: var(--brand-text-muted); }
  .footer-col a:hover { color: var(--brand-text); }

  .footer-legal {
    border-top: 1px solid var(--brand-border);
    padding-block: 1.1rem;
    font-size: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
  }

/* =====================================================================
   Additions for the Software section and the OptionConnect pages.
   Layout idea: the product is shown the way it is used, as a worksheet
   with the panel docked on its right; everything else stays quiet.
   ===================================================================== */
:root {
  --ok: #1B7A4E;
  --warn: #8A5A00;
  --warn-bg: #FFF4D6;
  --cell-head: #EEF0F7;
  --cell-line: #DDE1EC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ok: #62D39C;
    --warn: #F2C56B;
    --warn-bg: #3A2F12;
    --cell-head: #1C2242;
    --cell-line: #2B3160;
  }
}
:root[data-theme="dark"] {
  --ok: #62D39C;
  --warn: #F2C56B;
  --warn-bg: #3A2F12;
  --cell-head: #1C2242;
  --cell-line: #2B3160;
}

.muted { color: var(--text-muted); }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }
.copy-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.copy-col p { color: var(--text-muted); max-width: 65ch; }
.copy-col p strong { color: var(--text); }

/* ---- status pill ---- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  color: var(--accent-gold);
  border: 1px solid var(--border);
  background: var(--surface);
}
.status-pill::before {
  content: "";
  width: 7px; height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.page-hero .status-pill {
  color: var(--brand-gold);
  background: rgba(232, 184, 92, 0.1);
  border-color: rgba(232, 184, 92, 0.35);
}

/* ---- Software section on the homepage ---- */
.software-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
.software-grid > * { min-width: 0; }
@media (max-width: 860px) { .software-grid { grid-template-columns: 1fr; } }
.software-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.btn-solid {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  color: #fff;
}
.btn-line { color: var(--text); border-color: var(--border); background: transparent; }
.btn-line:hover { border-color: var(--accent-cyan); }

/* ---- sub-page hero ---- */
section.page-hero {
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(63,203,227,0.16), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(232,184,92,0.14), transparent 60%),
    linear-gradient(160deg, var(--brand-bg) 0%, var(--brand-bg-2) 100%);
  color: var(--brand-text);
  border-bottom: 1px solid var(--brand-border);
}
.page-hero .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 4vw, 2.6rem);
  padding-block: clamp(2.4rem, 6vw, 4.2rem);
}
.page-hero .hero-copy { max-width: 62ch; }
.page-hero.slim .wrap { padding-block: clamp(2rem, 5vw, 3rem); }

/* ---- worksheet + panel illustration ---- */
.xl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55);
  font-size: 0.8rem;
  line-height: 1.35;
}
@media (max-width: 820px) { .xl { grid-template-columns: minmax(0, 1fr); } }
.xl-sheet { min-width: 0; display: flex; flex-direction: column; }
.xl-fx {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--cell-line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-width: 0;
}
.xl-fx .ref {
  flex: none;
  border: 1px solid var(--cell-line);
  border-radius: 4px;
  padding: 0.05rem 0.45rem;
  color: var(--text-muted);
}
.xl-fx .fx { flex: none; font-style: italic; color: var(--text-muted); }
.xl-fx .formula { min-width: 0; overflow-wrap: anywhere; }
.xl-scroll { overflow-x: auto; }
.xl table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.xl th, .xl td {
  border-right: 1px solid var(--cell-line);
  border-bottom: 1px solid var(--cell-line);
  padding: 0.38rem 0.6rem;
  text-align: right;
}
.xl thead th {
  background: var(--cell-head);
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  font-size: 0.72rem;
}
.xl tbody th {
  background: var(--cell-head);
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  width: 2.2rem;
  font-size: 0.72rem;
}
.xl td.l { text-align: left; }
.xl tr.head td { font-family: var(--font-display); font-weight: 700; text-align: left; }
.xl td.sel { outline: 2px solid var(--accent-cyan); outline-offset: -2px; }
.xl .live { color: var(--ok); }
.xl .closed { color: var(--warn); }

.xl-panel {
  border-left: 1px solid var(--cell-line);
  background: var(--bg);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
@media (max-width: 820px) { .xl-panel { border-left: none; border-top: 1px solid var(--cell-line); } }
.xl-panel .p-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}
.xl-panel .p-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); align-items: center; gap: 0.5rem; }
.xl-panel .p-label { color: var(--text-muted); font-size: 0.74rem; }
.xl-panel .p-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.xl-panel .p-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; justify-self: start; }
.xl-panel .p-seg span { padding: 0.28rem 0.6rem; font-size: 0.76rem; background: var(--surface); }
.xl-panel .p-seg span.on { background: var(--brand-bg); color: var(--brand-text); font-weight: 600; }
.xl-panel .p-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.xl-panel .p-quote small { display: block; font-family: var(--font-body); color: var(--text-muted); font-size: 0.68rem; }
.xl-panel .p-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.xl-panel .p-chip {
  font-size: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: var(--surface);
  color: var(--text-muted);
}
.xl-panel .p-chip.on { border-color: var(--accent-cyan); color: var(--text); }
.xl-panel .p-btn {
  margin-top: 0.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 7px;
  padding: 0.5rem;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: #1A1204;
}
.xl-caption { font-size: 0.82rem; color: var(--brand-text-muted); margin-top: -1rem; }
section.block .xl-caption { color: var(--text-muted); margin-top: 0.7rem; }
section.block .xl { box-shadow: var(--shadow); }

/* ---- features ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem 2.2rem;
}
.feature { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; padding-top: 1rem; border-top: 2px solid var(--border); }
.feature p { color: var(--text-muted); font-size: 0.96rem; }

/* ---- steps (a real sequence) ---- */
ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
ol.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
ol.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-gold);
  line-height: 1;
}
ol.steps li p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- data tables ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
table.data th, table.data td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data td:first-child { white-space: nowrap; font-family: var(--font-mono); font-size: 0.86rem; }
table.data td { color: var(--text-muted); }
table.data td:first-child { color: var(--text); }

.code-line {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
}

.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-gold);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 75ch;
}
.note strong { color: var(--text); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

ul.plain { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; color: var(--text-muted); }
ul.plain strong { color: var(--text); }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--border); padding-block: 0.95rem; }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.faq details > div { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.7rem; color: var(--text-muted); }
.faq details strong { color: var(--text); }

/* ---- contact line with a visible address ---- */
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.contact-line .addr {
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  user-select: all;
}

.footer-legal a { color: inherit; }

/* ---- fixes ---- */
.copy-col .section-head { margin-bottom: 0; }
.about-grid > *, .hero-grid > *, .card-grid > *, .team-grid > *, .contact-grid > * { min-width: 0; }
h1, h2, h3, p, li, blockquote { overflow-wrap: break-word; }
nav.links a[aria-current="page"] { color: var(--brand-text); }
.note p + p { margin-top: 0.6rem; }
.xl.compact { font-size: 0.74rem; }
.xl.compact th, .xl.compact td { padding: 0.36rem 0.42rem; }

/* ---- pricing ---- */
.price-card h3 { margin: 0; }
.price-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin: 0; color: var(--text); }
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.price-card.featured { border: 2px solid var(--accent-gold); position: relative; }
.price-badge { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: var(--accent-gold); border-radius: 999px; padding: 0.2rem 0.7rem; }
ul.plain.price-notes { margin-top: 1.4rem; max-width: 78ch; font-size: 0.92rem; }

/* ---- legal pages ---- */
.legal-text { max-width: 78ch; }
.legal-text h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { color: var(--text-muted); margin: 0 0 0.8rem; }
.legal-text strong { color: var(--text); }
