/*
  Public landing page. Built on tokens.css and site.css; everything here is page layout.
  Light and calm: white and sand surfaces, Gulf green for action, gold only for the one thing that
  is time-sensitive (the next deadline). The faint eight-point star is the only ornament.
  No gradient fills, no glows, no rounded-full badges (docs/UI-DESIGN-SYSTEM.md §2).
*/
.site { background: var(--surface); }
.site-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.site h1, .site h2, .site h3 { color: var(--text); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; gap: 40px; height: 68px; }
.site-header .brand { padding: 0; }
.brand-arabic { margin-left: 4px; color: var(--accent-700); font-weight: 500; }
.site-nav { display: flex; gap: 4px; margin-right: auto; }
.site-nav a { padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }
.site-actions { display: flex; gap: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }

.site-menu { display: none; position: relative; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 220px; padding: 6px;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
}
.site-menu-panel a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.site-menu-panel a:hover { background: var(--surface-alt); text-decoration: none; }

/* ---------- Shared type ---------- */

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--primary-700); }
.eyebrow-mark { width: 8px; height: 8px; background: var(--accent-500); transform: rotate(45deg); flex: none; }
.section { padding: 112px 0; }
.section-tint { background: var(--canvas); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 56px; }
.section-head.center, .center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }
.section-title { font-size: 42px; line-height: 50px; font-weight: 600; letter-spacing: -.028em; text-wrap: balance; }
.section-lead { font-size: 17px; line-height: 28px; color: var(--text-muted); text-wrap: pretty; }
.footnote { margin-top: 28px; font-size: 12px; line-height: 18px; color: var(--text-muted); max-width: 720px; }
.footnote.center { max-width: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--admin-50);
  border-bottom: 1px solid var(--admin-100);
}
/* The star pattern sits behind the product, faded out before it reaches the headline. */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23B7892F' stroke-opacity='.16'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 78%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 78%, #000 25%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 72px; padding-top: 80px; padding-bottom: 104px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 960px; text-align: center; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--accent-100); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 13px; line-height: 20px;
  box-shadow: var(--shadow-sm);
}
.announce:hover { border-color: var(--accent-500); color: var(--text); text-decoration: none; }
.announce-tag { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--accent-50); color: var(--accent-700); font-weight: 600; font-size: 12px; }
.announce-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.announce .icon { color: var(--accent-700); }
.hero-title { margin-top: 28px; font-size: 68px; line-height: 72px; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.hero-accent { color: var(--primary-600); }
.hero-lead { margin-top: 24px; font-size: 19px; line-height: 30px; color: var(--text-muted); max-width: 720px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 28px; font-size: 14px; color: var(--text-muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--primary-600); }

/* Product window, drawn in HTML so it stays sharp and matches the real product. */
.hero-visual { position: relative; width: 100%; max-width: 1040px; }
.window {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -32px rgba(16, 24, 20, .24), 0 2px 6px rgba(16, 24, 20, .05);
  overflow: hidden; font-size: 12px; line-height: 18px; text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-bar p { margin-left: 10px; color: var(--text-muted); font-weight: 500; }
.window-bar b { color: var(--text-subtle); font-weight: 400; margin: 0 4px; }
.window-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); }

.window-side { display: flex; flex-direction: column; gap: 1px; padding: 14px 10px; border-right: 1px solid var(--border); background: var(--surface); }
.side-client { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-weight: 500; color: var(--text); white-space: nowrap; }
.side-mark { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 6px; background: var(--accent-50); color: var(--accent-700); font-size: 10px; font-weight: 600; }
.side-label { padding: 10px 8px 4px; font-size: 10px; line-height: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.side-link { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; color: var(--text-muted); }
.side-link.is-active { background: var(--primary-50); color: var(--primary-700); font-weight: 500; }
.side-link.is-active::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary-600); }

.window-main { display: flex; flex-direction: column; min-width: 0; background: var(--canvas); }
.window-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.window-sub { color: var(--text-muted); }
.window-actions { display: flex; gap: 6px; }
.mock-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); font-weight: 500; white-space: nowrap; }
.mock-btn.is-primary { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.window-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; padding: 16px 20px 20px; }

