/* DJ Zero — multi-page site styles (loaded after styles.css) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--primary-fg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav-links a.active { color: var(--fg); position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.45rem; height: 2px; background: var(--gradient); border-radius: 2px; }
.nav-signin { display: inline-flex; align-items: center; gap: .4rem; color: var(--fg-muted); font-size: .9rem; font-weight: 500; padding: .5rem .75rem; border-radius: 999px; border: 1px solid transparent; }
.nav-signin:hover { color: var(--fg); border-color: var(--border); text-decoration: none; }
.nav-mobile-only { display: none; }
@media (max-width: 720px) {
  .nav-mobile-only { display: block; }
  .nav-signin span { display: none; }
  .nav-signin { padding: .5rem; border-color: var(--border); }
  .nav-links a.active::after { display: none; }
  body.menu-open { overflow: hidden; }
  .nav-links.open { box-shadow: 0 30px 40px -20px oklch(0% 0 0 / .6); }
}

/* Sections */
section.alt { background: var(--bg-deep); border-block: 1px solid var(--border); }
.page-hero { padding-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto -20%; height: 90%; background: radial-gradient(ellipse at 30% 0%, oklch(68% .1 205 / .14), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-inline: auto; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mini { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.mini strong { font-family: var(--font-head); font-size: 1.05rem; }
.mini > span { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.mini p { color: var(--fg-muted); font-size: .92rem; margin: .25rem 0 0; }
.card-link { color: inherit; }
.card-link:hover { text-decoration: none; }
.big-stats .big-num { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; margin-bottom: .75rem; letter-spacing: -.03em; }
.big-stats h3 { font-size: 1.1rem; }
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill-nav a { font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--border); color: var(--fg-muted); background: var(--card); }
.pill-nav a:hover { color: var(--fg); border-color: var(--primary); text-decoration: none; }

/* Home: tools + team teasers */
.tools-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.tool-list a { display: flex; flex-direction: column; gap: .2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; color: inherit; transition: border-color .15s, transform .15s; }
.tool-list a:hover { text-decoration: none; border-color: var(--primary); transform: translateX(4px); }
.tool-list strong { font-family: var(--font-head); }
.tool-list span { color: var(--fg-muted); font-size: .92rem; }
.team-card { flex-direction: row; gap: 1.75rem; align-items: center; }
.team-card h3 { font-size: 1.5rem; }
.team-card p { margin-bottom: 1rem; }
.team-card-lg h3 { font-size: 1.7rem; margin: 1.25rem 0 .2rem; }
.team-card-lg .role { color: var(--accent); font-family: var(--font-head); font-weight: 600; margin-bottom: 1.25rem; }
.about-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.rules .rule-num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; margin-bottom: .75rem; }

/* CTA band + footer */
.cta-band { padding: clamp(3rem, 7vw, 5rem) 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); border-top: 1px solid var(--border); }
.cta-band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: var(--fg-muted); margin: 0; max-width: 60ch; }
.cta-band-actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }
.cta-band-actions .btn { justify-content: center; }
body.no-cta-band .cta-band { display: none; }
.site-foot { background: var(--bg-deep); border-top: 1px solid var(--border); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.site-foot .container { display: block; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.foot-logo { display: flex; align-items: center; gap: 1rem; color: var(--fg); }
.foot-logo:hover { text-decoration: none; }
.foot-mark { flex: none; }
.foot-word strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.foot-word strong em { font-style: normal; }
.foot-word > span { display: block; margin-top: .35rem; font-family: var(--font-head); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.foot-right { text-align: right; max-width: 46ch; }
.foot-tag { font-size: 1.05rem; margin-bottom: .25rem; color: var(--fg); }
.foot-small { color: var(--fg-dim); font-size: .82rem; margin: .4rem 0; }
.foot-links { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; margin: .9rem 0 1.1rem; }
.foot-links a { color: var(--accent); font-weight: 500; }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Tools */
.tool-section { scroll-margin-top: 80px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.tool-card { padding: 2rem; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.q { display: flex; gap: .85rem; align-items: flex-start; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg); font-size: .95rem; color: var(--fg); font-weight: 400; transition: border-color .15s; }
.q:hover { border-color: var(--primary); }
.q input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: oklch(72% .09 205); flex: none; }
.q:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tool-result { margin-top: 1.25rem; }
.score-row { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.25rem; }
.score-ring { --pct: 0; width: 110px; height: 110px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 2rem;
  background: conic-gradient(var(--ring-col, oklch(72% .09 205)) calc(var(--pct) * 1%), var(--muted) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--card); }
.score-ring span { position: relative; }
.score-ring[data-band="good"] { --ring-col: oklch(78% .14 160); }
.score-ring[data-band="mid"] { --ring-col: oklch(82% .13 85); }
.score-ring[data-band="low"] { --ring-col: oklch(66% .19 25); }
.tool-result h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.tool-result h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 1.25rem 0 .5rem; }
.tool-result ol { padding-left: 1.2rem; color: var(--fg-muted); margin: 0 0 1.5rem; }
.tool-result ol li { margin-bottom: .5rem; }
.inline-form { display: flex; gap: .6rem; }
.inline-form input { flex: 1; }
.verdict { padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 1rem; line-height: 1.5; }
.verdict.ok { border-color: oklch(78% .14 160 / .5); background: oklch(78% .14 160 / .1); }
.verdict.warn { border-color: oklch(82% .13 85 / .5); background: oklch(82% .13 85 / .1); }
.verdict.bad { border-color: oklch(66% .19 25 / .5); background: oklch(66% .19 25 / .1); }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.checks li { display: grid; gap: .15rem; padding: .7rem .9rem .7rem 2.2rem; position: relative; background: var(--bg); border-radius: var(--radius-sm); font-size: .93rem; }
.checks li span { color: var(--fg-muted); }
.checks li::before { content: ""; position: absolute; left: .85rem; top: .95rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--fg-dim); }
.checks li.ok::before { background: oklch(78% .14 160); }
.checks li.warn::before { background: oklch(82% .13 85); }
.checks li.bad::before { background: oklch(66% .19 25); }
p.bad { color: oklch(75% .15 25); }
.pw-row { display: flex; gap: .6rem; }
.pw-row input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.meter { height: 8px; background: var(--muted); border-radius: 999px; margin: 1rem 0; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gradient); transition: width .25s ease; }
.meter span[data-band="low"] { background: oklch(66% .19 25); }
.meter span[data-band="mid"] { background: oklch(82% .13 85); }
.pw-verdict { font-weight: 500; }
.pw-notes { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; color: var(--fg-muted); font-size: .92rem; }
.pw-notes li { padding-left: 1.2rem; position: relative; }
.pw-notes li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.phish { gap: .5rem; }
.mail-head { display: grid; gap: .2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
.mail-from { font-size: .85rem; color: var(--fg-muted); word-break: break-all; }
.mail-sub { font-family: var(--font-head); font-weight: 600; }
.mail-body { font-size: .93rem; color: var(--fg-muted); margin-bottom: 1rem; flex: 1; }
.phish-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.phish-actions .btn.is-answer { border-color: var(--accent); color: var(--accent); }
.phish-why { font-size: .9rem; margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid var(--border); color: var(--fg-muted); }
.phish.right { border-color: oklch(78% .14 160 / .6); }
.phish.wrong { border-color: oklch(66% .19 25 / .6); }

/* Field notes */
.notes { max-width: 820px; display: grid; gap: 4rem; }
.note { scroll-margin-top: 90px; }
.note-meta { display: flex; align-items: center; gap: 1rem; color: var(--fg-dim); font-size: .85rem; margin-bottom: .75rem; }
.note-meta .tag { margin: 0; }
.note h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.note h3 { margin-top: 2rem; font-size: 1.2rem; }
.note ul, .note ol { color: var(--fg-muted); padding-left: 1.3rem; }
.note li { margin-bottom: .55rem; }
.note li strong { color: var(--fg); }
.checklist li { padding: .4rem 0 .4rem .4rem; border-bottom: 1px solid oklch(44% .006 250 / .5); }
.qa dt { font-family: var(--font-head); font-weight: 600; margin-top: 1.25rem; }
.qa dd { margin: .35rem 0 0; color: var(--fg-muted); }
.note-cta { margin-top: 1.75rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg-muted); }

