/* Naddaf Suite public pages (landing pages, layaway calculator). Matches the homepage look. */
:root {
  --bg: #fafafa; --surface: #fff; --text: #09090b; --muted: #5f5f69; --border: #e4e4e7;
  --accent: #4f46e5; --accent-2: #7c3aed; --accent-soft: #eef2ff; --ok: #15803d; --err: #b91c1c;
  --radius: 16px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0b0e; --surface: #16161a; --text: #f4f4f5; --muted: #a1a1aa; --border: #2a2a31; --accent-soft: rgba(99,102,241,.16); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #4f46e5, #6366f1 50%, #7c3aed); padding: 9px 14px; }
.nav-links a { white-space: nowrap; }
.nav-links .only-wide { display: none; }
@media (max-width: 419px) { .nav-links .hide-xs { display: none; } }
@media (min-width: 820px) { .nav-links .only-wide { display: inline-block; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #4f46e5, #6366f1 50%, #7c3aed); box-shadow: 0 6px 20px -6px rgba(79,70,229,.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(79,70,229,.6); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 14px; font-size: .875rem; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; }

/* hero */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 56px); }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 8px; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.08; letter-spacing: -.04em; margin: 16px 0 16px; font-weight: 850; }
h1 .grad { background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 46rem; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fine { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* sections */
section { padding: clamp(36px, 7vw, 72px) 0; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 1.08rem; margin: 0 0 6px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; max-width: 44rem; }
.grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.pain { border-left: 4px solid var(--accent); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ''; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234f46e5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.shot { border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); background: var(--surface); display: block; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }
.price-card { text-align: center; max-width: 30rem; margin: 0 auto; }
.price { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 8px 0; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-card .checks { text-align: left; margin: 18px 0 22px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }
.band { background: linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 48px); text-align: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.85); margin: 0 auto 20px; max-width: 36rem; }
.band .btn-primary { background: #fff; color: #312e81; box-shadow: none; }
.band a:not(.btn) { color: #fff; }

/* forms */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); display: grid; gap: 12px; }
.form h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.form .form-sub { margin: -4px 0 4px; color: var(--muted); font-size: .9rem; }
.row { display: grid; gap: 12px; }
@media (min-width: 360px) { .row-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 520px) { .row-3 { grid-template-columns: repeat(3, 1fr); } }
.field label { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 5px; }
.field label em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 1rem; background: var(--bg); color: var(--text); }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.inline { display: flex; gap: 8px; }
.inline > :first-child { flex: 1; }
.seg { display: inline-flex; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.seg button { border: 0; background: transparent; padding: 0 12px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; min-width: 44px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.err { color: var(--err); font-weight: 600; font-size: .9rem; margin: 0; }
.ok { text-align: center; padding: 14px 4px; }
.ok-ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; }
.ok h3 { margin-bottom: 6px; }
.ok p { margin: 0; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form .fine { text-align: center; margin: 0; font-size: .78rem; }

/* calculator */
.calc { display: grid; gap: 18px; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: 400px 1fr; } }
.res-top { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 620px) { .res-top { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.kpi small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi b { font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi.hl { background: var(--accent-soft); border-color: transparent; }
.kpi.hl b { color: var(--accent); }
table.sched { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.sched th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.sched td { padding: 10px; border-bottom: 1px solid var(--border); }
.sched td.num, .sched th.num { text-align: right; }
.sched tr.dep td { background: var(--accent-soft); font-weight: 700; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.print-only { display: none; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; margin-top: 24px; font-size: .9rem; color: var(--muted); }
footer .cols { display: grid; gap: 22px; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h4 { margin: 0 0 8px; color: var(--text); font-size: .9rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }

@media print {
  .nav, footer, .no-print, .noprint, .hero .cta-row { display: none !important; }
  section { padding: 0 !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .print-only { display: block; }
  .print-only.sig { display: grid; }
  .card, .kpi { box-shadow: none; border-color: #ccc; background: #fff !important; }
  .calc { display: block; }
  .sched tr.dep td { background: #eee !important; }
}
