/* 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: 1.75rem auto 2rem;
  padding: 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(244, 244, 246, 0.72);
  max-width: 40rem;
  text-align: center;
}

/* 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}

/* ========== TOOLS ========== */
body.tools-page {
  overflow: auto;
  height: auto;
  min-height: 100dvh;
}
.tools-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.06rem 2.75rem;
}
.tools-main h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.45rem;
}
.tools-crumb {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.tools-crumb a { color: var(--muted); text-decoration: none; }
.tools-crumb a:hover { color: #fff; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}
@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; }
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.18);
}
.tool-card strong {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  color: #fff;
}
.tool-card span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.tool-card em {
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(244,244,246,0.45);
  margin-top: 0.2rem;
}

.tool-panel {
  margin: 1rem 0 1.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
@media (max-width: 640px) {
  .tool-fields { grid-template-columns: 1fr; }
}
.tool-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.tool-fields label.span-2 { grid-column: 1 / -1; }
.tool-fields input,
.tool-fields select {
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  outline: none;
}
.tool-fields input:focus,
.tool-fields select:focus {
  border-color: rgba(255,255,255,0.28);
}
.tool-results {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 640px) {
  .tool-results { grid-template-columns: 1fr; }
}
.tool-stat {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.28);
}
.tool-stat .k {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.tool-stat .v {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.tool-stat.wide { grid-column: 1 / -1; }
.tool-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.tool-tip {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 190, 120, 0.25);
  background: rgba(255, 160, 80, 0.08);
  color: #f0d2a8;
  font-size: 0.88rem;
  line-height: 1.4;
}
.tool-prose {
  max-width: var(--content);
}
.tool-prose h2 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.55rem;
  letter-spacing: -0.02em;
}
.tool-prose p, .tool-prose li {
  color: rgba(244,244,246,0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}
.tool-prose ul { padding-left: 1.15rem; }
.tool-cta {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.tool-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.tool-cta p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.tool-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
}
.tool-related a {
  font-size: 0.84rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(0,0,0,0.2);
  text-decoration: none;
}
.tool-related a:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

/* Kelvin */
.k-swatch {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 0.5rem 0 0.75rem;
  transition: background 0.08s linear, box-shadow 0.08s linear;
}
.k-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.75rem;
}
.k-chips button {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.k-chips button.is-active,
.k-chips button:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
#kSlider {
  width: 100%;
  accent-color: #e8e8f0;
}
.k-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Tools batch 2 */
.hr-swatch, #hrSwatch {
  width: 100%;
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 0 0 0.75rem;
}
.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}
.scene-chips button {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.scene-chips button:hover { color: #fff; border-color: rgba(255,255,255,0.28); }
.tool-ip-wrap {
  overflow-x: auto;
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tool-ip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tool-ip-table th,
.tool-ip-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.tool-ip-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.25);
}
.tool-ip-table tr.is-hit td {
  background: rgba(255,255,255,0.05);
}
.tool-ip-table tr:last-child td { border-bottom: 0; }

/* Homepage hero headline spacing + SEO blurb (replaces guide strip) */
.hero-product .hero-headline {
  margin-top: clamp(0.85rem, 2.2vw, 1.5rem);
  margin-bottom: 0.35rem;
}
.home-seo-blurb {
  max-width: var(--wide, 1144px);
  width: 100%;
  margin: 0.35rem auto 0;
  padding: 0.95rem 1.06rem 0.35rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.home-seo-blurb p {
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48rem;
  text-align: center;
}
.home-seo-more {
  margin: 0.65rem auto 0 !important;
  font-size: 0.86rem !important;
  text-align: center;
}
.home-seo-more a {
  color: rgba(244,244,246,0.78);
  text-decoration: none;
}
.home-seo-more a:hover { color: #fff; }
@media (max-width: 900px) {
  .home-seo-blurb { padding-top: 0.75rem; }
}


/* Guide/About waitlist strip */
.page-subscribe {
  max-width: var(--content, 720px);
  width: 100%;
  margin: 0 auto 2.5rem;
  padding: 1.4rem 1.25rem 1.55rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  box-sizing: border-box;
}
.page-subscribe h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.page-subscribe .waitlist {
  margin: 0 auto;
  width: min(100%, 420px);
  text-align: left;
}
.article-page .page-subscribe {
  margin-top: 0.5rem;
}

/* ========== NAV: TOOLS DROPDOWN ========== */
/* Floating card under Tools. Never participates in top-nav flex flow. */
.site-header {
  position: relative;
  overflow: visible;
  z-index: 50;
}
.site-header .top-nav {
  overflow: visible;
  position: relative;
  z-index: 51;
}

.nav-tools {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.nav-tools-trigger::after {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
.nav-tools:hover > .nav-tools-trigger,
.nav-tools:focus-within > .nav-tools-trigger,
.nav-tools.is-open > .nav-tools-trigger {
  color: #fff;
}
.nav-tools:hover > .nav-tools-trigger::after,
.nav-tools:focus-within > .nav-tools-trigger::after,
.nav-tools.is-open > .nav-tools-trigger::after {
  transform: translateY(1px) rotate(-135deg);
}

/* Hidden by default - absolute so it never expands the header */
.nav-tools-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  /* Anchor to Tools item; grow left so wide card stays on-screen */
  right: 0;
  left: auto;
  transform: translateY(-6px);
  z-index: 100;
  box-sizing: border-box;
  width: max-content;
  min-width: 34rem;
  max-width: min(40rem, calc(100vw - 1.5rem));
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  display: none;
  grid-template-columns: repeat(3, max-content);
  column-gap: 1.75rem;
  row-gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #121216;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

/* Invisible bridge so pointer can travel trigger -> panel without closing */
.nav-tools-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.nav-tools:hover > .nav-tools-panel,
.nav-tools:focus-within > .nav-tools-panel,
.nav-tools.is-open > .nav-tools-panel {
  display: grid;
  transform: translateY(0);
}


.nav-tools-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 9.5rem;
}

.nav-tools-h {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.4);
  margin: 0 0 0.25rem;
  padding: 0;
  white-space: nowrap;
}

/* Override generic .top-nav a so panel links stack as a clean list */
.site-header .top-nav .nav-tools-panel a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(244, 244, 246, 0.72);
  text-decoration: none;
  padding: 0.28rem 0;
  margin: 0;
  white-space: nowrap;
  line-height: 1.25;
}
.site-header .top-nav .nav-tools-panel a:hover,
.site-header .top-nav .nav-tools-panel a:focus-visible {
  color: #fff;
}

@media (max-width: 760px) {
  .site-header {
    gap: 0.6rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .site-header .top-nav {
    gap: 0.3rem 0.72rem;
    font-size: 0.86rem;
    flex-wrap: nowrap;
  }
  /* Touch phones: no hover mega-menu - Tools goes to /tools/ */
  .nav-tools-panel {
    display: none !important;
  }
}

@media (max-width: 340px) {
  .site-header {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .site-header .top-nav {
    gap: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Fine pointer only: hover menu. Touch uses /tools/ page. */
@media (hover: none) {
  .nav-tools-panel {
    display: none !important;
  }
}
