/* ProLinkR marketing + legal site — shared styles.
   Self-contained, no external dependencies. Light/dark aware. */

:root {
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --text: #1c1c1e;
  --text-secondary: #6c6c70;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --maxw: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --border: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

.lang-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero p.lead {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
}
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px; font-weight: 600;
}

/* Sections */
section { padding: 40px 0; }
h2 {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  font-weight: 700;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* Legal / long-form pages */
.doc { padding: 48px 0 24px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .updated { color: var(--text-secondary); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p { margin: 0 0 16px; }
.doc .intro { font-size: 19px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 15px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text); text-decoration: none; }

/* App Store badge (official artwork, localized EN/FR) */
.store-link { display: inline-block; line-height: 0; }
.store-link:hover { text-decoration: none; opacity: 0.85; }
/* Official badges are sized by height, preserving their aspect ratio. */
.appstore-badge { height: 52px; width: auto; display: block; }

/* Language visibility — toggled by data-lang on <html> */
[data-lang="en"] .lang-fr { display: none; }
[data-lang="fr"] .lang-en { display: none; }
