/* xi-invoice.com — "Ink" design, matches the xInvoice app */
:root {
  --paper: #efefea; --paper-2: #f7f7f3; --white: #fff; --line: rgba(17,18,20,.09);
  --ink: #111214; --ink-2: #191b1f; --ink-3: #23262b; --ink-line: rgba(255,255,255,.08);
  --text: #111214; --muted: #5f6166; --faint: #9a9ca1; --on-ink: #f4f3ef; --on-ink-muted: #9a9da3;
  --blue: #2d5bff; --blue-soft: #dfe6ff; --yellow: #ffd54a; --lilac: #c9b8ff; --green: #9fe8b5; --orange: #ff9447; --red: #ff6b5e;
  --r: 28px; --r-sm: 18px; --r-xs: 12px; --pill: 999px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
[dir="rtl"] { --font: "IBM Plex Sans Arabic", "Urbanist", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--pill); z-index: 99; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.i { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
.small .i, .muted .i { display: inline-block; vertical-align: -.2em; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.4em; border-radius: var(--pill); font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: .55em 1.05em; font-size: .93rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #000; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { box-shadow: 0 8px 24px -8px rgba(255,213,74,.8); }
.btn-line { border-color: rgba(17,18,20,.18); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-line-light { border-color: rgba(255,255,255,.22); color: var(--on-ink); }
.btn-line-light:hover { border-color: var(--on-ink); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--on-ink); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-ghost-dark { background: rgba(17,18,20,.06); color: var(--ink); }
.btn-paypal { background: #ffc439; color: #111; }
.link { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--blue); text-decoration: none; }
.link:hover { text-decoration: underline; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(17,18,20,.06); color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(255,107,94,.15); color: var(--red); }

.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: currentColor; flex: none; }
.dot-yellow { background: var(--yellow); } .dot-lilac { background: var(--lilac); } .dot-green { background: var(--green); } .dot-blue { background: var(--blue); } .dot-orange { background: var(--orange); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(239,239,234,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { flex: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.logo img { border-radius: 10px; }
.logo-light { color: var(--on-ink); }
.nav { display: flex; gap: 2px; margin-inline-start: 18px; }
.nav a { padding: 8px 10px; border-radius: var(--pill); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: rgba(17,18,20,.06); }
.top-act { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.login { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; white-space: nowrap; }
.login:hover { text-decoration: underline; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.langs { position: relative; }
.langs summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--pill); font-weight: 700; font-size: .85rem; }
.langs summary:hover { background: rgba(17,18,20,.06); }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: var(--white); border-radius: var(--r-sm); box-shadow: 0 18px 50px -12px rgba(0,0,0,.25); min-width: 170px; }
.langs li a { display: block; padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.langs li a:hover { background: var(--paper); }
.langs li a[aria-current] { background: var(--ink); color: var(--on-ink); }
.burger { display: none; }
.burger summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.burger .sheet { position: absolute; inset-inline: 12px; top: 80px; display: grid; gap: 4px; padding: 14px; background: var(--white); border-radius: var(--r); box-shadow: 0 24px 60px -15px rgba(0,0,0,.3); }
.burger .sheet a:not(.btn) { padding: 12px 14px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.burger .sheet a:not(.btn):hover { background: var(--paper); }
.burger .sheet .btn { margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: .88rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- hero */
.hero { background: var(--ink); color: var(--on-ink); padding: 72px 0 96px; margin-top: -1px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: auto -10% -45% auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(45,91,255,.38), transparent 70%); pointer-events: none; }
[dir="rtl"] .hero::before { inset: auto auto -45% -10%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { color: var(--on-ink); }
.hero h1 em { font-style: normal; color: var(--on-ink-muted); display: block; font-weight: 700; }
.hero .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(1.07rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero .lead { color: #c4c6cb; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: #c4c6cb; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .i { color: var(--green); }

.hero-visual { position: relative; min-height: 470px; }
.mock { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r); padding: 20px; color: var(--on-ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.mock small { display: block; color: var(--on-ink-muted); font-size: .8rem; }
.mock-dash { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; max-width: 520px; margin-inline-start: auto; padding-bottom: 104px; }
.mock-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px; }
.mock-hello { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .8rem; }
.mock-kpi { border-radius: 22px; padding: 16px 18px; position: relative; overflow: hidden; }
.mock-kpi strong { display: block; font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }
.kpi-blue { background: var(--blue); grid-row: span 2; }
.kpi-blue small { color: rgba(255,255,255,.75); }
.kpi-blue .spark { color: rgba(255,255,255,.55); margin-top: 14px; width: 100%; }
.pill-soft { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: var(--pill); background: rgba(255,255,255,.18); font-size: .78rem; font-weight: 700; }
.kpi-dark { background: var(--ink-3); }
.kpi-dark small { display: flex; align-items: center; gap: 6px; }
.mock-list { grid-column: 1 / -1; display: grid; gap: 8px; }
.mock-list > small { margin: 4px 4px 0; }
.mock-list .row { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ink-3); border-radius: 16px; font-size: .92rem; }
.mock-list .row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list .row > span:last-child { font-weight: 700; }
.mock-list .row-flag { background: var(--yellow); color: var(--ink); }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .7rem; font-weight: 800; color: var(--ink); }
.av-g { background: var(--green); } .av-b { background: #b9c8ff; } .av-o { background: #fff; }
.st { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--pill); }
.st-green { background: rgba(159,232,181,.18); color: var(--green); }
.st-blue { background: rgba(107,140,255,.18); color: #9db2ff; }
.st-orange { background: var(--orange); color: var(--ink); }
.toast { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--white); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); font-size: .9rem; animation: float 6s ease-in-out infinite; }
[dir="rtl"] .toast { padding: 12px 12px 12px 18px; }
.toast b { display: block; font-weight: 700; white-space: nowrap; }
.toast small { color: var(--muted); white-space: nowrap; }
.toast-sign { bottom: 26px; inset-inline-start: -34px; }
.toast-pay { bottom: -30px; inset-inline-end: 28px; animation-delay: -2s; }
.toast-bell { top: -26px; inset-inline-end: -22px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink-3); color: var(--on-ink); flex: none; }
.ico .i { width: 22px; height: 22px; }
.ico-lilac { background: var(--lilac); color: var(--ink); } .ico-green { background: var(--green); color: var(--ink); } .ico-yellow { background: var(--yellow); color: var(--ink); } .ico-blue { background: var(--blue); color: #fff; }

/* ---------- sections */
.sec { padding: 96px 0; }
.sec-tight { padding: 40px 0 80px; }
.sec-soft { background: var(--paper-2); }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; }
.sec-head p { color: var(--muted); font-size: 1.12rem; }
.sec-ink .sec-head p { color: var(--on-ink-muted); }
.small-title { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; text-align: center; margin-bottom: 18px; }
.audience { padding: 40px 0; border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 9px 18px; border-radius: var(--pill); background: var(--white); font-weight: 600; font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { background: var(--white); border-radius: var(--r); padding: 30px 28px; }
.sec-soft .steps li { background: var(--white); }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 800; margin-bottom: 22px; }
.steps li:nth-child(2) .step-n { background: var(--blue); }
.steps li:nth-child(3) .step-n { background: var(--yellow); color: var(--ink); }
.steps li:nth-child(4) .step-n { background: var(--green); color: var(--ink); }
.steps p { color: var(--muted); margin: 0; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.feat { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r); padding: 26px; }
.feat h3 { margin: 18px 0 8px; }
.feat p { color: var(--on-ink-muted); font-size: .97rem; margin: 0; }
.feat-0 .ico { background: var(--blue); } .feat-1 .ico { background: var(--lilac); color: var(--ink); } .feat-2 .ico { background: var(--green); color: var(--ink); } .feat-3 .ico { background: var(--yellow); color: var(--ink); }

.spot { padding: 80px 0; }
.spot + .spot { padding-top: 0; }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spot-rev .spot-copy { order: 2; }
.spot-copy p { color: var(--muted); font-size: 1.08rem; }
.spot-visual { display: grid; place-items: center; padding: 48px 32px; border-radius: 36px; background: var(--white); min-height: 380px; }
.spot:nth-of-type(odd) .spot-visual { background: var(--blue-soft); }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { margin-top: .2em; color: #0f7a3a; background: rgba(159,232,181,.45); border-radius: 50%; padding: 3px; width: 1.4em; height: 1.4em; }
.sec-ink .checks .i, .side-card .checks .i { color: var(--ink); background: var(--green); }

.mock-sign { width: min(380px, 100%); background: var(--white); color: var(--ink); border: 0; }
.ms-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.paper-kind { color: var(--blue); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.amt-big { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.ms-lines { display: grid; gap: 9px; margin-bottom: 18px; }
.ms-lines i { height: 10px; border-radius: 6px; background: var(--paper); }
.ms-lines .short { width: 60%; }
.ms-pad { border: 1.5px dashed rgba(17,18,20,.2); border-radius: 16px; padding: 12px 14px; }
.ms-pad small { color: var(--muted); }
.sig { color: var(--blue); width: 100%; height: 60px; }
.ms-ok { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 600; font-size: .9rem; color: #0f7a3a; }
.mock-pay { width: min(360px, 100%); background: var(--white); color: var(--ink); border: 0; display: grid; gap: 12px; text-align: center; }
.mock-pay small { color: var(--muted); }
.mock-pay .amt-big { font-size: 2.6rem; margin-bottom: 6px; }
.paymethods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.paymethods span { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.mock-timeline { list-style: none; margin: 0; width: min(380px, 100%); display: grid; gap: 0; padding: 26px; }
.mock-timeline li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; position: relative; }
.mock-timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 6px; top: 34px; bottom: -12px; width: 2px; background: var(--ink-line); }
.mock-timeline .dot { width: 14px; height: 14px; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,213,74,.16); }
.mock-timeline li:first-child .dot { background: var(--lilac); box-shadow: 0 0 0 5px rgba(201,184,255,.16); }
.mock-timeline li.done .dot { background: var(--green); box-shadow: 0 0 0 5px rgba(159,232,181,.18); }
.mock-timeline b { font-weight: 600; font-size: .95rem; }
.mock-agenda { width: min(400px, 100%); display: grid; gap: 10px; }
.appt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; background: var(--ink-3); border-radius: 16px; }
.appt b { display: block; font-weight: 600; }
.appt time { font-size: .82rem; color: var(--on-ink-muted); white-space: nowrap; }

.photo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: end; }
.ph img { width: 100%; border-radius: 32px; object-fit: cover; }
.ph-1 img { aspect-ratio: 4 / 4.2; }
.ph-2 img { aspect-ratio: 16 / 10; margin-top: 24px; }
.photo-copy p { color: var(--muted); font-size: 1.08rem; }

/* ---------- pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin-inline: auto; }
.plan { position: relative; background: var(--white); border-radius: var(--r); padding: 34px; display: flex; flex-direction: column; }
.plan .checks { flex: 1; align-content: start; }
.plan h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan-desc { color: var(--muted); min-height: 3.2em; }
.plan-price { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 26px; }
.plan-price .amount { font-size: 3.6rem; font-weight: 800; letter-spacing: -.04em; line-height: .9; }
.plan-price .per { color: var(--muted); font-size: .95rem; line-height: 1.3; }
.plan-price em { font-style: normal; font-weight: 600; color: var(--blue); }
.plan-pro { background: var(--ink); color: var(--on-ink); }
.plan-pro .plan-desc, .plan-pro .per { color: var(--on-ink-muted); }
.plan-pro .plan-price em { color: var(--yellow); }
.plan-pro .checks .i { color: var(--ink); background: var(--green); }
.badge { position: absolute; top: 26px; inset-inline-end: 26px; padding: 5px 12px; border-radius: var(--pill); background: var(--yellow); color: var(--ink); font-size: .78rem; font-weight: 800; }
.plans-fee { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 0; color: var(--muted); text-align: center; }
.plans-fee a { font-weight: 600; color: var(--blue); }
.fee-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.fee-grid p { color: var(--muted); font-size: 1.08rem; }
.fee-card { background: var(--blue); color: #fff; border-radius: var(--r); padding: 30px; }
.fee-card h3 { color: rgba(255,255,255,.85); font-weight: 600; font-size: 1rem; margin-bottom: 16px; }
.fee-card dl { margin: 0; display: grid; gap: 4px; }
.fee-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.fee-card dl div:last-child { border: 0; }
.fee-card dd { margin: 0; font-weight: 800; white-space: nowrap; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--r); margin-top: 28px; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 15px 22px; text-align: start; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp tbody th { font-weight: 500; }
.cmp td { text-align: center; font-weight: 700; width: 22%; }
.cmp thead th:not(:first-child) { text-align: center; }
.cmp tr:last-child > * { border-bottom: 0; }
.cmp .yes { margin-inline: auto; color: #0f7a3a; width: 22px; height: 22px; }
.cmp .no { color: var(--faint); }

/* ---------- page heads, content */
.page-hero { padding: 48px 0 56px; }
.page-hero .lead { margin-inline: 0; }
.center .lead { margin-inline: auto; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.res { position: relative; display: block; background: var(--white); border-radius: var(--r); padding: 30px 30px 70px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.res:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.35); }
.res p { color: var(--muted); margin: 0; }
.res-go { position: absolute; bottom: 24px; inset-inline-start: 30px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); }
.res:nth-child(2) .res-go { background: var(--lilac); } .res:nth-child(3) .res-go { background: var(--green); }

.faq { display: grid; gap: 10px; }
.faq h2 { margin-bottom: 18px; }
.faq details { background: var(--white); border-radius: var(--r-sm); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 24px; font-weight: 600; font-size: 1.05rem; }
.faq summary .i { transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 30px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--pill); background: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem; }
.toc a:hover { background: var(--ink); color: var(--on-ink); }
.feat-list { display: grid; gap: 16px; padding-bottom: 90px; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; background: var(--white); border-radius: var(--r); }
.feat-row-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 18px 0 10px; }
.feat-row-head p { color: var(--muted); margin: 0; }
.feat-row .checks { margin: 0; align-self: center; }

.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tpl-fig { margin: 0; }
.tpl-fig figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 12px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.two-col p { color: var(--muted); }
.side-card { background: var(--ink); color: var(--on-ink); border-radius: var(--r); padding: 32px; position: sticky; top: 96px; }
.side-card h2 { font-size: 1.5rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--blue-soft); color: var(--ink) !important; font-size: .95rem; }
.notice .i { color: var(--blue); margin-top: .2em; }

/* paper document */
.paper { background: var(--white); color: var(--ink); border-radius: 22px; padding: 32px; font-size: .86rem; line-height: 1.5; box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); }
.paper-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.paper-head .paper-kind { display: block; font-size: 1.9rem; line-height: 1; }
.paper-no { display: block; font-weight: 700; margin-top: 6px; }
.paper-from { text-align: end; display: grid; color: var(--muted); }
.paper-from strong { color: var(--ink); font-size: 1rem; }
.paper-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.paper-meta small { display: block; color: var(--muted); font-size: .75rem; }
.paper-meta strong { display: block; }
.paper-meta span { color: var(--muted); }
.paper table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.paper th { font-size: .72rem; color: var(--muted); font-weight: 600; text-align: end; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.paper td { text-align: end; padding: 10px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.paper th:first-child, .paper td:first-child { text-align: start; white-space: normal; }
.paper-tot { margin: 0 0 0 auto; width: min(260px, 100%); display: grid; gap: 4px; }
[dir="rtl"] .paper-tot { margin: 0 auto 0 0; }
.paper-tot div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.paper-tot dd { margin: 0; }
.paper-tot .grand { color: var(--ink); font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.paper-sign { margin-top: 18px; border: 1.5px dashed rgba(17,18,20,.2); border-radius: 14px; padding: 10px 14px; }
.paper-sign small { color: var(--muted); }
.paper-sign .sig { height: 46px; }
.paper-foot { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

/* ---------- generator */
.gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gen-form, .form { display: grid; gap: 16px; background: var(--white); padding: 28px; border-radius: var(--r); }
.gen-form label, .form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.gen-form label > span, .form label > span { color: var(--muted); }
input, textarea, select { font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); width: 100%; padding: 12px 14px; border: 1.5px solid transparent; background: var(--paper-2); border-radius: 14px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); background: #fff; }
textarea { resize: vertical; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-flex; border: 0; margin: 0; padding: 5px; background: var(--paper); border-radius: var(--pill); width: max-content; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; }
.seg span { display: block; padding: 9px 20px; border-radius: var(--pill); font-weight: 700; color: var(--muted) !important; }
.seg input:checked + span { background: var(--ink); color: var(--on-ink) !important; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); }
.lines { display: grid; gap: 8px; }
.line, .line-head { display: grid; grid-template-columns: minmax(0, 1fr) 72px 104px 40px; gap: 8px; align-items: center; }
.line input { min-width: 0; padding-inline: 12px; }
.line-head { font-size: .8rem; font-weight: 600; color: var(--muted); padding-inline: 4px; }
#add { justify-self: start; }
.gen-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.gen-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gen-bar div { display: flex; gap: 8px; }
.gen-preview { min-height: 420px; }
.gen-preview .pv-pre { white-space: pre-line; }
.gen-preview .pv-empty { color: var(--faint); }
.upsell { background: var(--ink); color: var(--on-ink); border-radius: var(--r); padding: 28px; }
.upsell h2 { font-size: 1.4rem; }
.upsell p { color: var(--on-ink-muted); }
.num-list { padding-inline-start: 1.3em; display: grid; gap: 8px; }

/* ---------- contact & prose */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-ph img { aspect-ratio: 4 / 5; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; }
.alert-ok { background: rgba(159,232,181,.5); }
.alert-err { background: rgba(255,107,94,.18); }
.form .btn { justify-self: start; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p { color: var(--muted); }
.big404 { font-size: 7rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 0 0 10px; color: var(--blue); }

/* ---------- footer */
.foot { background: var(--ink); color: var(--on-ink); padding: 80px 0 36px; }
.foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 44px; border-radius: 36px; background: var(--blue); margin-bottom: 72px; }
.foot-cta h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 18ch; }
.foot-cta p { color: rgba(255,255,255,.82); margin: 0; max-width: 52ch; }
.foot-cta-act { display: grid; gap: 10px; justify-items: center; flex: none; }
.foot-cta-act small { color: rgba(255,255,255,.75); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.foot-grid h3 { font-size: .85rem; color: var(--on-ink-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
[dir="rtl"] .foot-grid h3 { letter-spacing: 0; }
.foot-grid a:not(.logo) { display: block; text-decoration: none; color: #d6d7da; padding: 4px 0; font-size: .95rem; }
.foot-grid a:not(.logo):hover { color: #fff; text-decoration: underline; }
.foot-brand p { color: var(--on-ink-muted); font-size: .95rem; margin-top: 16px; max-width: 36ch; }
.copy { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--ink-line); color: var(--on-ink-muted); font-size: .88rem; }

/* ---------- premium layer: art, tour, phones, compliance, motion */
.art { display: block; width: 100%; height: auto; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .art { width: 100%; height: 100%; }
.hero::before { opacity: .6; }
.hero-grid { z-index: 1; }
.hero h1 em { background: linear-gradient(100deg, #9da9c9 0%, #c9b8ff 45%, #9fe8b5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-yellow { position: relative; overflow: hidden; }
.btn-yellow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-yellow:hover::after { transform: translateX(120%); }

.trust { background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--ink-line); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; list-style: none; margin: 0 auto; padding: 20px 0 24px; }
.trust-list li { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600; color: #c4c6cb; }
.trust-list .i { color: var(--green); }
.trust-list .trust-at { color: var(--on-ink); }
.trust-list .trust-at .i { color: var(--yellow); }

.tour { background: radial-gradient(1200px 500px at 50% 0%, #fff 0%, var(--paper) 70%); overflow: hidden; }
.tour-box { display: grid; gap: 26px; justify-items: center; }
.tour-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; background: var(--white); border-radius: var(--pill); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.tour-tabs label { padding: 10px 18px; border-radius: var(--pill); font-weight: 700; font-size: .95rem; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.tour-tabs label:hover { color: var(--ink); }
.tour-stage { width: 100%; max-width: 1100px; }
.tp { display: none; margin: 0; }
.tp figcaption { text-align: center; color: var(--muted); margin-top: 18px; font-size: 1.02rem; }
.tour-box input:nth-of-type(1):checked ~ .tour-stage .tp:nth-child(1),
.tour-box input:nth-of-type(2):checked ~ .tour-stage .tp:nth-child(2),
.tour-box input:nth-of-type(3):checked ~ .tour-stage .tp:nth-child(3),
.tour-box input:nth-of-type(4):checked ~ .tour-stage .tp:nth-child(4),
.tour-box input:nth-of-type(5):checked ~ .tour-stage .tp:nth-child(5) { display: block; animation: tp-in .5s ease both; }
.tour-box input:nth-of-type(1):checked ~ .tour-tabs label:nth-child(1),
.tour-box input:nth-of-type(2):checked ~ .tour-tabs label:nth-child(2),
.tour-box input:nth-of-type(3):checked ~ .tour-tabs label:nth-child(3),
.tour-box input:nth-of-type(4):checked ~ .tour-tabs label:nth-child(4),
.tour-box input:nth-of-type(5):checked ~ .tour-tabs label:nth-child(5) { background: var(--ink); color: var(--on-ink); }
.tour-box input:focus-visible ~ .tour-tabs { outline: 3px solid var(--blue); outline-offset: 3px; }
@keyframes tp-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.frame { border-radius: 22px; overflow: hidden; background: #0d0e10; border: 1px solid rgba(17,18,20,.12); box-shadow: 0 50px 100px -40px rgba(17,18,20,.55), 0 0 0 10px rgba(255,255,255,.55); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #1b1d21; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b5e; }
.frame-bar i:nth-child(2) { background: #ffd54a; } .frame-bar i:nth-child(3) { background: #9fe8b5; }
.frame-bar span { margin-inline: auto; padding: 3px 14px; border-radius: 8px; background: #2a2d33; color: #9a9da3; font-size: .75rem; font-weight: 600; transform: translateX(-20px); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.cview { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.cview::before { content: ""; position: absolute; inset: -30% -10% auto; height: 80%; background: radial-gradient(closest-side, rgba(45,91,255,.35), transparent); pointer-events: none; }
.cview .sec-head p { color: var(--on-ink-muted); }
.cview .eyebrow { color: var(--yellow); }
.cview > .wrap { position: relative; z-index: 1; }
.cview-spark { position: absolute; width: 180px; top: 60px; inset-inline-end: 6%; opacity: .9; }
.phones { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: start; max-width: 1000px; margin-inline: auto; }
.phone-card { margin: 0; display: grid; gap: 20px; justify-items: center; text-align: center; }
.phone-card:nth-child(2) { margin-top: -36px; }
.phone-card figcaption b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.phone-card figcaption span { color: var(--on-ink-muted); font-size: .95rem; }
.phone { position: relative; width: min(280px, 100%); padding: 28px 10px 12px; border-radius: 44px; background: linear-gradient(145deg, #3a3d44, #15161a); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .4s ease; }
.phone:hover { transform: translateY(-8px) rotate(-1deg); }
.phone img { width: 100%; border-radius: 10px 10px 34px 34px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #0d0e10; }
.phone-notch { position: absolute; top: 11px; left: 50%; width: 26%; height: 7px; transform: translateX(-50%); background: #0b0c0e; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }

.flow-line { height: 40px; margin: -12px 0 18px; }
.flow-line .art { height: 40px; }

.compliance { background: var(--white); }
.comp-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.comp-art { width: 100%; max-width: 380px; margin-inline: auto; }
.comp-status + .link { display: flex; width: max-content; margin-top: 18px; }
.comp-status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: .92rem; }
.comp-status .i { color: var(--yellow); }

.foot-cta { position: relative; overflow: hidden; }
.foot-cta > * { position: relative; }
.foot-cta > .foot-rings { position: absolute; width: 640px; inset-inline-end: -180px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.feat { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.feat:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); background: #1d2025; }
.steps li { transition: transform .25s ease, box-shadow .25s ease; }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.4); }

/* page art (Portugal page) */
.pt-hero { padding: 40px 0 72px; }
.pt-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pt-art { width: 100%; max-width: 460px; margin-inline: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.badges li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--pill); background: var(--white); font-weight: 700; font-size: .85rem; }
.badges .i { color: var(--blue); }
.vat-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; }
.vat-table th, .vat-table td { padding: 15px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.vat-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vat-table td:last-child { font-weight: 800; white-space: nowrap; }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: block; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .comp-grid, .pt-grid { grid-template-columns: 1fr; gap: 36px; }
  .comp-art, .pt-art { max-width: 280px; }
  .phones { grid-template-columns: 1fr; gap: 48px; }
  .phone-card:nth-child(2) { margin-top: 0; }
  .flow-line { display: none; }
  .cview > .wrap { position: relative; z-index: 1; }
.cview-spark { width: 110px; top: 24px; }
  .frame { border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(17,18,20,.55), 0 0 0 6px rgba(255,255,255,.55); }
  .frame-bar { height: 28px; }
  .frame-bar span { display: none; }
  .tour-tabs label { padding: 8px 13px; font-size: .88rem; }
  .hero { padding: 48px 0 72px; }
  .hero-grid, .spot-grid, .photo-grid, .fee-grid, .tpl-grid, .two-col, .gen, .contact-grid, .feat-row { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 0; padding: 20px 0 40px; }
  .mock-dash { margin-inline: auto; }
  .toast-sign { inset-inline-start: -6px; }
  .toast-bell { inset-inline-end: -6px; }
  .spot-rev .spot-copy { order: 0; }
  .spot-visual { min-height: 0; padding: 32px 18px; }
  .sec { padding: 72px 0; }
  .spot { padding: 56px 0; }
  .steps, .res-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .foot-cta { flex-direction: column; align-items: flex-start; padding: 32px; }
  .foot-cta-act { justify-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .side-card, .gen-side { position: static; }
  .feat-row { padding: 28px; }
}
@media (max-width: 560px) {
  .wrap, .narrow { width: calc(100% - 28px); }
  .top-in { height: 64px; gap: 10px; }
  .login, .top-act > .btn { display: none; }
  .langs summary span { display: none; }
  .burger .sheet { top: 70px; }
  .feat-grid, .steps-4 { grid-template-columns: 1fr; }
  .hero-act .btn { width: 100%; }
  .mock-dash { grid-template-columns: 1fr 1fr; padding: 14px 14px 112px; }
  .mock-kpi strong { font-size: 1.4rem; }
  .mock-list .row { grid-template-columns: 30px 1fr auto; }
  .mock-list .row .st { display: none; }
  .toast { padding: 9px 14px 9px 9px; font-size: .8rem; }
  .toast .ico { width: 34px; height: 34px; border-radius: 11px; }
  .f2 { grid-template-columns: 1fr; }
  .line, .line-head { grid-template-columns: minmax(0, 1fr) 54px 78px 36px; gap: 6px; }
  .line .icon-btn { width: 36px; height: 36px; }
  .gen-bar div { width: 100%; }
  .gen-bar .btn { flex: 1; }
  .gen-form, .form { padding: 18px; }
  .paper { padding: 20px; font-size: .8rem; }
  .paper-meta { grid-template-columns: 1fr 1fr; }
  .paper-meta > div:first-child { grid-column: 1 / -1; }
  .plan { padding: 26px; }
  .plan-price .amount { font-size: 3rem; }
  .cmp th, .cmp td { padding: 12px 12px; font-size: .9rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- print: only the generated document */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  body.p-generator > *:not(main), body.p-generator main > *:not(:has(#preview)), body.p-generator .gen-form, body.p-generator .gen-bar, body.p-generator .gen-side > *:not(#preview), body.p-generator .page-hero, body.p-generator .crumbs { display: none !important; }
  body.p-generator .sec { padding: 0; }
  body.p-generator .gen { display: block; width: 100%; }
  body.p-generator .gen-side { position: static; display: block; }
  .paper { box-shadow: none; padding: 0; font-size: 10.5pt; }
}
details:not([open]) > .sheet, details:not([open]) > ul { display: none; }
.gen > *, .gen-form > *, .f2 > *, .f4 > *, .gen-form label > * { min-width: 0; }
