:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f5f7ff;
  --brand: #1e40af;
  --brand-2: #6366f1;
  --purple: #5b21b6;
  --navy: #1b2a4a;
  --gold: #c9a227;
  --ok: #16a34a;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; border-radius: 6px; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 17px; }
.brand small { font-size: 11px; color: var(--muted); }
.brand small span { display: inline; } /* the year inside "© 2026 …" stays on one line */
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--brand); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; border-radius: 12px; border: 0;
  padding: 12px 22px; box-shadow: 0 8px 24px rgba(30,64,175,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(30,64,175,.35); }
.btn-sm { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid #c7d2fe; box-shadow: none; }
.btn-ghost:hover { border-color: var(--brand); box-shadow: none; }
.btn[aria-disabled="true"] { opacity: .65; pointer-events: none; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 90% -5%, #e0e7ff 0%, transparent 62%),
    radial-gradient(700px 400px at -10% 110%, #ede9fe 0%, transparent 60%),
    linear-gradient(180deg, #f8faff, #fff);
  padding: 64px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #eef2ff; color: var(--brand); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid #e0e7ff; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -1px; }
.grad { background: linear-gradient(135deg, var(--brand), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-meta { margin: 12px 2px 14px; color: var(--muted); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

.hero-visual { position: relative; padding: 0 0 70px 0; }
.window { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px rgba(15,23,42,.18), 0 2px 0 rgba(15,23,42,.02); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1e1b2e; color: #cbd5e1; font-size: 11px; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: #34d399; }
.window-bar b { margin-left: 8px; font-weight: 500; }
.window img { width: 100%; height: auto; }

.mock { position: absolute; left: -36px; bottom: 0; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px rgba(15,23,42,.18); padding: 14px; transform: rotate(-2deg); }
.mock-head { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #1a237e; padding-bottom: 8px; }
.mock-head div { display: flex; flex-direction: column; flex: 1; line-height: 1.2; font-size: 13px; }
.mock-head small { color: var(--muted); font-size: 11px; }
.badge { background: #dcfce7; color: #166534; font-weight: 800; padding: 3px 9px; border-radius: 8px; font-size: 13px; }
.mock-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; }
.mock-table th { background: #1a237e; color: #fff; font-weight: 600; padding: 5px 6px; text-align: left; }
.mock-table th:not(:first-child), .mock-table td:not(:first-child) { text-align: center; }
.mock-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.mock-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.mock-foot b { color: var(--ink); }
.ok { color: var(--ok) !important; }
.float-chip { position: absolute; right: -8px; top: 38%; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 8px; font-size: 13px; font-weight: 600; box-shadow: 0 16px 36px rgba(15,23,42,.16); display: flex; align-items: center; gap: 8px; }
.float-chip span { width: 24px; height: 24px; border-radius: 50%; background: #dcfce7; color: #166534; display: grid; place-items: center; font-size: 13px; }

.highlights { list-style: none; margin: 34px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.highlights li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px; }
.highlights li + li { border-left: 1px solid var(--line); }
.highlights b { font-size: 22px; color: var(--brand); letter-spacing: -.3px; }
.highlights span { font-size: 13px; color: var(--muted); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section.alt { background: var(--soft); }
.modules { background: linear-gradient(180deg, #f8faff, #fff); border-top: 1px solid var(--line); }
.eyebrow { display: block; text-align: center; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); text-align: center; margin: 0 0 8px; letter-spacing: -.5px; line-height: 1.2; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 680px; }
.sub.left { text-align: left; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: 0 16px 34px rgba(15,23,42,.08); transform: translateY(-3px); border-color: #c7d2fe; }
.card .ic { font-size: 24px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 12px; }
.c1 { background: #e0e7ff; } .c2 { background: #fef3c7; } .c3 { background: #dcfce7; } .c4 { background: #fce7f3; }
.c5 { background: #e0f2fe; } .c6 { background: #ede9fe; } .c7 { background: #ffedd5; } .c8 { background: #f1f5f9; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .new { position: absolute; top: 14px; right: 14px; background: #dcfce7; color: #166534; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; letter-spacing: .3px; }

/* ── Screenshot tabs ── */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--brand); background: #eef2ff; }
.tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px rgba(30,64,175,.25); }
html:not(.js) .tabs { display: none; }        /* no JavaScript: all panels show */
html:not(.js) .panel + .panel { margin-top: 48px; }
.panel { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Gallery: equal tiles – 3 per row (desktop), 2 (tablet), 1 (phone);
   a panel with 2 tiles is centred. Full size opens in the viewer. */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 24px; }
.tile { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px rgba(15,23,42,.06); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,.13); border-color: #c7d2fe; }
.panel[hidden] { display: none !important; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f1f5f9; cursor: zoom-in; border-bottom: 1px solid var(--line); }
.thumb > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.tile:hover .thumb > img { transform: scale(1.03); }
.thumb::after { content: "⤢  View full size"; position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 6px); white-space: nowrap; background: rgba(15,23,42,.82); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.thumb::before { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(15,23,42,.10)); pointer-events: none; z-index: 1; }
.tile:hover .thumb::after, .thumb:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.thumb::after { z-index: 2; }
.tile figcaption { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile figcaption b { font-size: 15px; }
.tile figcaption span { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* HTML copies (report card, gate pass) scaled to fit the tile (site.js sets --s) */
.thumb.live { background: linear-gradient(160deg, #eef2ff, #f8fafc); }
.live-inner { position: absolute; left: 50%; top: 14px; transform-origin: top center; transform: translateX(-50%) scale(var(--s, .55)); }
.live-inner .rc, .live-inner .pass { background: #fff; border-radius: 10px; box-shadow: 0 10px 24px rgba(15,23,42,.12); overflow: hidden; }
.live-inner .rc { border: 2px solid var(--navy); }
.live-inner .pass { border: 1px solid var(--line); }

/* ── Gate pass (HTML copy of the printed pass, demo data) ── */
.pass { font-size: 12px; color: var(--ink); width: 440px; max-width: 100%; }
.pass-head { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 12px; }
.pass-head img { background: #fff; border-radius: 6px; padding: 2px; }
.pass-head div { display: flex; flex-direction: column; line-height: 1.25; }
.pass-head b { font-size: 15px; letter-spacing: .3px; }
.pass-head small { color: var(--gold); font-weight: 700; font-size: 11px; letter-spacing: .6px; }
.pass-body { display: flex; gap: 12px; padding: 12px 12px 8px; align-items: flex-start; }
.pass-qr { width: 104px; height: 104px; border: 1px solid var(--gold); padding: 3px; flex: none; }
.pass-body div { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.pass-body small { color: var(--muted); font-size: 10px; letter-spacing: .6px; }
.pass-name { font-size: 16px; color: var(--navy); }
.pass-parents { margin: 0 12px; padding: 8px 10px; background: #f4f6fa; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; line-height: 1.5; }
.pass-parents span { color: var(--muted); }
.pass-parents b { color: var(--ink); }
.pass-foot { display: flex; align-items: flex-end; gap: 12px; padding: 12px; }
.pass-foot small { flex: 1; font-size: 10px; color: var(--muted); line-height: 1.4; }
.pass-foot span { border-top: 1px solid var(--ink); padding-top: 3px; min-width: 90px; text-align: center; font-weight: 700; font-size: 11px; }

/* ── Report card (HTML copy of the printed card, demo data) ── */
.rc { padding: 14px; font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #1f2937; width: 600px; max-width: 100%; }
.rc-head { display: flex; align-items: center; gap: 10px; text-align: center; }
.rc-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.rc-head small { color: #8a6d0b; font-weight: 700; font-size: 9px; letter-spacing: .3px; }
.rc-head b { color: var(--navy); font-size: 17px; letter-spacing: .5px; }
.rc-head span { font-size: 9.5px; color: #475569; }
.rc-band { margin: 10px 0 8px; padding: 7px 10px; background: var(--navy); color: #fff; border-radius: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10px; }
.rc-band b { font-size: 11.5px; letter-spacing: 1px; flex: 1; }
.rc-class { background: var(--gold); color: var(--navy); font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.rc-student { display: flex; gap: 10px; padding: 8px; background: #f7f9fc; border: 1px solid #d5dae3; border-radius: 6px; }
.rc-photo { width: 54px; height: 66px; border: 1px solid var(--gold); border-radius: 4px; display: grid; place-items: center; color: #6b7280; font-size: 8px; background: #fff; flex: none; }
.rc-info { flex: 1; min-width: 0; }
.rc-info small { color: #6b7280; font-size: 8px; letter-spacing: .5px; }
.rc-name { display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.rc-info dl { margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.rc-info dt { color: #6b7280; font-size: 8px; letter-spacing: .4px; }
.rc-info dd { margin: 0; font-weight: 700; font-size: 11px; }
.rc-title { margin: 10px 0 5px; font-weight: 800; font-size: 10.5px; letter-spacing: 1px; border-left: 3px solid var(--gold); padding-left: 6px; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 10px; text-align: center; min-width: 470px; }
.rc-table th, .rc-table td { padding: 3px 2px; border-bottom: 1px solid #d5dae3; }
.rc-table thead th { color: #fff; font-weight: 700; }
.rc-table .rc-sub { background: var(--navy); text-align: left; padding-left: 6px; }
.rc-table .h1 { background: #2563eb; } .rc-table .h2 { background: #0f9d8a; } .rc-table .hf { background: var(--gold); color: var(--navy); }
.rc-max th { background: #eef2f7; color: #1e40af !important; font-size: 8.5px; line-height: 1.1; }
.rc-max th i { display: block; font-style: normal; color: #6b7280; font-weight: 400; }
.rc-table tbody th { text-align: left; padding-left: 6px; font-weight: 700; }
.rc-table .t1 { background: #eaf1fe; font-weight: 700; }
.rc-table .t2 { background: #e6f6f3; font-weight: 700; }
.rc-table .fin { background: #fff6dd; font-weight: 800; color: #1b7f3b; }
.rc-table .gr { background: #e3f5e8; color: #1b7f3b; font-weight: 800; border-radius: 4px; padding: 0 4px; }
.rc-table .grand th, .rc-table .grand td { background: var(--navy); color: #fff; font-weight: 700; }
.rc-table .grand .fin { background: var(--gold); color: var(--navy); }
.rc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.rc-sum div { border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; line-height: 1.25; }
.rc-sum small { font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.rc-sum b { font-size: 16px; color: var(--navy); }
.rc-sum span { font-size: 9px; color: #475569; }
.rc-sum .s1 { background: #eaf1fe; border: 1px solid #2563eb; } .rc-sum .s1 small { color: #2563eb; }
.rc-sum .s2 { background: #e6f6f3; border: 1px solid #0f9d8a; } .rc-sum .s2 small { color: #0f9d8a; }
.rc-sum .sf { background: #fff6dd; border: 1.5px solid #8a6d0b; } .rc-sum .sf small { color: #8a6d0b; }
.rc-foot { margin-top: 8px; text-align: center; color: #6b7280; font-size: 9px; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; }
.step h3 { margin: 12px 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Pricing ── */
.pricing { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; max-width: 880px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; position: relative; display: flex; flex-direction: column; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 46px; font-weight: 800; color: var(--ok); margin: 6px 0 4px; }
.plan ul { padding: 0; list-style: none; margin: 14px 0 22px; color: var(--muted); font-size: 15px; flex: 1; }
.plan li { padding: 4px 0; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.plan .btn { align-self: flex-start; }
.featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px rgba(30,64,175,.16); }
.tag { position: absolute; top: -13px; left: 24px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 999px; letter-spacing: .5px; }
.slabs { margin-top: 14px; display: grid; gap: 8px; }
.slabs div { display: flex; justify-content: space-between; align-items: center; background: #eef2ff; border-radius: 10px; padding: 10px 14px; }
.slabs b { font-size: 20px; color: var(--brand); }
.slabs b::after { content: " /student/yr"; font-size: 12px; color: var(--muted); font-weight: 500; }
.note { margin: 0; font-size: 13px; color: var(--muted); }

/* ── Manual ── */
.manual { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 900px; }
.manual h2 { text-align: left; }
.manual img { border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.12); padding: 10px; }
.manual-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; }

/* ── FAQ ── */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 12px 28px rgba(15,23,42,.06); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* ── Contact ── */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; }
.contact h2 { text-align: left; }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; transition: border-color .2s, transform .2s; min-width: 0; }
.ccard:hover { border-color: var(--brand); transform: translateX(3px); }
.ccard > span { font-size: 22px; }
.ccard div { display: flex; flex-direction: column; min-width: 0; }
.ccard small { color: var(--muted); font-size: 12px; }
.ccard b { overflow-wrap: anywhere; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); padding: 26px 0; background: #fafbff; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand.small b { font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--brand); }

/* ── Full-size viewer ── */
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,.88); display: grid; place-items: center; padding: 48px 16px 16px; cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: min(1400px, 100%); max-height: calc(100vh - 72px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; cursor: default; }
.zoom-html { max-width: 100%; max-height: calc(100vh - 72px); overflow: auto; cursor: default; border-radius: 12px; }
.zoom-html:empty { display: none; }
.zoom-html .rc, .zoom-html .pass { background: #fff; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.zoom-html .rc { border: 2px solid var(--navy); }
.zoom-fit { position: relative; }
.zoom-fit > * { position: absolute; left: 0; top: 0; transform-origin: top left; }

.zoom img:not([src]), .zoom img[src=""] { display: none; }
.zoom-close { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* ── Policy pages (terms, privacy, refund, shipping, contact) ── */
.legal-wrap { max-width: 820px; }
.legal h1 { text-align: center; font-size: clamp(26px, 4vw, 36px); margin: 0 0 4px; line-height: 1.2; }
.legal-date { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn):not(.ccard) { color: var(--brand); text-decoration: underline; }
.legal-contact { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.legal-contact p { margin: 4px 0; overflow-wrap: anywhere; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.legal-table th { background: var(--soft); }
.legal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.legal-cards .ccard:not(a):hover { border-color: var(--line); transform: none; }
.contact-addr { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 640px) {
  .legal-cards { grid-template-columns: 1fr; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 6px 8px; }
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a[href="#faq"] { display: none; }
}
@media (max-width: 960px) {
  .nav-links a[href="#screens"] { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .pricing, .contact { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin: 0 auto; padding-left: 24px; }
  .window { transform: none; }
  .mock { left: 0; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .brand small { display: none; }
  .hero { padding: 40px 0 28px; }
  .hero-visual { padding: 0 0 0 0; }
  .mock, .float-chip { display: none; }
  .highlights { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .highlights li:nth-child(3) { border-left: 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .section { padding: 56px 0; }
  .btn-lg { width: 100%; }
  .contact h2, .sub.left { text-align: center; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .tabs button { flex: none; }
  .manual { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .manual h2, .manual .sub.left { text-align: center; }
  .manual-btns { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