.invoice { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.invoice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invoice-kind, .invoice-label, .lifecycle-title { font-size: 10px; line-height: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.invoice-no { font-family: var(--font-mono); font-size: 17px; line-height: 24px; font-weight: 500; color: var(--text); }
.invoice-head .badge { font-size: 12px; }
.invoice-parties { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.invoice-party { margin-top: 2px; font-weight: 500; font-size: 13px; color: var(--text); }
.invoice-trn { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.invoice-dates { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; text-align: right; font-variant-numeric: tabular-nums; }
.invoice-dates .invoice-label { text-align: left; }
.invoice-lines { width: 100%; border-collapse: collapse; }
.invoice-lines th { text-align: left; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.invoice-lines td { padding: 8px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.invoice-lines .num { text-align: right; padding-left: 12px; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.invoice-lines th.num { font-family: var(--font-sans); font-size: 10px; }
.invoice-totals { display: grid; grid-template-columns: 1fr auto; margin-left: auto; width: min(240px, 100%); font-variant-numeric: tabular-nums; }
.invoice-totals dt { padding: 2px 0; color: var(--text-muted); }
.invoice-totals dd { padding: 2px 0 2px 24px; text-align: right; font-family: var(--font-mono); font-size: 11px; }
.invoice-totals .grand { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 13px; }
.invoice-totals dt.grand { font-family: var(--font-sans); }

.lifecycle { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 14px; }
.lifecycle ol { display: flex; flex-direction: column; }
.lifecycle li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 0 0 18px 20px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lifecycle li:last-child { padding-bottom: 0; }
.lifecycle li::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 2px; background: var(--primary-600); }
.lifecycle li::after { content: ""; position: absolute; left: 4px; top: 16px; bottom: 2px; width: 1px; background: var(--primary-100); }
.lifecycle li:last-child::after { display: none; }
.lifecycle li b { color: var(--text); font-weight: 500; }
.lifecycle-trace { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }

.float { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); font-size: 12px; line-height: 18px; text-align: left; }
.float-collect { left: -64px; bottom: 48px; width: 228px; padding: 14px 16px; }
.float-label { color: var(--text-muted); }
.float-value { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text); }
.float-value span { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-right: 5px; letter-spacing: 0; }
.aging { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-top: 10px; }
.aging span { flex: 1; height: var(--h); min-height: 3px; border-radius: 3px 3px 0 0; background: var(--primary-500); }
.aging span + span { background: var(--primary-100); }
.aging span.is-late { background: var(--danger); }
.aging-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--text-muted); }
.float-toast { top: 352px; right: -52px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; }
.toast-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--success-bg); color: var(--success); flex: none; }
.toast-title { font-weight: 600; color: var(--text); font-size: 13px; }
.toast-text { color: var(--text-muted); }

/* ---------- Facts ---------- */

.facts { border-bottom: 1px solid var(--border); }
.facts-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts p { display: flex; flex-direction: column; gap: 2px; padding: 28px 24px; border-left: 1px solid var(--border); }
.facts p:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.facts span { font-size: 13px; line-height: 20px; color: var(--text-muted); }

/* ---------- Mandate timeline ---------- */

.mandate { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mandate::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--border); }
.mandate-step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 32px 24px 0 0; }
.mandate-step.is-past::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--primary-600); }
.mandate-marker { position: absolute; z-index: 1; left: 0; top: 0; width: 12px; height: 12px; border-radius: 3px; background: var(--surface); border: 2px solid var(--border-strong); }
.is-past .mandate-marker { background: var(--primary-600); border-color: var(--primary-600); }
.is-next .mandate-marker { background: var(--accent-500); border-color: var(--accent-500); box-shadow: 0 0 0 4px var(--accent-100); }
.mandate-date { font-size: 13px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.mandate-step h3 { font-size: 15px; line-height: 22px; font-weight: 600; }
.mandate-detail { font-size: 13px; line-height: 20px; color: var(--text-muted); }
.is-past .mandate-date, .is-past h3 { color: var(--text-muted); }
.mandate-when { align-self: flex-start; margin-top: 10px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--primary-700); }
.is-next .mandate-when { padding: 2px 8px; border: 1px solid var(--accent-100); border-radius: 6px; background: var(--accent-50); color: var(--accent-700); font-weight: 600; }

/* ---------- How it works ---------- */

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; top: 34px; right: -13px; width: 10px; height: 10px;
  border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong); transform: rotate(45deg); background: var(--canvas);
}
.flow-no { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--primary-700); font-weight: 500; }
.flow-step h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.flow-step p { color: var(--text-muted); line-height: 22px; }
.flow-step .badge { margin-top: auto; padding-top: 16px; font-size: 12px; }
.flow-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.flow-notes li { display: flex; gap: 12px; color: var(--text-muted); line-height: 22px; }
.flow-notes .icon { color: var(--primary-600); margin-top: 2px; }

