/* Jant website — one stylesheet for every page.
 *
 * Layout: a single centred column (max 1120px) on a deep navy ground lit by four soft
 * glows in the heatmap's own colours; content sits on translucent "glass" panels that blur
 * whatever glow is behind them. The look is the app's dark theme carried onto the web:
 * same navy, same periwinkle buttons, same restraint. One theme, chosen on purpose.
 *
 * No inline styles anywhere: the Content-Security-Policy in nginx/security-headers.conf forbids them.
 */

@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ubuntu-400.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ubuntu-500.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ubuntu-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  /* colour */
  --bg: #06131f;
  --bg-deep: #040d16;
  --fg: #eaf2f8;
  --muted: #a9bfd0;
  --faint: #7390a8;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --accent: #b4c9ff;          /* the app's dark-theme primary */
  --accent-ink: #0b2a4a;
  --navy: #0b3c5d;            /* the launcher mark */
  --blue: #5da2f0;
  --good: #4cd37b;
  --warn: #f2b134;
  --bad: #f0533b;

  /* type */
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* shape */
  --radius: 22px;
  --radius-s: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--fg);
  background:
    radial-gradient(900px 620px at 82% -8%, rgba(93, 162, 240, 0.30), transparent 62%),
    radial-gradient(760px 560px at -12% 28%, rgba(76, 211, 123, 0.16), transparent 62%),
    radial-gradient(820px 620px at 64% 68%, rgba(242, 177, 52, 0.11), transparent 62%),
    radial-gradient(640px 520px at 8% 102%, rgba(240, 83, 59, 0.13), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed, fixed, fixed, fixed, scroll;
  min-height: 100vh;
  overflow-x: hidden;
}
@media (max-width: 760px) { body { background-attachment: scroll; } }

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 36em; }

/* glass ------------------------------------------------------------------------------ */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* top bar ---------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 19, 31, 0.62);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.topnav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); font-weight: 500; font-size: 0.98rem; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: #fff; }
.topnav .pill { color: var(--fg); }

/* buttons & pills -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: var(--glass); color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--glass-strong); color: #fff; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.dot-warn { background: var(--warn); }
.dot-blue { background: var(--blue); }

/* hero ------------------------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 700; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { font-size: 0.9rem; color: var(--faint); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.stat { padding: 14px 16px; border-radius: var(--radius-s); display: grid; gap: 2px; }
.stat b { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; line-height: 1; color: #fff; }
.stat span { font-size: 0.82rem; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 1080 / 2400;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1c2d3f 0%, #0a1621 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.phone img { width: 100%; height: 100%; display: block; border-radius: 35px; object-fit: cover; background: #0e1116; }
.hero .phone { transform: rotate(-4deg); }
.float {
  position: absolute;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.float-1 { top: 10%; left: 0; animation: bob 7s ease-in-out infinite; }
.float-2 { top: 46%; right: 0; animation: bob 8s ease-in-out 1s infinite; }
.float-3 { bottom: 9%; left: 4%; animation: bob 9s ease-in-out 2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* sections --------------------------------------------------------------------------- */
.section { padding-block: clamp(44px, 7vw, 88px); }
.section-head { display: grid; gap: 12px; max-width: 46em; margin-bottom: clamp(24px, 4vw, 40px); }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }

/* tools ------------------------------------------------------------------------------ */
.group { margin-bottom: clamp(28px, 4vw, 44px); }
.group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.group-head h3 { font-size: 1.1rem; font-weight: 500; color: var(--accent); }
.group-head .count { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
/* Three across at full width: nine internet tools fill 3×3 and nothing sits alone in a row. */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tool {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 18px 20px;
  border-radius: var(--radius-s);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.tool:hover { transform: translateY(-2px); background: var(--glass-strong); }
.tool svg { width: 40px; height: 40px; fill: var(--accent); padding: 7px; border-radius: 12px; background: rgba(180, 201, 255, 0.10); }
.tool h4 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.tool p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* screenshots ------------------------------------------------------------------------ */
.strip-outer { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.strip { display: flex; gap: clamp(18px, 3vw, 32px); padding-block: 12px 28px; width: max-content; }
.shot { flex: 0 0 auto; width: min(248px, 68vw); scroll-snap-align: center; display: grid; gap: 14px; }
.shot .phone { width: 100%; padding: 8px; border-radius: 36px; }
.shot .phone img { border-radius: 29px; }
.shot figcaption { font-size: 0.9rem; color: var(--muted); line-height: 1.45; padding-inline: 4px; }
.shot figcaption b { display: block; color: var(--fg); font-weight: 700; margin-bottom: 2px; }

/* detail panels ---------------------------------------------------------------------- */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.panel { padding: 24px; display: grid; gap: 10px; align-content: start; }
.panel h3 { font-size: 1.12rem; font-weight: 700; }
.panel p { color: var(--muted); font-size: 0.95rem; }
.panel .eyebrow { color: var(--faint); }

/* privacy band ----------------------------------------------------------------------- */
.band { padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.band p { color: var(--muted); }
.band p + p { margin-top: 12px; }
.facts { display: grid; gap: 12px; }
.fact { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--radius-s); font-size: 0.95rem; }
.fact svg { width: 28px; height: 28px; fill: var(--good); }
.fact b { display: block; font-weight: 700; }
.fact span { color: var(--muted); }

/* coming soon ------------------------------------------------------------------------ */
.soon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.soon-copy { display: grid; gap: 16px; }
.soon-copy p { color: var(--muted); }
.plan { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.legend { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); margin-top: 10px; }
.legend i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--bad), var(--warn), var(--good)); }

/* footer ----------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(24px, 5vw, 56px); padding-block: 32px 48px; color: var(--muted); font-size: 0.93rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }

/* document pages (privacy, 404) ------------------------------------------------------ */
.doc-main { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 28px; }
.doc-main h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
.doc-main > p { color: var(--muted); max-width: 40em; }
.policy { padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; max-width: 46em; }
.policy .meta { color: var(--faint); font-family: var(--mono); font-size: 0.85rem; }
.policy h2 { font-size: 1.3rem; font-weight: 700; margin-top: 22px; letter-spacing: -0.01em; }
.policy p, .policy li { color: #d6e2ec; }
.policy ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.policy strong { color: #fff; }
.policy .callout { padding: 14px 18px; border-left: 3px solid var(--accent); background: rgba(180, 201, 255, 0.07); border-radius: 0 var(--radius-s) var(--radius-s) 0; }

/* responsive ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 12px; }
  .band, .soon { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-1 { left: -4px; }
  .float-2 { right: -4px; }
  .topnav .hide-s { display: none; }
}
@media (max-width: 420px) {
  .float { font-size: 0.74rem; padding: 8px 10px; }
}
