/* jah.one — public site styles (no build step, no CSS framework) */
@import url("/assets/fonts.css?v=2");
:root {
  --ink: #0f2a22;
  --ink-2: #1d3a31;
  --paper: #f3f6f2;
  --surface: #ffffff;
  --emerald: #047857;
  --emerald-hover: #065f46;
  --mint: #dcefe5;
  --mint-2: #eef6f1;
  --line: #d8e1db;
  --muted: #56685f;
  --coral: #e85d3f;
  --coral-wash: #fdece7;
  --danger: #b42318;
  --danger-wash: #fef1f0;
  --warn: #92400e;
  --warn-wash: #fef6e7;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--emerald-hover); }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--emerald) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
main { flex: 1; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: var(--step--1); padding: 0.5rem 0.75rem; border-radius: var(--r-sm); }
.nav a:hover { color: var(--ink); background: var(--mint-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch { font-weight: 600; font-size: var(--step--1); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.5rem 0.7rem 0.3rem; }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.45rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.5rem; font-size: var(--step-0); border-bottom: 1px solid var(--mint-2); border-radius: 0; }
  .header-actions { margin-inline-start: auto; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: inherit; font-weight: 600; font-size: var(--step-0); line-height: 1.2; padding: 0.95rem 1.4rem 0.75rem; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-hover); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 0.6rem 0.9rem 0.4rem; font-size: var(--step--1); border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; }
.field + .field { margin-top: 1rem; }
.label { font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.hint { font-size: var(--step--1); color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 1rem; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--mint); }
.input[dir="ltr"] { text-align: left; }
.input-group { display: flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.input-group:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px var(--mint); }
.input-group .addon { padding: 0 0.9rem; display: flex; align-items: center; background: var(--mint-2); color: var(--muted); font-weight: 500; white-space: nowrap; }
.input-group .input { border: 0; border-radius: 0; box-shadow: none; }
.check { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--emerald); }
input[type="color"].input { padding: 0.3rem; height: 50px; cursor: pointer; }
input[type="file"].input { padding: 0.6rem; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: var(--step--1); border: 0; border-radius: var(--r-sm); background: var(--mint); color: var(--emerald-hover); padding: 0.4rem 0.8rem; margin-inline-end: 0.75rem; cursor: pointer; }

/* Segmented control (type tabs) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--mint-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; }
.segmented button { font: inherit; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: var(--r-sm); padding: 0.65rem 0.5rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; }
.segmented button { white-space: nowrap; }
@media (max-width: 420px) { .segmented button { gap: 0.3rem; padding-inline: 0.25rem; font-size: 0.95rem; } }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--r-md); border: 1px solid; font-size: var(--step--1); }
.notice strong { display: block; font-size: var(--step-0); margin-bottom: 0.15rem; }
.notice .icon { margin-top: 0.2rem; }
.notice-error { background: var(--danger-wash); border-color: #f7c9c4; color: var(--danger); }
.notice-success { background: var(--mint-2); border-color: #b6dcc8; color: var(--emerald-hover); }
.notice-warn { background: var(--warn-wash); border-color: #f5d9a8; color: var(--warn); }
.notice .btn { margin-inline-start: auto; white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Home: intro ---------- */
.intro { padding: 2.75rem 0 1.75rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: end; }
.intro h1 { font-size: var(--step-4); font-weight: 800; max-width: 18ch; }
.intro p { color: var(--muted); font-size: var(--step-1); max-width: 46ch; margin-top: 0.75rem; }
.intro-facts { display: flex; gap: 1.5rem; color: var(--muted); font-size: var(--step--1); }
.intro-facts span { display: inline-flex; align-items: center; gap: 0.4rem; }
.intro-facts .icon { color: var(--emerald); }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; padding-top: 1.75rem; } .intro-facts { flex-wrap: wrap; gap: 0.5rem 1.25rem; } }

/* ---------- Home: generator ---------- */
.generator { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 960px) { .generator { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.form-section + .form-section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--mint-2); }
.form-section > h2 { font-size: var(--step-1); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.grid-2 > .field + .field, .grid-3 > .field + .field { margin-top: 0; }

.pro-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--coral); background: var(--coral-wash); padding: 0.15rem 0.55rem; border-radius: 999px; }
.locked { position: relative; }
.locked > .locked-content { opacity: .45; pointer-events: none; user-select: none; }
.lock-note { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); background: var(--mint-2); border-radius: var(--r-md); padding: 0.75rem 1rem; }
.lock-note a { font-weight: 600; }

