/* Grades Dashboard promo site: one shared stylesheet, no framework. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --faint: #7b8794;
  --line: #e4e7eb;
  --brand: #4f7356;
  --brand-ink: #ffffff;
  --brand-soft: #edf2ee;
  --accent: #f28c28;
  --accent-ink: #a8540f;
  --go: #4f7356;
  --go-soft: #e7f4ec;
  --warn-soft: #fdf3e3;
  --avoid: #9b3b2b;
  --avoid-soft: #fbefec;
  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 8px; }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo .mark { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px 18px; margin-left: auto; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 760px) {
  .site-head .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; margin-left: 0; gap: 2px 14px; font-size: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 11px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 16px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #43624a; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.soon { background: #eef0f3; color: var(--faint); cursor: default; }
.btn-logo { flex: 0 0 auto; display: block; width: 24px; height: 24px; padding: 2px; margin-left: -4px; background: #fff; border-radius: 50%; }
.btn.soon .btn-logo { filter: grayscale(1); opacity: 0.6; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero .hero-text { max-width: 46em; margin: 0 auto 32px; text-align: center; }
.hero .hero-text .btn-row { justify-content: center; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 34em; margin-left: auto; margin-right: auto; }
.hero .device-note { font-size: 14px; color: var(--faint); margin-top: 10px; }
.hero-shot { margin: 0; }
.hero-shot figcaption { text-align: center; color: var(--faint); font-size: 14px; margin-top: 12px; }
.browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 48px rgba(15, 23, 42, .16); }
.browser-bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 12px; background: #eceef1; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9ced5; }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero .hero-text { margin-bottom: 22px; }
  .browser { border-radius: 8px; }
  .browser-bar { height: 18px; gap: 5px; padding: 0 8px; }
  .browser-bar i { width: 7px; height: 7px; }
}

/* Sections */
section.block { padding: 44px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 46em; margin-bottom: 28px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.one { grid-template-columns: 1fr; }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.alt .card { background: var(--bg); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 26px; margin-bottom: 8px; }

/* Feature sections */
.feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip { grid-template-columns: .85fr 1.15fr; }
.feature.flip .feature-media { order: -1; }
.feature-media img { border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.feature-media img.framed { border: 0; background: transparent; max-width: 300px; margin: 0 auto; filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .16)); }
.feature-media .caption { font-size: 13px; color: var(--faint); margin-top: 8px; text-align: center; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 20px; }
  .feature.flip .feature-media { order: 0; }
}
.research, .avoid { border-radius: 12px; padding: 14px 16px; margin: 14px 0 0; font-size: 15.5px; }
.research { background: var(--brand-soft); }
.avoid { background: var(--avoid-soft); }
.research strong, .avoid strong { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.research strong { color: var(--brand); }
.avoid strong { color: var(--avoid); }
.research p, .avoid p { margin: 0 0 .5em; }
.research p:last-child, .avoid p:last-child { margin-bottom: 0; }
sup.cite a { text-decoration: none; font-weight: 600; font-size: 12px; padding: 0 1px; }

/* Crop the desktop shots to the panel (right side) on small screens */
.panel-crop { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.panel-crop img { border: 0; border-radius: 0; }

/* Install table */
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .install-grid { grid-template-columns: 1fr; } }
.install-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.install-card.here { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.install-card h3 { display: flex; align-items: center; gap: 10px; }
.install-card .tag { font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 2px 9px; }
.install-card .tag.no { background: #f1f2f4; color: var(--muted); }
.notice { background: var(--warn-soft); border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; }

/* Lists and steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 16px 46px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; display: grid; place-items: center; }
ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--go); font-weight: 700; }
ul.crosses { list-style: none; padding: 0; margin: 0 0 1em; }
ul.crosses li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.crosses li::before { content: "✕"; position: absolute; left: 4px; color: var(--avoid); font-weight: 700; }

table.plain { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 15.5px; }
table.plain th, table.plain td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { background: #f0f2f5; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
code { font-size: .9em; background: #eef0f3; padding: 1px 5px; border-radius: 5px; }

/* References */
ol.refs { padding-left: 1.4em; }
ol.refs li { margin-bottom: 14px; scroll-margin-top: 90px; }
ol.refs li:target { background: var(--brand-soft); border-radius: 8px; }
ol.refs .why { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* Footer */
.site-foot { background: #1f2933; color: #cbd2d9; padding: 32px 0 40px; font-size: 15px; }
.site-foot a { color: #fff; }
.site-foot .cols { display: flex; gap: 24px 40px; flex-wrap: wrap; justify-content: space-between; }
.site-foot .disclaim { margin-top: 18px; color: #9aa5b1; font-size: 14px; }
.site-foot .foot-right { text-align: right; }
.site-foot .stores { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .site-foot .foot-right { text-align: left; } .site-foot .stores { justify-content: flex-start; } }
.site-foot .stores a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid #3e4c59; border-radius: 999px; text-decoration: none; font-size: 14px; }
.site-foot .stores a:hover { background: #323f4b; }
.site-foot .stores a.soon { opacity: 0.45; cursor: default; }
.site-foot .stores a.soon img { filter: grayscale(1); }
.site-foot .stores a.soon:hover { background: none; }

.site-foot .credit { margin: 14px 0 0; }
.site-foot .credit img { display: inline-block; vertical-align: -4px; border-radius: 4px; }

/* Home: the feature cards with one phone screenshot on their right; on a
   narrow screen the screenshot drops below the cards. */
.feature-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.feature-row > .cards { flex: 999 1 560px; min-width: 0; }
.feature-phone { flex: 1 1 240px; max-width: 280px; margin: 0 0 0 auto; }
@media (max-width: 860px) { .feature-phone { margin: 0 auto; } }
.feature-phone figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
/* Small icons inline with heading text, like the dashboard's Missing hexagon. */
.inline-icon { display: inline-block; height: .8em; width: auto; vertical-align: -0.05em; margin-right: .15em; }

/* Support box: the same one as in the extension's settings. */
.support { margin-top: 32px; border: 1px solid #d6e4f7; border-radius: var(--radius); background: #f6f9fe; }
.support summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: var(--radius); }
.support summary::-webkit-details-marker { display: none; }
.support summary:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }
.support-chev { flex: 0 0 auto; color: #5b6b80; transition: transform 0.15s ease; }
.support[open] .support-chev { transform: rotate(180deg); }
.support-body { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 0 20px 20px; }
@media (prefers-reduced-motion: reduce) { .support-chev { transition: none; } }
.support-art { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: #dfeafb; color: #1f5fc4; display: flex; align-items: center; justify-content: center; }
.support-text { flex: 1 1 260px; }
.support-text p { margin: 0; }
.support-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.support-links .btn { padding: 10px 16px; font-size: 15px; }
