/*
 * The public page for madarcore.app (design docs/plans/mockups/site-home, approved 2026-10-21).
 *
 * Plain CSS, no build step: the page changes rarely and has no application logic. It reuses
 * the product's own colours (merchant-web index.css) so the site and the app a merchant signs
 * into read as one company, and is written with logical properties throughout (CLAUDE.md §14.1)
 * so an English, left-to-right version needs no new layout.
 *
 * Everything is served from this site — the font (IBM Plex Sans Arabic, OFL) and the hairline
 * figures (MIT) — because its content policy loads nothing from anywhere else.
 */

@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/400-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/500-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/600-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/700-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic/700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Tokens — the product's own (merchant-web index.css), so the site and the app read as one company. */
:root {
--primary: #0f766e; --primary-deep: #0b4f4a; --primary-soft: #e3f2ef; --primary-glow: #14b8a6;
--amber: #d97706; --amber-soft: #fef3c7;
--ink: #0f1d1b; --ink-soft: #3d4f4c; --muted: #6a7b78;
--ground: #f7faf9; --surface: #ffffff; --line: #e1ebe8; --line-strong: #cfdcd8;
--night: #071513; --night-2: #0c211e; --night-line: #1b3833; --night-ink: #e8f3f0; --night-muted: #93aaa5;
--radius: 20px; --radius-sm: 12px;
--shadow: 0 1px 2px rgb(15 29 27 / 4%), 0 12px 32px -12px rgb(15 29 27 / 14%);
/* hairline figures, tuned to the brand */
--hairline-plate: var(--surface); --hairline-hi: var(--primary); --hairline-edge: #2b3d3a;
--hairline-mid: #7d8f8b; --hairline-lo: #c9d6d3; --hairline-stroke: 1;
/* The designers page (/designers/): a check passed or failed, and the two marker colours a graphic
   designer paints the merchant's identity with (DOCUMENT_TEMPLATES_PLAN §12.1) — fixed by that plan. */
--ok: #15803d; --ok-bg: #dcfce7; --danger: #b42318; --danger-bg: #fee4e2; --warn: #92400e;
--night-ok: #86efac; --night-ok-bg: #14532d; --night-bad: #fca5a5; --night-bad-bg: #5f1d1d; --night-accent: #5eead4;
--marker-brand: #8b5cf6; --marker-second: #06b6d4; --marker-grey: #9ca3af;
--paper-ground: #e7ecea;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; line-height: 1.75; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }


/* ── header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); background: rgb(247 250 249 / 78%); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; }
/* The mark from brand/ (madar-logo.svg), copied here: the site serves only its own files. */
.brand img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--ink-soft); }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--primary); }
.actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 24px -10px rgb(15 118 110 / 60%); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-wa .ic { color: #16a34a; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.menu-btn { display: none; }

/* ── hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ''; position: absolute; inset: 0; background:
radial-gradient(600px 320px at 85% 10%, rgb(20 184 166 / 16%), transparent 70%),
radial-gradient(500px 300px at 10% 80%, rgb(217 119 6 / 10%), transparent 70%);
pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); box-shadow: var(--shadow); }
.pill .dot { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--amber-soft); color: #92400e; font-weight: 600; font-size: 12.5px; }
.pill .dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgb(217 119 6 / 18%); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(217 119 6 / 0%); } }
.hero h1 { margin-top: 22px; font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--primary), var(--primary-glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 34em; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-soft); }
.ticks span { display: inline-flex; align-items: center; gap: 6px; }
.ticks .ic { width: 18px; height: 18px; color: var(--primary); }

/* hero visual: the phone and the laptop, one ledger between them */
.stage { position: relative; aspect-ratio: 1 / 0.92; }
.stage .fig { position: absolute; }
.stage .fig-laptop { inset-inline-start: 0; top: 4%; width: 74%; }
.stage .fig-phone { inset-inline-end: 0; bottom: 0; width: 46%; }
.float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -18px rgb(15 29 27 / 28%); padding: 12px 14px; font-size: 13px; animation: bob 6s ease-in-out infinite; }
.float b { font-size: 15px; }
.float small { display: block; color: var(--muted); font-size: 12px; }
.float-invoice { inset-inline-end: 6%; top: 0; width: 210px; }
.float-invoice .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.float-invoice .row:last-of-type { border: 0; }
.float-sync { inset-inline-start: 4%; bottom: 8%; display: flex; align-items: center; gap: 10px; animation-delay: -3s; }
.float-sync .badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.tag-ok { display: inline-flex; align-items: center; gap: 4px; color: #166534; background: #dcfce7; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 600; }

/* ── principles strip */
.strip { padding: 28px 0 8px; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.strip .cell { background: var(--surface); padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.strip .cell .ic { width: 26px; height: 26px; color: var(--primary); margin-top: 3px; }
.strip .cell b { display: block; font-size: 15.5px; }
.strip .cell span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── sections */
section.block { padding: 96px 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; }
.head p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }
.center { margin-inline: auto; text-align: center; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.tile:hover { border-color: rgb(15 118 110 / 35%); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile h3 { font-size: 21px; font-weight: 700; }
.tile p { color: var(--ink-soft); font-size: 15px; }
.tile .fig { width: 100%; max-width: 300px; margin-inline: auto; margin-top: auto; }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; } .tile.w4 { grid-column: span 4; }
.tile.split { flex-direction: row; align-items: center; gap: 28px; }
.tile.split .copy { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tile.split .fig { flex: 0 0 42%; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--ink-soft); }
.ledger { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 13px; }
.ledger div { display: grid; grid-template-columns: 1fr 90px 90px; padding: 8px 12px; border-top: 1px solid var(--line); }
.ledger div:first-child { border: 0; background: var(--ground); color: var(--muted); font-size: 12px; }
.ledger span:not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; }

/* ── steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; inset-inline-end: 24px; top: 18px; font-size: 64px; font-weight: 700; line-height: 1; color: var(--primary-soft); }
.step .ic { width: 30px; height: 30px; color: var(--primary); }
.step h3 { margin-top: 18px; font-size: 19px; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* ── plans (design site-plans): cards built by site.js from the platform's catalogue */
.cycle { display: flex; justify-content: center; margin: -20px 0 28px; }
.cycle[hidden], .trial[hidden], .plans-none[hidden], .save[hidden] { display: none; }
.cycle .seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.cycle button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft); padding: 8px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.cycle button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.save { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); }
.cycle button[aria-pressed="true"] .save { background: rgb(255 255 255 / 20%); color: #fff; }
/* Cards of one row share its height, their buttons on one line at the foot. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.plans-wait { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.plan { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan.pick { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -12px; inset-inline-start: 22px; padding: 2px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 20px; overflow-wrap: anywhere; }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price b { font-size: 38px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .sub { font-size: 13px; color: var(--muted); margin-top: -10px; }
.plan .limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan .limits div { background: var(--ground); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--ink-soft); }
.plan .limits b { display: block; font-size: 18px; color: var(--ink); }
.plan h4 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.plan li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.plan li .ic { width: 18px; height: 18px; color: var(--primary); }
.plan .addons li { justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.plan .addons li:last-child { border-bottom: 0; padding-bottom: 0; }
.plan .addons small { color: var(--muted); white-space: nowrap; font-size: 13px; }
.plan .btn { margin-top: auto; }
.trial { margin-top: 22px; display: flex; justify-content: center; gap: 10px 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.trial > span { display: inline-flex; gap: 6px; align-items: center; }
.trial .ic { width: 18px; height: 18px; color: var(--primary); }
.plans-none { text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; background: var(--surface); color: var(--ink-soft); display: grid; gap: 16px; justify-items: center; }

/* ── offline (night band) */
.night { background: radial-gradient(800px 400px at 80% 0%, rgb(20 184 166 / 18%), transparent 60%), var(--night); color: var(--night-ink);
--hairline-plate: var(--night); --hairline-hi: #2dd4bf; --hairline-edge: #cfe3df; --hairline-mid: #6f8a85; --hairline-lo: #24433e; }
.night .kicker { background: rgb(45 212 191 / 12%); color: #5eead4; }
.night .head p { color: var(--night-muted); }
.night .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.timeline { display: flex; flex-direction: column; gap: 4px; }
.tl { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--night-line); background: rgb(255 255 255 / 2%); }
.tl .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(45 212 191 / 12%); color: #5eead4; }
.tl b { display: block; font-size: 16px; }
.tl span { font-size: 14px; color: var(--night-muted); }
.night .fig { width: 100%; }

/* ── modules */
.mods { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 18px; }
.mod { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.mod .ic { width: 28px; height: 28px; color: var(--primary); }
.mod h3 { font-size: 18px; margin-top: 6px; }
.mod p { font-size: 14px; color: var(--ink-soft); }
.mod.core { background: linear-gradient(160deg, var(--primary), var(--primary-deep)); color: #fff; border: 0; }
.mod.core .ic { color: #99f6e4; }
.mod.core p { color: #ccfbf1; }
.mod.core ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; }
.mod.core li { display: flex; align-items: center; gap: 6px; }
.mod.core li .ic { width: 16px; height: 16px; }
.addon { font-size: 12px; font-weight: 600; color: var(--amber); }

/* ── product preview (design site-app-preview): the merchant app as it is — its header, the four
   shortcuts and the module tiles (merchant-web AppLayout + ModuleGrid), the same screen on a phone,
   and a report card over both. Colours are the app's own module tones. */
.peek { --purchase: #4338ca; --purchase-bg: #e6e4fb; --success: #166534; --success-bg: #e5f5ea; --danger: #b91c1c; --danger-bg: #fdecec;
  position: relative; padding-bottom: 190px; }
.t-teal { background: var(--primary-soft); color: var(--primary); } .t-blue { background: #e0ecfb; color: #1d4ed8; }
.t-indigo { background: #e6e4fb; color: #4338ca; } .t-amber { background: #fef1dd; color: #b45309; }
.t-violet { background: #f3e6fc; color: #7e22ce; } .t-rose { background: #fce4e9; color: #be123c; }
.t-cyan { background: #e0f4f8; color: #0e7490; } .t-green { background: #dcf3e4; color: #15803d; }
.t-orange { background: #feead9; color: #c2410c; } .t-brown { background: #f3ebe3; color: #8a5a33; }
.t-slate { background: #eaeef2; color: #475569; }
.peek-win { border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 40px 80px -40px rgb(15 29 27 / 35%); overflow: hidden; margin-inline-end: 200px; }
.peek-win .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ground); }
.peek-win .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.peek-win .bar .url { margin-inline-start: 12px; flex: 1; max-width: 360px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; padding: 0 12px; direction: ltr; justify-content: flex-end; }
.peek-app { background: #f4f6f5; font-size: 13px; }
.peek-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 22px; }
.peek-biz { display: flex; align-items: center; gap: 10px; min-width: 0; }
.peek-biz small { display: block; color: var(--muted); font-size: 11.5px; }
.peek-biz b { white-space: nowrap; }
.peek-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.peek-home { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; font-weight: 700; font-size: 12.5px; }
.peek-home .ic { width: 16px; height: 16px; }
.peek-sc { display: flex; align-items: center; gap: 8px; }
.peek-sc span { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 36px; border-radius: 10px; border: 1px solid; font-weight: 700; white-space: nowrap; }
.peek-sc i { width: 1px; height: 22px; background: var(--line); }
.peek-sc .sale { background: var(--primary-soft); color: var(--primary); border-color: rgb(15 118 110 / 30%); }
.peek-sc .purchase { background: var(--purchase-bg); color: var(--purchase); border-color: rgb(67 56 202 / 30%); }
.peek-sc .in { background: var(--success-bg); color: var(--success); border-color: rgb(22 101 52 / 30%); }
.peek-sc .out { background: var(--danger-bg); color: var(--danger); border-color: rgb(185 28 28 / 30%); }
.peek-end { display: flex; justify-content: flex-end; gap: 8px; }
.peek-round { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.peek-round .ic { width: 18px; height: 18px; }
.peek-round b { position: absolute; top: 6px; inset-inline-end: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.peek-round.me { background: var(--primary-soft); color: var(--primary); font-weight: 700; border: 0; }
.peek-main { padding: 24px 30px 10px; }
.peek-hello { color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.peek-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.peek-tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 12.5px; text-align: center; padding: 10px; line-height: 1.4; }
.peek-sq { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.peek-sq .ic { width: 22px; height: 22px; }
.peek-foot { text-align: center; color: var(--muted); font-size: 11px; padding: 14px 0 6px; }

.peek-report { position: absolute; inset-inline-start: -12px; bottom: 0; width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px -24px rgb(15 29 27 / 40%); display: grid; gap: 12px; font-size: 13px; }
.peek-report-top { display: flex; align-items: center; gap: 10px; }
.peek-report-top .peek-sq { width: 36px; height: 36px; }
.peek-report-top small { display: block; color: var(--muted); font-size: 11.5px; }
.peek-total { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.peek-total b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1; }
.peek-total small { color: var(--muted); }
.peek-total .up { flex-basis: 100%; font-size: 12px; color: #166534; }
.peek-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.peek-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--primary-soft); }
.peek-bars i.on { background: var(--primary); }
.peek-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.peek-top li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 6px; }
.peek-top b { font-variant-numeric: tabular-nums; font-weight: 600; }

.peek-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 260px; border-radius: 34px; background: #0f1d1b; padding: 10px; box-shadow: 0 30px 60px -20px rgb(15 29 27 / 45%); }
.peek-phone .peek-app { border-radius: 26px; overflow: hidden; height: 470px; font-size: 11px; }
.peek-phone .peek-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px; }
.peek-phone .peek-logo { width: 30px; height: 30px; font-size: 12px; }
.peek-phone .peek-round { width: 30px; height: 30px; }
.peek-phone .peek-sc { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; border-top: 1px solid var(--line); padding-top: 8px; }
.peek-phone .peek-sc span { width: auto; height: 30px; font-size: 10px; }
.peek-phone .peek-sc i { display: none; }
.peek-phone .peek-main { padding: 12px 10px; }
.peek-phone .peek-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.peek-phone .peek-tiles li { min-height: 84px; font-size: 11px; gap: 6px; border-radius: 12px; }
.peek-phone .peek-sq { width: 34px; height: 34px; }

/* ── the app on both stores (design docs/plans/mockups/app-download ①, and ② the /app page below).
   The store badges are Apple's and Google's own Arabic files, kept as they are: never recoloured,
   one height for both, at least 40px tall, and a quarter of their height clear around them. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; text-decoration: none; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store:focus-visible, .get-web a:focus-visible, .nav a:focus-visible { outline: 3px solid var(--primary-glow); outline-offset: 3px; }
.store img { display: block; height: 52px; width: auto; }
.device { position: relative; flex: none; width: 220px; aspect-ratio: 600 / 1304; border-radius: 34px; padding: 9px; background: #111; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 55%), inset 0 0 0 2px #2b2b2b; }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

.get-app { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, #0f3b35 0%, transparent 60%), linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); }
.get-app::after { content: ''; position: absolute; inset-inline-end: -10%; bottom: -40%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgb(20 184 166 / 25%), transparent 65%); pointer-events: none; }
.get-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.kicker.live { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgb(94 234 212 / 25%); }
.kicker.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--night-accent); }
.get-app h2 { margin: 14px 0 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.3; }
.get-app h2 em { font-style: normal; color: var(--night-accent); }
.get-lede { color: var(--night-muted); font-size: 17px; margin-bottom: 24px; max-width: 32em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--night-muted); font-size: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--night-accent); }
.qrbox { display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; margin-top: 26px; padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / 5%); border: 1px solid var(--night-line); }
.qr { display: block; width: 96px; height: 96px; flex: none; border-radius: 10px; background: #fff; }
.qrbox b { display: block; font-size: 15px; }
.qrbox small { color: var(--night-muted); font-size: 13px; }
.phones { position: relative; height: 520px; }
.phones .device { position: absolute; }
.phones .device:nth-child(1) { inset-inline-end: 60px; top: 20px; rotate: 6deg; }
.phones .device:nth-child(n+2) { inset-inline-end: 270px; top: 70px; rotate: -5deg; width: 200px; }
.phones .phone-only { display: none; }

/* ② madarcore.app/app: one link to hand a customer. app.js marks the visitor's device on <html>
   (ios / android / desktop); without it both stores show side by side. */
.get-page { background: radial-gradient(900px 420px at 50% -10%, var(--primary-soft), transparent 70%) no-repeat, var(--ground); }
.get-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; width: min(980px, 100% - 32px); margin: 30px auto 0; padding-bottom: 72px; }
.get-icon { width: 96px; height: 96px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgb(15 118 110 / 45%); }
.get-icon img { width: 70px; height: 70px; }
.get-main h1 { margin: 18px 0 4px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
.get-sub { color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }
.get-main .chips { margin: 0 0 26px; }
.get-main .chip { background: var(--surface); font-size: 13px; }
.get-hint { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; }
.get-hint[hidden], .store-alt[hidden] { display: none; }
/* The other store, once the device is known: a smaller badge with a plain question beside it. */
.store-alt { color: var(--muted); font-size: 14px; }
.store.minor img { height: 40px; }
.get-page .qrbox { background: var(--surface); border-color: var(--line); margin-top: 24px; }
.get-page .qrbox small { color: var(--muted); }
.get-page .qr { border: 1px solid var(--line); }
.get-web { margin-top: 22px; font-size: 14px; color: var(--muted); }
.get-web a { color: var(--primary); font-weight: 600; }
.get-main > .device { width: 240px; }
html[data-device="ios"] .get-page .qrbox, html[data-device="android"] .get-page .qrbox { display: none; }

@media (max-width: 1000px) {
.get-grid { grid-template-columns: 1fr; gap: 6px; }
.phones { height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
.phones .device:nth-child(1) { inset-inline-end: calc(50% - 200px); }
.phones .device:nth-child(n+2) { inset-inline-end: calc(50% + 10px); }
}
@media (max-width: 720px) {
.get-app h2 br { display: none; }
.get-lede { font-size: 15px; }
.store img { height: 48px; }
.store.minor img { height: 40px; }
/* A phone is already where the app goes: no code to scan. */
.qrbox { display: none; }
.phones { height: 330px; }
.phones .device { width: 150px; border-radius: 26px; padding: 6px; }
.phones .device img { border-radius: 20px; }
.phones .device:nth-child(1) { inset-inline-end: calc(50% - 140px); top: 26px; }
.phones .device:nth-child(n+2) { inset-inline-end: calc(50% - 14px); top: 46px; width: 140px; }
.phones .wide-only { display: none; }
.phones .phone-only { display: block; }
.get-main { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 6px; padding-bottom: 40px; text-align: center; }
.get-icon { margin-inline: auto; width: 76px; height: 76px; border-radius: 18px; }
.get-icon img { width: 54px; height: 54px; }
.get-sub { font-size: 15px; margin-bottom: 14px; }
.get-main .chips, .get-main .stores { justify-content: center; }
.get-main .stores { flex-direction: column; }
.get-main > .device { width: 170px; margin-inline: auto; border-radius: 28px; padding: 7px; }
.get-main > .device img { border-radius: 22px; }
}
/* The header stays one line: between a tablet and a small laptop the nav loses this link (the
   section is still a scroll away) and tightens its gaps. */
@media (max-width: 860px) { .nav { gap: 18px; } .nav .nav-app { display: none; } }
/* A touch screen with no mouse is a phone or tablet, whatever its width: no code to scan there either. */
@media (hover: none) and (pointer: coarse) { .qrbox { display: none; } }

/* ── final CTA */
.final { padding: 40px 0 96px; }
.final .card { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; background: linear-gradient(150deg, var(--primary-deep), var(--primary) 60%, #0d9488); color: #fff; }
.final .card::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 14%) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000, transparent 75%); pointer-events: none; }
.final h2 { font-size: clamp(28px, 3.6vw, 46px); position: relative; }
.final p { margin: 14px auto 0; max-width: 40em; color: #ccfbf1; font-size: 17px; position: relative; }
.final .cta { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; position: relative; }
.final .btn { border-color: rgb(255 255 255 / 35%); background: rgb(255 255 255 / 8%); color: #fff; }
.final .btn-light { background: #fff; color: var(--primary-deep); border-color: #fff; }

/* ── footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--primary); }

/* reveal on scroll */
/* Hidden only once the script runs: without it, every section shows as it is. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .float, .pill .dot::before { animation: none; } }

/* ── tablet & phone */
@media (max-width: 1000px) {
.hero .wrap, .night .grid { grid-template-columns: 1fr; }
.stage { max-width: 560px; margin-inline: auto; width: 100%; }
.strip .wrap { grid-template-columns: 1fr 1fr; }
.mods { grid-template-columns: 1fr 1fr; }
.mod.core { grid-column: 1 / -1; }
.tile.w3, .tile.w2, .tile.w4 { grid-column: span 6; }
/* The window takes the width; the report and the phone sit under it, side by side. */
.peek { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 0; }
.peek-win { grid-column: 1 / -1; margin: 0; }
.peek-tiles { grid-template-columns: repeat(4, 1fr); }
.peek-sc span { width: 76px; }
.peek-report, .peek-phone { position: static; }
.peek-report { width: auto; align-self: end; }
}
@media (max-width: 720px) {
.nav, .actions .btn:not(.btn-primary) { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.top .wrap { height: 64px; }
.hero { padding-top: 40px; }
.hero .cta .btn { flex: 1 1 100%; }
.strip .wrap { grid-template-columns: 1fr; }
section.block { padding: 64px 0; }
.steps, .mods { grid-template-columns: 1fr; }
.tile.split { flex-direction: column; }
.tile.split .fig { flex: none; width: 100%; }
/* A phone shows the phone: the window gives way, the report follows it. */
.peek { grid-template-columns: 1fr; justify-items: center; }
.peek-win { display: none; }
.peek-report { width: min(100%, 320px); }
.peek-phone { order: -1; }
/* The phone stacks the scene: the laptop above, the invoice and the phone side by side below. */
.stage { aspect-ratio: 1 / 1.12; }
.stage .fig-laptop { width: 82%; top: 0; }
.stage .fig-phone { width: 44%; }
.float-invoice { width: 172px; top: auto; bottom: 2%; inset-inline-end: auto; inset-inline-start: 0; }
.float-sync { display: none; }
.final .card { padding: 44px 22px; border-radius: 22px; }
.final .cta .btn { flex: 1 1 100%; }
}

/* ── legal pages (privacy, delete-account): one reading column, same tokens */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-top: 14px; }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 40px; font-size: 22px; font-weight: 700; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.legal ul { margin: 0; padding-inline-start: 22px; }
.legal .note { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.legal .tbl { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.legal .tbl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.legal .tbl div:first-child { border: 0; }
.legal .tbl b { color: var(--ink); }
.legal .tbl span { color: var(--ink-soft); }
@media (max-width: 560px) { .legal .tbl div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ═══ «للمصممين» (/designers/, design docs/plans/mockups/template-studio/site.html, approved
   2026-11-02): the work for both tracks, the rules, and the template studio. Reuses the page's own
   shapes (.btn, .kicker, .head, .step, .chip, .night); only what they lack is here. */
.ds-hero { position: relative; padding: 72px 0 24px; text-align: center; }
.ds-hero h1 { margin-top: 18px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; }
.ds-hero .lede { margin: 18px auto 0; max-width: 40em; font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-soft); }
.ds-hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ds-block { padding: 72px 0 0; }
.ds-block .head { margin-bottom: 28px; }
.ds-steps { grid-template-columns: repeat(4, 1fr); }
.ds-steps .step { padding: 26px 22px; }
.ds-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ds-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--ink-soft); font-size: 15px; }
.ds-card > .ic { width: 30px; height: 30px; color: var(--primary); }
.ds-card h3 { font-size: 19px; color: var(--ink); }
.ds-card ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.ds-card .btn { align-self: flex-start; margin-top: auto; }
.ds-card code, .ds-faq code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13.5px; min-width: 0; }
.swatches i { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.swatches .m-brand { background: var(--marker-brand); }
.swatches .m-second { background: var(--marker-second); }
.swatches .m-grey { background: linear-gradient(135deg, var(--marker-grey) 50%, var(--ink) 50%); }
.ds-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ds-rule { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; font-size: 14.5px; color: var(--ink-soft); }
.ds-rule .ic { width: 26px; height: 26px; color: var(--primary); grid-row: span 2; }
.ds-rule b { color: var(--ink); font-size: 15.5px; }

.ds-studio { margin-top: 72px; padding: 72px 0; }
.ds-studio .head h2 { color: #fff; }
/* The file, the colours and the report down the start; the paper beside them, as tall as it needs
   (the last row takes what the paper adds, so the three panels stay together at the top). */
.studio { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 14px 18px; align-items: start; }
.studio > .panel { grid-column: 1; }
.studio > .stage-st { grid-column: 2; grid-row: 1 / 5; }
.studio [hidden] { display: none !important; }
.panel { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; font-size: 14px; min-width: 0; }
.panel h3 { font-size: 15px; color: #fff; }
.drop { position: relative; border: 1.5px dashed var(--night-line); border-radius: var(--radius-sm); padding: 22px 14px; text-align: center; color: var(--night-muted); cursor: pointer; display: grid; gap: 4px; justify-items: center; transition: border-color .2s, background .2s; }
.drop .ic { width: 28px; height: 28px; color: var(--night-accent); }
.drop b { color: var(--night-accent); }
.drop small { font-size: 12.5px; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--night-accent); background: rgb(45 212 191 / 6%); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.busy { cursor: progress; opacity: .7; }
.st-msg { border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; background: var(--night-bad-bg); color: #fee2e2; }
.file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file .ic { width: 26px; height: 26px; color: var(--night-accent); }
.file > div { flex: 1; min-width: 0; display: grid; }
.file b, .file small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file b { color: #fff; }
.file small { color: var(--night-muted); font-size: 12.5px; }
.verdict { flex: none; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; background: var(--night-ok-bg); color: var(--night-ok); }
.verdict.fix { background: rgb(217 119 6 / 22%); color: #fcd34d; }
.verdict.bad { background: var(--night-bad-bg); color: var(--night-bad); }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.colors label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--night-line); border-radius: 10px; padding: 6px 8px; font-size: 13px; cursor: pointer; min-width: 0; }
.colors input { inline-size: 28px; block-size: 28px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; flex: none; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { inline-size: 34px; block-size: 34px; border-radius: 10px; border: 2px solid var(--night-line); padding: 0; cursor: pointer; }
.presets button:focus-visible, .presets button:hover { border-color: var(--night-accent); }
.st-hint { color: var(--night-muted); font-size: 12.5px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 8px; align-items: start; }
.checks > li > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--night-ok-bg); color: var(--night-ok); margin-top: 3px; }
.checks > li.bad > i { background: var(--night-bad-bg); color: var(--night-bad); }
.checks b { font-weight: 600; color: var(--night-ink); }
.checks small { display: block; color: var(--night-muted); font-size: 12.5px; line-height: 1.6; }
.findings { grid-column: 2; list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.findings li { direction: ltr; text-align: start; unicode-bidi: isolate; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #fecaca; background: rgb(0 0 0 / 22%); border-radius: 6px; padding: 2px 8px; overflow-wrap: anywhere; }
.findings li.more { direction: inherit; font-family: inherit; color: var(--night-muted); background: none; padding: 0; }
.report-id { color: var(--night-muted); font-size: 13px; }
.report-id bdi { color: var(--night-ink); font-family: ui-monospace, Consolas, monospace; }
.panel .btn { width: 100%; white-space: normal; text-align: center; }
.panel .btn-ghost { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.stage-st { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; padding: 14px; display: grid; gap: 12px; min-width: 0; }
.stage-st .chips { margin: 0; }
.stage-st .chip { font: inherit; font-size: 13px; cursor: pointer; background: transparent; border-color: var(--night-line); color: var(--night-muted); }
.stage-st .chip[aria-pressed="true"] { background: #134e4a; border-color: transparent; color: #99f6e4; }
.stage-st .chip:disabled { cursor: default; opacity: .5; }
.paperbox { background: var(--paper-ground); border-radius: var(--radius-sm); padding: 12px; overflow: hidden; }
.paper { overflow: hidden; }
.paper iframe { display: block; width: 794px; height: 1123px; margin-inline: calc((100% - 794px) / 2); border: 0; background: #fff; transform-origin: top center; box-shadow: 0 6px 18px rgb(0 0 0 / 25%); }
.paper-empty { min-height: 320px; display: grid; place-content: center; gap: 10px; text-align: center; color: var(--ink-soft); padding: 24px; font-size: 14.5px; }
.paper-empty .ic { width: 40px; height: 40px; color: var(--muted); margin-inline: auto; }
.shield { display: flex; gap: 8px; align-items: flex-start; color: var(--night-muted); font-size: 12.5px; }
.shield .ic { width: 18px; height: 18px; color: var(--night-accent); margin-top: 2px; }

.ds-faq { display: grid; gap: 10px; }
.ds-faq div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 15px; color: var(--ink-soft); }
.ds-faq b { display: block; color: var(--ink); margin-bottom: 2px; }
.ds-end { padding-bottom: 96px; }

@media (max-width: 1000px) {
.ds-steps, .ds-rules { grid-template-columns: 1fr 1fr; }
/* One column: the file, the colours, the paper, then the report (design ٣). */
.studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
.studio > .panel, .studio > .stage-st { grid-column: 1; grid-row: auto; }
.studio > .st-report { order: 1; }
}
@media (max-width: 720px) {
.ds-hero { padding-top: 40px; }
.ds-hero .cta .btn { flex: 1 1 100%; }
.ds-block { padding-top: 56px; }
.ds-steps, .ds-cards, .ds-rules { grid-template-columns: 1fr; }
.ds-card .btn { align-self: stretch; }
.ds-studio { margin-top: 56px; padding: 56px 0; }
.paperbox { padding: 8px; }
}
