/* ───────────────────────── OneParcel · F1 style (bold) ─────────────────────────
   A theme layer shared by every page. Courier colours still drive the accent (the couriers are the "teams").
   Landing-page sections live in home.css. Inspired by motorsport broadcast graphics; no F1 logos or marks are used. */

:root {
  --f1-red: #e10600;
  --f1-red-dark: #a80400;
  --blue: #e10600;            /* the site's default accent becomes racing red */
  --blue-dark: #a80400;
  --blue-dim: rgba(225, 6, 0, 0.12);
  --tag-bg: rgba(225, 6, 0, 0.12);
  --tag-border: rgba(225, 6, 0, 0.4);
  --tag-color: #ff6b63;
  --bg: #0a0a0e;
  --bg2: #12121a;
  --bg3: #1a1a24;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.17);
  --text: #f6f4f0;
  --text2: #a2a2ae;
  --nav-bg: rgba(10, 10, 14, 0.94);
  --cut: 14px;                 /* the cut corner on filled buttons and panels */
  --kerb: repeating-linear-gradient(-45deg, #e10600 0 9px, #f6f4f0 9px 18px);
}
:root.light {
  --bg: #f0f0f3;
  --bg2: #ffffff;
  --bg3: #e6e6ec;
  --text: #111116;
  --text2: #55555f;
  --border: rgba(0, 0, 0, 0.09);
  --border2: rgba(0, 0, 0, 0.2);
  --nav-bg: rgba(255, 255, 255, 0.96);
  --tag-color: #c40500;
}

::selection { background: var(--f1-red); color: #fff; }
html { scrollbar-color: var(--f1-red) var(--bg2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--f1-red); border-radius: 0; }

/* Carbon-fibre weave (dark) / light stripes (light). Static, so it costs nothing to scroll. */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(27deg, #0d0d12 5px, transparent 5px),
    linear-gradient(207deg, #0d0d12 5px, transparent 5px),
    linear-gradient(27deg, #14141b 5px, transparent 5px),
    linear-gradient(207deg, #14141b 5px, transparent 5px);
  background-size: 20px 20px;
  background-position: 0 5px, 10px 0, 0 10px, 10px 5px;
}
:root.light body {
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.022) 0 8px, transparent 8px 16px);
  background-size: auto;
  background-position: 0 0;
}
body::before { display: none; }           /* the old full-screen noise layer was the heaviest thing on the page */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Header: red rule + chequered strip, lockup logo ── */
nav {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--f1-red);
}
nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 6px;
  background: repeating-conic-gradient(#fff 0% 25%, #111 0% 50%) 0 0 / 6px 6px;
  opacity: 0.92;
  pointer-events: none;
}
.op-lockup { display: block; width: auto; color: var(--text); }
.nav-lockup { height: 48px; transition: filter 0.2s, transform 0.2s; }
.nav-logo:hover .nav-lockup { filter: brightness(1.12); transform: translateX(3px); }
@media (max-width: 480px) { .nav-lockup { height: 40px; } }
.nav-link { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; position: relative; }
html:not(:lang(en)) .nav-link { text-transform: none; letter-spacing: normal; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: 6px;
  height: 2px;
  background: var(--f1-red);
  transform: scaleX(0) skewX(-30deg);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav-link:hover::after { transform: scaleX(1) skewX(-30deg); }

/* ── Headlines: italic, uppercase, fast (English only; Hindi and Bengali stay upright) ── */
html:lang(en) h1,
html:lang(en) .land-section h2,
html:lang(en) .features h2,
html:lang(en) .land-cta h2,
html:lang(en) .support-title,
html:lang(en) .support-head h1 { font-style: italic; text-transform: uppercase; }
h1 .accent { text-shadow: 0 0 36px color-mix(in srgb, var(--accent-color, var(--f1-red)) 50%, transparent); }

.hero-tag { border-radius: 2px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }

/* Sector label: "SECTOR 01 · THE GRID" */
.sector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
}
.sector-num {
  padding: 5px 16px 5px 12px;
  background: var(--f1-red);
  color: #fff;
  font-weight: 500;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.sector::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--border2), transparent); }
html:not(:lang(en)) .sector { text-transform: none; letter-spacing: 0.04em; }

/* ── Buttons: cut corner, heavy, with a light sweep on hover ── */
.btn, .nav-cta, .track-btn, .auto-btn, .pay-btn, .quick-go {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}
.btn-primary::before, .nav-cta::before, .pay-btn::before, .auto-btn::before, .quick-go::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
  pointer-events: none;
}
.btn-primary:hover::before, .nav-cta:hover::before, .pay-btn:hover::before, .auto-btn:hover::before, .quick-go:hover::before { left: 120%; }
html:not(:lang(en)) .btn, html:not(:lang(en)) .nav-cta, html:not(:lang(en)) .auto-btn,
html:not(:lang(en)) .pay-btn, html:not(:lang(en)) .quick-go { text-transform: none; letter-spacing: normal; }
/* the long "Track <courier> shipment" label stays in normal case so it fits on one line beside its icon */
.track-btn { text-transform: none; letter-spacing: 0; font-weight: 700; }
.btn-ghost { border-radius: 0 !important; clip-path: none; border-left: 4px solid var(--f1-red); }

