/* Syntrix polish layer — loaded after each page's own styles.
   Visual refinement only: no layout, spacing-grid, or content changes. */

:root {
  --polish-cyan: var(--cyan, #22D3EE);
  --polish-cyan-soft: rgba(34, 211, 238, 0.14);
  --polish-ring: 0 0 0 3px rgba(34, 211, 238, 0.35);
  --polish-edge: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --polish-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- Page feel ---------- */
html {
  scroll-padding-top: 104px;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  -moz-osx-font-smoothing: grayscale;
  scrollbar-color: #243653 transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #1A2942;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: #243653; }
::selection { background: rgba(34, 211, 238, 0.85); color: #060B14; }

/* ---------- Type ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-feature-settings: "ss01", "cv11"; }
h1 .accent {
  background: linear-gradient(100deg, #22D3EE 0%, #67E8F9 45%, #A5F3FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em; /* keeps the italic overhang from clipping */
}
.section-tag::before {
  background: linear-gradient(90deg, transparent, var(--polish-cyan));
}

/* ---------- Focus (keyboard users) ---------- */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--polish-ring);
  border-radius: 8px;
}

/* ---------- Navigation ---------- */
body > nav, .auth-nav {
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.05), 0 8px 24px -16px rgba(0, 0, 0, 0.6);
}
.nav-links a { transition: color 0.2s var(--polish-ease); }
.nav-cta {
  transition: border-color 0.2s var(--polish-ease), background 0.2s var(--polish-ease),
    color 0.2s var(--polish-ease), box-shadow 0.2s var(--polish-ease);
}
.nav-cta:hover { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.06); }
.brand-logo { transition: transform 0.3s var(--polish-ease), filter 0.3s var(--polish-ease); }
.brand:hover .brand-logo { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35)); }

/* ---------- Buttons ---------- */
.btn, .price-cta, .auth-btn-primary, .auth-btn-secondary, .auth-outline-btn,
.auth-social-btn, .billing-plan-cta, .billing-portal-btn {
  transition: transform 0.18s var(--polish-ease), background 0.2s var(--polish-ease),
    border-color 0.2s var(--polish-ease), color 0.2s var(--polish-ease),
    box-shadow 0.25s var(--polish-ease), opacity 0.2s;
}
.btn-primary, .auth-btn-primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 20px -8px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover, .auth-btn-primary:hover {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 28px -8px rgba(34, 211, 238, 0.7);
}
.btn-secondary, .auth-btn-secondary, .auth-outline-btn, .auth-social-btn {
  background-color: rgba(15, 26, 44, 0.35);
}
.btn-secondary:hover, .auth-btn-secondary:hover, .auth-outline-btn:hover, .auth-social-btn:hover {
  background-color: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.05);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover, .price-cta:hover, .auth-btn-primary:hover, .billing-plan-cta:hover {
    transform: translateY(-1px);
  }
  .btn:active, .price-cta:active, .auth-btn-primary:active, .billing-plan-cta:active {
    transform: translateY(0);
  }
}
.btn .arrow { transition: transform 0.2s var(--polish-ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Surfaces & cards ---------- */
.hero-terminal {
  box-shadow: var(--polish-edge), 0 40px 100px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(34, 211, 238, 0.08), 0 0 80px -40px rgba(34, 211, 238, 0.25);
}
.scan-card, .scan-status-bar, .audit-card, .auth-card, .billing-card, .billing-plan {
  box-shadow: var(--polish-edge), 0 24px 60px -32px rgba(0, 0, 0, 0.6);
}
.problem-grid, .checks-grid { box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.6); }
.problem-cell, .check-row { transition: background 0.25s var(--polish-ease); }
.problem-cell:hover {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.045), rgba(34, 211, 238, 0) 60%), var(--bg-3, #0F1A2C);
}
.problem-cell:hover .problem-num { color: #67E8F9; }

.pillar, .price-card, .finding {
  box-shadow: var(--polish-edge);
  transition: transform 0.25s var(--polish-ease), border-color 0.25s var(--polish-ease),
    box-shadow 0.3s var(--polish-ease), background 0.25s var(--polish-ease);
}
.pillar:hover, .price-card:hover {
  box-shadow: var(--polish-edge), 0 24px 50px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(34, 211, 238, 0.12);
}
.price-card.featured {
  box-shadow: var(--polish-edge), 0 30px 70px -30px rgba(34, 211, 238, 0.28), 0 0 0 1px rgba(34, 211, 238, 0.25);
}
.price-features li::before { text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }
.pillar-icon { box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.35); }

/* ---------- Form fields ---------- */
.scan-input, .scan-select, .auth-field input, .auth-field select, .auth-field textarea {
  transition: border-color 0.2s var(--polish-ease), box-shadow 0.2s var(--polish-ease),
    background-color 0.2s var(--polish-ease);
}
.scan-input:hover, .scan-select:hover { border-color: #2E4466; }
.scan-input:focus, .scan-select:focus,
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus {
  box-shadow: 0 0 0 4px var(--polish-cyan-soft);
}

/* ---------- Scan progress ---------- */
.scan-progress-fill {
  background-image: linear-gradient(90deg, #06B6D4, #22D3EE, #67E8F9);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

/* ---------- Nav gutters: `.nav-inner { padding: 16px 0 }` cancels `.wrap`'s side padding ---------- */
.wrap.nav-inner { padding-left: 28px; padding-right: 28px; }
.wrap.nav-inner .nav-links a { white-space: nowrap; }
@media (max-width: 720px) {
  .wrap.nav-inner { padding-left: 12px; padding-right: 12px; }
  .wrap.nav-inner .nav-links { gap: 12px; }
  .wrap.nav-inner .brand-logo--header { height: 48px; }
  .wrap.nav-inner .nav-cta { padding: 8px 12px; }
}

/* ---------- Footer ---------- */
footer { background: linear-gradient(180deg, transparent, rgba(10, 19, 32, 0.6)); }
.footer-col a { transition: color 0.2s var(--polish-ease); }

/* ---------- Reveal animation: softer, and off for reduced motion ---------- */
.reveal { transition-timing-function: var(--polish-ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
