/* =====================================================================
   ProxiQ shared stylesheet
   Used by: index.html, privacy.html (pending)
   Last updated: 2026-05-18
   ===================================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

a { color: inherit; }

ul[role="list"], ol[role="list"] {
  list-style: none;
  padding: 0;
}

[hidden] { display: none !important; }

/* ---- Design tokens ---- */
:root {
  /* Surfaces */
  --bg: #07090f;
  --surface: #0b0f1a;
  --card: #0f1828;
  --surface-1: #0d1019;
  --surface-2: #131620;
  --surface-elevated: #181c27;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text-primary: #f0f0f2;
  --text-secondary: #a8a8b0;
  --text-muted: #6c6c75;
  --text-inverse: #07090f;

  /* Brand accents */
  --accent: #4a8af4;
  --accent-hover: #3a7ae4;
  --accent-soft: rgba(74, 138, 244, 0.12);

  --coach: #d4b56e;
  --coach-soft: rgba(212, 181, 110, 0.08);

  --partner: #6e9d7c;
  --partner-soft: rgba(110, 157, 124, 0.08);

  --error: #d4886e;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1080px;
  --container-pad: clamp(1.5rem, 4vw, 3rem);

  /* Radii */
  --radius: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.22s ease;
}

/* ---- Base ---- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
}

/* ---- Site header (nav) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.brand {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}


.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta { color: var(--text-primary); }

.accent-q {
  color: var(--accent);
}

/* ---- Section base ---- */
section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

/* ---- Eyebrow ---- */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

/* ---- Section title ---- */
.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 28ch;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 1rem;
}

.platform-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 56ch;
  margin-bottom: 3rem;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  padding-top: clamp(5rem, 10vw, 8.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.hero-inner { max-width: 720px; }

.hero-title {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  max-width: 16ch;
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.005em;
  max-width: 56ch;
  line-height: 1.55;
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 60ch;
  line-height: 1.55;
  margin-top: 1.5rem;
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn-primary:hover { background: var(--accent-hover); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.products {
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.product-coach { color: var(--coach); }
.product-partner { color: var(--partner); }

.product-card-inner {
  padding: 2rem 1.875rem 1.875rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

@media (min-width: 768px) {
  .product-card-inner { padding: 2.25rem 2rem 2rem; }
}

.product-head { margin-bottom: 1.75rem; }

.product-mark {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: currentColor;
  margin-bottom: 0.625rem;
}

.product-positioning {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 38ch;
}

.product-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.product-bullets li {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.55;
  padding-left: 1.375rem;
  position: relative;
}

.product-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 8px;
  height: 1px;
  background: currentColor;
}

.product-forward {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.product-forward li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  padding-left: 1.375rem;
  position: relative;
}

.product-forward li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.product-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: currentColor;
  text-decoration: none;
  letter-spacing: -0.005em;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0;
  transition: opacity var(--t-base), gap var(--t-base);
}

.product-link:hover {
  opacity: 0.78;
  gap: 0.75rem;
}

.product-link-arrow {
  display: inline-block;
  transition: transform var(--t-base);
}

/* =====================================================================
   WHO BUILT THIS
   ===================================================================== */
.who {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
}

.who-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 64ch;
}

.who-links {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.who-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

.who-links a:hover { color: var(--accent-hover); }

.who-links-sep { color: var(--text-muted); }

/* =====================================================================
   ACCESS / FORM
   ===================================================================== */
.access { border-top: 1px solid var(--border-subtle); }

.access-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 60ch;
  line-height: 1.6;
}

.access-content { max-width: 600px; }

.access-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label,
.field-radio legend {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8125rem 0.9375rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--t-base), background var(--t-base);
  font-family: inherit;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.55;
}

.field-radio {
  border: none;
  padding: 0;
  margin: 0;
}

.field-radio legend {
  margin-bottom: 0.75rem;
  padding: 0;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .radio-group { grid-template-columns: 1fr 1fr; }
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8125rem 0.9375rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t-base), background var(--t-base);
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.radio:hover { border-color: var(--border); }

.radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--t-base);
  margin: 0;
}

.radio input[type="radio"]:checked { border-color: var(--accent); }

.radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 1.25em;
  line-height: 1.5;
}

.form-note-error { color: var(--error); }

.form-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.access-success {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  outline: none;
}

.access-success p {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.55;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
}

.site-footer p,
.site-footer a {
  font-size: 0.75rem;
  letter-spacing: 0.005em;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
}

.footer-built a {
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.footer-built a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-nav a { transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--text-secondary); }

.footer-meta { letter-spacing: -0.005em; }

/* =====================================================================
   PRIVACY PAGE SUPPORT
   For privacy.html when updated in the follow-up task.
   ===================================================================== */
.legal {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.legal-effective {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.legal p,
.legal li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
}

.legal ul,
.legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover { color: var(--accent-hover); }

/* =====================================================================
   FOCUS STATE
   ===================================================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.radio:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =====================================================================
   SELECTION
   ===================================================================== */
::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}
