/* Sales page for the 3DzPrinting platform. Plain CSS, no build step, no external requests.
   Colours follow the app's tokens (client/src/styles/theme.css): blue primary, neutral greys. */
:root {
  --bg: #fafafa;
  --fg: #171717;
  --muted: #525252;
  --card: #ffffff;
  --border: #e5e5e5;
  --soft: #eef2ff;
  --primary: #2f5bea;
  --primary-hover: #2449c4;
  --primary-fg: #ffffff;
  --ring: #2f5bea;
  --wa: #128c4a;
  --wa-hover: #0e703b;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(23 23 23 / 0.07);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --fg: #f5f5f5;
    --muted: #b4b4b4;
    --card: #1e1e1e;
    --border: #2f2f2f;
    --soft: #1a2038;
    --primary: #5f86f2;
    --primary-hover: #7a9bf5;
    --primary-fg: #0f0f0f;
    --ring: #7193f5;
    --wa: #178046;
    --wa-hover: #1f9a58;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--card); color: var(--fg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

/* header */
.top { border-bottom: 1px solid var(--border); background: var(--card); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 10px; }
.top nav a.nav-link { color: var(--muted); text-decoration: none; padding: 6px 8px; font-size: 0.95rem; }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--fg); }
.top .btn { padding: 8px 16px; min-height: 40px; font-size: 0.95rem; }
@media (max-width: 640px) { .top .nav-link, .top .btn { display: none; } }

/* buttons */
.btn bdi, .btn .nowrap { white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; line-height: 1.3; text-align: center; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: var(--card); }
.btn-ghost:hover { border-color: var(--primary); }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { flex: 1 1 220px; }

/* hero */
.hero { padding-block: 40px 24px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--primary); font-weight: 700; font-size: 0.9rem; padding: 2px 14px; border-radius: 999px; margin-block-end: 14px; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3.2rem); line-height: 1.3; margin: 0 0 16px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 24px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--card); }
.shot img { width: 100%; }
.note { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }
@media (min-width: 900px) { .hero { padding-block: 72px 56px; } .hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 48px; } }

/* sections */
section { padding-block: 48px; }
section.alt { background: var(--card); border-block: 1px solid var(--border); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.35; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 46rem; }
h3 { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.4; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.quote-q { font-size: 1.25rem; font-weight: 700; color: var(--fg); }
.problem { display: grid; gap: 20px; }
.chat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.bubble { background: var(--soft); border-radius: 14px; padding: 10px 14px; max-width: 90%; font-weight: 600; justify-self: start; }
.bubble.b { justify-self: end; background: var(--primary); color: var(--primary-fg); }
@media (min-width: 800px) { .problem { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(0.5em + 3px); width: 4px; height: 8px; border: solid var(--primary-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split.flip .shot { order: -1; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; padding-inline-start: 70px; position: relative; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.steps b { display: block; }
.steps span { color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { padding-inline-start: 18px; padding-block-start: 70px; } .steps li::before { top: 16px; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.pill { background: var(--soft); color: var(--fg); border-radius: 999px; padding: 2px 14px; font-size: 0.92rem; font-weight: 600; }
.gallery { display: grid; gap: 20px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 0.95rem; margin-block-start: 8px; }

/* faq */
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; margin-block-end: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); line-height: 1; flex: none; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 16px; color: var(--muted); }

.final { text-align: center; background: var(--soft); }
.final .cta { max-width: 520px; margin-inline: auto; }
footer { padding-block: 28px 40px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* sticky call button on phones */
.fab { position: fixed; inset-inline-end: 14px; bottom: 14px; z-index: 6; box-shadow: var(--shadow); border-radius: 999px; padding-inline: 20px; min-height: 52px; }
@media (min-width: 900px) { .fab { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* spacing helpers (no inline styles: the page's CSP forbids them) */
.s12 { margin-block-end: 12px; }
.s0 { margin-block-end: 0; }
.s14 { margin-block-end: 14px !important; }
.mt { margin-block-start: 20px; }
.mid { align-self: center; }
.narrow { max-width: 820px; }
.auto { margin-inline: auto; }
