/* J++ website. Colours follow the visitor's system: light by default, dark below. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #4257f5;
  --accent-2: #6a3de8;
  --warm: #ef6f6c;
  --btn-text: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 80px -20px rgba(30, 30, 80, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(66, 87, 245, 0.2), rgba(239, 111, 108, 0.1) 55%, transparent 75%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0d0d0f;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #7d8cff;
    --accent-2: #a98bff;
    --warm: #ff8f7d;
    --btn-text: #0b0b12;
    --nav-bg: rgba(0, 0, 0, 0.7);
    --shadow: 0 30px 90px -20px rgba(90, 100, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14);
    --glow: radial-gradient(60% 60% at 50% 40%, rgba(110, 120, 255, 0.3), rgba(255, 120, 110, 0.12) 55%, transparent 75%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text); opacity: 0.8; font-size: 13px; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
/* language switch: two halves, the current language is the raised one */
.lang-toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--text) 9%, transparent); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.lang-toggle a, .lang-toggle span { padding: 6px 10px; border-radius: 999px; color: var(--muted); transition: color 0.2s; }
.lang-toggle a:hover { color: var(--text); text-decoration: none; }
.lang-toggle .on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
@media (prefers-color-scheme: dark) { .lang-toggle .on { background: color-mix(in srgb, var(--text) 26%, transparent); box-shadow: none; } }
.nav-end { display: flex; align-items: center; gap: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--btn-text);
  font-size: 17px; font-weight: 500; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-small { font-size: 13px; padding: 8px 14px; }
.btn-large { font-size: 19px; padding: 18px 34px; }
.btn-soon { background: var(--bg-alt); color: var(--muted); border-color: var(--line); cursor: default; }
.btn-soon:hover { filter: none; transform: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: currentColor; }
.btn-ghost:hover { filter: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* type */
.eyebrow { color: var(--warm); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 12px; }
h1 { font-size: clamp(40px, 7.2vw, 84px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--muted); max-width: 720px; margin-top: 20px; }
.note, .fine { font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* hero */
.hero { text-align: center; padding: 72px 0 0; position: relative; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
.hero .note { margin-top: 18px; }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 20px; filter: drop-shadow(0 16px 30px rgba(60, 70, 200, 0.28)); }
.hero-shot { position: relative; max-width: 1180px; margin: 64px auto 0; padding: 0 24px; }
.hero-shot::before { content: ""; position: absolute; inset: -12% -5% -5%; background: var(--glow); z-index: -1; pointer-events: none; }
.shot { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }

/* numbers */
.stats { padding: 88px 0 96px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }

/* sections */
.section { padding: 112px 0; }
.alt { background: var(--bg-alt); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile { background: var(--card); border-radius: 22px; padding: 32px 28px; }
.tile-icon { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.tile p, .less p, .guide p { color: var(--muted); margin-top: 10px; }

.feature { max-width: 1180px; margin: 96px auto 0; padding: 0 24px; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.feature-text > p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 19px; line-height: 1.45; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; }
.feature li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); }
.feature li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--warm)); }
.feature.dialog .feature-shot { padding: 0 6%; }

.less-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.less { border-top: 2px solid var(--text); padding-top: 18px; }
.guide { margin-top: 72px; background: var(--card); border-radius: 22px; padding: 36px 32px; }
.guide p { max-width: 720px; }

.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }
.cta .note { margin-top: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-icon { width: 96px; height: 96px; margin: 0 auto 24px; }

/* footer */
.footer { background: var(--bg-alt); padding: 40px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.footer-links a { color: var(--text); opacity: 0.8; }
.footer .fine + .fine { margin-top: 6px; }

/* privacy and support pages */
.doc { max-width: 740px; padding-top: 72px; padding-bottom: 112px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; letter-spacing: -0.015em; margin: 44px 0 10px; }
.doc p { margin-top: 12px; }
.doc .lead { margin-top: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 10px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }

/* things appear as they scroll into view (only when the script runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .less-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; margin-top: 80px; }
  .feature.flip .feature-text { order: 0; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .wrap, .nav-in, .feature, .hero-shot { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; }
  .hero-icon { width: 104px; height: 104px; }
  .hero-shot { margin-top: 44px; }
  .stats { padding: 56px 0 64px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .tiles { grid-template-columns: 1fr; }
  .less-grid { grid-template-columns: 1fr; gap: 24px; }
  .actions .btn { width: 100%; }
  .shot { border-radius: 8px; }
  .feature.dialog .feature-shot { padding: 0; }
}
