@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #082f3d;
  --ink-2: #0e4659;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --cyan: #4bd3c8;
  --yellow: #f5dd5d;
  --coral: #ef6b5b;
  --blue: #2676dd;
  --muted: #5f6c70;
  --line: #b8c6c8;
  --focus: #ffbf00;
  font-size: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Atkinson Hyperlegible", "DM Sans", sans-serif;
  line-height: 1.55;
}
body.large-text { font-size: 1.16rem; }
body.high-contrast {
  --ink: #000;
  --ink-2: #111;
  --cream: #fff;
  --paper: #fff;
  --cyan: #00e9d6;
  --yellow: #ffe600;
  --coral: #ff4d3d;
  --blue: #004de6;
  --muted: #222;
  --line: #000;
}
button, input, a { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 16px; background: var(--yellow); color: #000; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  min-height: 88px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 34px;
  background: var(--ink);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 7px rgba(245, 221, 93, .42));
}
.footer-brand .brand-logo { width: 64px; height: 64px; }
.brand strong { display: block; font-family: "DM Sans", sans-serif; }
.brand small { display: block; margin-top: 7px; color: var(--cyan); font: 700 .55rem "Space Mono", monospace; letter-spacing: .12em; }
.site-header nav { margin-left: auto; display: flex; gap: 24px; }
.site-header nav a { font-size: .78rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--cyan); }
.view-controls { display: flex; gap: 6px; }
.view-controls button { padding: 8px 10px; border: 1px solid #78909a; border-radius: 6px; color: white; background: transparent; font-size: .68rem; cursor: pointer; }
.view-controls button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

.hero {
  min-height: 780px;
  padding: clamp(70px, 9vw, 140px) clamp(20px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1.05fr .7fr;
  gap: clamp(45px, 8vw, 120px);
  align-items: center;
  background: var(--ink);
  color: white;
  overflow: hidden;
}
.eyebrow, .section-heading span, .family-copy > span {
  display: block;
  margin-bottom: 22px;
  color: var(--cyan);
  font: 700 .62rem "Space Mono", monospace;
  letter-spacing: .13em;
}
.hero h1 { max-width: 920px; margin: 0; font: 600 clamp(3.5rem, 6.8vw, 7.6rem)/.89 "DM Sans", sans-serif; letter-spacing: -.075em; }
.hero-lead { max-width: 760px; margin: 34px 0; color: #d9e6e7; font-size: 1.17rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 19px; border: 2px solid currentColor; border-radius: 8px; text-decoration: none; font-weight: 700; cursor: pointer; }
.button.primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button.secondary { color: white; background: transparent; }
.button.dark { background: var(--ink); color: white; }
.hero-proof { list-style: none; padding: 0; margin: 45px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-proof li { padding: 7px 10px; border: 1px solid #56737d; border-radius: 99px; color: #dce8e9; font-size: .72rem; }
.hero-tool { position: relative; padding: clamp(24px, 3vw, 42px); background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: 18px 18px 0 var(--cyan); }
.hero-tool::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--coral); right: -45px; top: -58px; z-index: -1; }
.tool-top { padding-bottom: 18px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); font: 700 .6rem "Space Mono", monospace; }
.tool-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); opacity: .55; }
.tool-step.active { opacity: 1; }
.tool-step > span { width: 40px; height: 40px; display: grid; place-items: center; background: var(--cream); border-radius: 50%; font-weight: 700; }
.tool-step.active > span { background: var(--yellow); }
.tool-step b, .tool-step small { display: block; }
.tool-step small { margin-top: 4px; color: var(--muted); }
.hero-tool > p { margin: 24px 0 0; font-weight: 700; color: var(--blue); }

