/* MySecurityEDU teaser site. Direction B "Calm Guardian" (built from the existing logo colors).
   Swap the variables in :root to change direction. */
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-Italic.ttf"); font-style: italic; font-display: swap; }

:root {
  --ink: #1f2427;
  --charcoal: #3a3f44;
  --muted: #4a5258;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #d6d2c6;
  --green: #256b19;
  --green-bright: #45b324;
  --green-wash: #eaf5e4;
  --link: #164f7a;
  --amber: #7a4a00;
  --amber-wash: #fff3d6;
  --stop: #9b1c1c;
  --stop-wash: #fdecec;
  --radius: 14px;
  --base: 20px;
  --max: 1040px;
}
html { font-size: var(--base); }
html.size-1 { font-size: 22px; }
html.size-2 { font-size: 25px; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Atkinson", "Segoe UI", Arial, sans-serif; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #0d3557; }
:focus-visible { outline: 4px solid #1a73c8; outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.1rem; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 1.1rem; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: 2.1rem; margin: .3em 0 .4em; }
h2 { font-size: 1.55rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1em 0 .4em; }
p, li { max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--charcoal); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.brand svg { width: 42px; height: 42px; }
.brand .edu { color: var(--green); }
.top nav { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.top nav a { padding: .45rem .7rem; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--charcoal); }
.top nav a:hover { background: var(--green-wash); }
.top nav a.cta { background: var(--green); color: #fff; }
.sizer { display: flex; gap: .25rem; align-items: center; font-size: .8rem; color: var(--muted); }
.sizer button { font: inherit; font-weight: 700; border: 2px solid var(--line); background: #fff; border-radius: 8px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); }
.sizer button[aria-pressed="true"] { border-color: var(--green); background: var(--green-wash); }
.helpbar { background: var(--amber-wash); border-bottom: 1px solid #ecd9a8; }
.helpbar .wrap { padding-top: .5rem; padding-bottom: .5rem; font-size: .95rem; }
.helpbar a { font-weight: 700; color: var(--amber); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; padding: .7rem 1.4rem; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 3px solid transparent; cursor: pointer; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: #1c5313; color: #fff; }
.btn.secondary { background: #fff; color: var(--green); border-color: var(--green); }
.btn.quiet { background: transparent; color: var(--link); text-decoration: underline; }
.btn.block { width: 100%; }
.hero { padding: 2.2rem 0 1.6rem; }
.hero .wrap { display: grid; gap: 1.6rem; grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.1rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.grid3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin: 0; }
.card .btn { margin-top: auto; }
.band { padding: 1.8rem 0; }
.band.green { background: var(--green-wash); }
.band.white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise { border-left: 6px solid var(--green); padding: .4rem 0 .4rem 1.1rem; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: .7rem .8rem .7rem 3.4rem; margin: .5rem 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: .8rem; top: .7rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; }
.habit { display: flex; flex-wrap: wrap; gap: .5rem; }
.habit span { background: #fff; border: 2px solid var(--green); color: var(--green); font-weight: 700; border-radius: 999px; padding: .35rem .9rem; }
.note { background: var(--amber-wash); border: 1px solid #ecd9a8; border-radius: 12px; padding: .9rem 1.1rem; }
.warn { background: var(--stop-wash); border: 1px solid #f0c4c4; border-radius: 12px; padding: .9rem 1.1rem; }
.small { font-size: .9rem; color: var(--muted); }
footer { margin-top: 2.5rem; background: var(--charcoal); color: #f1f1ec; padding: 1.6rem 0 2rem; font-size: .95rem; }
footer a { color: #fff; }
footer .cols { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
label { display: block; font-weight: 700; margin: .8rem 0 .3rem; }
input[type=text], input[type=email] { width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border: 2px solid #8b8f93; border-radius: 10px; min-height: 56px; background: #fff; color: var(--ink); }
input[type=text]:focus, input[type=email]:focus { border-color: var(--green); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check input { width: 28px; height: 28px; margin-top: .15rem; flex: none; }
.hp { position: absolute; left: -5000px; }
.formmsg { margin-top: .8rem; font-weight: 700; }
.formmsg.err { color: var(--stop); }
.progress { height: 14px; background: #e7e4da; border-radius: 999px; overflow: hidden; margin: .6rem 0 .3rem; }
.progress > div { height: 100%; background: var(--green); width: 0; transition: width .3s; }
.qarea { font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.qtext { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: .4rem 0 1rem; }
.qhint { color: var(--muted); margin: -.4rem 0 1rem; }
.answers { display: grid; gap: .7rem; }
.answers button { font: inherit; font-size: 1.15rem; font-weight: 700; min-height: 64px; border-radius: 14px; border: 3px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left; padding: .7rem 1.1rem; display: flex; align-items: center; gap: .8rem; }
.answers button:hover { border-color: var(--green); background: var(--green-wash); }
.answers button .k { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); flex: none; font-size: 1rem; }
.answers button[aria-pressed="true"] { border-color: var(--green); background: var(--green-wash); }
.qnav { display: flex; justify-content: space-between; margin-top: 1.2rem; gap: .6rem; flex-wrap: wrap; }
.grades { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grade { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: flex; gap: .9rem; align-items: center; }
.grade .letter { width: 3.2rem; height: 3.2rem; border-radius: 12px; display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; color: #fff; flex: none; }
.g-A, .g-B { background: var(--green); }
.g-C { background: #8a6a00; }
.g-D, .g-F { background: var(--stop); }
.g-look { background: #5b6670; font-size: .9rem !important; text-align: center; line-height: 1.1; }
.overall { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.overall .letter { width: 6rem; height: 6rem; font-size: 3.4rem; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.fix { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 12px; padding: .9rem 1.1rem; margin: .7rem 0; }
.fix.one { border-left-color: var(--amber); background: var(--amber-wash); }
.fix h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--green-wash); color: var(--green); margin-right: .3rem; }
.tag.look { background: #eef0f2; color: #3e4a55; }
@media (max-width: 820px) {
  h1 { font-size: 1.7rem; }
  .hero .wrap, .grid3, .grid2 { grid-template-columns: 1fr; }
  .top nav { margin-left: 0; width: 100%; }
}
@media print {
  .top, .helpbar, footer, .noprint { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
