.site-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-tool,
.support-link {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #dce7e8);
  border-radius: 999px;
  color: var(--navy, #113952);
  background: var(--white, #fff);
  font: 800 12px/1 "Reddit Sans", system-ui, sans-serif;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.site-tool { cursor: pointer; padding: 0 11px; }
.support-link { padding: 0 14px; white-space: nowrap; }
.site-tool:hover,
.support-link:hover { border-color: var(--cyan, var(--turq, #00acc9)); transform: translateY(-1px); }
.theme-icon { font-size: 16px; line-height: 1; }

.crm-embed {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: var(--radius, 24px);
  background: transparent;
}

.product-showcase { overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.showcase-card { overflow: hidden; margin: 0; border: 1px solid var(--line, #dce7e8); border-radius: 20px; background: var(--white, #fff); box-shadow: 0 18px 50px rgba(17,57,82,.08); }
.showcase-media { aspect-ratio: 16 / 8.4; overflow: hidden; background: #eaf0f4; }
.showcase-media img { width: 100%; height: 112%; object-fit: cover; object-position: center 62%; transform: translateY(-6%); }
.showcase-card figcaption { padding: 20px 22px 23px; }
.showcase-card strong { display: block; color: var(--navy, #113952); font: 700 18px/1.2 "Be Vietnam Pro", sans-serif; }
.showcase-card span { display: block; margin-top: 7px; color: var(--muted, #607282); font-size: 14px; }

.legal-page .legal-hero { padding: 72px 0 46px; background: var(--paper, #f7f8f7); border-bottom: 1px solid var(--line, #dce7e8); }
.legal-page .legal-hero h1 { max-width: 820px; margin: 14px 0 12px; color: var(--navy, #113952); font: 700 clamp(38px, 5vw, 64px)/1.02 "Be Vietnam Pro", sans-serif; letter-spacing: -.045em; }
.legal-page .legal-hero p { max-width: 720px; margin: 0; color: var(--muted, #607282); }
.legal-page .legal-content { padding: 60px 0 90px; }
.legal-page .legal-document { max-width: 820px; }
.legal-page .legal-document h2 { margin: 38px 0 10px; color: var(--navy, #113952); font: 700 22px/1.25 "Be Vietnam Pro", sans-serif; }
.legal-page .legal-document h2:first-child { margin-top: 0; }
.legal-page .legal-document h3 { margin: 24px 0 8px; color: var(--navy, #113952); font: 700 17px/1.3 "Be Vietnam Pro", sans-serif; }
.legal-page .legal-document p { margin: 0 0 14px; }
.legal-page .legal-document ul { margin: 0 0 18px; padding-left: 24px; }
.legal-page .legal-document li { margin-bottom: 7px; }
.legal-page .legal-document a { color: var(--cyan, var(--turq, #00acc9)); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-page .legal-en { display: none; }
html[lang="en"] .legal-page .legal-es { display: none; }
html[lang="en"] .legal-page .legal-en { display: block; }

.subproduct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.subproduct-card { display: flex; min-height: 270px; flex-direction: column; padding: 26px; border: 1px solid var(--line, #dce7e8); border-radius: 20px; background: var(--white, #fff); }
.subproduct-card .product-kicker { margin-bottom: 13px; }
.subproduct-card h3 { margin: 0 0 10px; color: var(--navy, #113952); font: 700 25px/1.08 "Be Vietnam Pro", sans-serif; }
.subproduct-card p { margin: 0 0 20px; color: var(--muted, #607282); font-size: 14px; }
.subproduct-card .text-link { margin-top: auto; }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #d8e9ed;
  --muted: #a7c2c9;
  --paper: #082535;
  --line: #285064;
  --shadow: 0 24px 80px rgba(0,0,0,.3);
}
html[data-theme="dark"] body { background: #071f2d; color: #d8e9ed; }
html[data-theme="dark"] .site-header { background: rgba(7,31,45,.94); border-color: #26495b; }
html[data-theme="dark"] .prototype-ribbon { background: #0d3748; color: #9feaf2; }
html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .corporate-link,
html[data-theme="dark"] .lang { color: #b3cbd1; }
html[data-theme="dark"] .site-tool,
html[data-theme="dark"] .support-link { background: #0d3042; color: #dff5f7; border-color: #31586a; }
html[data-theme="dark"] .menu-toggle { color: #dff5f7; }
html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .proof-strip,
html[data-theme="dark"] .friction-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .method-card,
html[data-theme="dark"] .subproduct-card,
html[data-theme="dark"] .crm-embed { background: #0d3042; }
html[data-theme="dark"] .showcase-card { background: #0d3042; }
html[data-theme="dark"] .faq-item { background: #0d3042; border-color: #285064; }
html[data-theme="dark"] .faq-item summary { color: #dff5f7; }
html[data-theme="dark"] .faq-item summary::after { color: #dff5f7; background: #113d4f; }
html[data-theme="dark"] .faq-answer { color: #a7c2c9; }
html[data-theme="dark"] .section-soft { background: #082535; }
html[data-theme="dark"] .cta-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .mobile-app-section { background: #0a2a3a; }
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .split-copy h2,
html[data-theme="dark"] .cta-copy h2,
html[data-theme="dark"] .mobile-app-copy h2,
html[data-theme="dark"] .contact-copy h2,
html[data-theme="dark"] .trust-item strong,
html[data-theme="dark"] .proof-item strong,
html[data-theme="dark"] .friction-card h3,
html[data-theme="dark"] .product-name,
html[data-theme="dark"] .product-card h3,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .case-card h3,
html[data-theme="dark"] .method-card h3,
html[data-theme="dark"] .method-note strong,
html[data-theme="dark"] .subproduct-card h3,
html[data-theme="dark"] .feature-link,
html[data-theme="dark"] .showcase-card strong,
html[data-theme="dark"] .text-link { color: #dff5f7; }
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .split-copy p,
html[data-theme="dark"] .cta-copy p,
html[data-theme="dark"] .mobile-app-copy > p,
html[data-theme="dark"] .contact-copy p,
html[data-theme="dark"] .trust-item span,
html[data-theme="dark"] .proof-item span,
html[data-theme="dark"] .friction-card p,
html[data-theme="dark"] .product-card p,
html[data-theme="dark"] .product-card li,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .case-card p,
html[data-theme="dark"] .method-card p,
html[data-theme="dark"] .subproduct-card p,
html[data-theme="dark"] .check-list li,
html[data-theme="dark"] .cta-points,
html[data-theme="dark"] .contact-points li { color: #a7c2c9; }
html[data-theme="dark"] .showcase-card span { color: #a7c2c9; }
html[data-theme="dark"] .legal-page .legal-hero { background: #082535; border-color: #285064; }
html[data-theme="dark"] .legal-page .legal-hero h1,
html[data-theme="dark"] .legal-page .legal-document h2,
html[data-theme="dark"] .legal-page .legal-document h3 { color: #dff5f7; }
html[data-theme="dark"] .legal-page .legal-hero p,
html[data-theme="dark"] .legal-page .legal-document { color: #a7c2c9; }
html[data-theme="dark"] .proof-item,
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .product-card li { border-color: #285064; }
html[data-theme="dark"] .method-note { background: #113d4f; color: #c3d9de; }
html[data-theme="dark"] .case-meta,
html[data-theme="dark"] .method-card::before { color: #8fb3bc; }
html[data-theme="dark"] .button-light { background: #123b4d; color: #dff5f7; border-color: #31586a; }
html[data-theme="dark"] .button-dark { background: #00acc9; color: #062d40; }
html[data-theme="dark"] .store-button { background: #123b4d; border-color: #31586a; }
html[data-theme="dark"] .store-button:hover { background: #195069; }
html[data-theme="dark"] .mobile-app-tag { color: #dff5f7; background: #0d3042; border-color: #31586a; }
html[data-theme="dark"] .friction-card::after { color: #153b4d; }
html[data-theme="dark"] .product-card li { color: #bfd3d8; border-color: #24495b; }
html[data-theme="dark"] .card-icon,
html[data-theme="dark"] .product-badge { background: #113d4f; color: #6edfeb; }
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .product-logo:not([data-dark-src]) { filter: brightness(0) invert(1); }
html[data-theme="dark"] [data-dark-src] { filter: none; }

@media (max-width: 1080px) {
  .support-link { display: none; }
}
@media (max-width: 760px) {
  .nav-actions > .button { display: none; }
  .site-tools { gap: 5px; }
  .site-tool { min-width: 38px; min-height: 38px; padding: 0 9px; }
  .subproduct-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .crm-embed { min-height: 880px; }
  html[data-theme="dark"] .main-nav { background: #0d3042; }
  html[data-theme="dark"] .main-nav a:hover { background: #113d4f; }
}
