/* ReadKart Books — public site
   VOICE: confident, friendly bookshop; clean e-commerce polish
   IDEA: a bookshop counter that ships — books, a cart, a delivery route
   PICTURE: real covers stacked on a shelf with a delivery ticket
   COLOUR: royal indigo ground, white pages, delivery orange accent
   TYPE: Plus Jakarta Sans for headings, Inter for reading */
:root {
  --ink: #141a33;
  --ink-2: #444c66;
  --muted: #6c7390;
  --paper: #f6f7fb;
  --card: #ffffff;
  --line: #e4e7f0;
  --brand: #222f86;
  --brand-2: #16205e;
  --brand-soft: #eef0fb;
  --accent: #ff6b35;
  --accent-ink: #e2541f;
  --gold: #ffc857;
  --deep: #222f86;
  --wa: #1fa855;
  --ok: #138a4b;
  --warn: #b7791f;
  --bad: #c0261a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20,26,51,.06);
  --shadow: 0 1px 2px rgba(20,26,51,.05), 0 10px 30px rgba(20,26,51,.08);
  --shadow-lg: 0 4px 10px rgba(20,26,51,.08), 0 24px 60px rgba(20,26,51,.16);
  --head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: #fff; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--brand-soft); color: var(--brand); padding: .1em .45em; border-radius: 6px; font-size: .9em; font-weight: 600; }
.wrap { width: min(1220px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 12px; border: 1.5px solid transparent; font: 700 .97rem/1 var(--head); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,107,53,.28); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(31,168,85,.25); }
.btn-wa:hover { background: #178a45; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-small { min-height: 38px; padding: .5rem .9rem; font-size: .86rem; }

/* utility strip */
.utility { background: var(--brand-2); color: #d9ddf7; font-size: .84rem; }
.utility-in { display: flex; justify-content: center; gap: .4rem 2rem; flex-wrap: wrap; padding: .5rem 0; }
.utility span { display: inline-flex; align-items: center; gap: .45rem; }
.utility .ico { width: 15px; height: 15px; color: var(--gold); }

/* header */
.topbar { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 12px rgba(34,47,134,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.bt-name { font: 800 1.42rem/1 var(--head); letter-spacing: -.03em; color: var(--brand); }
.bt-name b { color: var(--accent); font-weight: 800; }
.bt-sub { font: 600 .72rem/1 var(--sans); color: var(--muted); margin-top: .3rem; letter-spacing: .02em; }
.search { flex: 1; display: flex; max-width: 540px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(34,47,134,.1); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: .72rem 1rem; font: inherit; font-size: .95rem; min-width: 0; color: var(--ink); }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 1.1rem; cursor: pointer; }
.search button:hover { background: var(--brand-2); }
.mainnav { display: flex; gap: .3rem; margin-left: auto; }
.mainnav a { color: var(--ink-2); text-decoration: none; font: 600 .93rem var(--head); padding: .55rem .8rem; border-radius: 10px; display: inline-flex; align-items: center; gap: .4rem; }
.mainnav a:hover { background: var(--brand-soft); color: var(--brand); }
.mainnav a.on { color: var(--brand); background: var(--brand-soft); }
.menu-btn { display: none; margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; padding: 11px 10px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.catbar { border-top: 1px solid var(--line); background: #fff; }
.catbar-in { display: flex; gap: .45rem; overflow-x: auto; padding: .55rem 0; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { white-space: nowrap; font: 600 .84rem var(--sans); text-decoration: none; color: var(--ink-2); padding: .38rem .9rem; border-radius: 999px; background: var(--paper); border: 1px solid transparent; }
.catbar a:hover { border-color: var(--brand); color: var(--brand); }
.catbar a.on { background: var(--brand); color: #fff; }

/* notices */
.notice { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: 12px; border: 1px solid; font-size: .95rem; }
.notice-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.notice-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.notice-info { background: #eff4ff; border-color: #c7d4fe; color: #1e2f8a; }

/* hero */
.hero { position: relative; background: radial-gradient(120% 120% at 85% 10%, #3646b5 0%, #222f86 38%, #121a52 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 55%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; padding: 4rem 0 4.2rem; }
.pill-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #e6e9ff; font-size: .83rem; font-weight: 500; padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.2rem; }
.pill-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,200,87,.2); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.05; color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #cfd4f6; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; }
.hero-search { display: flex; gap: .5rem; margin: 1.8rem 0 1.4rem; max-width: 580px; background: #fff; padding: .4rem; border-radius: 14px; box-shadow: 0 18px 40px rgba(6,10,40,.35); }
.hero-search input { flex: 1; min-width: 0; padding: .8rem .9rem; border: 0; border-radius: 10px; font: inherit; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.empty .hero-search, .prose .hero-search { box-shadow: var(--shadow); border: 1px solid var(--line); margin-inline: auto; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: #e6e9ff; font-weight: 500; }
.trust .ico { color: var(--gold); width: 19px; height: 19px; }
.hero-meta { font-size: .9rem; color: var(--muted); }
.hero-art { position: relative; height: 380px; }
.shelf { position: absolute; left: 4%; right: 4%; bottom: 46px; height: 14px; border-radius: 4px; background: linear-gradient(#e7c79a, #b88a52); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.hero-book { position: absolute; bottom: 58px; width: 168px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); transition: transform .3s; }
.hero-book .cover { border-radius: 3px 8px 8px 3px; }
.hb0 { left: 34%; z-index: 3; width: 188px; }
.hb1 { left: 9%; z-index: 2; transform: rotate(-6deg); transform-origin: bottom right; }
.hb2 { right: 7%; z-index: 1; transform: rotate(6deg); transform-origin: bottom left; }
.hero-art:hover .hb0 { transform: translateY(-6px); }
.ticket { position: absolute; right: 0; top: 4px; z-index: 4; background: #fff; color: var(--ink); border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 18px 40px rgba(6,10,40,.35); display: flex; gap: .75rem; align-items: center; max-width: 250px; }
.ticket-ico { width: 40px; height: 40px; border-radius: 10px; background: #fff1ea; color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ticket strong { display: block; font: 700 .9rem/1.2 var(--head); }
.ticket small { color: var(--muted); font-size: .78rem; }
.ticket2 { top: auto; right: auto; left: 0; bottom: 0; }
.ticket2 .ticket-ico { background: #eaf8ef; color: var(--wa); }

/* covers */
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #eef0f6; border-radius: 4px 8px 8px 4px; }
.cover-fallback { display: flex; flex-direction: column; justify-content: center; padding: 14% 12%; background: linear-gradient(160deg, color-mix(in srgb, var(--cbg) 82%, #fff) 0%, var(--cbg) 55%); color: var(--cfg); position: relative; overflow: hidden; }
.cover-fallback::before { content: ""; position: absolute; left: 6%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.2); }
.cover-fallback::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent); }
.cf-title { font-family: var(--head); font-weight: 800; font-size: clamp(.92rem, 1.4vw, 1.15rem); line-height: 1.18; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cf-rule { width: 32px; height: 3px; border-radius: 2px; background: currentColor; opacity: .6; margin: .8rem 0; }
.cf-author { font-size: .74rem; opacity: .85; font-weight: 500; }
.cover-lg .cf-title { font-size: 1.7rem; }
.cover-xs { width: 46px; flex-shrink: 0; }
.cover-xs.cover-fallback { padding: 4px; }
.cover-xs .cf-title { font-size: 6px; }
.cover-xs .cf-author, .cover-xs .cf-rule { display: none; }

/* features band */
.features { background: #fff; border-bottom: 1px solid var(--line); }
.features-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.4rem 0; }
.feature { display: flex; gap: .8rem; align-items: center; }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.feature-ico .ico { width: 22px; height: 22px; }
.feature strong { display: block; font: 700 .95rem/1.25 var(--head); }
.feature span { font-size: .84rem; color: var(--muted); }

/* sections & grid */
.section { padding: 3rem 0 1rem; }
.band-soft { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .3rem 0 0; color: var(--muted); }
.section-head a { text-decoration: none; font: 700 .93rem var(--head); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem 1.2rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .8rem; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-cover { position: relative; display: block; border-radius: 10px; background: var(--paper); padding: 10% 14%; }
.card-cover .cover { box-shadow: 0 2px 4px rgba(20,26,51,.12), 0 12px 22px rgba(20,26,51,.16); }
.badge-off, .badge-out, .badge-read { position: absolute; font-size: .7rem; font-weight: 700; padding: .25rem .55rem; border-radius: 7px; }
.badge-off { top: 8px; left: 8px; background: var(--accent); color: #fff; }
.badge-out { top: 8px; right: 8px; background: rgba(20,26,51,.88); color: #fff; }
.badge-read { bottom: 8px; left: 8px; background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.15); display: inline-flex; align-items: center; gap: .3rem; }
.card-body { padding: .85rem .2rem .2rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card-title { font: 700 .98rem/1.3 var(--head); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.01em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-title a:hover { color: var(--brand); }
.card-author { font-size: .85rem; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .55rem; }
.card-price { margin: 0; font-size: 1.05rem; }
.card-price strong { font-family: var(--head); font-weight: 800; }
.card-price s { color: var(--muted); font-size: .82rem; margin-left: .3rem; }
.card-id { font: 600 .7rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted); background: var(--paper); padding: .2rem .45rem; border-radius: 6px; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.cat-tile { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
.cat-tile .feature-ico { width: 44px; height: 44px; }
.cat-tile span { display: block; font: 700 1rem/1.25 var(--head); }
.cat-tile small { color: var(--muted); }

.how { background: linear-gradient(180deg, #fff, var(--paper)); margin-top: 3rem; padding: 3.5rem 0; border-top: 1px solid var(--line); }
.how-head { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.how-head p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow-sm); }
.steps li > span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font: 800 1.05rem var(--head); margin-bottom: 1rem; }
.steps li:nth-child(2) > span { background: var(--accent); }
.steps li:nth-child(3) > span { background: var(--wa); }
.steps p { color: var(--ink-2); margin: 0; }
.steps-v { grid-template-columns: 1fr; }

/* listing */
.crumbs { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.crumbs a:first-child { background: var(--paper); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { width: 15px; height: 15px; }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.list-head h1 { margin: 0; }
.list-head p { margin: .2rem 0 0; }
.sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); }
select, input, textarea { font: inherit; color: var(--ink); }
.sort select { padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-height: 44px; }
.pager { display: flex; gap: .35rem; justify-content: center; margin: 2.5rem 0 0; flex-wrap: wrap; }
.pager a { min-width: 44px; padding: .6rem .8rem; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 3.5rem 1.2rem; background: var(--paper); border: 1px dashed #cfd4e6; border-radius: 18px; }
.page-wrap { background: var(--paper); padding-bottom: 1rem; }

/* book page */
.book { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 3.2rem; align-items: start; }
.book-cover { position: sticky; top: 140px; background: linear-gradient(180deg, var(--paper), #fff); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; }
.book-cover .cover { box-shadow: 0 4px 10px rgba(20,26,51,.12), 0 28px 50px rgba(20,26,51,.22); }
.book-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: .3rem; }
.book-sub { font-size: 1.15rem; color: var(--ink-2); margin-bottom: .6rem; }
.book-author { color: var(--ink-2); }
.book-id { display: inline-flex; align-items: center; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .35rem .3rem .9rem; font-size: .85rem; color: var(--muted); }
.book-id code { background: transparent; padding: 0; font-size: .95rem; color: var(--ink); letter-spacing: .05em; }
.copy { border: 0; background: #fff; padding: .4rem .8rem; border-radius: 999px; font: 700 .8rem var(--head); color: var(--brand); cursor: pointer; box-shadow: var(--shadow-sm); }
.copy:hover { color: var(--accent-ink); }
.price-box { margin: 1.5rem 0 2rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.price-line { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.price { font: 800 2.2rem/1.1 var(--head); letter-spacing: -.02em; }
.mrp { color: var(--muted); }
.save { background: #fff1ea; color: var(--accent-ink); font-weight: 700; font-size: .85rem; padding: .2rem .6rem; border-radius: 7px; }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; margin: .5rem 0 1.1rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--bad); }
.buy { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.buy.center { justify-content: center; }
.desc { margin-bottom: 1.5rem; color: var(--ink-2); }
.details-h { margin-top: 1rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; font-size: .95rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.details dt, .details dd { padding: .6rem 1rem; border-bottom: 1px solid var(--line); margin: 0; }
.details dt { color: var(--muted); background: var(--paper); font-weight: 500; }
.details dt:nth-last-child(2), .details dd:last-child { border-bottom: 0; }

.order-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; margin-top: 3.5rem; padding: 2.4rem; background: linear-gradient(135deg, var(--brand-soft), #fff 60%); border: 1px solid var(--line); border-radius: 22px; scroll-margin-top: 140px; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #dff5e8; color: var(--ok); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.order-form { display: grid; gap: .9rem; background: #fff; padding: 1.5rem; border-radius: 16px; box-shadow: var(--shadow); }
.order-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.order-form input, .order-form textarea { padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); width: 100%; font-size: 16px; }
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(34,47,134,.1); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; }
.err { color: var(--bad); font-size: .82rem; font-weight: 600; }
.ordering-for { display: flex; gap: .8rem; align-items: center; padding: .7rem; background: var(--paper); border-radius: 12px; font-size: .95rem; }

.thanks { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 3rem 2rem; box-shadow: var(--shadow); }
.tick { width: 72px; height: 72px; border-radius: 50%; background: #dff5e8; color: var(--ok); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 1rem; box-shadow: 0 0 0 10px #f0faf4; }
.ref { font: 800 1.6rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--brand); background: var(--brand-soft); display: inline-block; padding: .5rem 1.3rem; border-radius: 12px; }

.prose h1 { margin-bottom: .8rem; }
.prose p { color: var(--ink-2); font-size: 1.05rem; }
.eyebrow { font: 700 .82rem var(--head); color: var(--accent-ink); margin-bottom: .6rem; }
.managed-box { margin: 2rem 0; padding: 1.3rem 1.5rem; background: var(--brand-soft); border-radius: 16px; display: flex; align-items: center; gap: 1rem; }
.managed-box img { width: 48px; height: 48px; border-radius: 12px; }
.managed-box span { display: block; font-size: .82rem; color: var(--muted); }
.managed-box strong { font: 700 1.1rem var(--head); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin: 1.5rem 0; }
.contact-card { display: block; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.contact-card span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.contact-card strong { font-family: var(--head); }
a.contact-card:hover { border-color: var(--brand); }

/* footer */
.footer { margin-top: 4rem; background: #0f1538; color: #c4c9e6; padding: 3.2rem 0 1.4rem; font-size: .93rem; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: linear-gradient(120deg, #2a3aa6, #222f86); border-radius: 20px; padding: 1.6rem 1.8rem; margin-bottom: 2.6rem; color: #fff; }
.footer-cta h3 { font-size: 1.3rem; margin: 0 0 .2rem; color: #fff; }
.footer-cta p { margin: 0; color: #cfd4f6; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer h4 { color: #fff; font: 700 .95rem var(--head); margin: 0 0 .9rem; }
.footer a { display: block; color: #c4c9e6; text-decoration: none; margin-bottom: .45rem; }
.footer a:hover { color: #fff; }
.footer .muted { color: #8b92b8; }
.brand-foot .bt-name { color: #fff; }
.brand-foot .bt-sub { color: #8b92b8; }
.brand-foot { margin-bottom: 1rem; }
.managed { font-size: .88rem; color: #a9afd3; margin-top: 1rem; }
.managed strong { color: #fff; font-weight: 600; }
.footer .copyright { border-top: 1px solid #262e5c; margin-top: 2.2rem; padding-top: 1.2rem; font-size: .82rem; color: #8b92b8; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .copyright a { display: inline; margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 12px; font-size: .9rem; z-index: 50; box-shadow: var(--shadow-lg); }

/* free preview */
.btn-read { width: 100%; background: var(--brand); color: #fff; margin-bottom: .7rem; min-height: 52px; box-shadow: 0 8px 20px rgba(34,47,134,.25); }
.btn-read:hover { background: var(--brand-2); color: #fff; }
.cover-read { display: block; position: relative; text-decoration: none; }
.cover-read span { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--brand); font: 700 .84rem var(--head); padding: .5rem 1rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.cover-read:hover span { color: var(--accent-ink); }
.reader-bar { position: sticky; top: 0; z-index: 25; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(20,26,51,.06); }
.reader-bar-in { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; }
.rb-back { font-size: 1.2rem; text-decoration: none; color: var(--ink); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); flex-shrink: 0; background: #fff; }
.rb-back:hover { border-color: var(--brand); color: var(--brand); }
.rb-title { flex: 1; min-width: 0; line-height: 1.3; }
.rb-title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--head); }
.rb-title small { color: var(--muted); }
.rb-actions { display: flex; align-items: center; gap: .8rem; }
.rb-price { font: 800 1.2rem var(--head); }
.reader { background: #e7e9f2; padding: 2rem 0 3rem; }
.pages { width: min(860px, 100% - 2rem); margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.page { position: relative; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 34px rgba(20,26,51,.1); border-radius: 4px; overflow: hidden; user-select: none; }
.page canvas { display: block; }
.page-no { position: absolute; right: 10px; bottom: 8px; font-size: .72rem; color: #fff; background: rgba(20,26,51,.6); padding: .12rem .5rem; border-radius: 6px; z-index: 2; }
.reader-loading { text-align: center; padding: 4rem 1rem; color: var(--ink-2); }
.end-card { width: min(860px, 100% - 2rem); margin: 1.5rem auto 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2rem; align-items: center; background: #fff; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); border-top: 5px solid var(--accent); scroll-margin-top: 90px; }
.end-card h2 { margin-bottom: .4rem; }
.reading .topbar { position: relative; }
.reading .catbar { display: none; }
.reading .footer { margin-top: 0; }

/* responsive */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-art { height: 300px; max-width: 520px; width: 100%; margin: 0 auto; }
  .features-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book { grid-template-columns: 1fr; gap: 1.8rem; }
  .book-cover { position: static; max-width: 340px; margin: 0 auto; width: 100%; }
  .order-wrap { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .utility-in { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .utility span { white-space: nowrap; }
  .topbar-in { flex-wrap: wrap; gap: .7rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-btn { display: block; }
  .mainnav { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; }
  .nav-open .mainnav { display: flex; }
  .mainnav a { padding: .8rem .6rem; border-top: 1px solid var(--line); border-radius: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card { padding: .55rem; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .row2 { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-art { height: 250px; }
  .hero-book { width: 120px; bottom: 50px; }
  .hb0 { width: 136px; left: 32%; }
  .ticket { max-width: 210px; padding: .6rem .8rem; }
  .ticket2 { display: none; }
  .buy .btn { flex: 1 1 100%; }
  .features-in { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .feature { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .footer-in { grid-template-columns: 1fr; }
  .wrap { width: min(1220px, 100% - 2rem); }
  .rb-price { display: none; }
  .end-card { grid-template-columns: 1fr; padding: 1.4rem; }
  .end-cover { max-width: 140px; }
  .reader { padding-top: 1rem; }
  .details { grid-template-columns: 1fr 1.6fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* fixes */
.utility span, .catbar a, .crumbs a, .trust li, .mainnav a { flex: none; }
.footer a.brand { display: flex; }
.footer .btn { display: inline-flex; margin: 0; }
.footer .btn-ghost { color: var(--ink); }
.footer .btn-ghost:hover { color: var(--brand); }
.footer-cta .ico { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .utility-in { justify-content: center; }
  .utility span:nth-child(n+2) { display: none; }
  .pill-tag { font-size: .78rem; }
}

/* ===== A2Z EduLearningHub intro (top of home page) ===== */
.intro { position: relative; background: linear-gradient(180deg, #fff 0%, #f3f5ff 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.intro::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,53,.12), transparent 65%); pointer-events: none; }
.intro-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; padding: 4rem 0 3.6rem; }
.intro .pill-tag { background: var(--brand-soft); border-color: #d6dbf7; color: var(--brand); }
.intro h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.06; max-width: 17ch; }
.intro h1 b { color: var(--accent); font-weight: 800; }
.intro .lead { max-width: 56ch; }
.intro-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(34,47,134,.25); }
.btn-brand:hover { background: var(--brand-2); color: #fff; }
.author-search { max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1rem .9rem; box-shadow: var(--shadow); }
.author-search label { display: block; font: 700 .9rem var(--head); margin-bottom: .55rem; }
.author-search form { display: flex; gap: .5rem; }
.author-search input { flex: 1; min-width: 0; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 16px; }
.author-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.author-search small { display: block; color: var(--muted); margin-top: .5rem; font-size: .82rem; }
.act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; position: relative; }
.act { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; transition: transform .2s; }
.act:nth-child(2) { transform: translateY(26px); }
.act:nth-child(4) { transform: translateY(26px); }
.act .feature-ico { width: 48px; height: 48px; }
.act:nth-child(1) .feature-ico { background: #eef0fb; color: var(--brand); }
.act:nth-child(2) .feature-ico { background: #fff1ea; color: var(--accent-ink); }
.act:nth-child(3) .feature-ico { background: #e9f8ef; color: var(--ok); }
.act:nth-child(4) .feature-ico { background: #fff6dc; color: #a26a00; }
.act strong { font: 800 1.02rem/1.25 var(--head); }
.act span { font-size: .88rem; color: var(--muted); }
.stats-row { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.6rem; }
.stats-row div { display: flex; flex-direction: column; }
.stats-row strong { font: 800 1.6rem/1 var(--head); color: var(--brand); }
.stats-row span { font-size: .84rem; color: var(--muted); margin-top: .25rem; }

.what { padding: 3.5rem 0 1rem; }
.what-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.what-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.what-card h3 { margin: .3rem 0 0; }
.what-card p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.what-card a { margin-top: auto; font: 700 .9rem var(--head); text-decoration: none; padding-top: .6rem; }

.publish { margin-top: 3rem; padding: 3.2rem 0; background: #0f1538; color: #e6e9ff; position: relative; overflow: hidden; }
.publish::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1.2px, transparent 1.3px); background-size: 22px 22px; }
.publish-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.publish h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.publish p { color: #c4c9e6; }
.pub-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; counter-reset: p; }
.pub-steps li { counter-increment: p; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 1.1rem 1.2rem; }
.pub-steps li::before { content: counter(p); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; font: 800 .95rem var(--head); margin-bottom: .6rem; }
.pub-steps strong { display: block; color: #fff; font: 700 1rem var(--head); margin-bottom: .2rem; }
.pub-steps span { font-size: .88rem; color: #b6bcdf; }

.store-tag { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff; font: 700 .8rem var(--head); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.store-tag .ico { width: 15px; height: 15px; }
.hero-store { scroll-margin-top: 90px; }

@media (max-width: 1000px) {
  .intro-in, .publish-in { grid-template-columns: 1fr; }
  .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act:nth-child(2), .act:nth-child(4) { transform: none; }
}
@media (max-width: 600px) {
  .what-grid, .pub-steps, .act-grid { grid-template-columns: 1fr; }
  .author-search form { flex-direction: column; }
  .intro-in { padding: 2.6rem 0; }
}