.scam-alert { padding: clamp(55px, 7vw, 100px) clamp(20px, 7vw, 110px); background: var(--coral); color: #171313; display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(35px, 7vw, 100px); }
.alert-heading > span { font: 700 .65rem "Space Mono", monospace; }
.alert-heading h2 { margin: 15px 0 20px; font: 700 clamp(2.1rem, 4.2vw, 4.8rem)/.95 "DM Sans", sans-serif; letter-spacing: -.055em; }
.alert-heading p { max-width: 540px; font-weight: 600; }
.scam-alert ol { list-style: none; padding: 0; margin: 0; counter-reset: scam; }
.scam-alert li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 18px 0; border-top: 2px solid #171313; }
.scam-alert li b { font: 700 .75rem "Space Mono", monospace; }
.scam-alert li span { font-weight: 600; }
.alert-actions { grid-column: 2; display: flex; gap: 12px; flex-wrap: wrap; }
.alert-actions button, .alert-actions a { padding: 13px 16px; border: 2px solid #171313; background: transparent; color: #171313; font-weight: 700; text-decoration: none; cursor: pointer; }
.alert-actions button { background: #171313; color: white; }

.section { padding: clamp(78px, 10vw, 150px) clamp(20px, 7vw, 110px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, .5fr); gap: 50px; align-items: end; }
.section-heading h2 { max-width: 950px; margin: 0; font: 600 clamp(2.7rem, 5.8vw, 6.2rem)/.92 "DM Sans", sans-serif; letter-spacing: -.065em; }
.section-heading > p { margin: 0 0 8px; max-width: 600px; color: var(--muted); font-size: 1.02rem; }

.pathway-grid { margin-top: 65px; display: grid; grid-template-columns: repeat(5, 1fr); border: 2px solid var(--ink); }
.pathway-grid button { min-height: 280px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; border-right: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.pathway-grid button:last-child { border-right: 0; }
.pathway-grid button:hover { background: var(--yellow); }
.pathway-grid span { font: 700 .65rem "Space Mono", monospace; }
.pathway-grid b { margin: auto 0 16px; font-size: 1.3rem; line-height: 1.05; }
.pathway-grid small { color: var(--muted); line-height: 1.45; }

.library { background: #d9edeb; }
.library-tools { margin-top: 60px; padding: 24px; background: var(--paper); border: 2px solid var(--ink); }
.search-box { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; font-weight: 700; }
.search-box input { min-height: 55px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); background: white; }
.filters { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { padding: 9px 13px; border: 1px solid var(--ink); border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; font-size: .75rem; font-weight: 700; }
.filters button.active, .filters button:hover { background: var(--ink); color: white; }
.results-count { margin: 18px 0 0; color: var(--muted); font-size: .8rem; }
.resource-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource-card { min-height: 295px; padding: 24px; background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; }
.resource-card[data-category="safety"] { border-top: 10px solid var(--coral); }
.resource-card[data-category="social"] { border-top: 10px solid var(--blue); }
.resource-card[data-category="truth"] { border-top: 10px solid #8c68c8; }
.resource-card[data-category="ai"] { border-top: 10px solid var(--cyan); }
.resource-card[data-category="family"] { border-top: 10px solid var(--yellow); }
.resource-card[data-category="basics"] { border-top: 10px solid var(--ink-2); }
.resource-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 700 .55rem "Space Mono", monospace; text-transform: uppercase; }
.resource-card h3 { margin: 30px 0 12px; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.035em; }
.resource-card p { margin: 0 0 24px; color: var(--muted); font-size: .88rem; }
.resource-card .card-promise { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: .72rem; }
.resource-card .card-promise + button { margin-top: 0; }
.resource-card button { margin-top: auto; align-self: flex-start; padding: 10px 13px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }
.resource-card button:hover { background: var(--ink); color: white; }
.empty-state { margin-top: 24px; padding: 45px; text-align: center; background: var(--paper); border: 2px dashed var(--ink); }

.family-plan { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(35px, 8vw, 120px); background: var(--yellow); }
.family-copy h2 { margin: 0; font: 600 clamp(2.7rem, 5.5vw, 5.8rem)/.92 "DM Sans", sans-serif; letter-spacing: -.065em; }
.family-copy > span { color: var(--ink); }
.family-copy p { max-width: 720px; margin: 30px 0; font-size: 1.06rem; }
.family-checklist { padding: 30px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); align-self: center; }
.family-checklist h3 { margin: 0 0 20px; }
.family-checklist label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); cursor: pointer; }
.family-checklist input { width: 22px; height: 22px; accent-color: var(--ink); }

.ai-now { background: var(--ink); color: white; }
.section-heading.light > p { color: #c9dadc; }
.timeline { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #65808a; }
.timeline article { min-height: 320px; padding: 25px; border-right: 1px solid #65808a; }
.timeline article:last-child { border-right: 0; background: var(--cyan); color: var(--ink); }
.timeline span { font: 700 .58rem "Space Mono", monospace; color: var(--yellow); }
.timeline article:last-child span { color: var(--ink); }
.timeline b { display: block; margin: 65px 0 18px; font-size: 1.35rem; line-height: 1.05; }
.timeline p { color: #d5e2e4; font-size: .85rem; }
.timeline article:last-child p { color: var(--ink); }
.ai-rule { margin-top: 35px; padding: 26px; display: grid; grid-template-columns: 260px 1fr; gap: 30px; border: 2px solid var(--yellow); }
.ai-rule strong { color: var(--yellow); font: 700 .7rem "Space Mono", monospace; }
.ai-rule p { margin: 0; max-width: 920px; }

.session-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.session-grid article { min-height: 300px; padding: 25px; border: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; }
.session-grid article > span { font: 700 .62rem "Space Mono", monospace; color: var(--blue); }
.session-grid h3 { margin: 44px 0 16px; font-size: 1.65rem; line-height: 1.05; }
.session-grid p { color: var(--muted); }
.session-grid b { margin-top: auto; font: 700 .55rem "Space Mono", monospace; }
.session-cta { margin-top: 14px; padding: 30px; display: flex; align-items: center; gap: 30px; background: var(--ink); color: white; }
.session-cta div { margin-right: auto; }
.session-cta small, .session-cta strong { display: block; }
.session-cta small { color: var(--cyan); font: 700 .55rem "Space Mono", monospace; }
.session-cta strong { margin-top: 8px; font-size: 1.15rem; }

.trusted-sources { background: var(--paper); }
.source-grid { margin-top: 60px; border-top: 2px solid var(--ink); }
.source-grid a { padding: 20px 0; display: grid; grid-template-columns: .8fr 1fr 30px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-grid a:hover b { color: var(--blue); }
.source-grid span { color: var(--muted); }
.source-grid i { font-style: normal; font-weight: 700; }
.source-note { max-width: 1000px; margin: 35px 0 0; color: var(--muted); font-size: .78rem; }

footer { min-height: 130px; padding: 30px clamp(20px, 5vw, 76px); display: flex; align-items: center; gap: 30px; background: var(--ink); color: white; }
footer p { margin-left: auto; font-size: .75rem; }
footer > a:last-child { font-weight: 700; }

.resource-dialog { width: min(920px, 94vw); max-height: 92vh; padding: 0; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
.resource-dialog::backdrop { background: rgba(3,24,31,.84); backdrop-filter: blur(7px); }
.dialog-close { position: sticky; top: 10px; float: right; margin: 12px 12px 0 0; z-index: 5; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.sheet { padding: clamp(28px, 6vw, 70px); }
.sheet-kicker { color: var(--blue); font: 700 .62rem "Space Mono", monospace; letter-spacing: .12em; }
.sheet h2 { max-width: 750px; margin: 15px 0 18px; font: 600 clamp(2.25rem, 5vw, 4.8rem)/.92 "DM Sans", sans-serif; letter-spacing: -.055em; }
.sheet-intro { max-width: 740px; font-size: 1.07rem; }
.sheet-actions { margin: 25px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-actions button { padding: 11px 14px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font-weight: 700; cursor: pointer; }
.sheet-body { margin-top: 32px; }
.sheet-body section { margin: 28px 0; padding-top: 20px; border-top: 2px solid var(--ink); }
.sheet-body h3 { margin: 0 0 14px; font-size: 1.35rem; }
.sheet-body ol, .sheet-body ul { padding-left: 24px; }
.sheet-body li { margin: 10px 0; }
.sheet-body .callout { padding: 18px; background: #e8f5f3; border-left: 8px solid var(--cyan); }
.sheet-body .warning { padding: 18px; background: #ffe1dc; border-left: 8px solid var(--coral); }
.sheet-body .remember { padding: 18px; background: #fff5bd; border-left: 8px solid var(--yellow); font-weight: 700; }
.lesson-overview { margin: 28px 0 18px; display: grid; grid-template-columns: 1fr 230px; border: 2px solid var(--ink); background: white; }
.lesson-overview > div { padding: 24px; }
.lesson-overview > div:first-child { border-right: 2px solid var(--ink); }
.lesson-overview span { display: block; margin-bottom: 12px; color: var(--blue); font: 700 .62rem "Space Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.lesson-overview ul { margin: 0; padding-left: 22px; }
.lesson-overview li { margin: 8px 0; }
.lesson-status { display: flex; flex-direction: column; justify-content: center; background: var(--yellow); }
.lesson-status b { font-size: 1.45rem; }
.lesson-status small { margin-top: 8px; }
.platform-note { margin: 18px 0 30px; padding: 16px 18px; border-left: 7px solid var(--cyan); background: #e8f5f3; font-size: .83rem; }

.app-link-panel { margin: 30px 0; padding: clamp(20px, 4vw, 34px); border: 2px solid var(--ink); background: #092c37; color: white; box-shadow: 9px 9px 0 var(--cyan); }
.app-link-heading { max-width: 720px; }
.app-link-heading > span, .official-screen-heading span { color: var(--yellow); font: 700 .62rem "Space Mono", monospace; letter-spacing: .12em; }
.app-link-heading h3, .official-screen-heading h3 { margin: 8px 0 10px; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.05; }
.app-link-heading p { margin: 0; color: #d7eaed; }
.app-link-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-link-grid a { min-width: 0; padding: 15px 16px; display: flex; flex-direction: column; border: 1px solid #4b7782; background: #0e3a46; color: white; text-decoration: none; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.app-link-grid a:hover, .app-link-grid a:focus-visible { border-color: var(--yellow); background: #145060; transform: translateY(-2px); outline: 3px solid var(--yellow); outline-offset: 2px; }
.app-link-grid b { color: var(--yellow); }
.app-link-grid span { margin-top: 3px; font-size: .78rem; }
.app-link-grid small { overflow: hidden; margin-top: 8px; color: #a9c9cf; font: 400 .55rem/1.35 "Space Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }

.official-screen-section { margin: 42px 0; padding: clamp(20px, 4vw, 34px); border: 2px solid var(--ink); background: white; }
.official-screen-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr); gap: 28px; align-items: end; }
.official-screen-heading span { color: var(--blue); }
.official-screen-heading h3 { margin-bottom: 0; }
.official-screen-heading p { margin: 0; color: var(--muted); font-size: .83rem; }
.official-screen-gallery { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.official-screen-card { min-width: 0; margin: 0; }
.official-screen-card > a { position: relative; overflow: hidden; display: block; border: 2px solid var(--ink); background: #eff3f2; color: var(--ink); text-decoration: none; }
.official-screen-card > a:hover, .official-screen-card > a:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; }
.official-screen-card img { width: 100%; height: auto; display: block; aspect-ratio: 443 / 960; object-fit: contain; background: #f5f6f6; }
.screen-number { position: absolute; top: 10px; left: 10px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; box-shadow: 3px 3px 0 var(--ink); }
.screen-enlarge { position: absolute; right: 8px; bottom: 8px; padding: 7px 9px; background: var(--ink); color: white; font: 700 .54rem "Space Mono", monospace; text-transform: uppercase; }
.official-screen-card figcaption { margin-top: 9px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.screen-source-note { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; }

.screen-example { margin: 32px auto 38px; max-width: 610px; }
.screen-phone { overflow: hidden; width: min(100%, 430px); margin: auto; border: 10px solid #12272d; border-radius: 30px; background: white; box-shadow: 10px 12px 0 rgba(8, 52, 65, .15); }
.screen-status { padding: 8px 18px; display: flex; justify-content: space-between; background: #12272d; color: white; font: 700 .57rem "Space Mono", monospace; }
.screen-appbar { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); }
.screen-appbar b { font-size: 1.2rem; }
.screen-appbar span { color: var(--muted); font-size: .72rem; }
.screen-body { padding: 12px; }
.screen-row { min-height: 64px; padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid #d2dddd; }
.screen-row:last-child { border-bottom: 0; }
.screen-row > span:nth-child(2) { min-width: 0; }
.screen-row b, .screen-row small { display: block; }
.screen-row small { margin-top: 4px; color: var(--muted); font-size: .69rem; }
.screen-row em { color: var(--blue); font: 700 .58rem "Space Mono", monospace; font-style: normal; }
.screen-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font-weight: 800; }
.screen-highlight { outline: 4px solid var(--yellow); background: #fffbe7; }
.screen-tabs { padding: 10px 8px; display: flex; justify-content: space-around; border-top: 2px solid var(--ink); background: #edf4f2; }
.screen-tabs span { min-width: 45px; display: grid; justify-items: center; color: var(--muted); font-weight: 800; }
.screen-tabs span.active { color: var(--blue); }
.screen-tabs small { display: block; margin-top: 3px; font-size: .5rem; }
.screen-example figcaption { margin: 18px auto 0; max-width: 500px; color: var(--muted); font-size: .75rem; line-height: 1.55; text-align: center; }

.lesson-checklist { list-style: none; padding-left: 0 !important; }
.lesson-checklist li { position: relative; padding: 12px 12px 12px 46px; border-bottom: 1px solid var(--line); }
.lesson-checklist li::before { content: "✓"; position: absolute; left: 8px; top: 9px; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-weight: 900; }
.lesson-steps { list-style: none; padding: 0 !important; counter-reset: lesson-step; }
.lesson-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.lesson-steps li > span { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--blue); color: white; font-weight: 800; }
.lesson-steps li > div { padding: 7px 0 15px; border-bottom: 1px solid var(--line); }
.checkpoint, .practice { margin: 22px 0; padding: 20px; border: 2px solid var(--ink); }
.checkpoint { background: #dcfbf4; box-shadow: 7px 7px 0 var(--cyan); }
.practice { background: #fff7c8; box-shadow: 7px 7px 0 var(--yellow); }
.checkpoint b, .practice b { display: block; margin-bottom: 7px; color: var(--blue); font: 700 .65rem "Space Mono", monospace; text-transform: uppercase; }
.checkpoint p, .practice p { margin: 0; }
.glossary { border: 2px solid var(--ink); }
.glossary p { margin: 0; padding: 14px 16px; display: grid; grid-template-columns: 150px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.glossary p:last-child { border-bottom: 0; }
.glossary b { color: var(--blue); }
.troubleshoot { margin: 0; }
.troubleshoot dt { margin-top: 16px; font-weight: 800; }
.troubleshoot dd { margin: 5px 0 0; padding: 0 0 15px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.sheet-source { margin-top: 35px; padding-top: 20px; border-top: 2px solid var(--ink); color: var(--muted); font-size: .72rem; }
.sheet-source b { color: var(--ink); }
.sheet-source p { margin-bottom: 0; }
.sheet-source a { display: inline-block; margin: 4px 5px 4px 0; }

@media (max-width: 1080px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-tool { max-width: 700px; }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .pathway-grid button { border-bottom: 2px solid var(--ink); }
  .resource-grid, .session-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline article { border-bottom: 1px solid #65808a; }
}

@media (max-width: 720px) {
  :root { font-size: 17px; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .view-controls { width: 100%; }
  .view-controls button { flex: 1; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .scam-alert, .section-heading, .family-plan { grid-template-columns: 1fr; }
  .alert-actions { grid-column: 1; }
  .scam-alert li { grid-template-columns: 78px 1fr; }
  .pathway-grid, .resource-grid, .timeline, .session-grid { grid-template-columns: 1fr; }
  .pathway-grid button { min-height: 220px; border-right: 0; }
  .search-box { grid-template-columns: 1fr; }
  .ai-rule { grid-template-columns: 1fr; }
  .session-cta { align-items: stretch; flex-direction: column; }
  footer { flex-direction: column; text-align: center; }
  footer p { margin: 0; }
  .source-grid a { grid-template-columns: 1fr 30px; }
  .source-grid span { grid-column: 1; }
  .lesson-overview { grid-template-columns: 1fr; }
  .lesson-overview > div:first-child { border-right: 0; border-bottom: 2px solid var(--ink); }
  .app-link-grid { grid-template-columns: 1fr; }
  .official-screen-heading { grid-template-columns: 1fr; gap: 10px; }
  .official-screen-gallery { grid-template-columns: 1fr; }
  .official-screen-card { max-width: 360px; margin: auto; }
  .screen-phone { border-width: 7px; border-radius: 22px; }
  .glossary p { grid-template-columns: 1fr; gap: 4px; }
  .sheet { padding: 28px 20px; }
}

@media print {
  @page { margin: 14mm; }
  body * { visibility: hidden !important; }
  .resource-dialog, .resource-dialog *, .resource-dialog[open] { visibility: visible !important; }
  .resource-dialog { position: static; width: 100%; max-height: none; border: 0; }
  .dialog-close, .sheet-actions { display: none !important; }
  .sheet { padding: 0; }
  .sheet h2 { font-size: 30pt; }
  .sheet, .sheet * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .lesson-overview, .app-link-panel, .official-screen-card, .screen-example, .sheet-body section, .checkpoint, .practice { break-inside: avoid; }
  .app-link-panel { box-shadow: none; }
  .app-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-link-grid small { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .official-screen-heading { grid-template-columns: 1fr; gap: 8px; }
  .official-screen-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .screen-enlarge { display: none; }
  .screen-phone { max-width: 340px; box-shadow: none; }
  .sheet-body h3 { break-after: avoid; }
  .sheet-source a { color: var(--ink); text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