/* ---------- Product bento ---------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s ease; }
.bento-card:hover { border-color: var(--border-strong); }
.bento-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.bento-copy { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.bento-copy h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.bento-copy p { color: var(--text-muted); line-height: 22px; }
.bento-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: var(--radius-sm); background: var(--primary-50); color: var(--primary-700); }
.bento-visual { margin-top: auto; padding: 20px 24px 24px; background: var(--surface-alt); border-top: 1px solid var(--border); font-size: 12px; line-height: 18px; }
.bento-wide .bento-visual { margin-top: 0; display: flex; align-items: center; border-top: 0; border-left: 1px solid var(--border); padding: 28px; }

.mini-editor { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.mini-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px 62px 30px 66px; gap: 8px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mini-row span:not(:first-child) { text-align: right; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.mini-row span:first-child { overflow: hidden; text-overflow: ellipsis; }
.mini-head { background: var(--surface-alt); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.mini-head span:not(:first-child) { font-family: var(--font-sans); font-size: 10px; }
.mini-row.is-typing span:first-child { color: var(--text); box-shadow: inset 0 0 0 1px var(--primary-600), 0 0 0 3px var(--primary-100); border-radius: 6px; padding: 3px 6px; margin: -4px -7px; }
.caret { display: inline-block; width: 1px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--primary-600); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--text-muted); }
.mini-total b { margin-left: 6px; color: var(--text); font-weight: 600; font-family: var(--font-mono); font-size: 12px; }

.mini-aging { display: flex; flex-direction: column; gap: 8px; }
.mini-aging div { display: grid; grid-template-columns: 48px minmax(0, 1fr) 56px; gap: 10px; align-items: center; }
.mini-aging span { grid-column: 2; grid-row: 1; height: 8px; width: var(--w); min-width: 4px; border-radius: 2px; background: var(--primary-500); }
.mini-aging div + div span { background: var(--primary-100); }
.mini-aging .is-late span { background: var(--danger); }
.mini-aging b { grid-column: 1; grid-row: 1; font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mini-aging em { grid-column: 3; grid-row: 1; font-style: normal; text-align: right; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.mini-aging .is-late em, .mini-aging .is-late b { color: var(--danger); }

.mini-vat { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; }
.mini-vat dt { color: var(--text-muted); }
.mini-vat dd { padding-left: 16px; text-align: right; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.mini-vat .grand { padding-top: 8px; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 13px; }
.mini-vat dt.grand { font-family: var(--font-sans); }

.mini-entities { display: flex; flex-direction: column; gap: 4px; }
.mini-entities li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-muted); }
.mini-entities li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-entities li em { font-style: normal; font-size: 11px; color: var(--text-muted); }
.mini-entities .is-current { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; }
.mini-entities .is-current .icon { color: var(--primary-600); }

.mini-journal { display: flex; flex-direction: column; }
.mini-journal div { display: grid; grid-template-columns: minmax(0, 1fr) 68px 68px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mini-journal div:last-child { border-bottom: 0; }
.mini-journal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-journal em { font-style: normal; text-align: right; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.mini-journal .is-balanced { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--border-strong); color: var(--success); font-weight: 500; }
.mini-journal .is-balanced span { display: inline-flex; align-items: center; gap: 6px; }
.mini-journal .is-balanced em { color: var(--text); }

.also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.also li { display: flex; gap: 14px; }
.also .icon { color: var(--primary-600); margin-top: 3px; }
.also h3 { font-size: 15px; line-height: 22px; font-weight: 600; }
.also p { margin-top: 4px; color: var(--text-muted); line-height: 22px; }

/* ---------- Trust ---------- */

