/* SwiftCart Media — site styles */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-soft: #3f4c63;
  --ink-mute: #66728a;
  --line: #dde3ec;
  --accent: #1d5bbf;
  --accent-hover: #174a9c;
  --accent-soft: #e8f0fb;
  --deep: #0f1b2d;
  --radius: 10px;
  --max: 1140px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::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); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }
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: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.wordmark { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; 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: 8px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; 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: 11px 20px; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; background: #fff; }
.btn-ghost:hover { border-color: var(--ink-mute); }

/* Hero */
.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 52px 0 48px; } }

.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px -12px rgba(15,27,45,.12); }
.facts h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: .8rem; color: var(--ink-mute); font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); word-break: break-word; }
.facts dd a { color: var(--ink); }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 600px) { .section { padding: 56px 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: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.card ul { color: var(--ink-soft); font-size: .95rem; margin: 10px 0 0; padding-left: 1.1em; }
.card .num { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; letter-spacing: .06em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 16px; }
.steps li::before { content: "Step " counter(step); font-weight: 600; color: var(--accent); font-size: .82rem; display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.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; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .93rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 4px; 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks strong { display: block; }
.checks span { color: var(--ink-soft); font-size: .96rem; }

.policy-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.policy-links a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.policy-links a small { display: block; color: var(--ink-mute); font-weight: 400; font-size: .85rem; margin-top: 2px; }
.policy-links a:hover { border-color: var(--accent); }
@media (max-width: 900px) { .policy-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .policy-links { grid-template-columns: 1fr; } }

.contact { background: var(--deep); color: #dfe6f1; border-radius: 12px; padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.contact h2 { color: #fff; }
.contact p { color: #b8c3d6; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #8d9ab0; font-weight: 600; }
.contact-list a, .contact-list .v { color: #fff; text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 44px 0 36px; font-size: .92rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-mute); font-size: .85rem; }
.footer-bottom a { color: var(--ink-mute); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
main + .site-footer, .doc + .site-footer { margin-top: 0; }

/* Document pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 840px; }
.doc header { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 32px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.doc .updated { color: var(--ink-mute); font-size: .95rem; margin: 0; }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: .2em; }
.doc h3 { font-size: 1.06rem; margin-top: 1.6em; }
.doc p, .doc li, .doc td { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc strong { color: var(--ink); }
.doc .toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; }
.doc .toc ol { margin: 8px 0 0; padding-left: 1.3em; 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-left: 4px solid var(--accent); border-radius: 6px; padding: 16px 20px; color: var(--ink); margin: 1.2em 0; }
.note p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; background: var(--bg-alt); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p, .faq details ol, .faq details ul { margin: 10px 0 0; }
.info-table th { width: 38%; }
