/* ==========================================================================
   SmartBuild marketing pages (landing + privacy). Uses tokens from brand.css.
   ========================================================================== */
body { background: var(--surface); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.site-header .logo { margin-right: auto; }
.site-nav { display: none; gap: 0.25rem; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 0.5rem 0.75rem; border-radius: var(--r-sm); transition: background var(--t-fast), color var(--t-fast); }
.site-nav a:hover { background: var(--surface-3); color: var(--text); }
@media (min-width: 860px) { .site-nav { display: flex; } .site-header .logo { margin-right: 0; } .site-nav { margin-right: auto; margin-left: 1rem; } }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 0.75rem; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); flex-shrink: 0; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); flex-shrink: 0; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-head { max-width: 680px; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { font-size: var(--fs-3xl); letter-spacing: -0.03em; line-height: 1.12; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; margin-top: 0.85rem; }
.section-head-left { text-align: left; margin: 0 0 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 3rem 0 3.5rem; background: radial-gradient(1100px 520px at 85% -10%, var(--brand-50), transparent 60%), linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero { padding: 5rem 0 5.5rem; } .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 3.5rem; } }
.pill { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.85rem 0.4rem 0.7rem; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: 0.85rem; font-weight: 500; color: var(--text-2); margin-bottom: 1.5rem; }
.hero h1 { font-size: var(--fs-4xl); letter-spacing: -0.038em; line-height: 1.04; font-weight: 800; max-width: 15ch; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); margin-top: 1.35rem; max-width: 36rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.6rem; color: var(--text-2); font-size: 0.93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points .icon { width: 1.05rem; height: 1.05rem; color: var(--success); stroke-width: 2.4; }

