/* StayCyberSafe Learn. Same tokens as staycybersafe.online — if the main site
   is rethemed, mirror the :root block here. One shared stylesheet (unlike the
   main site) because the CSP on this subdomain bans inline <style>. */
@import url('/fonts/fonts.css');

:root {
  --paper: #F6F5F2; --paper-alt: #EFEDE7; --white: #FFFFFF;
  --ink: #14161A; --ink-body: #4A4D55; --ink-muted: #6B6E76; --ink-faint: #8E8B83;
  --rule: #DCDAD3; --rule-strong: #C9C6BD; --accent: #39538F;
  --ok-bg: #DCE7DC; --ok-fg: #28402F; --no-bg: #F3DCD4; --no-fg: #8A3A26;
  --maxw: 1080px; --gutter: clamp(20px, 4vw, 40px);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.68; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { opacity: .7; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 40rem; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(246,245,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.head-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; text-decoration: none; }
.wordmark span { color: var(--accent); font-style: italic; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); font-size: 14px; color: var(--ink-muted); }
.site-nav a { text-decoration: none; }
.nav-cta { color: var(--paper); background: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
@media (max-width: 560px) { .site-nav .nav-link { display: none; } }

/* page head + prose */
.page-head { padding-block: clamp(48px, 7vw, 80px) clamp(20px, 3vw, 30px); }
.page-head h1 { margin: 12px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.2vw, 54px); line-height: 1.05; letter-spacing: -.022em; text-wrap: pretty; }
.standfirst { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--ink-body); }
.prose { padding-bottom: clamp(56px, 8vw, 88px); }
.prose p, .prose li { font-size: 17px; color: var(--ink-body); }
.prose p { margin: 0 0 20px; }
.prose h2 { margin: 44px 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.2; }
.prose h3 { margin: 30px 0 10px; font-size: 17px; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 9px; }
.callout { margin: 28px 0; padding: 18px 22px; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; }
.callout p:last-child { margin-bottom: 0; }
.draft-banner { background: var(--no-bg); color: var(--no-fg); font-weight: 700; padding: 10px var(--gutter); text-align: center; font-size: 14px; }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 24px 0 48px; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h2, .card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--ink-body); }
.card ul { margin: 0; padding-left: 1.2em; color: var(--ink-body); }
.card .price { font-family: var(--serif); font-size: 34px; }
.card .price small { font-family: var(--sans); font-size: 14px; color: var(--ink-muted); }
.card.featured { border-color: var(--ink); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--paper-alt); color: var(--ink-muted); }
.tag.member { background: #DDE3F0; color: var(--accent); }
.tag.done { background: var(--ok-bg); color: var(--ok-fg); }

/* forms + buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; text-align: center; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.danger { background: transparent; color: var(--no-fg); border-color: var(--no-fg); }
.btn[disabled] { opacity: .5; cursor: progress; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field input { font: inherit; font-size: 17px; padding: 11px 14px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.msg { margin: 16px 0; padding: 12px 16px; border-radius: 6px; font-size: 15px; }
.msg.ok { background: var(--ok-bg); color: var(--ok-fg); }
.msg.err { background: var(--no-bg); color: var(--no-fg); }

/* lists */
.lesson-list { list-style: none; padding: 0; margin: 20px 0 48px; border-top: 1px solid var(--rule); }
.lesson-list li { border-bottom: 1px solid var(--rule); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.lesson-list a { font-size: 18px; text-decoration: none; font-weight: 600; }
.breach { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.breach h3 { margin: 0 0 4px; }
.breach .meta { font-size: 14px; color: var(--ink-muted); margin: 0 0 8px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 40px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--paper-alt); padding-block: 40px 28px; font-size: 14px; color: var(--ink-muted); margin-top: 24px; }
.foot-cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols h2 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; opacity: 1; }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-faint); }

/* v2: pricing, resources, feed settings */
.section-title { margin: 8px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; }
.pricing .card ul { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.glossary dt { font-weight: 700; font-size: 18px; margin-top: 22px; scroll-margin-top: 84px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-body); font-size: 17px; }
.directory { list-style: none; padding-left: 0 !important; }
.directory li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.checks { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 18px; margin: 0 0 16px; background: var(--white); }
.checks legend { font-weight: 700; padding: 0 6px; }
.checks div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--ink-body); }
.url-out { margin: 16px 0; padding: 12px 16px; background: var(--white); border: 1px solid var(--rule-strong); border-radius: 6px; font-size: 15px; overflow-wrap: anywhere; }
.url-out code { font-family: var(--mono); font-size: 14px; user-select: all; }
a.card { text-decoration: none; }

/* pricing row: Individual group + Business */
.plans-row { display: grid; gap: 20px; grid-template-columns: 3fr 1fr; align-items: stretch; margin: 24px 0 32px; }
@media (max-width: 980px) { .plans-row { grid-template-columns: 1fr; } }
.plan-group { border: 1px solid var(--rule-strong); border-radius: 12px; padding: 18px; background: var(--paper-alt); display: flex; flex-direction: column; gap: 14px; }
.plan-group-title { margin: 0 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.plan-cards { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; }
@media (max-width: 760px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-group .card { height: 100%; }
.plan-group .card ul { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card.featured { border: 2px solid var(--ink); }

/* plan confirmation */
.plan-pick { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
@media (max-width: 560px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-option { font: inherit; text-align: left; cursor: pointer; color: inherit; border: 2px solid var(--rule); }
.plan-option:hover { border-color: var(--rule-strong); opacity: 1; }
.plan-option.selected { border: 3px solid var(--accent); box-shadow: 0 0 0 4px #DDE3F0; }
.plan-option[disabled] { cursor: default; opacity: .7; }
.plan-points { color: var(--ink-body); }
.selected-tag { background: var(--accent); color: var(--white); }
.plan-summary { margin: 22px 0 8px; }
.plan-summary p { font-size: 18px; margin: 0 0 14px; }

/* My tools */
.tool-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 8px 0 40px; }
.tool-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tool-top .tag { flex-shrink: 0; }
.tool-label { font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint) !important; margin-top: 6px !important; }
.tool-preview { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; color: var(--ink-body); flex: 1; }
.tool-date { color: var(--ink-faint); font-size: 14px; }
.card.locked { background: repeating-linear-gradient(-45deg, var(--white), var(--white) 12px, #FAF9F6 12px, #FAF9F6 24px); }
.card.locked .tool-preview, .card.locked > p { color: var(--ink-muted); }
.course-list { display: grid; gap: 16px; margin: 16px 0; }
.course h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.course-meta { font-size: 14px !important; color: var(--ink-faint) !important; }
.course-progress { font-size: 14px !important; color: var(--ok-fg) !important; font-weight: 700; }
.course-progress:empty { display: none; }
.more-soon { color: var(--ink-muted); margin-bottom: 48px; }

/* preview mode banner */
.preview-banner { background: var(--accent); color: var(--white); text-align: center; font-size: 14px; font-weight: 600; padding: 10px var(--gutter); }
.preview-banner a { color: var(--white); text-decoration: underline; }