@media (max-width: 960px) {
  .tools-teaser, .about-hero, .tool-grid, .cta-band-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .foot-right { text-align: left; }
  .foot-links { align-items: flex-start; }
}
@media (max-width: 720px) {
  .grid-4 { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; align-items: flex-start; }
  .inline-form { flex-direction: column; }
  .score-row { flex-direction: column; align-items: flex-start; }
}

/* Footer wordmark on phones */
@media (max-width: 720px) {
  .foot-word strong { font-size: 1.25rem; }
  .foot-word > span { letter-spacing: .12em; font-size: .66rem; }
  .foot-mark { width: 96px; height: 52px; }
}

/* ===== Width and breakpoint tuning: phone, tablet, desktop, ultrawide ===== */
.site-foot .container.foot-inner { display: flex; }
.foot-right { max-width: 52ch; }
@media (min-width: 1100px) { .foot-logo { gap: 1.25rem; } .foot-word strong { font-size: 1.85rem; } }

/* Tablet: two columns instead of collapsing to one */
@media (min-width: 721px) and (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .stat-stack { grid-template-columns: repeat(3, 1fr); }
  .tool-grid, .tools-teaser, .about-hero, .cta-band-inner { grid-template-columns: 1fr; }
}

/* Large desktop */
@media (min-width: 1400px) {
  :root { --max: 1520px; }
  body { font-size: 18px; }
  h1 { font-size: clamp(3rem, 4.6vw, 5.2rem); }
  .hero-grid { gap: 5rem; }
  .grid { gap: 1.5rem; }
}

/* Ultrawide: use the room, keep line lengths readable */
@media (min-width: 1800px) {
  :root { --max: 1760px; }
  body { font-size: 19px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .big-stats, .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .notes { max-width: 980px; }
  .faq-list { max-width: 980px; }
  .section-head { max-width: 70ch; }
  .lead { max-width: 64ch; }
  .card { padding: 2.1rem; }
  .site-foot { padding-block: 4.5rem; }
}
@media (min-width: 2200px) {
  :root { --max: 2000px; }
  .tools-teaser { grid-template-columns: 1fr 1.4fr; }
}