/* ── Panels: sharp, with a team-colour edge ── */
.tracker-card, .auto-card, .support-card, .feat-card, .tip-card, .app-picker, .support-cup { border-radius: 4px !important; }
.tracker-card { box-shadow: inset 5px 0 0 var(--accent-color, var(--f1-red)); }
.auto-card { box-shadow: inset 5px 0 0 var(--f1-red); }
.input-wrap input, .auto-input-wrap input, .bulk-textarea, .auto-icon, .amount, .custom-amount,
.app-tile, .auto-row, .support-hint, .step, .courier-warning, .qr-box { border-radius: 3px !important; }
.auto-act { border-radius: 3px !important; }
.active-courier-chip, .nav-badge, .auto-badge { letter-spacing: 0.1em; }

/* Tracker page: a shorter headline so the tool is on screen at once */
.hero:not(.landing) { min-height: 0; padding-top: 104px; padding-bottom: 2rem; }
.hero:not(.landing) h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); margin-bottom: 1rem; }
.hero:not(.landing) .hero-sub { margin-bottom: 1.5rem; }
.hero:not(.landing) .hero-tag { margin-bottom: 1.25rem; }

/* Support and Suggestions pages */
.support-head h1, .support-title { font-weight: 800; letter-spacing: -0.03em; }

/* ── Footer ── */
footer { position: relative; border-top: 3px solid var(--f1-red); }
footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 6px;
  background: repeating-conic-gradient(#fff 0% 25%, #111 0% 50%) 0 0 / 6px 6px;
  opacity: 0.88;
  pointer-events: none;
}
.footer-brand { display: flex; justify-content: center; color: var(--text); }
.footer-brand .op-lockup { height: 84px; }

/* Phones: keep the uppercase buttons on one line */
@media (max-width: 600px) {
  .btn, .nav-cta, .auto-btn, .pay-btn, .quick-go { letter-spacing: 0.03em; font-size: 13px; }
  .btn { padding-left: 16px; padding-right: 16px; white-space: nowrap; }
  .hero-tag { letter-spacing: 0.06em; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before, .nav-cta::before, .pay-btn::before, .auto-btn::before, .quick-go::before { display: none; }
}


/* ═══════════ Inner pages (Tracker, Support, Suggestions) follow the homepage design ═══════════ */

/* sector labels line up with the card below them */
.sector-page { width: 100%; max-width: 640px; margin: 1.7rem auto 0.9rem; }
.support-head .sector { margin-bottom: 1.3rem; }

/* Tracker: the courier picker is the same starting grid as the homepage (position number, team-colour edge) */
.courier-selector { counter-reset: pos; max-width: 640px; gap: 10px 14px; }
.courier-btn {
  counter-increment: pos;
  position: relative;
  justify-content: flex-start;
  text-align: left;
  padding: 14px 12px 14px 46px;
  border-radius: 3px !important;
  border: 1px solid var(--border2);
  border-left: 5px solid var(--c, var(--border2));
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.courier-btn::before {
  content: 'P' counter(pos);
  position: absolute;
  left: 11px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.03em;
  color: var(--text3);
}
.courier-btn::after { display: none; }
.courier-dot { display: none; }
.courier-btn:hover { background: color-mix(in srgb, var(--c, var(--text)) 12%, var(--bg2)); border-color: var(--c, var(--border2)); color: var(--text); }
.courier-btn.active-courier { background: color-mix(in srgb, var(--c, var(--text)) 18%, var(--bg2)); border-color: var(--c, var(--border2)); box-shadow: none; }
@media (max-width: 560px) {
  .courier-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .courier-btn { padding-left: 46px; font-size: 13px; }
}

/* Support and Suggestions: same palette, headline and panels as the homepage (the old amber accent becomes racing red) */
:root { --support-accent: var(--f1-red); --support-text: #fff; }
.support-head { text-align: left; }
.support-head h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 0.9rem; }
.support-lead { text-align: left; margin-left: 0; margin-right: 0; max-width: 560px; }
.support-cup {
  width: 52px; height: 52px; margin-bottom: 1.1rem;
  border: 0;
  border-radius: 0 !important;
  background: var(--f1-red);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.support-card { background: var(--bg2); border: 1px solid var(--border2); box-shadow: inset 5px 0 0 var(--f1-red); }
.amount.selected { background: color-mix(in srgb, var(--f1-red) 14%, transparent); }
.custom-amount:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--f1-red) 20%, transparent); }
.support-hint { background: color-mix(in srgb, var(--f1-red) 10%, transparent); border-color: color-mix(in srgb, var(--f1-red) 35%, transparent); }
.support-back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
html:not(:lang(en)) .support-back { text-transform: none; letter-spacing: normal; }

/* the supporter card on the homepage uses the same red */
.tip-card { border-left: 5px solid var(--f1-red); }
.tip-icon { background: var(--f1-red); color: #fff; border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.tip-btn { background: var(--f1-red); color: #fff; border-radius: 0; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); font-weight: 800; }

/* the header button stays racing red on the tracker page, even while no courier is chosen (the accent is grey then) */
html:has(#trackerCard) .nav-cta { background: var(--f1-red); }

.auto-input-wrap input::placeholder { font-size: 13px; }
