/* AI Smart Parcel Mailbox page (/ai-smart-parcel-mailbox). Scoped to .apm so nothing leaks into
   the shared theme. Tokens first, then sections top to bottom. Normal page flow only: no sticky
   or fixed elements are added here. */
.apm {
  --ink: #0f1b2a; --ink-2: #44556b; --ink-3: #6b7b8f;
  --line: #e3e8ef; --canvas: #f5f7fa; --card: #ffffff;
  --brand: #0a84ff; --brand-ink: #0958d9; --brand-50: #eef6ff; --brand-100: #d6e9ff;
  --gold: #c9a55c; --graphite: #0d1117; --graphite-2: #161c24;
  --radius: 18px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 42, .04), 0 18px 44px -24px rgba(15, 27, 42, .22);
  background: var(--canvas); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; padding: 0 0 72px;
}
.apm *, .apm *::before, .apm *::after { box-sizing: border-box; }
.apm img { display: block; max-width: 100%; }
.apm svg { width: 20px; height: 20px; flex: none; }
.apm a { text-underline-offset: 3px; }
.apm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.apm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.apm h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.025em; font-weight: 650; margin: 10px 0 0; color: var(--ink); }
.apm h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; margin: 0; color: var(--ink); }
.apm p { margin: 0; }
.apm-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; margin-top: 14px !important; }
.apm-sec { padding: 88px 0 0; }
.apm-head { max-width: 760px; margin-bottom: 40px; }
.apm-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.apm-head.center .apm-lead { margin-left: auto; margin-right: auto; }

/* Buttons: Ant Design shape, one height so a row always lines up */
.apm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none !important; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.apm-btn:active { transform: scale(.98); }
.apm-btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; }
.apm-btn-primary { background: var(--brand); color: #fff !important; }
.apm-btn-primary:hover { background: #2b95ff; }
.apm-btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff !important; }
.apm-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.apm-btn-default { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.apm-btn-default:hover { border-color: var(--brand); color: var(--brand-ink) !important; }
.apm-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Hero ---------- */
.apm-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 170px 0 0;
  background: radial-gradient(900px 520px at 78% 30%, rgba(10, 132, 255, .22), transparent 62%), linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%); }
.apm-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.apm-hero .apm-eyebrow { color: #8cc4ff; }
.apm-hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 16px 0 0; color: #fff; }
.apm-hero h1 span { background: linear-gradient(90deg, #ffffff, #9fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apm-hero-lede { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .74); max-width: 54ch; margin-top: 20px !important; }
.apm-hero-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.apm-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.apm-hero-tag { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(13, 17, 23, .62); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.apm-hero-tag b { display: block; font-size: 14px; font-weight: 600; }
.apm-hero-tag small { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); }
.apm-hero-tag i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; }
.apm-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid rgba(255, 255, 255, .1); }
.apm-stat { padding: 26px 22px 30px 0; }
.apm-stat + .apm-stat { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.apm-stat b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.apm-stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .62); }

/* ---------- Definition ---------- */
.apm-define { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.apm-define p.apm-def { font-size: 22px; line-height: 1.55; color: var(--ink); letter-spacing: -.01em; }
.apm-checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.apm-checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.apm-checks li svg { color: var(--brand); margin-top: 3px; }
.apm-checks b { color: var(--ink); font-weight: 600; }

/* ---------- Who delivers: photo cards ---------- */
.apm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.apm-photo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
@media (hover: hover) { .apm-photo-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(15, 27, 42, .3); } }
.apm-photo-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.apm-photo-card figure img { width: 100%; height: 100%; object-fit: cover; }
.apm-photo-card div { padding: 22px 22px 24px; }
.apm-photo-card p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.apm-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--brand-50); color: var(--brand-ink); margin-bottom: 12px; }
.apm-chip svg { width: 14px; height: 14px; }