.trust-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.trust-wrap .section-head { margin-bottom: 0; position: sticky; top: 108px; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.trust-item { display: flex; flex-direction: column; gap: 8px; padding: 28px; background: var(--surface); }
.trust-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: var(--radius-sm); background: var(--accent-50); color: var(--accent-700); }
.trust-item h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.trust-item p { color: var(--text-muted); line-height: 22px; }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 20px; align-items: stretch; }
.plans-1 { grid-template-columns: minmax(0, 400px); justify-content: center; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.plan.is-featured { border-color: var(--primary-600); box-shadow: 0 0 0 1px var(--primary-600), var(--shadow-md); }
.plan-flag { padding: 2px 8px; border-radius: 6px; background: var(--primary-50); color: var(--primary-700); font-size: 12px; line-height: 18px; font-weight: 600; }
.plan-price { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-currency { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-right: 6px; letter-spacing: 0; }
.plan-period { font-size: 14px; font-weight: 400; color: var(--text-muted); margin-left: 4px; letter-spacing: 0; }
.plan-users { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; margin-top: -8px; }
.plan .ticks { flex: 1; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; line-height: 20px; gap: 8px; }
.plan-solo { max-width: 520px; margin: 0 auto; text-align: center; align-items: center; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .icon { color: var(--primary-600); margin-top: 2px; flex: none; }
.ticks li.is-off { color: var(--text-subtle); }
.ticks li.is-off .icon { color: var(--text-subtle); }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 500; font-size: 16px; line-height: 24px; cursor: pointer; list-style: none; }
.faq summary:hover { color: var(--primary-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; text-align: center; font-size: 20px; line-height: 24px; color: var(--text-muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 22px 0; color: var(--text-muted); line-height: 24px; }

/* ---------- Call to action ---------- */

.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 32px;
  padding: 56px;
  border: 1px solid var(--admin-100); border-radius: 20px;
  background: var(--admin-50);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23B7892F' stroke-opacity='.16'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta-copy { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.cta-title { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.028em; text-wrap: balance; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--surface-alt); }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.site-footer .brand { padding: 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-title { font-size: 60px; line-height: 64px; }
  .float-collect { left: -16px; bottom: -32px; }
  .float-toast { right: -16px; }
  .mandate { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .mandate::before { display: none; }
  .mandate-step::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--border); }
  .mandate-step.is-past::after { background: var(--primary-600); }
  .mandate-step.is-past::before { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2)::after { display: none; }
  .also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .site-wrap { padding: 0 24px; }
  .site-nav { display: none; }
  .site-actions { margin-left: auto; }
  .site-menu { display: block; }
  .trust-wrap, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-top: 56px; padding-bottom: 88px; gap: 56px; }
  .hero-title { font-size: 50px; line-height: 56px; }
  .hero-lead { font-size: 17px; line-height: 28px; }
  .section { padding: 80px 0; }
  .section-title { font-size: 34px; line-height: 42px; }
  .trust-wrap .section-head { position: static; }
  .trust-wrap, .faq-wrap { gap: 40px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: 1 / -1; }
  .facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts p:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts p:nth-child(n+3) { border-top: 1px solid var(--border); }
  .flow-notes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cta { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 40px; }
  .cta-title { font-size: 34px; line-height: 42px; }
  .site-footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .plans-3, .plans-4 { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .window-side { display: none; }
  .window-grid { grid-template-columns: minmax(0, 1fr) 180px; }
  .float-collect { display: none; }
}

@media (max-width: 640px) {
  .site-wrap { padding: 0 16px; }
  .site-header-inner { gap: 12px; height: 60px; }
  .site-actions .btn-ghost { display: none; }
  .site-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .brand-arabic { display: none; }
  .hero-inner { padding-top: 32px; padding-bottom: 48px; gap: 48px; }
  .hero-title { font-size: 36px; line-height: 42px; letter-spacing: -.032em; }
  .hero-lead { font-size: 16px; line-height: 26px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-points { flex-direction: column; align-items: flex-start; text-align: left; }
  .window-head { padding: 12px 14px; }
  .window-actions .mock-btn:not(.is-primary) { display: none; }
  .window-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .lifecycle ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .lifecycle li { padding-bottom: 0; }
  .lifecycle li::after { display: none; }
  .invoice { padding: 16px; }
  .invoice-lines th:nth-child(2), .invoice-lines td:nth-child(2) { display: none; }
  .float-collect { display: none; }
  .float-toast { position: relative; top: auto; right: auto; margin: -24px 12px 0 auto; width: max-content; max-width: calc(100% - 24px); }
  .facts strong { font-size: 17px; }
  .facts p { padding: 20px 12px; }
  .facts p:nth-child(odd) { padding-left: 0; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 28px; line-height: 36px; letter-spacing: -.022em; }
  .section-lead { font-size: 16px; line-height: 26px; }
  .mandate { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .mandate-step { padding: 0 0 28px 32px; }
  .mandate-step:last-child { padding-bottom: 0; }
  .mandate-step::after { left: 5px; right: auto; top: 14px; bottom: -2px; width: 2px; height: auto; }
  .mandate-step:last-child::after { display: none; }
  .mandate-marker { top: 4px; }
  .flow, .bento, .also, .trust, .plans-2 { grid-template-columns: minmax(0, 1fr); }
  .flow-step::after { display: none; }
  .bento-wide { display: flex; }
  .bento-wide .bento-visual { border-left: 0; border-top: 1px solid var(--border); padding: 20px 16px; }
  .mini-row { grid-template-columns: minmax(0, 1fr) 28px 64px 64px; padding: 9px 10px; }
  .mini-row span:nth-child(4) { display: none; }
  .also { gap: 24px; }
  .cta { padding: 28px 20px; border-radius: var(--radius-lg); }
  .cta-title { font-size: 28px; line-height: 36px; }
  .cta-actions .btn { flex: 1 1 auto; }
  .faq details p { padding-right: 0; }
  .site-footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}
