:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #0d1117;
  --ink: #0f1419;
  --muted: #596170;
  --faint: #8a93a2;
  --line: #e8ebef;
  --line-soft: #f0f2f5;
  --brand: #4f46e5;
  --brand-ink: #4338ca;
  --accent: #2563eb;
  --green: #15803d;
  --green-bg: #e7f6ec;
  --amber: #b45309;
  --amber-bg: #fdf1de;
  --blue-bg: #e7eefb;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, .05);
  --shadow: 0 4px 16px rgba(15, 20, 25, .06);
  --shadow-lg: 0 24px 60px -18px rgba(15, 20, 25, .22);
  --max: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-ink); margin: 0 0 14px;
}

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.brand img { display: block; }
.logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #818cf8);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-signin { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-signin:hover { color: var(--brand-ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 9px;
  background: var(--ink); color: #fff !important; font-weight: 600; font-size: 15px;
  border: 1px solid var(--ink); cursor: pointer; transition: transform .06s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.brand { background: var(--brand); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg-soft); opacity: 1; }

/* ── Hero ── */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -.025em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tagrow { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.tagrow span { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-size: 14px; font-weight: 500; }
.tagrow svg { color: var(--green); flex: none; }

/* ── App mockup (looks like a real screenshot) ── */
.mock {
  border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  background: #f3f4f6; border-bottom: 1px solid var(--line);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-url {
  margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; font-size: 12px; color: var(--faint); padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mock-body { display: grid; grid-template-columns: 168px 1fr; min-height: 360px; }
.mock-side { background: #fafbfc; border-right: 1px solid var(--line); padding: 16px 12px; }
.mock-side .s-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 2px 4px 18px; }
.mock-nav { display: flex; flex-direction: column; gap: 3px; }
.mock-nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.mock-nav a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.mock-nav .ndot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.mock-main { padding: 18px 20px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-head h4 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.mock-search { font-size: 12px; color: var(--faint); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mstat { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.mstat .k, .mstat-k { font-size: 11px; color: var(--faint); }
.mstat-k { text-transform: uppercase; letter-spacing: .04em; }
.mstat-v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--faint); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line);
}
.mock-table td { padding: 11px 8px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.mock-table tr:last-child td { border-bottom: 0; }
.cust { display: flex; align-items: center; gap: 9px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.muted-sm { color: var(--faint); font-size: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.paid { background: var(--blue-bg); color: #1d4ed8; }
.pill.prod { background: var(--amber-bg); color: var(--amber); }
.pill.ship { background: var(--green-bg); color: var(--green); }

/* ── Sections ── */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 31px; margin: 8px 0 12px; letter-spacing: -.02em; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* logos / value strip */
.valuestrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding: 0; }
.value .v-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.value .v-num span { color: var(--brand); }
.value .v-label { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* feature grid with SVG icons */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 28px 26px; transition: background .2s ease; }
.card:hover { background: #fcfcfd; }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; background: #eef2ff; color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px; border: 1px solid #e0e7ff;
}
.card h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* how it works — split with mockup */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 16px; padding: 16px; border-radius: 11px; transition: background .2s ease; }
.step:hover { background: #fff; box-shadow: var(--shadow-sm); }
.step .n {
  flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.step h4 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* security */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; padding: 0; margin: 0; }
.trust li { list-style: none; padding-left: 34px; position: relative; color: var(--muted); font-size: 15px; }
.trust li svg { position: absolute; left: 0; top: 3px; color: var(--green); }
.trust li strong { color: var(--ink); }

/* CTA band */
.band { text-align: center; background: var(--bg-dark); color: #fff; border-radius: 20px; padding: 56px 30px; }
.band h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.02em; }
.band p { margin: 0 0 26px; color: #aeb6c2; font-size: 17px; }
.band .btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.25); }
.band .btn.ghost:hover { background: rgba(255,255,255,.08); }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -.02em; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: #353c47; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 15px; vertical-align: top; }
.legal th { background: var(--bg-soft); }

/* ── Auth / login page ── */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-card {
  width: 100%; max-width: 460px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px 34px 30px;
}
.auth-mark { display: grid; place-items: center; margin-bottom: 18px; }
.auth-title { font-size: 25px; text-align: center; margin: 0 0 10px; letter-spacing: -.02em; }
.auth-lead { color: var(--muted); font-size: 15px; text-align: center; margin: 0 0 24px; }
.auth-banner {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; margin-bottom: 20px;
}
.auth-banner svg { flex: none; }
.auth-banner.ok { background: var(--green-bg); color: var(--green); }
.auth-banner.err { background: #fdeaea; color: #b42318; }
/* The `hidden` attribute must win over display:flex above. */
.auth-banner[hidden] { display: none; }
[hidden] { display: none !important; }
.scopes { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.scopes-head {
  background: var(--bg-soft); padding: 10px 16px; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--faint); border-bottom: 1px solid var(--line);
}
.scope-list { list-style: none; margin: 0; padding: 6px; }
.scope-list li { display: flex; gap: 11px; padding: 11px 10px; align-items: flex-start; }
.scope-list li + li { border-top: 1px solid var(--line-soft); }
.scope-list li svg { flex: none; color: var(--green); margin-top: 2px; }
.scope-list strong { display: block; font-size: 14.5px; color: var(--ink); }
.scope-list span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.auth-btn { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15.5px; }
.auth-secondary { display: block; text-align: center; font-size: 14px; margin-top: 14px; color: var(--muted); }
.auth-fineprint { font-size: 12.5px; color: var(--faint); text-align: center; margin: 20px 0 0; line-height: 1.6; }
.auth-card .field { margin-bottom: 14px; text-align: left; }
.auth-card .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.auth-card .field input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; font-family: inherit; color: var(--ink); }
.auth-card .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.auth-card .auth-btn { margin-top: 6px; }

/* ── Photo showcase ── */
.showcase-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.photo-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 440px; }
.photo-collage figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.photo-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-collage .tall { grid-row: 1 / span 2; }
.minilist { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 0; padding: 0; }
.minilist li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.minilist li svg { flex: none; color: var(--brand); margin-top: 3px; }
.minilist strong { color: var(--ink); }

/* CTA band with photo backdrop */
.band.photo-band { position: relative; overflow: hidden; }
.band.photo-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("/img/shipping.jpg") center/cover no-repeat; opacity: .16;
}
.band.photo-band > * { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .hero-grid, .how-grid, .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .valuestrip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .grid, .trust, .valuestrip { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
