* { box-sizing: border-box; }
:root { --pri: #4f46e5; --pri2: #7c3aed; --ink: #161a2b; --muted: #5d6478; --bg: #f6f7fc; --line: #e4e6f0; --ok: #16a34a; --bad: #dc2626; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: var(--pri); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }
h2 { font-size: 26px; margin: 48px 0 16px; }
h3 { margin: 0 0 6px; font-size: 19px; }
.card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 1px 3px rgba(20,20,60,.06), 0 8px 30px rgba(20,20,60,.04); }
.btn { display: inline-block; text-align: center; padding: 14px 22px; border-radius: 12px; border: 0; background: linear-gradient(135deg, var(--pri), var(--pri2));
  color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn.ghost { background: #fff; color: var(--pri); border: 2px solid #dcdcfb; }
.muted { color: var(--muted); } .small { font-size: 13px; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(246,247,252,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 24px; font-weight: 900; color: var(--ink); text-decoration: none; }
.logo span { color: var(--pri); }
.nav-cta { font-weight: 700; text-decoration: none; }

.hero { padding: 48px 0 16px; background: radial-gradient(1200px 400px at 70% -10%, #e0e3ff 0, transparent 60%); }
.pill { display: inline-block; background: #eceeff; color: var(--pri); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.15; margin: 14px 0; }
.hl { background: linear-gradient(135deg, var(--pri), var(--pri2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.trust { margin-top: 14px; color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.feat .ic { font-size: 30px; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 16px; }
.step b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #eceeff; color: var(--pri); font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--pri); }
.plan .tag { position: absolute; top: -12px; left: 16px; background: var(--pri); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.price { font-size: 36px; font-weight: 900; margin: 6px 0; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { padding-inline-start: 20px; flex: 1; }
.plan .btn { width: 100%; }

.faq details { background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.foot { padding: 40px 18px; color: var(--muted); font-size: 14px; }

/* demo */
.demo .prompt { font-weight: 700; font-size: 18px; margin-bottom: 10px; white-space: pre-line; }
.demo .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo .opt { padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 17px; cursor: pointer; font-family: inherit; display: grid; place-items: center; min-height: 56px; }
.demo .opt.right { border-color: var(--ok); background: #e7f8ee; }
.demo .opt.wrong { border-color: var(--bad); background: #fdecec; }
.demo .explain { margin-top: 12px; padding: 12px; border-radius: 12px; background: #fffbea; border: 1px solid #f5e3a0; white-space: pre-line; }
.demo .explain b { display: block; }
.seq { direction: ltr; font-size: 22px; font-weight: 700; text-align: center; background: #eceeff; padding: 12px; border-radius: 12px; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 260px; margin: 0 auto 12px; background: var(--line); padding: 4px; border-radius: 10px; }
.matrix > div { background: #fff; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; }
.matrix svg { width: 64px; height: 64px; }
.matrix .q { font-size: 30px; font-weight: 800; color: var(--pri); }
table.data { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
table.data td { border: 1px solid var(--line); padding: 6px; text-align: center; font-family: ui-monospace, monospace; direction: ltr; }

.modal { position: fixed; inset: 0; background: rgba(15,18,40,.5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-in { max-width: 420px; width: 100%; position: relative; }
.modal .x { position: absolute; top: 10px; left: 10px; border: 0; background: #f0f1f7; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.modal input { width: 100%; padding: 12px; border: 2px solid var(--line); border-radius: 10px; font-size: 16px; margin-bottom: 10px; font-family: inherit; }
.modal .btn { width: 100%; margin-bottom: 8px; }

/* content pages */
.article { padding-top: 10px; max-width: 760px; }
.article h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 10px 0; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 16px; }
.crumbs a { color: var(--muted); }
.how li { margin-bottom: 8px; }
.ex { margin-bottom: 14px; }
.ex .prompt { font-weight: 700; white-space: pre-line; margin-bottom: 10px; }
.ex-opts { padding-inline-start: 22px; }
.ex-opts li { margin-bottom: 6px; }
.ex-opts li svg { vertical-align: middle; }
.ex details summary { cursor: pointer; font-weight: 700; color: var(--pri); }
.ex .explain { margin-top: 10px; padding: 12px; border-radius: 12px; background: #fffbea; border: 1px solid #f5e3a0; white-space: pre-line; }
.ex .explain b { display: block; }
.passage { background: #fafbff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; line-height: 1.7; }
.strip { display: flex; gap: 4px; justify-content: center; }
.strip > div { background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 54px; height: 54px; display: grid; place-items: center; }
table.data th { background: #eceeff; border: 1px solid var(--line); padding: 6px; }
.cta-box { margin: 26px 0; text-align: center; background: linear-gradient(135deg, #eef0ff, #f6efff); }
.cta-box h2 { margin-top: 0; }
.links { columns: 2; padding-inline-start: 20px; }
a.card.feat { text-decoration: none; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; text-align: right; }
.consent input { width: 18px !important; height: 18px; margin: 3px 0 0 !important; flex: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.code-big { font-family: ui-monospace, monospace; direction: ltr; font-size: 26px; font-weight: 800; letter-spacing: 2px; text-align: center; background: #eceeff; border-radius: 10px; padding: 12px; margin: 12px 0; user-select: all; }
#payBox .btn { width: 100%; }
/* --- UX review fixes --- */
:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #b45309; outline-offset: 2px; }
.price small { display: block; line-height: 1.4; margin-top: 2px; }
.modal .x { width: 44px; height: 44px; font-size: 18px; }
.modal h3 { padding-left: 52px; }
.modal label.small { display: block; margin-bottom: 4px; color: var(--muted); }
.modal input { border-color: #9aa0b4; }
.demo .opt { border-color: #b9bdcc; }
.demo .opt:disabled { color: var(--ink); opacity: 1; cursor: default; }
.seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.faq summary { padding: 8px 0; }
.nav-cta { padding: 10px 0; display: inline-block; }
.foot a { display: inline-block; padding: 10px 4px; }
.explain { unicode-bidi: plaintext; }
.h3 { font-size: 19px; margin: 0 0 6px; }
