/* Marketing website + auth pages – DataCaffé landing style */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.site-nav { display: flex; gap: 4px; margin-left: 24px; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: var(--radius-input); }
.site-nav a:hover { color: var(--text); background: var(--warm); }
.signin-link { color: var(--text); font-weight: 500; text-decoration: none; padding: 8px 10px; }
.signin-link:hover { text-decoration: underline; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); margin: 0; padding: 8px 16px 16px; box-shadow: var(--shadow-lg); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:last-child { border-bottom: 0; }
  .menu-btn { display: inline-grid; }
  .hide-sm { display: none !important; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); font-weight: 500; font-size: 13px; padding: 6px 14px 6px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); box-shadow: 0 0 0 3px rgb(224 122 43 / .18); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; margin: 22px 0 18px; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; margin: 24px 0 0; font-size: 14px; color: var(--text-soft); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23047857' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/16px no-repeat; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hero .cta .btn { width: 100%; } }

/* Hero visual: lead card mock */
.mock { position: relative; }
.mock-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-studio); box-shadow: var(--shadow-raised); overflow: hidden; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock-head b { color: var(--text); font-weight: 600; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-card { display: flex; gap: 14px; align-items: center; }
.mock-card .avatar { width: 44px; height: 44px; border-radius: 10px; font-size: 15px; }
.mock-card h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.mock-card p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.mock-rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-rate span { text-align: center; border-radius: var(--radius-input); padding: 8px 0; font-weight: 600; font-size: 13px; border: 1.5px solid var(--line-strong); color: var(--muted); }
.mock-rate .on { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
.mock-insight { background: var(--studio); color: var(--studio-light); border-radius: var(--radius); padding: 14px 16px; font-size: 13px; line-height: 1.6; }
.mock-insight .studio-label { font-size: 12px; margin-bottom: 6px; }
.mock-insight p { margin: 4px 0 0; color: var(--studio-muted); }
.mock-insight p b { color: var(--studio-light); font-weight: 600; }
.mock-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mock-rows div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mock-rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.mock-float { position: absolute; right: -14px; bottom: -34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 13px; display: flex; gap: 10px; align-items: center; }
@media (max-width: 600px) { .mock-float { right: 8px; } }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis div { padding: 26px 22px; border-left: 1px solid var(--line); }
.kpis div:first-child { border-left: 0; }
.kpis b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpis span { color: var(--muted); font-size: 13.5px; }
.kpis .k1 b { color: var(--accent); } .kpis .k2 b { color: var(--ok); } .kpis .k3 b { color: var(--coffee, #6f4e37); } .kpis .k4 b { color: var(--info); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kpis .k3 b { color: var(--gold); } }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpis div:nth-child(3) { border-left: 0; } .kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Bands */
section.band { padding: clamp(56px, 8vw, 96px) 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { max-width: 720px; margin-bottom: 40px; }
.band-head .section-title { color: var(--accent); }
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 12px; letter-spacing: -.04em; text-wrap: balance; }
.band .sub { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.band:not(.alt) .feature { background: var(--surface); }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.feature .tag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 24px 22px 8px 0; border-left: 0; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; } }
.crm-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.crm-logos span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 18px 36px 18px 0; list-style: none; position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--muted); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; max-width: 70ch; }
.cta-band { background: var(--studio); color: var(--studio-light); border-radius: var(--radius-studio); padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--studio-light); margin: 0 0 8px; }
.cta-band p { color: var(--studio-muted); font-size: 17px; margin: 0; }
.cta-band .btn.primary { background: var(--studio-light); color: var(--studio); box-shadow: none; }
.cta-band .btn.primary:hover { background: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.site-footer { padding: 36px 0 calc(48px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
/* "A product of DataCaffé" – the logo is a white-background JPG crop, so it sits on its own white chip on any surface */
.made-by { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 13px; }
.made-by img { display: block; width: 96px; height: auto; background: #fff; border-radius: 8px; padding: 4px; }
.auth-side .made-by { color: var(--studio-muted); margin-top: 16px; }
.legal { max-width: 760px; padding: 40px 0 72px; } .legal h1 { font-size: 2rem; letter-spacing: -.035em; } .legal h2 { font-size: 18px; margin-top: 28px; } .legal p, .legal li { color: var(--text-soft); line-height: 1.75; }

/* Auth pages */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { background: var(--studio); color: var(--studio-light); padding: 40px clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-side .logo { color: var(--studio-light); }
.auth-side .brand-mark { background-image: url(/assets/dc-mark-light.png); } /* white cup on the dark panel */
.auth-side .brand-text small { color: var(--studio-muted); }
.auth-side h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; letter-spacing: -.04em; max-width: 18ch; margin: 18px 0 0; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; max-width: 420px; }
.auth-side li { padding: 12px 0; border-bottom: 1px solid var(--studio-rule); color: var(--studio-muted); font-size: 14.5px; display: flex; gap: 10px; }
.auth-side li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.auth-side .quote { font-size: 13px; color: var(--studio-muted); }
.auth-main { display: flex; flex-direction: column; padding: 20px clamp(16px, 4vw, 40px) 32px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.auth-top .logo { visibility: hidden; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding: 28px 0; }
.auth-box h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 6px; letter-spacing: -.035em; }
.auth-box > p.muted { margin: 0 0 8px; }
.otp { letter-spacing: 10px; font-size: 22px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.steps-mini { display: flex; gap: 6px; margin-bottom: 22px; }
.steps-mini span { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); }
.steps-mini span.on { background: var(--accent); }
.form-error { margin-top: 12px; }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 14%, transparent) !important; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 64px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px; min-height: 36px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-top .logo { visibility: visible; } }