/* Scan-frame preview: the one bold element on the page */
.preview { position: sticky; top: 88px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 1.75rem; }
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: var(--step--1); color: #b9cfc5; }
.preview-head .live { display: inline-flex; align-items: center; gap: 0.45rem; }
.preview-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.scan-frame { position: relative; padding: 18px; margin-inline: auto; width: fit-content; }
.scan-frame::before, .scan-frame::after, .scan-frame > .c1, .scan-frame > .c2 { content: ""; position: absolute; width: 34px; height: 34px; border: 3px solid #6ee7b7; }
.scan-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.scan-frame::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.scan-frame > .c1 { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.scan-frame > .c2 { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.qr-card { background: #fff; border-radius: var(--r-md); padding: 14px; position: relative; overflow: hidden; }
.qr-card canvas, .qr-card svg { display: block; width: 260px !important; height: 260px !important; max-width: 100%; }
.qr-card .sweep { position: absolute; inset-inline: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, #10b981, transparent); opacity: 0; }
.qr-card.scanning .sweep { animation: sweep .9s ease-in-out 1; }
@keyframes sweep { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.preview-data { margin-top: 1.5rem; font-size: var(--step--1); color: #b9cfc5; text-align: center; overflow-wrap: anywhere; min-height: 1.6em; }
.preview .btn-primary { background: #10b981; color: var(--ink); }
.preview .btn-primary:hover { background: #34d399; color: var(--ink); }
.preview .btn-ghost { color: #fff; border-color: #3c5a50; }
.preview .btn-ghost:hover { border-color: #fff; color: #fff; }
.result { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.result .link-out { display: flex; gap: 0.5rem; }
.result .link-out input { flex: 1; min-width: 0; font: inherit; font-weight: 600; background: var(--ink-2); color: #fff; border: 1px solid #3c5a50; border-radius: var(--r-md); padding: 0.7rem 0.9rem; direction: ltr; text-align: left; }
.result-title { font-size: var(--step-1); font-weight: 600; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.result-title .icon { color: #6ee7b7; }
@media (prefers-reduced-motion: reduce) { .qr-card.scanning .sweep { animation: none; } * { scroll-behavior: auto !important; } }
@media (max-width: 960px) { .preview { position: static; } }

/* Ads */
.ad-slot { margin: 1.25rem 0; text-align: center; }
.ad-slot img { margin-inline: auto; border-radius: var(--r-md); max-height: 160px; object-fit: cover; }
.ad-slot small { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 0.3rem; }


/* How it works / plans strip */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--line); }
.steps h3 { font-size: var(--step-1); margin: 0.75rem 0 0.35rem; }
.steps p { color: var(--muted); font-size: var(--step--1); max-width: 34ch; }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--emerald-hover); font-weight: 700; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Auth & simple pages ---------- */
.auth { display: grid; place-items: center; padding: 3rem 1.25rem 4rem; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.auth-card h1 { font-size: var(--step-3); }
.auth-card .sub { color: var(--muted); margin-top: 0.4rem; margin-bottom: 1.5rem; }
.auth-card form .btn-block { margin-top: 1.5rem; }
.auth-foot { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--mint-2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); }
.otp-input { text-align: center; font-size: 2rem !important; letter-spacing: 0.5em; font-weight: 700; direction: ltr; padding-inline-start: 0.5em !important; }
.status-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.25rem; }
.status-icon .icon { width: 28px; height: 28px; }
.status-icon.warn { background: var(--warn-wash); color: var(--warn); }
.status-icon.err { background: var(--danger-wash); color: var(--danger); }
.status-icon.ok { background: var(--mint); color: var(--emerald-hover); }
.btn-row { display: grid; gap: 0.6rem; margin-top: 1.5rem; }

/* Register / renew: plan picker */
.checkout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; padding: 2.5rem 0 4rem; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.page-title { padding-top: 2.5rem; }
.page-title h1 { font-size: var(--step-4); font-weight: 800; }
.page-title p { color: var(--muted); font-size: var(--step-1); margin-top: 0.5rem; max-width: 52ch; }
.plans { display: grid; gap: 0.75rem; }
.plan { display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); transition: border-color .15s, background-color .15s; }
.plan-body::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border .15s; }
.plan input:checked + .plan-body { border-color: var(--emerald); background: var(--mint-2); }
.plan input:checked + .plan-body::before { border: 6px solid var(--emerald); }
.plan input:focus-visible + .plan-body { box-shadow: 0 0 0 3px var(--mint); }
.plan-name { font-weight: 600; font-size: var(--step-1); }
.plan-meta { color: var(--muted); font-size: var(--step--1); }
.plan-price { margin-inline-start: auto; text-align: end; font-weight: 700; font-size: var(--step-2); white-space: nowrap; }
.plan-price small { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.plan-price s { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.coupon-out { margin-top: 0.6rem; font-size: var(--step--1); font-weight: 600; }
.coupon-out.ok { color: var(--emerald-hover); }
.coupon-out.bad { color: var(--danger); }
.pay-card { width: min(460px, 100%); margin: 2.5rem auto 4rem; }
.divider { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: var(--step--1); margin: 1.5rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-box { background: var(--mint-2); border-radius: var(--r-md); padding: 1rem 1.15rem; }
.account-box .plan-meta { margin-top: 0.15rem; }

/* Content pages (about / privacy / terms / contact) */
.prose-page { padding: 3rem 0 4rem; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; }
.prose-page aside nav { display: grid; gap: 0.15rem; position: sticky; top: 92px; }
.prose-page aside a { color: var(--muted); text-decoration: none; padding: 0.45rem 0.75rem; border-radius: var(--r-sm); border-inline-start: 2px solid transparent; }
.prose-page aside a:hover { color: var(--ink); background: var(--mint-2); }
.prose-page aside a[aria-current="page"] { color: var(--ink); font-weight: 600; border-inline-start-color: var(--emerald); background: var(--surface); }
.prose { max-width: 68ch; }
.prose h1 { font-size: var(--step-4); font-weight: 800; margin-bottom: 1.25rem; }
.prose h2 { font-size: var(--step-2); margin: 2rem 0 0.6rem; }
.prose p, .prose li { font-size: var(--step-1); color: #2c4139; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-inline-start: 1.25rem; }
.prose .updated { color: var(--muted); font-size: var(--step--1); margin-top: 2.5rem; }
.contact-way { display: flex; gap: 1rem; align-items: center; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-top: 1.5rem; text-decoration: none; color: var(--ink); }
.contact-way:hover { border-color: var(--emerald); color: var(--ink); }
.contact-way .status-icon { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
@media (max-width: 760px) { .prose-page { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; } .prose-page aside nav { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- About ---------- */
.about-hero { padding: 3.5rem 0 2.5rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.about-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.15; }
.about-hero p { font-size: var(--step-1); color: var(--muted); margin-top: 1rem; max-width: 48ch; }
.about-hero .btn-line { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; }
.about-art { background: var(--ink); border-radius: var(--r-lg); padding: 2rem; display: grid; place-items: center; }
.about-art .scan-frame { padding: 16px; }
.about-art img { width: 190px; height: 190px; border-radius: var(--r-md); background: #fff; padding: 14px; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; padding-top: 2rem; } .about-art { display: none; } }
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section > h2 { font-size: var(--step-3); font-weight: 800; }
.section > .lead { color: var(--muted); font-size: var(--step-1); margin-top: 0.4rem; max-width: 56ch; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; margin-top: 2rem; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.feature .status-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.feature .status-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.feature p { color: var(--muted); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.uses { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.uses span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem 0.4rem; font-weight: 600; }
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0 4rem; }
.cta-band h2 { font-size: var(--step-3); font-weight: 800; }
.cta-band p { color: #b9cfc5; margin-top: 0.3rem; }
.cta-band .btn-primary { background: #10b981; color: var(--ink); }
.cta-band .btn-primary:hover { background: #34d399; color: var(--ink); }
.cta-band .btn-ghost { color: #fff; border-color: #3c5a50; }

/* ---------- Legal ---------- */
.legal-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: var(--step--1); margin: -0.5rem 0 2rem; }
.toc { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.toc h2 { font-size: var(--step--1); color: var(--muted); font-weight: 600; margin-bottom: 0.5rem; padding-inline-start: 0.75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 0.1rem; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 0.5rem; font-size: var(--step--1); padding: 0.35rem 0.75rem !important; border: 0 !important; }
.toc a::before { content: counter(toc) "."; color: var(--emerald); font-weight: 700; min-width: 1.2em; }
.prose .legal-section { scroll-margin-top: 90px; }
.prose .legal-section h2 { display: flex; gap: 0.6rem; }
.prose .legal-section h2 .n { color: var(--emerald); }
.prose .callout { background: var(--mint-2); border-inline-start: 3px solid var(--emerald); border-radius: var(--r-sm); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.prose .callout p { font-size: var(--step-0); }
@media (max-width: 760px) { .toc { display: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; padding: 0 0 4rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0 0.85rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--emerald); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 2rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 32ch; }
.site-footer h2 { font-size: var(--step--1); color: var(--ink); font-weight: 700; margin-bottom: 0.6rem; }
.site-footer nav { display: grid; gap: 0.4rem; align-content: start; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--mint-2); padding-block: 1rem 1.25rem; }
.pay-methods { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pay-methods ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.pay-chip { font-size: 0.78rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.6rem 0.2rem; line-height: 1.2; white-space: nowrap; }
.pay-mada { color: #1b7b3b; }
.pay-visa { color: #1a1f71; font-style: italic; }
.pay-mastercard { color: #c4381b; }
.pay-applepay { color: #000; }
.pay-stcpay { color: #4f008c; }
.pay-paypal { color: #003087; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Installed app (PWA) ---------- */
.app-tabs { display: none; }
html.standalone .app-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
}
.app-tabs a { display: grid; justify-items: center; gap: 0.15rem; padding: 0.35rem 0 0.2rem; color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 600; border-radius: var(--r-sm); }
.app-tabs a .icon { width: 22px; height: 22px; }
.app-tabs a[aria-current="page"] { color: var(--emerald); }
.app-tabs a[aria-current="page"] .icon { stroke-width: 2.4; }
html.standalone body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
html.standalone .site-header { padding-top: env(safe-area-inset-top); background: var(--ink); border-bottom-color: var(--ink); }
html.standalone .site-header .brand img { background: #fff; border-radius: 8px; padding: 2px 4px; }
html.standalone .site-header .lang-switch { color: #fff; border-color: #3c5a50; }
html.standalone .site-header .menu-toggle { display: none; }
html.standalone .site-header .btn-primary { background: #10b981; color: var(--ink); }
html.standalone .footer-grid { display: none; }
html.standalone .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 861px) { html.standalone .app-tabs { display: none; } html.standalone body { padding-bottom: 0; } }

/* Install banner */
.install-banner { position: fixed; inset-inline: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); z-index: 85; max-width: 460px; margin-inline: auto;
  display: flex; align-items: center; gap: 0.8rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0.85rem 0.85rem 0.75rem 0.85rem; box-shadow: 0 14px 40px rgba(15, 42, 34, .22); transform: translateY(140%); transition: transform .35s ease; }
.install-banner.show { transform: none; }
.install-banner img { border-radius: 11px; flex: none; border: 1px solid var(--line); }
.install-banner .ib-text { flex: 1; min-width: 0; font-size: var(--step--1); line-height: 1.55; }
.install-banner .ib-text b:first-child { display: block; font-size: var(--step-0); }
.install-banner .ib-text span { color: var(--muted); }
.install-banner .ib-share { width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: #0a84ff; }
.install-banner .ib-close { flex: none; align-self: flex-start; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.2rem; }
@media (prefers-reduced-motion: reduce) { .install-banner { transition: none; } }

/* Toast */
.toast { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 90; max-width: min(380px, calc(100% - 2.5rem)); background: var(--ink); color: #fff; padding: 0.9rem 1.1rem; border-radius: var(--r-md); font-size: var(--step--1); box-shadow: 0 10px 30px rgba(15, 42, 34, .25); }
.toast.err { background: var(--danger); }
