/* insideoau.app: the one stylesheet every page shares (shell.js writes the markup it styles).
   Flagship minimalist system: an obsidian canvas with a faint neutral spotlight, zinc glass cards, white-on-black buttons.
   No blue, indigo or purple anywhere, and no coloured glows (scripts/site-system.test.cjs enforces both). */

:root {
  --canvas: #050507;
  --card: #0A0A0C;
  --card-up: #121215;
  --raised: #111113;
  --raised-up: #18181B;
  --chip: #141417;
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-pill: rgba(255, 255, 255, 0.08);
  --line-up: rgba(255, 255, 255, 0.12);
  --line-button: rgba(255, 255, 255, 0.14);
  --text: #FAFAFA;
  --text-sub: #A1A1AA;
  --text-muted: #71717A;
  --ok: #10B981;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* The colour goes on <html> only: the spotlight and the grid sit behind <body>, and a body background would paint over them. */
html { background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-sub);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* the neutral spotlight at the top of the page */
body::before {
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.045), transparent);
}
/* a faint hairline grid, faded out away from the spotlight */
body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
}
::selection { background: rgba(255, 255, 255, 0.18); color: var(--text); }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid rgba(250, 250, 250, 0.75); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--text); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
main { flex: 1 0 auto; width: 100%; }

