:root {
  color-scheme: dark;
  --bg: #090d16;
  --card: #101725;
  --card2: #151f31;
  --text: #eef4ff;
  --muted: #a5b4ca;
  --primary: #8bd7ff;
  --primary-dark: #bceaff;
  --accent: var(--primary);
  --accent-soft: #142b44;
  --border: #28374e;
  --line-strong: #466485;
  --ink: #0b1929;
  --radius: 12px;
  --heading: "Barlow Condensed", Inter, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); margin: 48px 0 16px; scroll-margin-top: 96px; }
h3 { font-size: 1.55rem; margin: 26px 0 12px; scroll-margin-top: 96px; }
p { margin: 0 0 16px; max-width: 68ch; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }
.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.skip { position: fixed; left: -9999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 16px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 16px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { color: var(--accent); flex: none; }
.brand-mark svg, .brand-mark img { display: block; width: 40px; height: 40px; }
.brand-name { display: block; font: 700 27px/1 var(--heading); letter-spacing: .075em; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; min-height: 44px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.nav-toggle-bars { display: inline-block; width: 15px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.site-nav { display: flex; gap: 3px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 7px; font-size: 14px; font-weight: 600; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-cta { margin-left: 6px; border: 1px solid var(--line-strong); color: var(--text); }
main.wrap { padding-top: 28px; padding-bottom: 60px; }
.eyebrow { margin: 0 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .105em; text-transform: uppercase; color: var(--accent); }
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 392px;
  overflow: hidden;
  background: radial-gradient(ellipse at 84% 38%, color-mix(in srgb, var(--accent-soft) 75%, var(--accent)) 0, var(--accent-soft) 42%, var(--card) 78%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(26px, 4vw, 54px); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow::before { content: ""; flex: 0 0 16px; height: 1px; background: currentColor; }
.home-hero h1 { margin: 0; font-size: clamp(3rem, 5.25vw, 4.5rem); line-height: .96; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 9% 5% 9% 17%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 53% 49%, transparent 0 33px, color-mix(in srgb, var(--accent) 16%, transparent) 34px 35px, transparent 36px 53px);
  opacity: .8;
}
.hero-visual figure { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.hero-visual img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 100% 49%;
  border: 0;
  border-radius: 0;
  filter: saturate(1.45) contrast(1.1);
  mask-image: linear-gradient(90deg, transparent 30%, black 55%), linear-gradient(0deg, transparent, black 25%, black 90%, transparent);
  mask-composite: intersect;
}
.hero-visual figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--bg) 26%, transparent) 0 1px, transparent 1px 4px);
  mask-image: linear-gradient(90deg, transparent 12%, black 62%);
  pointer-events: none;
}
.hero-visual figcaption { position: absolute; z-index: 1; right: 14px; bottom: 12px; padding: 3px 8px; margin: 0; border-radius: 4px; background: var(--card); color: var(--muted); font-size: 12px; }
.jump { margin: 14px 0 32px; padding: 13px 14px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.jump-label { display: block; margin: 0 0 8px 2px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.jump-links { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.jump a { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 46px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card2); color: var(--text); font-size: .84rem; line-height: 1.25; font-weight: 600; text-decoration: none; }
.jump a::after { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); margin-right: 2px; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.jump a.jump-primary { background: var(--primary); border-color: var(--primary); color: var(--ink); }
.jump a.jump-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.crumbs { display: flex; flex-wrap: wrap; gap: 5px 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; overflow-wrap: anywhere; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--text); }
.guide-hero { margin: 0 0 26px; padding: clamp(20px, 4vw, 40px); background: radial-gradient(ellipse at 94% 0%, var(--accent-soft), transparent 59%), var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.guide-hero h1 { max-width: 33ch; margin: 0; text-wrap: pretty; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 23vw, 294px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.page-main { min-width: 0; grid-column: 1; grid-row: 1; }
.page-side { grid-column: 2; grid-row: 1; position: sticky; top: 94px; display: grid; gap: 10px; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: 9px; min-width: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: 0; padding: 8px 13px; font-weight: 600; font-size: .87rem; color: var(--text); list-style: none; cursor: pointer; }
.side-head::-webkit-details-marker { display: none; }
.side-head::after { content: ""; flex: 0 0 7px; height: 7px; border: solid var(--accent); border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.side-card[open] .side-head::after { transform: translateY(2px) rotate(225deg); }
.side-head:hover { color: var(--accent); }
.toc-list, .guide-list { list-style: none; margin: 0; padding: 2px 8px 9px; }
.toc-list li, .guide-list li { margin: 0; }
.toc-list a, .guide-list a { display: block; padding: 6px 8px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc-list a:hover, .guide-list a:hover, .guide-list a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.article { overflow-wrap: anywhere; }
.article > h1 { max-width: 26ch; }
.article h2 { padding-top: 18px; border-top: 1px solid var(--border); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.24rem); line-height: 1.62; color: var(--text); }
figure { margin: 26px 0; }
figure img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
figcaption { margin-top: 7px; font-size: 13px; color: var(--muted); }
.answer-box { margin: 24px 0; padding: clamp(16px, 2.5vw, 26px); background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; background: var(--primary); color: var(--ink); border: 1px solid var(--primary); border-radius: 8px; font: 600 15px Inter, sans-serif; text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card2); color: var(--accent); border-color: var(--accent); }
.fan-note { margin: 24px 0; padding: 16px; background: var(--card2); border: 1px dashed var(--border); border-radius: var(--radius); font-size: 14px; color: var(--muted); }
.fan-note p { margin: 0; }
.fan-note strong { color: var(--text); }
.video-block { margin: 48px 0; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 8px 24px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.video-block h2 { grid-column: 1 / -1; margin: 0 0 8px; padding: 0; border: 0; font-size: 28px; }
.video-block > p:first-of-type { grid-column: 1; margin: 0; }
.video-block > a { grid-column: 2; grid-row: 2 / span 2; display: block; position: relative; }
.video-block > a img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.video-block > a::after { content: "\25B6"; position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--ink); border-radius: 50%; font-size: 18px; }
.video-credit { grid-column: 1; margin: 0; font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 30px; }
.card { display: flex; flex-direction: column; padding: clamp(16px, 2vw, 24px); background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--line-strong); border-radius: var(--radius); }
.card h3 { margin: 0 0 8px; font-size: 28px; }
.card p { font-size: 15px; }
.card p:last-child { margin: auto 0 0; }
.card .eyebrow { margin-bottom: 5px; font-size: .75rem; }
.sonar { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; margin: 24px 0 32px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.sonar p:last-child { margin: 0; }
.sonar-rings { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--border); background: radial-gradient(circle, transparent 0 22px, var(--border) 23px 24px, transparent 25px); }
.sonar-rings::before, .sonar-rings::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 3s ease-out infinite; }
.sonar-rings::after { animation-delay: 1.5s; }
.sonar-dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--primary); }
@keyframes ping { 0% { transform: scale(0.2); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sonar-rings::before, .sonar-rings::after { animation: none; opacity: 0.4; } }
table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
td:first-child { width: 36%; color: var(--muted); font-weight: 600; }
thead th:empty { display: none; }
thead tr:has(th:empty) { display: none; }
.page-faq { margin: 64px 0 0; }
.page-faq h2 { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.page-faq details { margin: 0 0 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.page-faq summary { padding: 16px 48px 16px 16px; position: relative; font-weight: 600; cursor: pointer; list-style: none; }
.page-faq summary::-webkit-details-marker { display: none; }
.page-faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 22px; line-height: 1.2; color: var(--accent); }
.page-faq details[open] summary::after { content: "\2212"; }
.page-faq details[open] summary { border-bottom: 1px solid var(--border); }
.page-faq details p { margin: 0; padding: 16px; color: var(--muted); }
.tool-box { margin: 24px 0 32px; background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.engage { margin: 64px 0 0; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.engage-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.btn-like, .btn-share { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font: 600 14px Inter, sans-serif; cursor: pointer; }
.btn-like:hover, .btn-share:hover { border-color: var(--accent); color: var(--accent); }
.btn-like[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.engage-count, .share-msg { font-size: 14px; color: var(--muted); }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font: 400 16px Inter, sans-serif; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; }
.comment-invite, .reply-note, .comment-msg { margin: 0; font-size: 14px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.btn-text { background: none; border: 0; padding: 4px 0; color: var(--accent); font: 600 14px Inter, sans-serif; cursor: pointer; }
.comment-form:not([data-gf-replying]) [data-gf-reply-cancel] { display: none; }
.comments { margin-top: 24px; display: grid; gap: 12px; }
.comments[data-gf-empty]::before { content: "No comments yet. Be the first to share a tip."; font-size: 14px; color: var(--muted); }
.comments[data-gf-off] { display: none; }
.comment { padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.comment p { margin: 0 0 8px; }
.comment p:last-child { margin: 0; }
.comment[data-gf-owner] { border-color: var(--accent); }
.comment-head { font-size: 14px; color: var(--muted); }
.comment-name { font-weight: 600; color: var(--text); }
.owner-tag { display: none; padding: 0 8px; background: var(--accent); color: var(--ink); border-radius: var(--radius); font-size: 12px; font-weight: 600; }
[data-gf-owner] > .comment-head .owner-tag { display: inline-block; }
.comment-to { color: var(--accent); }
.replies { display: grid; gap: 8px; margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); }
.replies:empty { display: none; }
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 38px 0 24px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.foot-brand { margin: 0 0 8px; font: 700 30px/1 var(--heading); letter-spacing: .075em; }
.foot-tag, .site-footer ul a { color: var(--muted); }
.foot-head { margin: 0 0 12px; font-weight: 600; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal, .foot-copy { max-width: none; color: var(--muted); font-size: 12px; }
.foot-legal { padding-top: 20px; border-top: 1px solid var(--border); }
.legal-article, .tool-article, main > .page-faq, main > .engage { max-width: 820px; }
.article .video-block h2 { border: 0; padding: 0; }
@media (max-width: 1020px) {
  .jump-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .page-side { position: static; grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-height: none; overflow: visible; }
  .page-side:has(.toc[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .page-main { grid-row: auto; }
  .home-hero { min-height: 340px; }
  .nav-toggle { display: inline-flex; }
  .header-in { flex-wrap: wrap; gap: 0 16px; min-height: 64px; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 0 0 12px; }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 8px 12px; min-height: 44px; }
  .nav-cta { margin-left: 0; }
  h2, h3 { scroll-margin-top: 80px; }
}
@media (max-width: 640px) {
  main.wrap { padding-top: 16px; padding-bottom: 44px; }
  .brand-sub { display: none; }
  .home-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .hero-copy { padding: 22px 19px 8px; }
  .hero-copy .eyebrow { letter-spacing: .07em; font-size: .75rem; }
  .home-hero h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); }
  .hero-visual { min-height: clamp(160px, 49vw, 252px); }
  .hero-visual img { height: 120%; top: -10%; object-position: 100% 42%; mask-image: linear-gradient(90deg, transparent 31%, black 64%), linear-gradient(0deg, transparent 5%, black 27%, black 83%, transparent); }
  .hero-visual figcaption { right: 8px; bottom: 6px; }
  .jump { margin: 10px 0 17px; padding: 9px; }
  .jump-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-hero { margin-bottom: 16px; }
  .cards, .video-block, .sonar { grid-template-columns: minmax(0, 1fr); }
  .video-block { padding: 16px; }
  .video-block > a, .video-block > p:first-of-type, .video-credit { grid-column: 1; grid-row: auto; }
  .sonar { justify-items: start; }
  .btn-row .btn { width: 100%; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  td:first-child { width: auto; }
  th, td { padding: 8px; font-size: .88rem; overflow-wrap: anywhere; }
  .engage { padding: 16px; }
}
