/* SwiftCart Media — site styles */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --surface: #ffffff;
  --ink: #15161b;
  --ink-soft: #4a4c57;
  --ink-mute: #767885;
  --line: #e3ded5;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --accent-soft: #ffe7e0;
  --deep: #15161b;
  --deep-ink: #f5f3ef;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 22, 27, .06), 0 12px 32px -12px rgba(21, 22, 27, .18);
  --max: 1160px;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101116;
    --bg-alt: #16171e;
    --surface: #1b1c24;
    --ink: #f3f1ec;
    --ink-soft: #c2c3cc;
    --ink-mute: #8d8f9b;
    --line: #2a2c36;
    --accent: #ff6a48;
    --accent-soft: #3a1f19;
    --deep: #0a0b0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 4px; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }

/* Hero */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 .hl { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 0; list-style: none; }
.hero-meta li { font-size: .85rem; color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 56px 0 48px; } }

/* Hero visual: phone + cards */
.visual { position: relative; height: 440px; }
.phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg);
  width: 220px; height: 420px; border-radius: 36px; background: var(--deep); padding: 12px;
  box-shadow: var(--shadow), 0 30px 60px -20px rgba(255, 90, 54, .35);
}
.screen { width: 100%; height: 100%; border-radius: 26px; background: var(--surface); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.screen .bar { height: 10px; border-radius: 6px; background: var(--line); }
.screen .bar.w60 { width: 60%; } .screen .bar.w40 { width: 40%; }
.screen .tile { border-radius: 14px; background: var(--accent); height: 96px; position: relative; overflow: hidden; }
.screen .tile::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.screen .row { display: flex; gap: 8px; align-items: center; }
.screen .dot { width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); flex: none; }
.screen .stack { flex: 1; display: grid; gap: 6px; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; display: flex; gap: 10px; align-items: center;
}
.float-card .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.float-card small { display: block; color: var(--ink-mute); font-weight: 500; }
.fc1 { left: 0; top: 60px; transform: rotate(-3deg); }
.fc2 { right: 0; top: 170px; transform: rotate(3deg); }
.fc3 { left: 6%; bottom: 40px; transform: rotate(2deg); }
@media (max-width: 520px) { .visual { height: 400px; } .phone { width: 190px; height: 370px; } .fc1, .fc3 { left: 0; } .fc2 { right: 0; } }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: "0" counter(step); font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .95rem; display: block; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; }

/* About / values */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks strong { display: block; }
.checks span { color: var(--ink-soft); font-size: .97rem; }

/* CTA / contact */
.contact { background: var(--deep); color: var(--deep-ink); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.contact h2 { color: #fff; }
.contact p { color: #b9bac4; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8d8f9b; font-weight: 600; }
.contact-list a, .contact-list .v { color: #fff; text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 96px; font-size: .92rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 12px; font-family: var(--font-body); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-mute); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal / document pages */
.doc { padding: 64px 0 0; }
.doc .wrap { max-width: 820px; }
.doc header { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 36px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc .updated { color: var(--ink-mute); font-size: .95rem; margin: 0; }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: .4em; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent); }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 8px; }
.doc .toc ol { margin: 8px 0 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.doc .toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.note { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--ink); }
.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.5em; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.doc th { color: var(--ink); font-weight: 600; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: 12px 0 0; }