/* Phone mockups built from real app screenshots */
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone { position: relative; width: 272px; border-radius: 42px; padding: 10px; background: #0f1623; box-shadow: 0 40px 80px -24px rgba(15, 23, 42, 0.45), 0 12px 24px -12px rgba(15, 23, 42, 0.3), inset 0 0 0 1.5px #2a3446; }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 12px; background: #0f1623; z-index: 2; }
.phone .screen { border-radius: 32px; overflow: hidden; background: #fff; padding-top: 30px; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 375 / 780; object-fit: cover; object-position: top; background: var(--bg); }
.phone-front { z-index: 2; transform: translateX(-28px); }
.phone-back { position: absolute; top: 46px; left: 50%; transform: translateX(10px) rotate(4deg); opacity: 0.98; width: 248px; }
@media (max-width: 959px) { .hero-visual { min-height: 0; } .phone-back { display: none; } .phone-front { transform: none; } }
@media (min-width: 960px) { .phone { width: 290px; } .phone-back { width: 262px; } }

/* ---------- Facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { padding: 1.6rem 1rem; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
@media (max-width: 859px) { .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
.fact strong { display: block; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.025em; color: var(--text); font-variant-numeric: tabular-nums; }
.fact span { display: block; font-size: 0.88rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.step { position: relative; padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.step-num { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 0.8rem; font-weight: 700; color: var(--text-subtle); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.step-icon, .trust-icon, .project-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-ink); border: 1px solid var(--brand-100); }
.step-icon .icon, .trust-icon .icon, .project-card-icon .icon { width: 1.35rem; height: 1.35rem; }
.step h3 { font-size: 1.15rem; margin: 1.1rem 0 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.project-card { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
@media (min-width: 1000px) { .project-card { flex-direction: column; align-items: flex-start; padding: 1.4rem; min-height: 190px; } .project-card-arrow { margin-top: auto; } }
.project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card-text { flex: 1; min-width: 0; }
.project-card-text strong { display: block; font-size: 1.02rem; font-weight: 650; }
.project-card-text small { display: block; color: var(--text-muted); font-size: 0.88rem; margin-top: 0.2rem; line-height: 1.45; }
.project-card-arrow { color: var(--text-subtle); transition: transform var(--t) var(--ease), color var(--t); }
.project-card:hover .project-card-arrow { transform: translateX(3px); color: var(--brand-ink); }
.project-card-muted { background: transparent; border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.project-card-muted .project-card-icon { background: var(--surface); border-color: var(--line); color: var(--text-2); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
.trust-card { padding: 1.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.trust-card h3 { font-size: 1.1rem; margin: 1rem 0 0.45rem; }
.trust-card p { color: var(--text-muted); font-size: 0.97rem; }
.supplier-panel { margin-top: 1.25rem; display: grid; gap: 1.5rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--ink-900); color: #e5e7eb; }
@media (min-width: 860px) { .supplier-panel { grid-template-columns: 1.5fr 1fr; align-items: center; padding: 2.25rem; } }
.supplier-panel h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.6rem; }
.supplier-panel p { color: #cbd2dc; font-size: 0.97rem; }
.supplier-panel strong { color: #fff; }
.supplier-panel-note { margin-top: 0.75rem; font-size: 0.9rem !important; color: #a8b1be !important; }
.supplier-list { list-style: none; display: grid; gap: 0.6rem; }
.supplier-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.supplier-list li span:nth-child(2) { flex: 1; font-weight: 600; color: #fff; }
.supplier-list small { font-size: 0.82rem; color: #a8b1be; }
.supplier-list .is-live small { color: #6ee7b7; font-weight: 600; }
.supplier-list .status-dot { background: #4b5563; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 1rem; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } .faq-wrap .section-head { position: sticky; top: 96px; } }
.faq-list { display: grid; gap: 0.6rem; }
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; font-weight: 600; font-size: 1rem; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-subtle); transition: transform var(--t) var(--ease); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq p { padding: 0 1.2rem 1.15rem; color: var(--text-muted); font-size: 0.97rem; line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band { padding: 4rem 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.25rem; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--brand) 0%, #9f1620 100%); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; }
.cta-band p { color: rgba(255, 255, 255, 0.86); margin-top: 0.35rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-ink); }
.cta-band .btn-primary:hover { background: #fdf3f3; }
@media (min-width: 768px) { .cta-band-inner { padding: 3rem 3.25rem; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 3.25rem 0 2rem; font-size: 0.93rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { color: var(--text-muted); margin-top: 0.85rem; max-width: 30ch; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: 0.8rem; font-weight: 600; }
.footer-col a { display: block; color: var(--text-2); text-decoration: none; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-disclosure { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 2.5rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 0.9rem; }
.footer-disclosure .icon { color: var(--text-subtle); margin-top: 0.1rem; }
.footer-bottom { display: grid; gap: 0.4rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Reveal on scroll (only when JS is running and motion is OK) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Legal / text pages ---------- */
.legal { padding: 3rem 0 4.5rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
.legal .updated { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.legal p + p { margin-top: 0.85rem; }
.legal ul { padding-left: 1.25rem; margin: 0.75rem 0; display: grid; gap: 0.4rem; }
.legal code { font-size: 0.86em; background: var(--surface-3); border: 1px solid var(--line); padding: 0.05rem 0.35rem; border-radius: 5px; color: var(--text); }
.legal .box { margin: 0.75rem 0 1rem; padding: 1rem 1.15rem; border-radius: var(--r-md); background: var(--brand-50); border: 1px solid var(--brand-100); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.legal th { background: var(--surface-2); font-weight: 600; color: var(--text); }
.legal tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) { .fact { padding: 1.25rem 0.75rem; } .fact strong { font-size: 1.2rem; } .fact span { font-size: 0.82rem; } }
.supplier-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.supplier-list-grid li { padding: 0.7rem 0.85rem; gap: 0.55rem; flex-wrap: wrap; }
.supplier-list-grid li small { width: 100%; padding-left: calc(8px + 0.55rem); margin-top: -0.35rem; }
.supplier-panel p + p { margin-top: 0.6rem; }