/* ---------- Anatomy: drawn to scale from the elevation ---------- */
.apm-anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.apm-elev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px 26px; }
.apm-elev-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.apm-elev-title h3 { font-size: 18px; }
.apm-elev-title span { font-size: 13px; color: var(--ink-3); }
.apm-elev-body { --mm: .4px; display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: start; }
.apm-unit { height: calc(1260 * var(--mm)); display: flex; flex-direction: column; gap: calc(20 * var(--mm)); padding: calc(10 * var(--mm)); border-radius: 6px; background: #1b1f25; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 40px -24px rgba(0, 0, 0, .6); }
.apm-part { position: relative; border-radius: 3px; background: linear-gradient(180deg, #2a2f37, #23272e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.apm-part.glass { background: linear-gradient(160deg, rgba(110, 200, 210, .55), rgba(40, 110, 125, .75)); }
.apm-part .cam { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #0b0d10; box-shadow: 0 0 0 2px #3a8dff; }
.apm-part .bell { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #f4c430; }
.apm-part .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--gold); }
.apm-part .slot { position: absolute; left: 14%; right: 14%; top: 22%; height: 5px; border-radius: 2px; background: #0b0d10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.apm-part .pad { position: absolute; right: 9px; top: 12px; width: 12px; height: 30px; border-radius: 3px; background: #0b0d10; box-shadow: inset 0 0 0 1px rgba(80, 150, 255, .5); }
.apm-legend { height: calc(1260 * var(--mm)); display: flex; flex-direction: column; gap: calc(20 * var(--mm)); padding: calc(10 * var(--mm)) 0; margin: 0; list-style: none; }
.apm-part, .apm-legend li { flex-basis: 0; flex-shrink: 1; }
.apm-legend li { display: flex; flex-direction: column; justify-content: center; border-left: 1px dashed var(--line); padding-left: 14px; min-height: 0; overflow: hidden; }
.apm-legend b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.apm-legend span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.apm-scale { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ---------- Delivery story ---------- */
.apm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.apm-step { padding: 28px 24px 30px; position: relative; }
.apm-step + .apm-step { border-left: 1px solid var(--line); }
.apm-step i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-ink); }
.apm-step em { display: block; margin-top: 18px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.apm-step h3 { margin-top: 4px; }
.apm-step p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- App features ---------- */
.apm-app { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.apm-app-photo { border-radius: var(--radius); overflow: hidden; min-height: 420px; position: relative; box-shadow: var(--shadow); }
.apm-app-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.apm-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apm-feat { display: flex; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.apm-feat i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--canvas); color: var(--brand-ink); flex: none; }
.apm-feat h3 { font-size: 16px; }
.apm-feat p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Night band ---------- */
.apm-night { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; min-height: 460px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.apm-night img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.apm-night::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 8, 14, .88) 0%, rgba(5, 8, 14, .55) 48%, rgba(5, 8, 14, .1) 100%); }
.apm-night-copy { padding: 48px; max-width: 560px; }
.apm-night .apm-eyebrow { color: #8cc4ff; }
.apm-night h2 { color: #fff; }
.apm-night p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.apm-night ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.apm-night li { display: flex; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .86); }
.apm-night li svg { color: #8cc4ff; }

/* ---------- Developers ---------- */
.apm-dev { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.apm-dev figure { margin: 0; min-height: 380px; position: relative; }
.apm-dev figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apm-dev-copy { padding: 44px 40px; }
.apm-dev-copy .apm-checks { margin-top: 24px; }

/* ---------- Specs ---------- */
.apm-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; box-shadow: var(--shadow); }
.apm-table th, .apm-table td { text-align: left; vertical-align: top; padding: 16px 22px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.apm-table tr:last-child th, .apm-table tr:last-child td { border-bottom: 0; }
.apm-table th { width: 32%; background: var(--canvas); font-weight: 600; color: var(--ink); }
.apm-table td { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.apm-faq { display: grid; gap: 12px; max-width: 860px; }
.apm-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.apm-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.apm-faq summary::-webkit-details-marker { display: none; }
.apm-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.apm-faq details[open] summary::after { transform: rotate(45deg); }
.apm-faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Closing CTA ---------- */
.apm-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 56px 48px; color: #fff; text-align: center;
  background: radial-gradient(700px 360px at 50% 0%, rgba(10, 132, 255, .35), transparent 70%), linear-gradient(180deg, var(--graphite-2), var(--graphite)); }
.apm-cta h2 { color: #fff; }
.apm-cta p { margin: 14px auto 0 !important; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .74); max-width: 58ch; }
.apm-cta .apm-btns { justify-content: center; }
.apm-cta small { display: block; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- Motion: one gentle reveal, never hides content without JS ---------- */
.apm-js .apm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.apm-js .apm-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apm-js .apm-reveal { opacity: 1; transform: none; transition: none; }
  .apm-photo-card, .apm-btn { transition: none; }
}
@media print { .apm-js .apm-reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .apm-hero-grid, .apm-define, .apm-app, .apm-dev { grid-template-columns: 1fr; }
  .apm-hero-photo { aspect-ratio: 16 / 11; }
  .apm-anatomy { grid-template-columns: 1fr; }
  .apm-steps { grid-template-columns: 1fr 1fr; }
  .apm-step:nth-child(3) { border-left: 0; }
  .apm-step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .apm-trio { grid-template-columns: 1fr 1fr; }
  .apm-dev figure { min-height: 300px; }
}
@media (max-width: 768px) {
  .apm-hero { padding-top: 110px; }
  .apm-hero-grid { gap: 36px; }
  .apm-stats { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .apm-stat, .apm-stat + .apm-stat { padding: 22px 16px 24px 0; border-left: 0; }
  .apm-stat:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .1); }
  .apm-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .apm-sec { padding-top: 64px; }
  .apm-trio, .apm-feats, .apm-steps { grid-template-columns: 1fr; }
  .apm-step + .apm-step { border-left: 0; border-top: 1px solid var(--line); }
  .apm-elev-body { grid-template-columns: 112px 1fr; gap: 14px; }
  .apm-elev-body { --mm: .36px; }
  .apm-legend b { font-size: 13px; }
  .apm-legend span { font-size: 12px; }
  .apm-night { min-height: 520px; }
  .apm-night::after { background: linear-gradient(0deg, rgba(5, 8, 14, .92) 0%, rgba(5, 8, 14, .6) 60%, rgba(5, 8, 14, .15) 100%); }
  .apm-night-copy { padding: 28px 22px; }
  .apm-dev-copy { padding: 28px 22px; }
  .apm-cta { padding: 40px 22px; }
  .apm-table th, .apm-table td { display: block; width: 100%; padding: 12px 16px; }
  .apm-table th { border-bottom: 0; padding-bottom: 4px; }
  .apm-btns .apm-btn { flex: 1 1 100%; }
}

/* The site theme forces every h1 to navy with !important (vyrox-redesign.css). The hero sits on
   graphite, so it needs its own colour at a higher specificity. */
body .apm .apm-hero h1 { color: #fff !important; letter-spacing: -.035em !important; line-height: 1.03 !important; }
body .apm .apm-hero h1 span { -webkit-text-fill-color: transparent; }

/* The theme centres text on phones; this page reads left-aligned, except the closing CTA. */
body .apm, body .apm h1, body .apm h2, body .apm h3, body .apm p, body .apm li, body .apm span, body .apm th, body .apm td, body .apm summary { text-align: left !important; }
body .apm .apm-cta, body .apm .apm-cta h2, body .apm .apm-cta p, body .apm .apm-cta small { text-align: center !important; }
