/* Sharpe & Clear - shared styles for every page of sharpeandclear.com.
   Look of the YouTube kit: deep navy, sky-blue accent. System fonts only: no web fonts, no external files. */
:root {
  --bg: #0b1020; --card: #121a33; --card2: #0e1631; --line: #26335e;
  --ink: #f1f5f9; --ink2: #cbd5e1; --ink3: #a3b1c6;
  --sky: #38bdf8; --sky-ink: #06121f; --teal: #2dd4bf; --amber: #fbbf24; --good: #4ade80; --bad: #fda4af;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: var(--bg) radial-gradient(ellipse 140% 70% at 50% -10%, #1b2a5c 0%, #0f1834 45%, var(--bg) 100%) no-repeat;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 2px; }
a:hover { color: #7dd3fc; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
strong { color: var(--ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--amber); color: #111; padding: 8px 14px;
        border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

/* brand bar */
.brand { padding: 18px 0 6px; }
.brand a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800;
           font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand span { color: var(--ink3); font-weight: 600; font-size: 14px; }

/* landing page layout: mobile first (intro, cover, form, inside, video), two columns on wide screens */
.layout { display: grid; gap: 22px; padding: 14px 0 36px;
          grid-template-areas: "intro" "cover" "form" "inside" "yt"; }
.intro { grid-area: intro; }
.cover { grid-area: cover; justify-self: center; }
.signup { grid-area: form; }
.inside { grid-area: inside; }
.yt { grid-area: yt; }
@media (min-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr) 390px; column-gap: 48px; row-gap: 26px; padding-top: 28px;
            grid-template-areas: "intro cover" "inside form" "yt form"; align-items: start; }
  .signup { position: sticky; top: 20px; }
}

.eyebrow, .page .eyebrow { margin: 0 0 10px; color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0 0 14px; font-size: clamp(30px, 7.4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.lede { margin: 0; color: var(--ink2); font-size: clamp(17px, 2.6vw, 19px); }

.cover img { display: block; width: 190px; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (min-width: 880px) { .cover img { width: 250px; } }

.inside h2, .yt h2 { margin: 0 0 12px; font-size: 21px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding: 14px 16px 14px 48px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; color: var(--ink2); }
.ticks li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 21px; height: 21px; border-radius: 50%; background: var(--good); }
.ticks li::after { content: ""; position: absolute; left: 23.5px; top: 21px; width: 6px; height: 10px;
                   border: solid var(--sky-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* cards and forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
@media (min-width: 480px) { .card { padding: 26px 24px; } }
.card h2 { margin: 0 0 4px; font-size: 22px; }
.card .sub { margin: 0 0 18px; color: var(--ink3); font-size: 15px; }

label, legend { display: block; font-weight: 700; margin: 0 0 6px; }
input[type=email] { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #0a1124; border: 1.5px solid #3a4a7a;
                    border-radius: 12px; padding: 13px 14px; }
input[type=email]::placeholder { color: #8391a8; }
input[type=email]:focus-visible { border-color: var(--sky); }
input[aria-invalid=true], .invalid .levels label, label.consent.invalid { border-color: var(--bad); }
.field { margin: 0 0 18px; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.levels label { display: flex; align-items: center; gap: 9px; margin: 0; padding: 11px 12px; font-weight: 600; cursor: pointer;
                background: #0a1124; border: 1.5px solid #3a4a7a; border-radius: 12px; }
.levels label:has(input:checked) { border-color: var(--sky); background: #0d2036; }
input[type=radio], input[type=checkbox] { accent-color: var(--sky); width: 20px; height: 20px; margin: 0; flex: none; }
label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink2); margin: 0 0 4px;
                padding: 10px 12px; border: 1.5px solid transparent; border-radius: 12px; cursor: pointer; }
label.consent input { margin-top: 2px; }
.field-error { margin: 6px 0 0; color: var(--bad); font-size: 15px; font-weight: 600; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-block; width: 100%; border: 0; border-radius: 999px; padding: 15px 22px; font: inherit; font-size: 18px;
       font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; background: var(--sky); color: var(--sky-ink); }
.btn:hover { background: #7dd3fc; color: var(--sky-ink); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-big { font-size: 19px; padding: 17px 16px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid #4a5a8c; }
.btn-ghost:hover { background: #18234a; color: var(--ink); }
.btn-auto { width: auto; }
.signup .btn { margin-top: 14px; }
.status { margin: 12px 0 0; min-height: 1.2em; font-weight: 600; color: var(--bad); }
.status:empty { margin: 0; min-height: 0; }
.alert { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #3b1222; color: #fecdd3; font-weight: 600; }
.alert:target { display: block; }
.fine { margin: 12px 0 0; color: var(--ink3); font-size: 14px; }

/* simple pages (check your inbox, confirmed, privacy) */
.page { padding: 14px 0 40px; }
.page h1 { font-size: clamp(28px, 6.6vw, 40px); }
.page .card { margin: 22px 0; }
.page p, .page li { color: var(--ink2); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page h2 { font-size: 20px; margin: 26px 0 8px; }
.icon { display: block; width: 56px; height: 56px; margin: 0 0 14px; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--ink3); font-size: 15px; }

footer { border-top: 1px solid #1c2647; padding: 20px 0 32px; color: var(--ink3); font-size: 13.5px; line-height: 1.6; }
footer p { margin: 0 0 6px; }
footer a { color: var(--ink2); }

/* ===== Free resource pages (/level-1-2027-changes/, /level-1-exam-dates-2027/, /level-1-study-plan-may-2027/)
   and the home page's "Free resources" list. Additive only. Prose styles are scoped to .art-head and .sec, so the
   signup form keeps its own look. No inline styles anywhere: the site's CSP (style-src 'self') would block them. */
.article { padding: 14px 0 40px; }
.article h1 { font-size: clamp(28px, 6.6vw, 40px); }
.art-head .lede { margin: 0 0 12px; }
.art-head .meta { margin: 0 0 16px; color: var(--ink3); font-size: 14px; }
.cta-line { margin: 0 0 22px; padding: 12px 14px 12px 16px; background: var(--card2); border: 1px solid var(--line);
            border-left: 4px solid var(--teal); border-radius: 12px; color: var(--ink2); font-size: 15px; }
.cta-line a { font-weight: 700; }
.keybox { margin: 0 0 18px; padding: 16px 18px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.keybox h2 { margin: 0 0 8px; font-size: 14px; color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
.keybox ul { margin: 0 0 10px; padding-left: 20px; }
.keybox li { margin: 5px 0; color: var(--ink2); }
.toc { margin: 0; padding: 12px 16px 10px; border: 1px solid var(--line); border-radius: 14px; }
.toc h2 { margin: 0 0 6px; font-size: 14px; color: var(--ink3); letter-spacing: .06em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 0; padding: 3px 0; color: var(--ink3); font-size: 15px; break-inside: avoid; }
@media (min-width: 600px) { .toc ol { columns: 2; column-gap: 32px; } }

.sec { margin-top: 38px; }
.sec > h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; scroll-margin-top: 12px; }
.sec h3 { margin: 24px 0 6px; font-size: 18px; line-height: 1.3; }
.sec p { margin: 0 0 12px; color: var(--ink2); }
.sec ul, .sec ol { margin: 0 0 14px; padding-left: 22px; }
.sec li { margin: 6px 0; color: var(--ink2); }
.sec .note, .note { color: var(--ink3); font-size: 14px; }
.sec .ticks { margin: 0 0 14px; padding-left: 0; }
.sec .ticks li { margin: 0; }
.sec .steps { list-style: none; padding-left: 0; counter-reset: step; }
.sec .steps li { position: relative; margin: 0 0 12px; padding-left: 44px; counter-increment: step; }
.sec .steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid;
                         place-items: center; border-radius: 50%; background: #0d2036; border: 1.5px solid var(--sky);
                         color: var(--sky); font-size: 15px; font-weight: 800; }

/* tables: they fit a 340 px phone; the wrapper scrolls sideways only as a last resort */
.tbl { margin: 14px 0 18px; overflow-x: auto; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.tbl caption { padding: 12px 12px 6px; text-align: left; font-weight: 700; color: var(--ink); }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; vertical-align: top; border-top: 1px solid #1f2b55; }
.tbl thead th { padding-top: 8px; border-top: 0; vertical-align: bottom; color: var(--ink3); font-size: 12.5px; font-weight: 700;
                letter-spacing: .04em; text-transform: uppercase; }
.tbl tbody th { color: var(--ink); font-weight: 600; }
.tbl .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr.grp th { padding: 7px 10px; background: #0c1532; color: var(--teal); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.tbl tfoot th, .tbl tfoot td { color: var(--ink); font-weight: 700; border-top: 1.5px solid var(--line); }
.tbl .was { display: block; color: var(--ink3); font-size: 13px; font-weight: 400; }
.tbl .up { color: var(--good); font-weight: 700; }
.tbl .down { color: var(--bad); font-weight: 700; }
.tbl .same { color: var(--ink3); }
@media (max-width: 420px) {
  .tbl table { font-size: 14px; }
  .tbl th, .tbl td { padding: 8px 7px; }
  .tbl thead th { font-size: 11.5px; letter-spacing: .02em; }
}
@media (max-width: 360px) { .tbl th, .tbl td { padding: 8px 5px; } }
.tag { display: inline-block; padding: 0 7px; border-radius: 999px; background: #1c2647; color: var(--ink3); font-size: 12px;
       font-weight: 700; line-height: 1.6; white-space: nowrap; }
.nw, .tbl .nw { white-space: nowrap; }
.tbl .kv td { white-space: nowrap; }
.tbl .kv .tag { display: table; margin-top: 4px; }
.tbl > .note { margin: 0; padding: 2px 12px 12px; }
.cards2 { display: grid; gap: 14px; margin: 14px 0 18px; }
.cards2 .tbl { margin: 0; }
@media (min-width: 640px) { .cards2 { grid-template-columns: 1fr 1fr; } }

/* charts: inline SVG, drawn with classes (no inline styles); text stays at 10 px or more on a phone */
.chart { margin: 14px 0 18px; padding: 14px 6px 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 480px) { .chart { padding: 16px 14px 14px; } }
.chart svg { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; }
.chart svg.narrow-svg { max-width: 470px; }
.chart figcaption { margin: 10px 8px 0; color: var(--ink3); font-size: 14px; }
.legend, .sec .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 8px 0; padding: 0; list-style: none; font-size: 14px; }
.legend li, .sec .legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--ink2); }
.sw { display: inline-block; flex: none; width: 20px; height: 12px; border-radius: 3px; }
.sw-old { border: 1.5px dashed #b6c2d6; }
.sw-new { background: var(--sky); }
.sw-learn { background: #1d5b82; border: 1px solid var(--sky); }
.sw-spare { border: 1.5px dashed #94a3b8; }
.sw-fix { background: #4b3f80; border: 1px solid #a78bfa; }
.sw-mock { background: #175c5c; border: 1px solid var(--teal); }
.sw-final { border: 1.5px dashed var(--teal); }
.sw-exam { background: #2a3350; border: 1px solid var(--ink2); }
.sw-eth { height: 5px; border-radius: 2px; background: var(--amber); }
.sw-psm { width: 12px; border-radius: 50%; background: #f472b6; }
.sw-quit { border: 2px solid #fb7185; }
.g-grid { stroke: #22305c; stroke-width: 1; }
.g-axis { fill: var(--ink3); }
.g-lab { fill: var(--ink); font-weight: 600; }
.g-old { fill: none; stroke: #b6c2d6; stroke-width: 1.6; stroke-dasharray: 4 3; }
.g-new { fill: var(--sky); fill-opacity: .9; }
.g-up { fill: var(--good); font-weight: 800; }
.g-down { fill: var(--bad); font-weight: 800; }
.g-same { fill: var(--ink3); font-weight: 700; }
.g-arrow-bg { stroke: #0b1020; stroke-width: 5; stroke-linecap: round; }
.g-arrow-up { stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; }
.g-arrow-down { stroke: var(--bad); stroke-width: 2.4; stroke-linecap: round; }
.g-learn { fill: #1d5b82; stroke: var(--sky); stroke-width: 1; }
.g-learn2 { fill: #163e64; stroke: var(--sky); stroke-width: 1; }
.g-spare { fill: #1b2340; stroke: #94a3b8; stroke-width: 1.2; stroke-dasharray: 3 3; }
.g-fix { fill: #4b3f80; stroke: #a78bfa; stroke-width: 1; }
.g-mock { fill: #175c5c; stroke: var(--teal); stroke-width: 1; }
.g-final { fill: #10343a; stroke: var(--teal); stroke-width: 1.2; stroke-dasharray: 3 3; }
.g-exam { fill: #2a3350; stroke: var(--ink2); stroke-width: 1.2; }
.g-flag { fill: var(--ink); }
.g-eth { fill: var(--amber); }
.g-psm { fill: #f472b6; stroke: #0b1020; stroke-width: 2; }
.g-quit { fill: none; stroke: #fb7185; stroke-width: 2.5; }
.g-tick { stroke: #3a4a7a; stroke-width: 1; }
.g-month { fill: var(--ink2); font-weight: 600; }
.g-num { fill: #e0f2fe; font-weight: 700; }

/* "Watch on YouTube" card: a plain link with a local image (no iframe, nothing loaded from YouTube) */
.yt-card { display: grid; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
           color: var(--ink); text-decoration: none; }
.yt-card:hover { color: var(--ink); background: #152042; border-color: #4a5a8c; }
.yt-thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--card2); }
.yt-thumb img { display: block; width: 100%; height: auto; }
.yt-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 62px; height: 44px; margin: -22px 0 0 -31px;
                   border-radius: 13px; background: rgba(11, 16, 32, .84); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .4); }
.yt-thumb::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; margin: -10px 0 0 -6px; border-style: solid;
                    border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-text { display: block; }
.yt-text strong { display: block; margin: 0 0 4px; font-size: 19px; }
.yt-text span { display: block; color: var(--ink2); font-size: 15px; }
.yt-text .yt-go { margin-top: 8px; color: var(--sky); font-weight: 700; }
@media (min-width: 600px) { .yt-card { grid-template-columns: 250px 1fr; gap: 18px; align-items: center; } }

/* lists of the free resource pages (home page and "Related" sections) */
.res h2 { margin: 0 0 12px; font-size: 21px; }
.res-list, .sec .res-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.res-list li, .sec .res-list li { margin: 0; }
.res-list a { display: block; padding: 13px 16px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px;
              color: var(--ink); text-decoration: none; }
.res-list a:hover { background: #152042; border-color: #4a5a8c; color: var(--ink); }
.res-list strong { display: block; color: var(--sky); }
.res-list span { display: block; color: var(--ink2); font-size: 15px; }
.article .signup { margin: 34px 0 0; }
.sec .src li { font-size: 14.5px; }
