/* ParcelOffice unified styles */

:root {
  --bg: #0b1020;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --paper: #ffffff;
  --brand: #2563eb; /* blue */
  --brand-2: #0ea5e9; /* sky */
  --accent: #22c55e; /* green */
  --muted: #f1f5f9;
  --code: #0b1020;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--ink); background: var(--paper); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout helpers */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Hero / header */
header.hero { background: linear-gradient(180deg, #0b1020 0%, #101934 100%); color: white; padding: 56px 0 32px; position: relative; overflow: hidden; }
header.hero .title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
header.hero .subtitle { font-size: clamp(16px, 1.8vw, 20px); color: #cbd5e1; max-width: 820px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color:#e2e8f0; font-size: 14px; margin-bottom: 16px; }
.badge strong { color: white; }

nav.top { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; }
nav.top a.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: white; letter-spacing: 0.2px; }
nav.top a.logo .logo-mark { width: 36px; height: auto; display: block; }
nav.top a.logo span { line-height: 1; }
nav.top .links { display:flex; gap: 14px; flex-wrap: wrap; }
nav.top .links a { color: #cbd5e1; font-size: 14px; }

.hero-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items:center; gap:10px; padding: 12px 16px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn.primary, .btn-primary { background: var(--brand); color: white; box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn.ghost, .btn-muted { color: #0f172a; background: white; border: 1px solid #e2e8f0; }
header.hero .btn.ghost { color: white; border-color: rgba(255,255,255,.2); background: transparent; }

/* Main content */
main { padding: 36px 0 80px; }
.content { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 980px) { .content { grid-template-columns: 2.2fr 1fr; gap: 48px; } }
.card { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; box-shadow: 0 8px 24px rgba(2,6,23,.04); }

h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 28px; margin: 26px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 18px 0 8px; }
h4 { font-size: 17px; margin: 14px 0 6px; color: var(--ink-2); }
p { color: var(--ink-2); line-height: 1.65; }
ul, ol { color: var(--ink-2); line-height: 1.7; padding-left: 20px; }

.toc { position: sticky; top: 20px; }
.toc h3 { margin-top: 0; font-size: 16px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 10px 0; }
.toc a { color: var(--ink-2); }

.hint { background: #ecfeff; border:1px solid #bae6fd; color:#0c4a6e; padding: 12px 14px; border-radius: 10px; }
.protip { background: #f0fdf4; border:1px solid #bbf7d0; color:#14532d; padding: 12px 14px; border-radius: 10px; }
.warn { background: #fff7ed; border:1px solid #fed7aa; color:#7c2d12; padding: 12px 14px; border-radius: 10px; }

.cta { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.5fr .8fr; } }
.inline-list { display:flex; gap:10px; flex-wrap:wrap; }

/* Code */
code, pre { background: #0b1020; color:#e2e8f0; border-radius: 10px; }
pre { padding: 14px 16px; overflow: auto; }
kbd { background:#f1f5f9; border:1px solid #e2e8f0; border-radius:6px; padding:0 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Utilities */
.small, .sm { font-size: 14px; color: var(--ink-3); }
.ok { color: #16a34a; }

/* Beta/partners shared blocks */
.hero-inner { padding: 48px 24px; }
.cta-row { display:flex; gap:12px; flex-wrap: wrap; margin-top: 20px; }
.pill { display:inline-block; padding:6px 10px; background:#eef2ff; color:#1f2937; border-radius:999px; font-size:12px; margin-right:6px; }
.features { display:grid; gap:16px; grid-template-columns: 1fr; }
.feature { background:#fff; border:1px solid #e6e9ff; border-radius:16px; padding:18px; box-shadow:0 2px 10px rgba(11,16,32,.04); }
@media (min-width: 900px) { .grid.cols-2 { grid-template-columns: 1.2fr 1fr; } }
.grid { display:grid; gap:24px; }
/* Simple grid helpers used in some pages */
.grid-2 { display:grid; gap:16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display:grid; gap:16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e2e8f0; color: var(--ink-3); font-size: 14px; }

/* Forms */
form { display:grid; gap:14px; }
label { font-weight:600; font-size:14px; }
input, textarea, select { width:100%; padding:12px 12px; border:1px solid #cfd6ee; border-radius:12px; font-size:16px; background:#fff; }
textarea { min-height: 120px; }
.form-row.two { display:grid; grid-template-columns: 1fr; gap:12px; }
@media (min-width: 700px){ .form-row.two { grid-template-columns: 1fr 1fr; } }
.success { color:#166534; background:#ecfdf5; border:1px solid #bbf7d0; padding:10px 12px; border-radius:10px; }
.error { color:#7f1d1d; background:#fef2f2; border:1px solid #fecaca; padding:10px 12px; border-radius:10px; }
.required { color:#ef4444; }

/* Simple page layout helper: wrap content sections when using <main class="page"> */
main.page { padding: 40px 0; }
main.page section { max-width: 960px; margin: 0 auto 20px; padding: 0 20px; }
main.page .cta { max-width: 960px; margin: 30px auto; }
main.page header, main.page .header { max-width: 960px; margin: 0 auto; }

/* CTA anchors in simple pages */
.cta a { display:inline-flex; align-items:center; gap:8px; padding: 12px 16px; border-radius:10px; font-weight:700; background: var(--brand); color:#fff; box-shadow:0 6px 20px rgba(37,99,235,.2); }
.cta a:hover { text-decoration: none; transform: translateY(-1px); }
/* Section header icons */
.section-head { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.section-icon { width:72px; height:auto; flex:0 0 auto; }

/* Step layout: left illustration fills full step height */
.step { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: stretch; }
.step .art { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; display:flex; align-items:center; justify-content:center; height: 100%; }
.step .art .step-ill { width: 100%; height: 100%; object-fit: contain; }
.step .step-body { display:block; }
@media (max-width: 860px){
  .step { grid-template-columns: 1fr; }
  .step .art { height: 200px; }
}
