/* /install — PWA install guide & SEO page. Dark brand language per
   ui-redesign/mockup-install-mobile.html + mockup-install-desktop.html.
   Self-contained: loads beside /design-tokens.css, without /seo/styles.css. */
:root {
  --ins-canvas: #0b0d0f;
  --ins-surface: #11161a;
  --ins-soft: #171d22;
  --ins-softer: #1d242b;
  --ins-ink: #f7f7f3;
  --ins-muted: #9ca3af;
  --ins-faint: #6b7280;
  --ins-accent: #10b981;
  --ins-accent-bright: #34d399;
  --ins-accent-soft: rgb(16 185 129 / 0.12);
  --ins-on-accent: #06281c;
  --ins-border: rgb(255 255 255 / 0.10);
  --ins-border-strong: rgb(255 255 255 / 0.18);
  --ins-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ins-canvas);
  color: var(--ins-ink);
  font-family: var(--ins-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ins-accent-bright); }
.ins-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ins-accent);
  color: var(--ins-on-accent);
  z-index: 100;
}
.ins-skip:focus { left: 8px; top: 8px; }

/* ============ TOP BAR ============ */
.ins-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(11 13 15 / 0.94);
  border-bottom: 1px solid var(--ins-border);
}
.ins-topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ins-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.ins-brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.ins-brand-name { color: var(--ins-ink); font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.ins-brand-name em { color: var(--ins-accent-bright); font-style: normal; }
.ins-top-links { display: flex; align-items: center; gap: 20px; }
.ins-top-links a { color: var(--ins-muted); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.ins-open {
  min-height: 36px;
  padding: 5px 13px;
  border-radius: 8px;
  border: 0;
  background: var(--ins-accent);
  color: var(--ins-on-accent) !important;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
}

/* ============ PAGE / HERO ============ */
.ins-page { max-width: 430px; margin: 0 auto; padding: 0 20px 64px; }
.ins-hero {
  position: relative;
  text-align: center;
  padding: 40px 0 24px;
  overflow: hidden;
}
.ins-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 300px;
  background: radial-gradient(circle, rgb(16 185 129 / 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.ins-app-icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgb(16 185 129 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.ins-eyebrow {
  margin: 0 0 8px;
  color: var(--ins-accent-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ins-hero h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.ins-hero .ins-lede {
  margin: 12px auto 0;
  max-width: 34ch;
  color: var(--ins-muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.ins-hero .ins-lede b { color: var(--ins-ink); }
.ins-hero-cta { display: none; justify-content: center; gap: 12px; margin-top: 24px; }
.ins-hero-note { display: none; margin: 12px 0 0; color: var(--ins-faint); font-size: 12px; }

.ins-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--ins-accent);
  color: var(--ins-on-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgb(16 185 129 / 0.3);
  text-decoration: none;
}
.ins-cta-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ins-cta-btn.is-ghost {
  width: auto;
  min-height: 50px;
  padding: 10px 26px;
  background: var(--ins-surface);
  color: var(--ins-ink);
  border: 1px solid var(--ins-border-strong);
  box-shadow: none;
  font-size: 15.5px;
}

/* ============ GUIDES ============ */
.ins-guides { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
.ins-guide {
  border: 1px solid var(--ins-border);
  border-radius: 16px;
  background: var(--ins-surface);
  padding: 24px;
}
.ins-guide-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ins-border);
}
.ins-os-badge {
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--ins-soft);
  border: 1px solid var(--ins-border-strong);
  color: var(--ins-ink);
}
.ins-os-badge svg { width: 18px; height: 18px; }
.ins-guide-head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ins-guide-head span { display: block; color: var(--ins-muted); font-size: 12px; font-weight: 600; }

.ins-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
}
.ins-step .ins-n {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--ins-accent-soft);
  color: var(--ins-accent-bright);
  font-size: 12px;
  font-weight: 800;
}
.ins-step .ins-n.is-check { background: var(--ins-softer); color: var(--ins-muted); }
.ins-step h3 { margin: 0 0 3px; font-size: 14px; font-weight: 750; }
.ins-step p { margin: 0 0 12px; color: var(--ins-muted); font-size: 12.5px; line-height: 1.55; }
.ins-step + .ins-step { border-top: 1px dashed var(--ins-border); }
.ins-step .ins-caption { margin: 8px 0 0; color: var(--ins-faint); font-size: 11px; }

/* ---- System-UI mock boxes ---- */
.ins-mock { border-radius: 12px; overflow: hidden; border: 1px solid var(--ins-border-strong); }
.ins-mock.ios { background: #f2f2f7; color: #1c1c1e; }
.ins-mock.android { background: #1b1e22; color: #e8eaed; }
.ins-mock.desktop { background: #20242a; color: #e8eaed; }

.ins-safari-bar { display: flex; align-items: center; justify-content: space-around; padding: 12px 18px 16px; }
.ins-sb-item { display: grid; justify-items: center; gap: 3px; color: #3a3a3c; font-size: 9px; font-weight: 600; }
.ins-sb-item svg { width: 20px; height: 20px; }
.ins-sb-item.is-hot { color: #007aff; }
.ins-sb-item.is-hot .ins-halo {
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgb(0 122 255 / 0.14);
  box-shadow: 0 0 0 1.5px rgb(0 122 255 / 0.5);
}

.ins-ios-sheet {
  margin: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.18);
  overflow: hidden;
}
.ins-ios-sheet .ins-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.ins-ios-sheet .ins-row + .ins-row { border-top: 0.5px solid #e5e5ea; }
.ins-ios-sheet .ins-ic {
  display: grid;
  place-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #0b0d0f;
  color: #34d399;
  font-weight: 800;
  font-size: 13px;
}
.ins-ios-sheet .ins-ic.is-plus { background: #e9e9eb; color: #1c1c1e; }
.ins-ios-sheet .ins-chev { margin-left: auto; color: #c7c7cc; }
.ins-ios-sheet .ins-add { margin-left: auto; color: #007aff; font-weight: 700; }
.ins-ios-sheet .ins-row small { display: block; color: #8e8e93; font-size: 10px; font-weight: 500; }
.ins-ios-sheet .ins-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 0.5px solid #e5e5ea;
  font-size: 12px;
  color: #8e8e93;
}
.ins-ios-sheet .ins-bar-row b { color: #1c1c1e; font-size: 12.5px; }

.ins-chrome-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.ins-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #2a2f36;
  color: #e8eaed;
  font-size: 11px;
  font-weight: 600;
}
.ins-url svg { width: 12px; height: 12px; color: #9aa0a6; flex: 0 0 auto; }
.ins-dots {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #e8eaed;
  box-shadow: 0 0 0 1.5px rgb(52 211 153 / 0.65);
  background: rgb(52 211 153 / 0.12);
}
.ins-dots svg { width: 16px; height: 16px; }
.ins-android-menu {
  margin: 0 8px 8px;
  border-radius: 10px;
  background: #2a2f36;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.4);
  overflow: hidden;
}
.ins-m-row { display: flex; align-items: center; gap: 10px; padding: 9px 13px; font-size: 12px; color: #e8eaed; }
.ins-m-row svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ins-m-row.is-hot { background: rgb(52 211 153 / 0.14); color: #34d399; font-weight: 700; }

.ins-desk-guide {
  margin-top: 20px;
  border: 1px solid var(--ins-border);
  border-radius: 16px;
  background: var(--ins-surface);
  padding: 24px;
}
.ins-desk-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.ins-win-dots { display: flex; gap: 5px; }
.ins-win-dots i { width: 9px; height: 9px; border-radius: 999px; background: #3a4048; }
.ins-addr {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2a2f36;
  font-size: 11px;
  color: #e8eaed;
  font-weight: 600;
}
.ins-addr svg { width: 12px; height: 12px; color: #9aa0a6; flex: 0 0 auto; }
.ins-inst {
  display: grid;
  place-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgb(52 211 153 / 0.14);
  color: #34d399;
  box-shadow: 0 0 0 1.5px rgb(52 211 153 / 0.65);
}
.ins-inst svg { width: 14px; height: 14px; }

/* ============ CTA / SEO FOOTER ============ */
.ins-cta-zone { margin-top: 40px; text-align: center; }
.ins-cta-note { margin: 12px 0 0; color: var(--ins-faint); font-size: 11.5px; }
.ins-cta-note b { color: var(--ins-muted); }
.ins-seo-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ins-border); }
.ins-seo-foot p { margin: 0 0 12px; color: var(--ins-faint); font-size: 11px; line-height: 1.7; }
.ins-seo-foot .ins-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ins-seo-foot .ins-links a { color: var(--ins-muted); font-size: 11.5px; font-weight: 650; text-decoration: none; }
.ins-langs { display: flex; gap: 12px; margin-top: 16px; }
.ins-langs span { color: var(--ins-faint); font-size: 11px; }
.ins-langs b { color: var(--ins-accent-bright); font-size: 11px; }
.ins-langs a { color: var(--ins-faint); font-size: 11px; text-decoration: none; }

/* ============ DESKTOP ============ */
@media (min-width: 900px) {
  .ins-topbar-inner { padding: 14px 24px; }
  .ins-brand img { width: 34px; height: 34px; }
  .ins-brand-name { font-size: 17px; }
  .ins-open { min-height: 40px; padding: 6px 16px; font-size: 13.5px; }
  .ins-page { max-width: 1060px; padding: 0 24px 72px; }
  .ins-hero { padding: 40px 0 32px; }
  .ins-hero::before { top: -140px; width: 720px; height: 480px; background: radial-gradient(circle, rgb(16 185 129 / 0.12) 0%, transparent 65%); }
  .ins-app-icon { width: 92px; height: 92px; border-radius: 24px; }
  .ins-eyebrow { font-size: 12px; letter-spacing: 0.14em; }
  .ins-hero h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.04em; line-height: 1.08; }
  .ins-hero .ins-lede { max-width: 58ch; margin-top: 16px; font-size: 15px; line-height: 1.7; }
  .ins-hero-cta { display: flex; }
  .ins-hero-cta .ins-cta-btn { width: auto; min-height: 50px; padding: 10px 26px; font-size: 15.5px; }
  .ins-hero-note { display: block; }
  .ins-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
  .ins-guide-head .ins-os-badge { width: 38px; height: 38px; border-radius: 10px; }
  .ins-guide-head .ins-os-badge svg { width: 20px; height: 20px; }
  .ins-guide-head h2 { font-size: 17px; }
  .ins-guide-head span { font-size: 12.5px; }
  .ins-step { grid-template-columns: 26px minmax(0, 1fr); }
  .ins-step h3 { font-size: 14.5px; }
  .ins-desk-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; margin-top: 20px; }
  .ins-desk-guide .ins-guide-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .ins-win-dots i { width: 10px; height: 10px; }
  .ins-addr { padding: 8px 12px; font-size: 12px; }
  .ins-inst { width: 30px; height: 30px; border-radius: 8px; }
  .ins-inst svg { width: 15px; height: 15px; }
  .ins-cta-zone { display: none; }
  .ins-seo-foot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  .ins-seo-foot p { font-size: 11.5px; line-height: 1.75; }
  .ins-links { justify-content: flex-end; align-content: start; }
  .ins-seo-foot .ins-links a { font-size: 12px; }
  .ins-langs { grid-column: 1 / -1; }
  .ins-langs span, .ins-langs b, .ins-langs a { font-size: 11.5px; }
}
@media (min-width: 641px) and (max-width: 899px) {
  .ins-page { max-width: 640px; }
  .ins-hero-cta { display: flex; }
  .ins-hero-cta .ins-cta-btn { width: auto; min-height: 50px; padding: 10px 26px; font-size: 15.5px; }
  .ins-cta-zone { display: none; }
}