/* ── Sticky glass top bar ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(5, 5, 7, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--raised);
  border: 1px solid var(--line-pill);
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { flex: none; border-top: 1px solid var(--line-soft); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 32px 20px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot p { color: var(--text-muted); font-size: 13px; }
.foot-id { display: flex; flex-direction: column; gap: 4px; }
.foot .pub { font-size: 12px; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot nav a { color: var(--text-muted); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.foot nav a:hover { color: var(--text); }
.foot .fine { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 11.5px; line-height: 1.65; max-width: 760px; }

/* ── Store badges ─────────────────────────────────────────────────────── */
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 195px;
  padding: 10px 20px;
  background: var(--raised);
  border: 1px solid var(--line-button);
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.badge:hover { background: var(--raised-up); border-color: rgba(255, 255, 255, 0.25); }
.badge-ico { flex: none; color: var(--text); }
.badge-txt { display: flex; flex-direction: column; }
.badge-txt small { color: var(--text-sub); font-size: 9px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.3; }
.badge-txt b { color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.1; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 10px;
  color: #09090B;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: #E4E4E7; border-color: #E4E4E7; }
.btn.block { display: flex; width: 100%; }
.btn.glass { background: var(--card-up); border-color: var(--line-button); color: var(--text); }
.btn.glass:hover { background: var(--raised-up); border-color: rgba(255, 255, 255, 0.25); }

/* ── Home ─────────────────────────────────────────────────────────────── */
.hero { max-width: 1080px; margin: 0 auto; padding: 104px 20px 48px; text-align: center; }
.eyebrow-pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--card-up);
  border: 1px solid var(--line-pill);
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero h1 { margin-top: 26px; font-size: clamp(44px, 8vw, 56px); font-weight: 800; line-height: 1.05; }
.hero .tag { margin-top: 12px; color: var(--text-sub); font-size: clamp(18px, 3vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.hero .lead { max-width: 560px; margin: 22px auto 0; font-size: 16px; line-height: 1.65; }
.hero .badges { margin-top: 34px; }

/* "Notify me" */
.notify { max-width: 460px; margin: 32px auto 0; }
.notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--line-button);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px;   /* 16px so iPhones do not zoom the page when the box is tapped */
  transition: border-color 0.2s, background 0.2s;
}
.notify input[type="email"]::placeholder { color: var(--text-muted); }
.notify input[type="email"]:focus { outline: none; background: var(--card-up); border-color: rgba(255, 255, 255, 0.4); }
.notify .btn { height: 46px; padding: 0 22px; cursor: pointer; flex: 0 0 auto; }
.notify .btn:disabled { opacity: 0.6; cursor: default; }
.notify-msg { min-height: 22px; margin-top: 10px; color: var(--text-sub); font-size: 13.5px; line-height: 1.5; }
.notify-msg.ok { color: var(--text); font-weight: 600; }
.notify-msg.err { color: #F87171; }
.notify-fine { margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.notify-fine a { color: var(--text-sub); }
.notify.done .notify-row, .notify.done .notify-fine { display: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero .launch { margin-top: 18px; color: var(--text-muted); font-size: 12.5px; letter-spacing: 0.02em; }

.pillars {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.tile:hover { background: var(--card-up); border-color: var(--line-up); }
.tile-ico {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--chip);
  border: 1px solid var(--line-pill);
  border-radius: 10px;
  color: var(--text);
}
.tile h3 { font-size: 16px; line-height: 1.3; }
.tile p { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.home-note { max-width: 560px; margin: 0 auto; padding: 36px 20px 64px; text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.pillars + .home-note { padding-top: 40px; }

/* ── Link pages and the 404: one glass card in the middle ─────────────── */
.stage { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.panel {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line-pill);
  border-radius: 20px;
  text-align: center;
}
.panel-logo { width: 48px; height: 48px; margin: 0 auto 18px; }
.panel h1 { font-size: 24px; line-height: 1.2; }
.panel p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; }
.panel .btn { margin-top: 24px; }
.panel .code { margin: 18px auto 0; padding: 12px 18px; background: var(--card-up); border: 1px solid var(--line-pill); border-radius: 12px; display: inline-block; }
.panel .code[hidden] { display: none; }
.panel .code small { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.panel .code strong { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 0.12em; }
.panel hr { height: 1px; margin: 26px 0 22px; border: 0; background: var(--line); }
.panel .ask { margin: 0 0 16px; color: var(--text); font-size: 14px; font-weight: 600; }
.panel .help { margin-top: 20px; color: var(--text-muted); font-size: 12.5px; line-height: 1.65; }
.panel .help a { color: var(--text-sub); }
.panel .code-404 { margin: 0; color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; }
.panel .code-404 + h1 { margin-top: 10px; }

/* ── Reading pages: privacy, terms, delete account, support ───────────── */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.doc-hero { margin-bottom: 28px; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.doc-tabs a {
  padding: 7px 14px;
  border: 1px solid var(--line-pill);
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.doc-tabs a:hover { background: var(--card-up); border-color: var(--line-up); color: var(--text); }
.doc-tabs a.active { background: var(--text); border-color: var(--text); color: #09090B; }
.eyebrow { margin-bottom: 10px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.doc-title { font-size: 32px; font-weight: 800; line-height: 1.15; text-wrap: balance; }
.doc-sub { max-width: 58ch; margin-top: 12px; font-size: 15px; line-height: 1.65; }
.updated { margin-top: 14px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.doc-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc-section:last-of-type { border-bottom: 0; }
.doc-section h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 20px; line-height: 1.3; }
.doc-section .num { flex: none; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.doc-section p { font-size: 15px; line-height: 1.75; }
.doc-section strong, .doc-section em { color: var(--text); }
.doc-section a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.doc-section a:hover { text-decoration-color: var(--text); }

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* the links are all in the footer too; the bar keeps the brand and the launch status */
  .nav-links a { display: none; }
  .hero { padding-top: 56px; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 400px) {
  /* a 320px phone: the brand and the launch pill still fit side by side, and the pill gives way (ends in "…") before the page scrolls sideways */
  .nav-in { padding: 0 14px; gap: 10px; }
  .brand { gap: 8px; font-size: 15px; }
  .nav-links { min-width: 0; }
  .status { min-width: 0; padding: 5px 10px; gap: 6px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 460px) {
  .badge { flex: 1 1 100%; }
  .notify .btn { flex: 1 1 100%; }
  .panel { padding: 24px 20px; }
  .doc-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
