/* Authorkite portal styles. Logical properties (inline-start/end) are used
   throughout so the same rules work for Arabic right-to-left pages. */

:root {
  --navy: #1b4f8c;
  --orange: #f2a33a;
  --orange-dark: #b96a0e;
  --ink: #1d2233;
  --muted: #5d6478;
  --line: #e2e5ee;
  --bg: #f7f8fb;
  --card: #ffffff;
  --ok: #1d7a46;
  --ok-bg: #e6f4ec;
  --warn-bg: #fff4e0;
  --err: #a3261d;
  --err-bg: #fdecea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
}

a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.lang { color: var(--muted); }

main { max-width: 880px; margin: 0 auto; padding: 28px 16px 48px; }
main.wide { max-width: none; padding: 0; }
main.wide > .flash { max-width: 1160px; margin: 16px auto 0; padding-inline: 20px; }
footer { border-top: 1px solid var(--line); padding: 20px 16px; text-align: center; color: var(--muted); font-size: .9rem; background: #fff; }

.lead { font-size: 1.15rem; max-width: 40em; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 0 0 18px; }
.narrow { max-width: 520px; margin-inline: auto; }

.promise {
  background: var(--navy); color: #fff; border-radius: 12px; padding: 20px 22px; margin: 22px 0;
  border-inline-start: 6px solid var(--orange);
}
.promise h2 { color: #fff; }
.promise p { margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.steps p { margin: 0; color: var(--muted); }

label { display: block; margin: 0 0 14px; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: inherit;
  background: #fff; border: 1px solid #c5cad8; border-radius: 8px;
}
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; }

.btn {
  display: inline-block; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  color: #fff; background: var(--navy); border: 2px solid var(--navy); border-radius: 8px;
}
.btn:hover { background: #163f70; }
.btn.small { padding: 5px 12px; font-size: .92rem; }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.ghost { background: transparent; color: var(--navy); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); cursor: pointer; }
button.link:hover { text-decoration: underline; }
form.inline { display: inline; }

.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.row h1, .row h2, .row h3 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.flash, .notice, .error { padding: 12px 16px; border-radius: 8px; }
.flash { background: var(--ok-bg); color: var(--ok); }
.notice { background: var(--warn-bg); }
.notice.ok { background: var(--ok-bg); }
.notice.action { border-inline-start: 5px solid var(--orange); font-weight: 600; }
.error { background: var(--err-bg); color: var(--err); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #e8ebf3; color: var(--navy); white-space: nowrap; }
.badge.in_review, .badge.awaiting_review, .badge.acct-pending { background: var(--warn-bg); color: var(--orange-dark); }
.badge.approved, .badge.published, .badge.acct-approved { background: var(--ok-bg); color: var(--ok); }
.badge.acct-rejected, .badge.acct-suspended { background: var(--err-bg); color: var(--err); }

.lectures { list-style: none; padding: 0; margin: 0; }

.stepper { list-style: none; display: flex; padding: 0; margin: 14px 0; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 22px; }
.stepper .dot { position: absolute; top: 0; inset-inline-start: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #c5cad8; z-index: 1; }
.stepper li::before { content: ""; position: absolute; top: 7px; inset-inline-start: -50%; width: 100%; height: 3px; background: #c5cad8; }
.stepper li:first-child::before { display: none; }
.stepper li.done { color: var(--ink); }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); }
.stepper li.done::before, .stepper li.now::before { background: var(--ok); }
.stepper li.now { color: var(--navy); font-weight: 700; }
.stepper li.now .dot { border-color: var(--orange); background: var(--orange); }

.output.approved { border-inline-start: 5px solid var(--ok); }
.output.awaiting_review { border-inline-start: 5px solid var(--orange); }
.draft { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 8px; padding: 14px; margin: 10px 0; max-height: 420px; overflow: auto; }
.working { color: var(--muted); font-style: italic; }
.review { display: grid; gap: 10px; }
.review form { margin: 0; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details form { margin-top: 10px; }
details textarea { margin-bottom: 10px; }

.history, .events { list-style: none; padding: 0; margin: 0 0 12px; }
.history li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.history p { margin: 0; }
blockquote { margin: 6px 0 0; padding: 6px 12px; border-inline-start: 4px solid var(--line); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.events li { padding: 3px 0; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: .85rem; color: var(--muted); }
.publish { display: flex; gap: 8px; align-items: center; min-width: 260px; }
.publish input { margin: 0 !important; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.7rem; }
  .stepper li { font-size: .7rem; }
}

td.actions { display: table-cell; }
td.actions form { margin-inline-end: 6px; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { border-top: 1px solid var(--line); padding: 12px 0; }
.checks .row { margin-bottom: 4px; }
.checks p { margin: 0 0 6px; }
.badge.check-pending { background: var(--warn-bg); color: var(--orange-dark); }
.badge.check-passed { background: var(--ok-bg); color: var(--ok); }
.badge.check-flagged { background: var(--err-bg); color: var(--err); }

.waiting { border-inline-start: 6px solid var(--orange); }
.waiting ul { margin: 0 0 10px; padding-inline-start: 20px; }
.waiting li { font-weight: 600; padding: 2px 0; }
td .badge { margin-bottom: 4px; }

.earlier { margin-top: 10px; }
.publish { margin-bottom: 12px; }
.notice blockquote { border-color: var(--orange); color: var(--ink); }
.publish .btn { white-space: nowrap; }

.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cover-choice { margin: 0; cursor: pointer; }
.cover-choice input { position: absolute; opacity: 0; }
.cover-choice img { display: block; width: 100%; height: auto; border: 3px solid transparent; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.cover-choice input:checked + img { border-color: var(--navy); box-shadow: 0 0 0 3px var(--orange); }
.cover-choice input:focus-visible + img { outline: 3px solid var(--orange); outline-offset: 2px; }
.suggestions { list-style: none; padding: 0; margin: 0 0 14px; }
.suggestions li { padding: 3px 0; }
.suggestions button.link { text-align: start; text-decoration: underline; }
.book { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.book .cover, .booklist img, td img { border-radius: 4px; box-shadow: 0 1px 5px rgba(0, 0, 0, .25); object-fit: cover; }
.book > div { flex: 1; min-width: 240px; }
.booklist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.booklist li { width: 110px; font-size: .9rem; }
.booklist a { display: block; text-decoration: none; font-weight: 600; }
.booklist img { display: block; margin-bottom: 6px; }
form h2 { margin-top: 22px; font-size: 1.1rem; }

/* ---------- Homepage ---------- */
main.wide { max-width: none; padding: 0; }
main.wide > .flash { max-width: 1120px; margin: 16px auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { margin: 0 0 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
[dir=rtl] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 44em; }
.btn.big { padding: 13px 24px; font-size: 1.05rem; border-radius: 10px; }
.btn.accent { background: var(--orange); border-color: var(--orange); color: #22190a; }
.btn.accent:hover { background: #e8962a; }
.btn.ghost:hover { background: #e9eef7; }
.ic { display: block; }

.hm-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 56px 0 48px; }
.hm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hm-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
[dir=ltr] .hm-hero h1, [dir=ltr] .hm-sec h2, [dir=ltr] .hm-band h2, [dir=ltr] .hm-cta h2 { font-family: Georgia, "Times New Roman", serif; }
[dir=rtl] .hm-hero h1 { letter-spacing: 0; line-height: 1.3; }
.hm-hero h1 em { display: block; font-style: italic; color: var(--orange-dark); }
[dir=rtl] .hm-hero h1 em { font-style: normal; }
.hm-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hm-promise-line { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; font-weight: 600; }
.hm-promise-line .ic { color: var(--ok); flex: none; }
.hm-art svg { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; }

.hm-sec { padding: 64px 0; }
.hm-sec h2, .hm-band h2, .hm-cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 10px; }
.hm-tint { background: #eef2f9; }

.hm-flow { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.hm-flow li { position: relative; padding: 0 14px; text-align: center; }
.hm-flow li::before { content: ""; position: absolute; top: 35px; inset-inline-start: -50%; width: 100%; height: 3px; background: #cfd8e8; }
.hm-flow li:first-child::before { display: none; }
.hm-flow-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 0 0 8px var(--bg); }
.hm-flow-ic .ic { width: 30px; height: 30px; }
.who-you .hm-flow-ic { background: var(--orange); color: #22190a; }
.who-ai .hm-flow-ic { background: #fff; color: var(--navy); border: 3px solid var(--navy); }
.hm-flow-n { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
.hm-flow h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.hm-flow p { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.hm-who { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e8ebf3; color: var(--navy); }
.who-you .hm-who { background: var(--warn-bg); color: var(--orange-dark); }

.hm-band { background: #173f70; color: #fff; padding: 64px 0; }
.hm-band h2, .hm-band h3 { color: #fff; }
.hm-band .eyebrow { color: var(--orange); }
.hm-band .sub { color: #d5e0f0; }
.hm-checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hm-check { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.hm-check.big { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.hm-check p { margin: 0; color: #d5e0f0; font-size: .97rem; }
.hm-check h3 { font-size: 1.2rem; }
.hm-check-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--orange); color: #22190a; margin-bottom: 12px; }
.hm-checks.two .hm-check-ic { margin-bottom: 0; background: #fff; color: var(--navy); }
.hm-result { display: grid; gap: 8px; background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.hm-result-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
[dir=rtl] .hm-result-tag { letter-spacing: 0; font-size: .82rem; }
.hm-result-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .95rem; }
.hm-pass { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .85rem; }
.hm-pass .ic { width: 18px; height: 18px; }
.hm-bar { display: block; height: 8px; border-radius: 4px; background: var(--ok-bg); overflow: hidden; }
.hm-bar i { display: block; width: 100%; height: 100%; background: var(--ok); }
.hm-result-note { font-size: .84rem; color: var(--muted); }
.hm-then { margin: 28px 0 0; font-weight: 700; color: var(--orange); }
.hm-then + .hm-checks { margin-top: 12px; }

.hm-offers { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hm-offers .card { margin: 0; padding: 24px; border-top: 4px solid var(--orange); }
.hm-offers p { margin: 0; color: var(--muted); }
.hm-offer-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e7eef8; color: var(--navy); margin-bottom: 14px; }
.hm-offer-ic .ic { width: 28px; height: 28px; }
.hm-langs { margin: 22px 0 0; font-weight: 600; color: var(--navy); }

.hm-show { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }
.hm-cover { direction: ltr; text-align: left; aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px; border-radius: 4px 12px 12px 4px; background: linear-gradient(160deg, #1e2a4f, #1b4f8c); color: #f4f6fc; text-decoration: none; box-shadow: inset 7px 0 0 rgba(0, 0, 0, .25), 0 14px 30px rgba(20, 28, 60, .28); }
.hm-cover-t { font-family: Georgia, serif; font-weight: 700; font-size: 1.5rem; line-height: 1.12; }
.hm-cover-r { width: 46px; height: 4px; border-radius: 2px; background: var(--orange); }
.hm-cover-a { font-size: .85rem; opacity: .9; }
.hm-facts { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .92rem; }

.hm-cta { background: var(--navy); color: #fff; text-align: center; padding: 60px 0; }
.hm-cta h2 { color: #fff; }
.hm-cta p { max-width: 36em; margin-inline: auto; color: #d5e0f0; }
.hm-cta p:last-child { margin: 22px auto 0; }

@media (max-width: 960px) {
  .hm-hero-grid, .hm-show { grid-template-columns: 1fr; }
  .hm-art { order: -1; max-width: 420px; margin-inline: auto; }
  .hm-cover { max-width: 200px; }
  .hm-offers { grid-template-columns: 1fr 1fr; }
  .hm-checks { grid-template-columns: 1fr; }
  .hm-flow { grid-template-columns: 1fr; gap: 22px; }
  .hm-flow li { text-align: start; padding: 0; padding-inline-start: 92px; min-height: 76px; }
  .hm-flow li::before { top: -22px; inset-inline-start: 35px; width: 3px; height: 100%; }
  .hm-flow-ic { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
}
@media (max-width: 560px) {
  .hm-hero { padding: 28px 0 36px; }
  .hm-sec, .hm-band { padding: 44px 0; }
  .hm-offers { grid-template-columns: 1fr; }
  .hm-check.big { grid-template-columns: 1fr; }
  .hm-hero .actions .btn { flex: 1 1 100%; text-align: center; }
}

/* Homepage look, following the owner's aiforprojectmanagers.ca: deep ink serif
   headings, pill chips and buttons, pictures inside soft rounded cards. */
:root { --deep: #14213d; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; background: #fff; color: var(--ink); }
main.wide h1, main.wide h2, main.wide h3 { color: var(--deep); }
[dir=ltr] .hm-hero h1, [dir=ltr] .hm-sec h2, [dir=ltr] .hm-band h2, [dir=ltr] .hm-cta h2 { font-family: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif; font-weight: 700; }
main.wide .eyebrow { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #e3ebf7; color: var(--navy); text-transform: none; letter-spacing: 0; font-size: .88rem; margin-bottom: 14px; }
.btn.pill { border-radius: 999px; background: var(--deep); border-color: var(--deep); color: #fff; }
.btn.pill:hover { background: #22345c; }
.btn.pill.light { background: #fff; color: var(--deep); border: 1px solid #cfd6e4; }
.btn.pill.light:hover { background: #eef2f9; }
.hm-hero { background: var(--bg); }
.hm-hero h1 em { color: var(--deep); font-style: normal; }
.hm-art { background: linear-gradient(160deg, #fff, #e6edf7); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: 0 18px 40px rgba(20, 33, 61, .12); }
.hm-flow-ic { background: var(--deep); }
.who-ai .hm-flow-ic { border-color: var(--deep); color: var(--deep); }
.hm-band, .hm-cta { background: var(--deep); }
main.wide .hm-band h2, main.wide .hm-band h3, main.wide .hm-cta h2 { color: #fff; }
main.wide .hm-band .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.hm-offers .card { padding: 0 0 22px; border-top: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 22px rgba(20, 33, 61, .07); }
.hm-offers .card > :not(.hm-offer-art) { margin-inline: 20px; }
.hm-offers h3 { font-size: 1.3rem; }
[dir=ltr] .hm-offers h3 { font-family: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif; }
.hm-offer-art { display: grid; place-items: center; height: 150px; margin-bottom: 18px; color: var(--navy); background: radial-gradient(circle at 80% 20%, rgba(242, 163, 58, .35) 0 42px, transparent 43px), linear-gradient(160deg, #f1f5fb, #dfe8f5); }
.hm-offer-art .ic { width: 68px; height: 68px; stroke-width: 1.3; padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 8px 18px rgba(20, 33, 61, .14); }
.hm-offer-art.art-2 { color: #b96a0e; }
.hm-offer-art.art-4 { color: #1d7a46; }
.hm-tint { background: #e9eef6; }
.hm-facts li { color: var(--navy); font-weight: 600; background: #e3ebf7; border: 0; }
.hm-tint .hm-facts li { background: #fff; }

/* ---------- Homepage ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.ic { display: block; width: 24px; height: 24px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px; background: #e3ebf7; color: var(--navy); font-size: .88rem; font-weight: 700; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 44em; margin-bottom: 1em; }
.btn.big { padding: 13px 26px; font-size: 1.05rem; }
.btn.pill { border-radius: 999px; background: #14213d; border-color: #14213d; color: #fff; }
.btn.pill:hover { background: #22345c; }
.btn.pill.light { background: #fff; color: #14213d; border: 1px solid #cfd6e4; }
.btn.pill.light:hover { background: #eef2f9; }
.btn.accent { background: var(--orange); border-color: var(--orange); color: #22190a; }
.btn.accent:hover { background: #e8962a; }
.btn.ghost:hover { background: #e9eef7; }

.hm-hero { padding: 56px 0 56px; }
.hm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hm-hero h1 { font-family: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif; font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.07; letter-spacing: -.02em; color: #14213d; margin: 0 0 20px; }
.hm-hero h1 em { display: block; font-style: normal; }
[dir=rtl] .hm-hero h1 { font-family: inherit; letter-spacing: 0; line-height: 1.3; }
.hm-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hm-promise-line { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; font-weight: 600; }
.hm-promise-line .ic { color: var(--ok); flex: none; }
.hm-art { background: linear-gradient(160deg, #fff, #e6edf7); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: 0 18px 40px rgba(20, 33, 61, .12); }
.hm-art svg { display: block; width: 100%; height: auto; }

.hm-sec { padding: 68px 0; }
.hm-sec h2, .hm-band h2, .hm-cta h2 { font-family: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif; font-size: clamp(1.75rem, 3.3vw, 2.5rem); line-height: 1.15; color: #14213d; margin: 0 0 10px; }
[dir=rtl] .hm-sec h2, [dir=rtl] .hm-band h2, [dir=rtl] .hm-cta h2 { font-family: inherit; }
.hm-tint { background: #e9eef6; }

.hm-flow { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.hm-flow li { position: relative; padding: 0 14px; text-align: center; }
.hm-flow li::before { content: ""; position: absolute; top: 35px; inset-inline-start: -50%; width: 100%; height: 3px; background: #cfd8e8; }
.hm-flow li:first-child::before { display: none; }
.hm-flow-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: #14213d; color: #fff; box-shadow: 0 0 0 8px var(--bg); }
.hm-flow-ic .ic { width: 30px; height: 30px; }
.who-you .hm-flow-ic { background: var(--orange); color: #22190a; }
.who-ai .hm-flow-ic { background: #fff; color: #14213d; border: 3px solid #14213d; }
.hm-flow-n { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
.hm-flow h3 { font-size: 1.15rem; margin: 2px 0 6px; color: #14213d; }
.hm-flow p { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.hm-who { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e8ebf3; color: var(--navy); }
.who-you .hm-who { background: var(--warn-bg); color: var(--orange-dark); }

.hm-band { background: #14213d; color: #fff; padding: 68px 0; }
.hm-band h2, .hm-band h3 { color: #fff; }
.hm-band .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.hm-band .sub { color: #d5e0f0; }
.hm-checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hm-check { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.hm-check.big { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.hm-check p { margin: 0; color: #d5e0f0; font-size: .97rem; }
.hm-check h3 { font-size: 1.2rem; color: #fff; margin-bottom: 6px; }
.hm-check-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--orange); color: #22190a; margin-bottom: 12px; }
.hm-checks.two .hm-check-ic { margin-bottom: 0; background: #fff; color: #14213d; }
.hm-result { display: grid; gap: 8px; background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.hm-result-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
[dir=rtl] .hm-result-tag { letter-spacing: 0; font-size: .82rem; }
.hm-result-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .95rem; color: #14213d; }
.hm-pass { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .85rem; }
.hm-pass .ic { width: 18px; height: 18px; }
.hm-bar { display: block; height: 8px; border-radius: 4px; background: var(--ok-bg); overflow: hidden; }
.hm-bar i { display: block; width: 100%; height: 100%; background: var(--ok); }
.hm-result-note { font-size: .84rem; color: var(--muted); }
.hm-then { margin: 28px 0 0; font-weight: 700; color: var(--orange); }
.hm-then + .hm-checks { margin-top: 12px; }

.hm-offers { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hm-offers .card { margin: 0; padding: 0 0 22px; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 22px rgba(20, 33, 61, .07); }
.hm-offers .card > :not(.hm-offer-art) { margin-inline: 20px; }
.hm-offers h3 { font-size: 1.3rem; margin-bottom: 6px; color: #14213d; }
[dir=ltr] .hm-offers h3 { font-family: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif; }
.hm-offers p { margin: 0; color: var(--muted); }
.hm-offer-art { display: grid; place-items: center; height: 150px; margin-bottom: 18px; color: var(--navy); background: radial-gradient(circle at 80% 20%, rgba(242, 163, 58, .35) 0 42px, transparent 43px), linear-gradient(160deg, #f1f5fb, #dfe8f5); }
.hm-offer-art .ic { width: 68px; height: 68px; stroke-width: 1.3; padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 8px 18px rgba(20, 33, 61, .14); }
.hm-offer-art.art-2 { color: var(--orange-dark); }
.hm-offer-art.art-4 { color: var(--ok); }
.hm-langs { margin: 22px 0 0; font-weight: 600; color: var(--navy); }

.hm-show { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }
.hm-cover { direction: ltr; text-align: left; aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px; border-radius: 4px 12px 12px 4px; background: linear-gradient(160deg, #1e2a4f, #1b4f8c); color: #f4f6fc; text-decoration: none; box-shadow: inset 7px 0 0 rgba(0, 0, 0, .25), 0 14px 30px rgba(20, 28, 60, .28); }
.hm-cover-t { font-family: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif; font-weight: 700; font-size: 1.5rem; line-height: 1.12; }
.hm-cover-r { width: 46px; height: 4px; border-radius: 2px; background: var(--orange); }
.hm-cover-a { font-size: .85rem; opacity: .9; }
.hm-facts { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-facts li { color: var(--navy); font-weight: 600; background: #fff; border-radius: 999px; padding: 4px 14px; font-size: .92rem; }

.hm-cta { background: #14213d; color: #fff; text-align: center; padding: 60px 0; }
main.wide .hm-cta h2 { color: #fff; }
.hm-cta p { max-width: 36em; margin-inline: auto; color: #d5e0f0; }
.hm-cta p:last-child { margin: 22px auto 0; }

@media (max-width: 960px) {
  .hm-hero-grid, .hm-show { grid-template-columns: 1fr; }
  .hm-art { order: -1; max-width: 420px; margin-inline: auto; }
  .hm-cover { max-width: 200px; }
  .hm-offers { grid-template-columns: 1fr 1fr; }
  .hm-checks { grid-template-columns: 1fr; }
  .hm-flow { grid-template-columns: 1fr; gap: 22px; }
  .hm-flow li { text-align: start; padding: 0; padding-inline-start: 92px; min-height: 76px; }
  .hm-flow li::before { top: -22px; inset-inline-start: 35px; width: 3px; height: 100%; }
  .hm-flow-ic { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
}
@media (max-width: 560px) {
  .hm-hero { padding: 28px 0 36px; }
  .hm-sec, .hm-band { padding: 44px 0; }
  .hm-offers { grid-template-columns: 1fr; }
  .hm-check.big { grid-template-columns: 1fr; }
  .hm-hero .actions .btn { flex: 1 1 100%; text-align: center; }
}

/* Homepage: the two originality checks get their own section with a picture each. */
.hm-trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .92rem; }
.hm-trust .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.hm-trust + .hm-promise-line { margin-top: 14px; }
.hm-cksec { background: #fff; }
.hm-cks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hm-ck { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(20, 33, 61, .09); display: flex; flex-direction: column; }
.hm-ck-art { background: linear-gradient(135deg, #e3ebf7, #f4f7fc); padding: 22px; display: grid; place-items: center; }
.hm-ck-art svg { width: 100%; max-width: 400px; height: auto; display: block; }
.hm-ck-body { padding: 24px 26px 26px; display: grid; gap: 10px; }
.hm-ck-n { justify-self: start; padding: 3px 12px; border-radius: 999px; background: #fdeed3; color: #7a4a00; font-weight: 700; font-size: .85rem; }
.hm-ck h3 { font-size: 1.5rem; margin: 0; color: #14213d; }
.hm-ck p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.hm-ck-list { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 8px; }
.hm-ck-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: #14213d; }
.hm-ck-list .ic { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; margin-top: 2px; }
.hm-ck .hm-result { box-shadow: none; border: 1px solid var(--line); background: #f7f9fc; }
.hm-gate { list-style: none; padding: 0; margin: 34px 0 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; text-align: center; }
.hm-gate li { position: relative; display: grid; justify-items: center; gap: 10px; padding: 0 8px; }
.hm-gate li + li::before { content: ""; position: absolute; top: 31px; inset-inline-start: -50%; width: 100%; height: 3px; background: rgba(255, 255, 255, .28); }
.hm-gate-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #14213d; }
.hm-gate-ic > .ic { width: 28px; height: 28px; }
.hm-gate-ic i { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; border: 2px solid #14213d; }
.hm-gate-ic i .ic { width: 14px; height: 14px; stroke-width: 3.4; }
.hm-gate li.end .hm-gate-ic { background: var(--orange); color: #22190a; }
.hm-gate b { color: #fff; font-size: .98rem; line-height: 1.3; }
@media (max-width: 860px) {
  .hm-cks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hm-gate { grid-template-columns: 1fr; gap: 14px; text-align: start; }
  .hm-gate li { grid-template-columns: 52px 1fr; justify-items: start; align-items: center; gap: 14px; padding: 0; }
  .hm-gate li + li::before { top: -14px; inset-inline-start: 25px; width: 3px; height: 14px; }
  .hm-gate-ic { width: 52px; height: 52px; }
  .hm-ck-body { padding: 20px; }
}

/* Featured book: the real cover image. */
.hm-show { grid-template-columns: 280px 1fr; gap: 52px; }
.hm-cover { display: block; padding: 0; aspect-ratio: auto; background: none; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(20, 28, 60, .3); transition: transform .2s; }
.hm-cover:hover { transform: translateY(-4px); }
.hm-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .hm-show { grid-template-columns: 1fr; gap: 28px; }
  .hm-cover { max-width: 240px; }
}
