/* Zaadcademy — tokens */
@font-face { font-family: "Reem Kufi"; font-weight: 500; font-display: swap; src: url(fonts/reem-kufi-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(fonts/reem-kufi-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Reem Kufi"; font-weight: 500; font-display: swap; src: url(fonts/reem-kufi-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(fonts/reem-kufi-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-latin-400.woff2) format("woff2"); }

/* Zaadcademy theme: colours from the Zaad Academy logo and the school logo.
   Layout patterns follow learning portals such as Microsoft Learn's Educator Center:
   white header with logo, light page banner, cards, clear progress. */
:root {
  --page: #f4f7f7;        /* page background */
  --paper: #ffffff;       /* cards, header */
  --ink: #12313a;         /* text: dark teal */
  --ink-soft: #536b71;    /* secondary text */
  --line: #d5e0e1;        /* borders */
  --teal: #0b6b74;        /* primary: Zaad logo teal */
  --teal-deep: #08525a;
  --teal-light: #12a09a;  /* school logo light teal */
  --teal-tint: #e6f3f2;
  --gold: #e6a91c;        /* book pages, sun */
  --gold-tint: #fcf4dd;
  --orange: #ee7d16;      /* the diamond on zaad */
  --rust: #b3402f;        /* errors, stop */
  --radius: 8px;
  --shadow: 0 1px 2px rgba(18, 49, 58, .06), 0 2px 8px rgba(18, 49, 58, .05);
  --display: "Reem Kufi", "Plex Arabic", sans-serif;
  --body: "Plex Arabic", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--page); }
h1, h2, h3 { font-weight: 600; line-height: 1.3; margin: 0 0 .4em; color: var(--ink); }
h1 { font-family: var(--display); font-weight: 700; word-spacing: .12em; font-size: 2rem; color: var(--teal-deep); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
.muted { color: var(--ink-soft); }
.mono { font-family: var(--mono); font-size: .9em; unicode-bidi: isolate; direction: ltr; }

/* header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; background: var(--paper); box-shadow: var(--shadow); position: relative; }
.bar::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -3px; height: 3px; background: linear-gradient(to left, var(--teal) 0 60%, var(--gold) 60% 90%, var(--orange) 90%); }
.brand { display: block; line-height: 0; }
.brand img { height: 58px; width: auto; }
.bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

main { max-width: 1080px; margin: 0 auto; padding: 36px 24px 72px; }
.privacy { max-width: 780px; }

/* page banner: title area of signed-in pages */
.hero { background: var(--teal-tint); border: 1px solid #cfe6e4; border-radius: var(--radius); padding: 28px 32px; margin-block-end: 24px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-inline-end: 28px; inset-block-start: 24px; width: 16px; height: 16px; background: var(--orange); transform: rotate(45deg); border-radius: 2px; }
.hero h1 { margin: 0; }
.hero p { margin: 6px 0 0; color: var(--ink-soft); }

/* controls */
button, .button { font: inherit; font-weight: 600; border-radius: 6px; border: 1px solid var(--teal); background: var(--teal); color: #fff; padding: .55em 1.2em; cursor: pointer; transition: background-color .15s, border-color .15s; }
button:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
button.quiet { background: var(--paper); color: var(--teal-deep); border-color: var(--line); }
button.quiet:hover { border-color: var(--teal-light); background: var(--teal-tint); }
button.danger { background: var(--paper); color: var(--rust); border-color: #ecc9c3; }
button.danger:hover { background: #fbefec; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
input[type=text], input[type=email], input[type=password] { font: inherit; width: 100%; padding: .55em .8em; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
input:focus { border-color: var(--teal-light); }
label { display: block; font-weight: 600; margin-block-end: .3em; }
.field { margin-block-end: 14px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1 1 220px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-block-end: 12px; }
.check input { margin-block-start: .4em; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-block-end: 20px; box-shadow: var(--shadow); }
.message { padding: 10px 14px; border-radius: 6px; margin-block-end: 16px; border-inline-start: 4px solid var(--teal); background: var(--teal-tint); }
.message.error { border-color: var(--rust); background: #fbefec; }

/* onboarding route: sign in, agree, choose school, approval. Waypoints are the Zaad diamond. */
.onboard { display: grid; grid-template-columns: 230px 1fr; gap: 44px; max-width: 920px; margin: 0 auto; }
.route { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 9px; border-inline-start: 2px dashed var(--gold); }
.route li { position: relative; padding-inline-start: 40px; margin-block-end: 34px; color: var(--ink-soft); font-size: .95rem; }
.route li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 6px; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 2px; background: var(--page); border: 2px solid var(--gold); }
.route li.done::before { background: var(--gold); }
.route li.done { color: var(--ink); }
.route li.here { color: var(--ink); font-weight: 600; }
.route li.here::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px #fde3cc; }
.route .stage { display: block; font-size: .78rem; color: var(--teal); font-weight: 600; }
.onboard-body .panel { border-block-start: 4px solid var(--teal); }
.onboard-body h1 { font-size: 2.1rem; }
.onboard-body > button { margin-block-end: 24px; }
.notice dl { margin: 0 0 18px; }
.notice dt { font-weight: 600; margin-block-start: 12px; color: var(--teal-deep); }
.notice dd { margin: 2px 0 0; color: var(--ink-soft); }

.schools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schools li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.schools li.invited { border-color: var(--gold); background: var(--gold-tint); }
.tag { font-size: .78rem; font-weight: 600; color: #7a5310; background: var(--gold-tint); border: 1px solid #f1dca4; padding: 1px 9px; border-radius: 999px; margin-inline-start: 8px; }
.tag.warn { color: var(--rust); background: #fbefec; border-color: #ecc9c3; }

/* work screens */
.tabs { display: flex; gap: 4px; border-block-end: 1px solid var(--line); margin-block-end: 18px; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--ink-soft); border: 0; border-block-end: 3px solid transparent; border-radius: 0; padding: .6em 1em; }
.tabs button[aria-selected=true] { color: var(--teal-deep); border-block-end-color: var(--teal); }
.tabs button:hover { background: transparent; color: var(--ink); }
.count { font-family: var(--mono); font-size: .78em; margin-inline-start: 6px; background: var(--teal-tint); color: var(--teal-deep); padding: 0 7px; border-radius: 999px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 11px 8px; border-block-end: 1px solid var(--line); vertical-align: middle; }
th { font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #f8fbfb; }
tbody tr:hover { background: #f8fbfb; }
td.actions { white-space: nowrap; text-align: end; }
td.actions button { margin-inline-start: 6px; padding: .35em .85em; font-size: .9rem; }
.empty { color: var(--ink-soft); padding: 18px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.school-card { border-block-start: 4px solid var(--teal); }
.school-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }

/* teacher home: course area (courses arrive in phase 2) */
.course-empty { display: flex; gap: 18px; align-items: center; border: 1px dashed #c5d9da; background: var(--paper); border-radius: var(--radius); padding: 22px 24px; margin-block-end: 20px; }
.course-empty::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--gold) 0 50%, var(--teal) 50%); }
.course-empty p { margin: 0; }


/* ---- bold, dark sections in the spirit of TryHackMe, in the logo's colours ---- */
:root {
  --night: #0c2830;       /* deep night teal, from the logo teal */
  --night-2: #123842;
  --night-line: #24525c;
  --on-night: #eef6f6;
  --on-night-soft: #a9c6ca;
}

/* call-to-action button: gold, like the book pages */
button.cta { background: var(--gold); border-color: var(--gold); color: #1d1500; }
button.cta:hover { background: #f2bb36; border-color: #f2bb36; }
button.cta.big { font-size: 1.08rem; padding: .75em 1.6em; border-radius: 8px; }

/* Google button, following Google's sign-in branding (white, outlined, the G mark) */
button.google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 8px; padding: .72em 1.2em; font-weight: 600; }
button.google:hover { background: #f4f7f7; border-color: #5f6368; }
button.google img { width: 20px; height: 20px; }

/* signed-out page: full width */
body[data-view=landing] main { max-width: none; padding: 0; }
.landing-hero { background: radial-gradient(1100px 520px at 80% 10%, #145060 0, transparent 60%), var(--night); color: var(--on-night);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 72px max(24px, calc((100vw - 1140px) / 2)) 96px; overflow: hidden; }
.landing-copy h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.18; margin-block: 12px 16px; }
.rotate { color: var(--gold); display: block; min-height: 1.18em; white-space: nowrap; }
.rotate.in { animation: word-in .5s ease-out; }
@keyframes word-in { from { opacity: 0; transform: translateY(.3em); } }
.landing-copy .lead { color: var(--on-night-soft); font-size: 1.12rem; max-width: 36em; margin-block-end: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--gold); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); border-radius: 1px; }
.eyebrow.dark { color: var(--orange); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { color: var(--on-night-soft); font-size: .9rem; margin-block-start: 14px; }

/* the animated course player */
.demo { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; max-width: 460px; width: 100%; justify-self: center; transform: rotate(-1.5deg); }
[dir=rtl] .demo { transform: rotate(1.5deg); }
.demo-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--night-2); color: var(--on-night); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.demo-dots i + i { background: var(--gold); }
.demo-dots i + i + i { background: var(--teal-light); }
.demo-title { font-weight: 600; font-size: .95rem; }
.demo-body { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 22px; }
.demo-ring { position: relative; width: 120px; height: 120px; }
.demo-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--teal-tint); }
.ring-fg { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 0; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-label small { color: var(--ink-soft); font-size: .78rem; }
@property --p { syntax: "<integer>"; inherits: false; initial-value: 100; }
.ring-n { --p: 100; counter-reset: p var(--p); font-family: var(--mono); font-size: 1.4rem; color: var(--teal-deep); }
.ring-n::after { content: counter(p) "%"; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-steps li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.tick { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); background: var(--teal) ; position: relative; }
.tick::after { content: ""; position: absolute; inset-inline-start: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-block-start: 1px solid var(--line); background: #fbfdfd; }
.demo-hours { font-weight: 700; color: var(--teal-deep); }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #7a5310; background: var(--gold-tint); border: 1px solid #f1dca4; padding: 3px 12px; border-radius: 999px; }
.demo-badge::before { content: ""; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); border-radius: 1px; }

@media (prefers-reduced-motion: no-preference) {
  /* one 12-second loop: four steps tick off, the ring fills, then hours and certificate appear */
  .ring-fg { animation: ring 12s ease-in-out infinite; }
  .ring-n { animation: count 12s ease-in-out infinite; }
  .demo-steps .s1 .tick { animation: tick1 12s infinite; }
  .demo-steps .s2 .tick { animation: tick2 12s infinite; }
  .demo-steps .s3 .tick { animation: tick3 12s infinite; }
  .demo-steps .s4 .tick { animation: tick4 12s infinite; }
  .demo-steps .s1 { animation: row1 12s infinite; }
  .demo-steps .s2 { animation: row2 12s infinite; }
  .demo-steps .s3 { animation: row3 12s infinite; }
  .demo-steps .s4 { animation: row4 12s infinite; }
  .demo-hours, .demo-badge { animation: reward 12s infinite; }
  .feature:hover .feature-mark::after { animation: spin 1s ease-in-out; }
}
@keyframes ring { 0%, 6% { stroke-dashoffset: 327; } 18% { stroke-dashoffset: 245; } 36% { stroke-dashoffset: 163; } 54% { stroke-dashoffset: 82; } 72%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 327; } }
@keyframes count { 0%, 6% { --p: 0; } 18% { --p: 25; } 36% { --p: 50; } 54% { --p: 75; } 72%, 94% { --p: 100; } 100% { --p: 0; } }
@keyframes tick1 { 0%, 12% { background: #fff; border-color: var(--line); } 16%, 96% { background: var(--teal); border-color: var(--teal); } 100% { background: #fff; } }
@keyframes tick2 { 0%, 30% { background: #fff; border-color: var(--line); } 34%, 96% { background: var(--teal); border-color: var(--teal); } 100% { background: #fff; } }
@keyframes tick3 { 0%, 48% { background: #fff; border-color: var(--line); } 52%, 96% { background: var(--teal); border-color: var(--teal); } 100% { background: #fff; } }
@keyframes tick4 { 0%, 66% { background: #fff; border-color: var(--line); } 70%, 96% { background: var(--teal); border-color: var(--teal); } 100% { background: #fff; } }
@keyframes row1 { 0%, 4% { color: var(--ink-soft); } 6%, 14% { color: var(--orange); } 16%, 100% { color: var(--ink); } }
@keyframes row2 { 0%, 22% { color: var(--ink-soft); } 24%, 32% { color: var(--orange); } 34%, 100% { color: var(--ink); } }
@keyframes row3 { 0%, 40% { color: var(--ink-soft); } 42%, 50% { color: var(--orange); } 52%, 100% { color: var(--ink); } }
@keyframes row4 { 0%, 58% { color: var(--ink-soft); } 60%, 68% { color: var(--orange); } 70%, 100% { color: var(--ink); } }
@keyframes reward { 0%, 72% { opacity: 0; transform: translateY(6px) scale(.96); } 76%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(225deg); } }

/* why learn here */
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1140px; margin: -48px auto 0; padding: 0 24px; position: relative; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18, 49, 58, .12); }
.feature h3 { font-size: 1.12rem; color: var(--teal-deep); margin-block: 14px 6px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature-mark { display: block; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-tint); position: relative; }
.feature-mark::after { content: ""; position: absolute; inset: 14px; background: var(--orange); transform: rotate(45deg); border-radius: 2px; }
.feature:nth-child(2) .feature-mark { background: var(--gold-tint); }
.feature:nth-child(2) .feature-mark::after { background: var(--teal); }
.feature:nth-child(3) .feature-mark::after { background: var(--gold); }

/* first learning path, like a TryHackMe path card */
.path-section { max-width: 1140px; margin: 0 auto; padding: 72px 24px 24px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.path-intro h2 { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--teal-deep); margin-block: 10px; }
.path-intro p { color: var(--ink-soft); font-size: 1.05rem; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.path li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; border-inline-start: 4px solid var(--teal); }
.path li.task { border-inline-start-color: var(--gold); }
.path-kind { font-size: .75rem; font-weight: 700; color: var(--teal-deep); background: var(--teal-tint); padding: 2px 9px; border-radius: 999px; }
.path li.task .path-kind { color: #7a5310; background: var(--gold-tint); }
.path-name { font-weight: 600; }
.path-min { font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); }
.path.compact li { padding: 9px 12px; }
.path-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* how it works */
.landing-steps { max-width: 1140px; margin: 0 auto; padding: 56px 24px 24px; }
.landing-steps h2 { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--teal-deep); }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; align-items: flex-start; gap: 14px; }
.steps li p { margin: 4px 0 0; color: var(--ink-soft); }
.step-n { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--night); color: var(--gold); font-family: var(--mono); font-size: 1.1rem; }

/* final call to action */
.final-cta { margin: 56px auto 0; padding: 56px 24px; text-align: center; background: radial-gradient(700px 260px at 50% 0, #145060 0, transparent 70%), var(--night); color: var(--on-night); }
.final-cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; }
.final-cta p { color: var(--on-night-soft); font-size: 1.05rem; margin-block-end: 24px; }
.dev-signin { max-width: 520px; margin: 32px auto; }

/* admin: pilot switch */
.panel.pilot.on { border-color: var(--gold); background: var(--gold-tint); }
.panel.pilot h2 .tag { vertical-align: middle; }
.tag.off { color: var(--ink-soft); background: #eef2f2; border-color: var(--line); }

/* signed-in page banners: dark, like a dashboard header */
.hero { background: radial-gradient(700px 240px at 90% 0, #145060 0, transparent 70%), var(--night); border-color: var(--night-line); color: var(--on-night); }
.hero h1 { color: #fff; }
.hero p { color: var(--on-night-soft); }
.hero button.quiet { background: transparent; color: var(--on-night); border-color: var(--night-line); margin-block-end: 10px; }
.hero button.quiet:hover { background: var(--night-2); }

/* footer: intellectual property */
.foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; padding: 22px 16px; border-block-start: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; background: var(--paper); }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding-block: 44px 80px; }
  .demo { max-width: 400px; }
  .landing-features, .steps { grid-template-columns: 1fr; }
  .path-section { grid-template-columns: 1fr; padding-block-start: 48px; }
}
@media (max-width: 480px) {
  .demo-body { grid-template-columns: 1fr; justify-items: center; }
  .hero-ctas > button { width: 100%; }
  .bar-actions button { padding: .45em .8em; font-size: .9rem; }
}

@media (max-width: 760px) {
  .onboard { grid-template-columns: 1fr; gap: 16px; }
  .route { display: flex; gap: 6px; overflow-x: auto; }
  .route::before { display: none; }
  .route li { padding: 28px 0 0; margin: 0; flex: 1; font-size: .78rem; min-width: 70px; }
  .route li::before { inset-inline-start: 2px; inset-block-start: 2px; }
  .grid2 { grid-template-columns: 1fr; }
  th:nth-child(4), td:nth-child(4) { display: none; }
  main { padding: 20px 16px 48px; }
  .bar { padding: 6px 16px; }
  .brand img { height: 40px; }
  .hero { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .onboard-body, .hero { animation: arrive .35s ease-out; }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
}
