/* OneGlow site — single design system */
:root {
  --bg: #0b0b0d;
  --text: #f4f4f6;
  --muted: rgba(244, 244, 246, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --content: 720px;
  --wide: 1144px;
  --side: 220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ========== GLOBAL HEADER ========== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: calc(0.85rem + var(--safe-t)) max(1.06rem, calc((100vw - var(--wide)) / 2)) 0.85rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  z-index: 50;
}
@media (min-width: 900px) {
  .site-header {
    padding-left: max(1.06rem, calc((100vw - var(--wide)) / 2));
    padding-right: max(1.06rem, calc((100vw - var(--wide)) / 2));
  }
  .site-footer {
    padding-left: max(1.06rem, calc((100vw - var(--wide)) / 2));
    padding-right: max(1.06rem, calc((100vw - var(--wide)) / 2));
  }
}
.site-header .logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #d8d8e0 38%, #9a9aa6 52%, #efeff4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-header .top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
}
.site-header .top-nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-header .top-nav a:hover,
.site-header .top-nav a:focus-visible {
  color: #fff;
}

/* ========== GLOBAL FOOTER ========== */
.site-footer {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 0.85rem max(1.06rem, calc((100vw - var(--wide)) / 2)) calc(0.85rem + var(--safe-b));
  background: var(--bg);
}
@media (min-width: 1160px) {
  .site-footer {
    padding-left: max(1.06rem, calc((100vw - var(--wide)) / 2));
    padding-right: max(1.06rem, calc((100vw - var(--wide)) / 2));
  }
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.15rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-inner a { text-decoration: none; color: var(--muted); }
.footer-inner a:hover { color: #fff; }
.footer-pride {
  margin-left: auto;
  color: rgba(244, 244, 246, 0.5);
  font-weight: 500;
}

/* ========== HOME ========== */
body.home {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.home .page-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.home .home-main {
  flex: 1 1 auto;
  min-height: 0;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  min-height: 0;
  flex: 1;
}
.hero-visual {
  margin: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  background: #141418;
  max-height: min(62dvh, 520px);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: min(62dvh, 520px);
}
.hero-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 0;
}
.hero-headline {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.22;
  max-width: 22ch;
  color: #f7f7fa;
}
.waitlist { width: min(100%, 420px); }
.waitlist-row {
  display: flex;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.28rem 0.28rem 0.95rem;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0;
}
.waitlist input::placeholder { color: rgba(244,244,246,0.42); }
.waitlist-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  color: #111;
  background: linear-gradient(180deg, #f7f7fa 0%, #c8c8d2 45%, #9e9eaa 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 6px 18px rgba(0,0,0,0.35);
}
.waitlist-btn:hover { filter: brightness(1.05); }
.waitlist-btn:disabled { opacity: 0.7; cursor: default; }
.waitlist-fine { margin: 0.4rem 0 0; font-size: 0.75rem; color: var(--muted); }
.waitlist-ok   { margin: 0.35rem 0 0; font-size: 0.88rem; color: #b8f0c8; }

/* iPhone mock */
.phone-wrap { margin-top: 0.1rem; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.iphone {
  position: relative;
  width: min(248px, 58vw);
  aspect-ratio: 9 / 19.3;
  max-height: min(48dvh, 440px);
  margin: 0 auto;
}
.iphone-frame {
  position: absolute; inset: 0;
  border-radius: 2.35rem; padding: 0.55rem;
  background: linear-gradient(145deg, #5a5a62 0%, #2c2c32 18%, #1a1a1e 50%, #0c0c0e 100%);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.14);
}
.iphone-frame::before {
  content: ""; position: absolute; inset: 0.22rem; border-radius: 2.05rem;
  border: 1px solid rgba(0,0,0,0.55); pointer-events: none; z-index: 2;
}
.iphone-screen {
  position: relative; height: 100%; border-radius: 1.85rem; overflow: hidden;
  background: #121216; display: flex; flex-direction: column; align-items: center;
  padding: 0.55rem 0.55rem 0.4rem; gap: 0.2rem;
}
.iphone-dynamic-island {
  width: 28%; height: 1.05rem; background: #000; border-radius: 999px;
  margin: 0.2rem auto 0.15rem; flex: 0 0 auto;
}
.iphone-side-btn {
  position: absolute; background: linear-gradient(90deg, #3a3a40, #222226);
  border-radius: 2px; z-index: 3;
}
.iphone-silent   { left: -2px; top: 14%; width: 3px; height: 7%; }
.iphone-vol-up   { left: -2px; top: 24%; width: 3px; height: 9%; }
.iphone-vol-down { left: -2px; top: 35%; width: 3px; height: 9%; }
.iphone-power    { right: -2px; top: 28%; width: 3px; height: 12%; }
.app-status { width: 100%; display: flex; justify-content: space-between; font-size: 0.62rem; font-weight: 600; color: rgba(255,255,255,0.75); padding: 0 0.55rem; flex: 0 0 auto; }
.app-status-right { letter-spacing: 0.04em; font-size: 0.55rem; }
.app-title { margin-top: 0.15rem; font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(180deg, #fff, #a8a8b4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; flex: 0 0 auto; }
.app-sub { margin: 0; font-size: 0.68rem; color: rgba(255,255,255,0.45); flex: 0 0 auto; }
#appWheel { width: min(168px, 72%); height: auto; margin: 0.2rem 0 0.1rem; touch-action: none; flex: 0 0 auto; }
.app-chips { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center; margin-top: 0.15rem; flex: 0 0 auto; }
.app-chips span { font-size: 0.62rem; font-weight: 600; padding: 0.22rem 0.48rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: rgba(255,255,255,0.7); }
.app-bar { margin-top: auto; display: flex; gap: 0.95rem; padding-top: 0.35rem; flex: 0 0 auto; }
.app-bar span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: rgba(255,255,255,0.18); }
.app-bar span.on { background: linear-gradient(180deg, #fff, #9a9aa8); box-shadow: 0 0 10px rgba(255,255,255,0.35); }
.iphone-home-indicator { width: 36%; height: 0.22rem; margin: 0.35rem auto 0.15rem; border-radius: 999px; background: rgba(255,255,255,0.35); flex: 0 0 auto; }

/* ========== INNER PAGES ========== */
body.article-page,
body.guides-page,
body.legal-page {
  overflow: auto;
  height: auto;
  min-height: 100dvh;
}
.guides-main, .article-main, .legal-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1rem 1.06rem 2.5rem;
}
.guides-main { max-width: 920px; }
.guides-main h1, .legal-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.5rem;
}
.lede { color: var(--muted); margin: 0 0 1.25rem; }

/* Guides TOC */
.cat-toc {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.55rem;
  margin: 0 0 1.75rem; font-size: 0.88rem;
}
.cat-toc a {
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); padding: 0.35rem 0.7rem;
  border-radius: 999px; background: var(--card);
}
.cat-toc a:hover { color: #fff; border-color: rgba(255,255,255,0.22); }

/* Guides 2-col card grid */
.guide-cat { margin: 0 0 2rem; }
.guide-cat-head { margin: 0 0 0.85rem; }
.guide-cat h2 { font-size: 1.3rem; margin: 0 0 0.25rem; letter-spacing: -0.02em; }
.cat-blurb { color: var(--muted); margin: 0; font-size: 0.92rem; }
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
@media (min-width: 700px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  text-decoration: none; padding: 1rem 1.05rem;
  border-radius: 0.9rem; border: 1px solid var(--line);
  background: var(--card); min-height: 6.5rem;
}
.guide-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.18); }
.guide-card-title { font-size: 1rem; font-weight: 650; letter-spacing: -0.015em; color: #fff; line-height: 1.3; }
.guide-card-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

/* Article prose */
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.85rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: #fff; }
.byline { font-size: 0.92rem; color: var(--muted); margin: 0 0 1.15rem; }
.byline a { color: #c8d0ff; text-decoration: none; }
.prose { font-size: 1.05rem; line-height: 1.65; }
.prose h1 { font-size: clamp(1.85rem, 4vw, 2.45rem); letter-spacing: -0.035em; line-height: 1.15; margin: 0 0 1rem; }
.prose h2 { font-size: 1.28rem; margin: 1.85rem 0 0.6rem; letter-spacing: -0.02em; border: 0; padding: 0; background: transparent; }
.prose h3 { font-size: 1.08rem; margin: 1.4rem 0 0.45rem; border: 0; background: transparent; }
.prose p, .prose li { color: rgba(244, 244, 246, 0.9); background: transparent; }
.prose p { margin: 0 0 0.95rem; }
.prose ul, .prose ol { margin: 0.35rem 0 1.1rem 1.15rem; padding: 0; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: rgba(244, 244, 246, 0.35); }
.prose a { color: #c8d0ff; }
.prose code { font-size: 0.9em; background: var(--card); padding: 0.1em 0.35em; border-radius: 0.3em; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border-radius: 0.75rem; border: 1px solid var(--line); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.92rem; }
.prose thead th { background: rgba(255,255,255,0.05); font-weight: 650; color: #fff; }
.prose th, .prose td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0.65rem 0.75rem; text-align: left; vertical-align: top; }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.prose tr:last-child td { border-bottom: 0; }

/* Related guides cards */
.related-block { margin: 2.5rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.related-block h2 { margin: 0 0 0.85rem; font-size: 1.2rem; border: 0; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; padding: 0.95rem 1rem; border-radius: 0.85rem; border: 1px solid var(--line); background: var(--card); color: inherit; }
.related-card:hover { border-color: rgba(255,255,255,0.2); background: var(--card-hover); }
.related-card-title { font-weight: 650; font-size: 0.98rem; letter-spacing: -0.015em; color: #fff; }
.related-card-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.4; }

/* Author card grid */
.author-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin: 0.75rem 0 0; }
@media (min-width: 640px) { .author-grid { grid-template-columns: 1fr 1fr; } }
.author-card { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; padding: 0.9rem 1rem; border-radius: 0.85rem; border: 1px solid var(--line); background: var(--card); }
.author-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.18); }
.author-card-title { font-weight: 650; font-size: 0.95rem; color: #fff; line-height: 1.3; }
.author-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.legal-main p, .legal-main li { color: rgba(244,244,246,0.82); }
.legal-main h2 { margin-top: 1.6rem; font-size: 1.15rem; border: 0; background: transparent; }

/* ========== INSPIRATION ========== */
body.insp-page {
  overflow: auto;
  height: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.insp-shell {
  flex: 1 0 auto;
  display: flex;
  gap: 1.5rem;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.06rem 2.5rem;
  align-items: flex-start;
  box-sizing: border-box;
}

.insp-side {
  width: 200px;
  flex: 0 0 200px;
  position: sticky;
  top: calc(0.85rem + var(--safe-t));
  align-self: flex-start;
}
.insp-side h1,
.insp-title {
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.025em;
  color: #fff;
}
.insp-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.insp-side-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.insp-side-list button:hover {
  background: var(--card);
  color: #fff;
}
.insp-side-list button.is-active {
  background: var(--card);
  color: #fff;
  box-shadow: inset 2px 0 0 #fff;
}
.insp-side-list .count {
  font-size: 0.78rem;
  color: rgba(244, 244, 246, 0.4);
  font-weight: 500;
}
.insp-side-list button.is-active .count {
  color: rgba(255, 255, 255, 0.7);
}

.insp-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.insp-seo {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(244, 244, 246, 0.78);
  max-width: 52rem;
}

/* THREE raw photos across — masonry, flush, no blank gaps */
.insp-grid {
  display: block !important;
  column-count: 3 !important;
  column-gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.75rem !important;
  padding: 0 !important;
  flex: none !important;
  line-height: 0 !important;
}
.insp-grid > .insp-cell,
.insp-cell {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  aspect-ratio: auto !important;
  line-height: 0 !important;
  position: static !important;
  height: auto !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  page-break-inside: avoid !important;
}
.insp-grid > .insp-cell img,
.insp-cell img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: unset !important;
  border: 0 !important;
  position: static !important;
  inset: auto !important;
  border-radius: 0 !important;
  vertical-align: top !important;
}

.insp-header-line { display: none !important; }

.insp-subscribe {
  margin: 2rem auto 0;
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  max-width: 540px;
}
.insp-subscribe h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
.insp-sub-text {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.edu-sub { margin: 0 0 1.5rem; }
.edu-sub-h {
  font-size: 0.92rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.edu-sub .guide-grid { margin-top: 0; }

@media (max-width: 900px) {
  .insp-shell { flex-direction: column; gap: 1rem; }
  .insp-side {
    width: 100%;
    flex: none;
    position: static;
    padding-right: 0;
  }
  .insp-side-list { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
  .insp-side-list button { width: auto; }
  .insp-grid { column-count: 2 !important; }
}
@media (max-width: 560px) {
  .insp-grid { column-count: 1 !important; }
}


/* In-article photo strip */
.article-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1.25rem 0 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
}
.article-photos figure {
  margin: 0;
  line-height: 0;
}
.article-photos img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.article-photos figcaption {
  display: none;
}
@media (max-width: 560px) {
  .article-photos { grid-template-columns: 1fr; }
}

.home-guides{margin:0 auto;padding:1.25rem 1.06rem 2rem;max-width:var(--wide,1144px)}
.home-guides-h{font-size:1.15rem;font-weight:600;margin:0 0 .85rem;letter-spacing:-0.01em}
.home-guides-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.65rem}
@media(max-width:900px){.home-guides-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.home-guides-grid{grid-template-columns:1fr}}
.home-guide-card{display:flex;flex-direction:column;gap:.25rem;padding:.85rem .9rem;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.03);text-decoration:none;color:inherit}
.home-guide-card:hover{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.05)}
.home-guide-card strong{font-size:.95rem}
.home-guide-card span{font-size:.82rem;opacity:.72;line-height:1.35}
.home-guides-more{margin:.9rem 0 0;font-size:.9rem}
.home-guides-more a{color:inherit;opacity:.85}
