/* ==========================================================================
   Sampark website: app design layer (Nov 2026)
   Loaded LAST on every page (sampark_head in ynaps_uni_helper.php), after
   sampark.css and any page CSS. It gives the website the same look as the
   Sampark app (app assets/css/sampark-ui.css + v3/app.css):
     • Archivo, ink #1c1b1a, Sampark yellow #FFEB00, warm grey ground #F3F2EF
     • white rounded cards with soft hairlines, pastel tiles
     • yellow pill for the active nav item, bold rounded buttons
   Tokens live in sampark.css :root. Change colours there, not here.
   ========================================================================== */

/* ---------- Base ---------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -.005em;
}
h1, h2, h3, h4, h5, h6, .display, .h2, .h3 { font-family: var(--font-head); letter-spacing: -.025em; }
/* .sampark-body prefix: beats the old Fredoka-era ".sampark-body h1 { font-weight: 500 }" in sampark.css */
h1, .display, .sampark-body h1, .sampark-body .display { font-weight: 800; line-height: 1.06; }
h2, .h2, .sampark-body h2, .sampark-body .h2 { font-weight: 800; line-height: 1.12; }
h3, .h3, h4, .sampark-body h3, .sampark-body .h3, .sampark-body h4, .sampark-body h5 { font-weight: 700; line-height: 1.2; }
.lead { color: var(--muted); }
.eyebrow { color: var(--muted-2); font-weight: 800; letter-spacing: .12em; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sp-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------- Top bar (app header look) ------------------------------------ */
.nav {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__links { gap: 6px; color: var(--muted); font-weight: 700; }
.nav__link { padding: 9px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav__link:hover { background: var(--paper); color: var(--ink); }
.nav__link.is-active { background: var(--yellow); color: var(--ink); }
.nav__cart { border-radius: 999px; }
.nav-mobile__link.is-active { background: var(--yellow); color: var(--ink); border-radius: 14px; }
.nav-mobile__panel { background: var(--white); }

/* ---------- Buttons -------------------------------------------------------- */
.btn { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 18px -10px rgba(120, 100, 0, .55); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--border-2); background: var(--white); font-weight: 700; }
.btn--white { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn--white:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }

/* ---------- Badges, cards, panels ----------------------------------------- */
.badge { background: var(--ink); color: #fff; font-weight: 700; }
.badge--outline { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.card, .product-card, .steprail__item, .faq-accordion__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.card--hover:hover, .product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.media-panel { border-radius: 20px; border-color: var(--border); }
.section--white { background: var(--white); border-color: var(--border); }
.section--yellow { background: var(--yellow); }
.section--dark, .footer { background: var(--ink); }

/* Pastel icon boxes and numbered steps, like the app */
.icon-box { border: 0; border-radius: 14px; width: 44px; height: 44px; background: var(--yellow-2); }
.icon-box--green { background: var(--green); }
.icon-box--blue { background: var(--blue); }
.icon-box--lav { background: var(--lav); }
.icon-box--peach { background: var(--peach); }
.step-num, .steprail__num { background: var(--yellow-2); color: var(--ink); font-weight: 800; border-radius: 14px; }
.grid-3 > div:nth-child(2) > .step-num { background: var(--blue); color: var(--blue-ink); }
.grid-3 > div:nth-child(3) > .step-num { background: var(--green); color: var(--green-ink); }
.checks span { color: var(--green-solid); }

/* ---------- Forms (app inputs) -------------------------------------------- */
input, textarea, select {
  font-family: var(--font-body);
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: var(--white);
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 235, 0, .45); outline: none; }

/* ---------- Footer --------------------------------------------------------- */
.footer { border-radius: 28px 28px 0 0; }
.footer h4 { color: #fff; font-family: var(--font-head); font-weight: 800; }
.footer a:hover { color: var(--ink); }

/* ---------- Location popup in the app's card style ------------------------- */
.location-popup__card { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* ==========================================================================
   Home (views/home.php) — mirrors the app's guest home
   ========================================================================== */
.ah-hero { max-width: calc(var(--container) + 2 * var(--pad-x)); margin: 0 auto; padding: 22px var(--pad-x) 8px; } /* same content width as .section > .section__inner */
.ah-hero__card {
  background: var(--yellow);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 52px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.ah-hero__card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .28); pointer-events: none; }
.ah-hero .badge { margin-bottom: 18px; }
.ah-hero .display { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 14px; }
.ah-hero .lead { color: #3d3a2a; max-width: 520px; margin-bottom: 22px; font-size: 18px; }
.ah-hero__media { position: relative; z-index: 1; background: rgba(255, 255, 255, .55); border-radius: 24px; padding: 22px; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.ah-hero__media img { max-height: 340px; width: auto; object-fit: contain; }
.ah-hero .hero__cta { margin: 20px 0 0; }

.ah-search { display: flex; gap: 10px; background: var(--white); border-radius: 18px; padding: 8px; max-width: 560px; box-shadow: 0 10px 30px -18px rgba(28, 27, 26, .5); }
.ah-plate { flex: 1; display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; min-width: 0; }
.ah-plate i { width: 22px; align-self: stretch; background: #1f4f8f; flex: none; position: relative; }
.ah-plate i::after { content: "IND"; position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font: 800 7px var(--font-body); color: #fff; font-style: normal; }
.ah-plate input { border: 0; border-radius: 0; box-shadow: none; flex: 1; min-width: 0; padding: 12px 12px; font: 800 20px var(--font-head); letter-spacing: .08em; text-transform: uppercase; background: transparent; }
.ah-plate input:focus { box-shadow: none; }
.ah-plate input::placeholder { color: #b9b5ae; }
.ah-search button { border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 800 15px var(--font-head); padding: 0 18px; white-space: nowrap; cursor: pointer; }
.ah-search button span { color: var(--yellow); margin-left: 4px; }
.ah-hero__note { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: #4a4630; }
.ah-hero__note a { background: rgba(255, 255, 255, .7); padding: 6px 12px; border-radius: 999px; font-weight: 800; color: var(--ink); }

.ah-trust { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--border); border-radius: 20px; margin-top: 14px; }
.ah-trust > div { padding: 16px 12px; text-align: center; display: grid; gap: 2px; }
.ah-trust > div + div { border-left: 1px solid var(--border); }
.ah-trust b { font: 800 18px var(--font-head); }
.ah-trust small { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.ah-sec { padding-top: 28px; padding-bottom: 28px; }
.ah-title { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 16px; }
.ah-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ah-tile { display: flex; flex-direction: column; gap: 4px; min-height: 168px; padding: 18px; border-radius: 22px; transition: transform .15s, box-shadow .15s; }
.ah-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ah-tile__ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: auto; }
.ah-tile b { font: 800 17px var(--font-head); margin-top: 16px; }
.ah-tile small { font-size: 13px; font-weight: 600; opacity: .8; }
.ah-tile--yellow { background: var(--yellow-2); color: #5b5200; }
.ah-tile--lav { background: var(--lav); color: var(--lav-ink); }
.ah-tile--peach { background: var(--peach); color: var(--peach-ink); }
.ah-tile--green { background: var(--green); color: var(--green-ink); }
.ah-tile b { color: var(--ink); }

.ah-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.ah-steps { list-style: none; margin: 0; padding: 6px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; }
.ah-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.ah-steps li + li { border-top: 1px solid var(--border); }
.ah-steps b { display: block; font: 800 16px var(--font-head); }
.ah-steps small { color: var(--muted); font-size: 14px; }
.ah-num { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font: 800 15px var(--font-head); }
.ah-num--y { background: var(--yellow-2); color: #5b5200; }
.ah-num--b { background: var(--blue); color: var(--blue-ink); }
.ah-num--g { background: var(--green); color: var(--green-ink); }
.ah-pia { margin-top: 46px; display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.ah-pia img { width: 64px; height: 64px; border-radius: 99px; object-fit: cover; border: 3px solid var(--yellow); flex: none; }
.ah-pia b { font: 800 18px var(--font-head); display: block; }
.ah-pia p { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }

.ah-product { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; padding: 28px; border-radius: 24px; }
.ah-product .h2 { font-size: 30px; margin-bottom: 10px; }
.ah-product .muted { margin-bottom: 18px; }
.ah-product__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ah-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ah-two .h2 { font-size: 26px; margin-bottom: 10px; }
.ah-card-lav { background: var(--lav); border-color: transparent; }
.ah-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ah-mt { margin-top: 18px; }
.ah-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: #fff; border-radius: 24px; padding: 28px 12px; text-align: center; }
.ah-stats b { display: block; font: 800 clamp(28px, 3.4vw, 40px) var(--font-head); color: var(--yellow); }
.ah-stats small { color: #c9c5bd; font-weight: 600; }
.ah-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--yellow); border-radius: 24px; padding: 30px clamp(20px, 4vw, 44px); }
.ah-band .h2 { font-size: clamp(26px, 3vw, 38px); }
.ah-band p { color: #4a4630; font-weight: 600; margin-top: 4px; }

@media (max-width: 1000px) {
  .ah-tiles { grid-template-columns: repeat(2, 1fr); }
  .ah-split, .ah-two, .ah-product { grid-template-columns: 1fr; }
  .ah-pia { margin-top: 0; }
}
@media (max-width: 760px) {
  .ah-hero { padding: 12px var(--pad-x) 4px; }
  .ah-hero__card { grid-template-columns: 1fr; border-radius: 24px; }
  .ah-hero__media { display: none; } /* like the app: the plate search is the first thing on a phone */
  .ah-search { flex-direction: column; }
  .ah-search button { padding: 14px; }
  .ah-trust { grid-template-columns: repeat(2, 1fr); }
  .ah-trust > div:nth-child(3) { border-left: 0; }
  .ah-trust > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .ah-sec { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .ah-tile { min-height: 140px; }
  .ah-stats { grid-template-columns: 1fr; gap: 16px; }
  .footer { border-radius: 22px 22px 0 0; }
}

/* ==========================================================================
   Inner pages: a bit more of the app's polish (FAQ, cart, blog, auto tools, legal…)
   ========================================================================== */
.page-hero, .blog-post-hero, .auto-hero, .pay-hero, .blog-hero {
  background:
    radial-gradient(520px 260px at 92% 0%, rgba(255, 235, 0, .32), transparent 70%),
    radial-gradient(420px 220px at 0% 100%, rgba(236, 229, 250, .9), transparent 70%),
    var(--paper);
}
.page-hero .eyebrow, .auto-hero .eyebrow, .blog-hero .eyebrow, .pay-hero .eyebrow {
  display: inline-block; background: var(--white); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; color: var(--ink); letter-spacing: .1em; font-size: 11.5px;
}
.page-main.section--white, .blog-post-main.section--white, .auto-main.section--white, .pay-main.section--white {
  border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 var(--border);
}
.faq-accordion__item { padding: 0 18px; transition: box-shadow .15s; }
.faq-accordion__item[open] { box-shadow: var(--shadow-md); }
.faq-accordion__item summary { font-weight: 800; }
.faq-accordion__item summary::after { color: var(--ink); background: var(--yellow-2); width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.faq__item { border-color: var(--border); }
main table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
main table th { background: var(--paper); font-weight: 800; text-align: left; }
main table th, main table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
main table tr:last-child td { border-bottom: 0; }
.page-shell a:not(.btn), .blog-post-main p a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.page-shell a:not(.btn):hover { background: var(--yellow-3); }
.field label, .in-label { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { padding: 12px 14px; font-size: 15px; }
.product-card__media { background: var(--paper); }

/* ==========================================================================
   Footer (views/inc/_footer.php)
   ========================================================================== */
.ft { padding: 0 var(--pad-x) 26px; color: #b7b2a9; font-size: 14.5px; margin-top: 48px; }
.ft-band {
  max-width: var(--container); margin: 0 auto; transform: translateY(-32px);
  background: var(--yellow); color: var(--ink); border-radius: 24px; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55);
}
.ft-band__text { display: flex; align-items: center; gap: 14px; }
.ft-band__text img { width: 52px; height: 52px; border-radius: 99px; object-fit: cover; border: 3px solid #fff; flex: none; }
.ft-band__text b { display: block; font: 800 18px var(--font-head); }
.ft-band__text span { font-size: 14px; color: #4a4630; font-weight: 600; }
.ft-band__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-band .btn { padding: 12px 20px; font-size: 15px; }
.ft-main { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; padding: 8px 0 32px; }
.ft-brand p { margin: 14px 0 16px; line-height: 1.6; font-size: 14px; }
.ft-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ft-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ft-col h4 { color: #fff; font: 800 13px var(--font-head); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.ft-col a { color: #b7b2a9; overflow-wrap: anywhere; transition: color .15s; }

.ft-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--yellow); color: var(--ink); font: 800 10.5px var(--font-head); vertical-align: 2px; }
.ft .social-icons__link { background: rgba(255, 255, 255, .08); border-radius: 12px; }

.ft .footer-chip { border-radius: 99px; }
.ft-bottom { max-width: var(--container); margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-legal a { color: #b7b2a9; }

.ft-locale { background: rgba(255, 255, 255, .08); padding: 4px 10px; border-radius: 99px; }
.ft .footer-blog { border-color: rgba(255, 255, 255, .1); }
@media (max-width: 1100px) {
  .ft-main { grid-template-columns: 1fr; gap: 28px; }
  .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ft { padding: 0 var(--pad-x) 90px; }
  .ft-band { transform: translateY(-24px); padding: 16px; }
  .ft-band__cta, .ft-band__cta .btn { width: 100%; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Internship (views/internship.php)
   ========================================================================== */
.in-hero { grid-template-columns: 1.2fr .8fr; }
.in-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; }
.in-chips li { background: rgba(255, 255, 255, .75); border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 800; }
.in-hero__side { display: flex; justify-content: center; position: relative; z-index: 1; }
.in-cert {
  width: 100%; max-width: 330px; aspect-ratio: 1.42; background: #fff; border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 6px;
  border: 8px solid var(--yellow-3); outline: 1px dashed #d8cf86; outline-offset: -16px;
  transform: rotate(-3deg); box-shadow: var(--shadow-lg);
}
.in-cert small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.in-cert b { font: 800 22px var(--font-head); }
.in-cert span { color: var(--muted); font-weight: 600; font-size: 14px; }
.in-cert i { font-style: normal; font-size: 12px; font-weight: 800; margin-top: 8px; color: #5b5200; }
.in-note { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--yellow); border-radius: 18px; padding: 18px 20px; }
.in-note__ic { font-size: 22px; }
.in-note b { font: 800 16px var(--font-head); }
.in-note p { color: var(--muted); margin-top: 4px; }
.in-note strong { color: var(--ink); }
.in-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.in-perks .card { padding: 22px; }
.in-perks .h3 { margin-bottom: 6px; }
.in-tracks { grid-template-columns: repeat(3, 1fr); }
.in-tracks .ah-tile { min-height: 150px; }
.in-steps .ah-num { width: auto; min-width: 36px; padding: 0 8px; }
.in-who { padding: 22px; }
.in-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.in-list li { padding-left: 28px; position: relative; font-weight: 600; }
.in-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--green); color: var(--green-ink); font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.in-small { font-size: 14px; }
.in-apply { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.in-apply__intro { position: sticky; top: 96px; }
.in-apply__intro .h2 { margin-bottom: 10px; }
.in-pia { display: flex; align-items: center; gap: 12px; margin-top: 18px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; }
.in-pia img { width: 48px; height: 48px; border-radius: 99px; object-fit: cover; border: 2px solid var(--yellow); }
.in-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; border-bottom: 2px solid var(--yellow); cursor: pointer; }
.in-form { padding: 24px; border-radius: 24px; }
.in-form .field { margin-bottom: 14px; }
.in-form .form-grid { gap: 14px; margin-bottom: 0; }
.in-form .field > label { display: block; margin-bottom: 6px; }
.in-label { display: block; margin-bottom: 6px; }
.in-seg { display: flex; background: var(--paper); border-radius: 14px; padding: 4px; gap: 4px; }
.in-seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 10px; font-weight: 700; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); position: relative; }
.in-seg input { position: absolute; opacity: 0; pointer-events: none; }
.in-seg label:has(input:checked) { background: var(--white); box-shadow: var(--shadow-sm); }
.in-seg label:has(input:focus-visible) { outline: 2px solid var(--ink); }
.in-check { display: flex; gap: 10px; align-items: flex-start; background: var(--yellow-3); border-radius: 14px; padding: 12px 14px; margin: 4px 0 14px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.in-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); padding: 0; }
.in-msg { padding: 12px 14px; border-radius: 12px; font-weight: 700; margin-bottom: 12px; }
.in-msg.is-ok { background: var(--green); color: var(--green-ink); }
.in-msg.is-err { background: var(--red); color: var(--red-ink); }
.in-form .btn[disabled] { opacity: .7; cursor: default; }
@media (max-width: 1000px) {
  .in-perks { grid-template-columns: repeat(2, 1fr); }
  .in-tracks { grid-template-columns: repeat(2, 1fr); }
  .in-apply { grid-template-columns: 1fr; }
  .in-apply__intro { position: static; }
}
@media (max-width: 760px) {
  .in-hero { grid-template-columns: 1fr; }
  .in-hero__side { display: none; }
  .in-hero .badge { white-space: normal; }
  .in-perks, .in-tracks { grid-template-columns: 1fr; }
  .in-form { padding: 18px; }
  .in-form .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Alignment: every page lines up on one left/right edge (the logo's edge)
   ========================================================================== */
/* One phone gutter for the whole site: 16px, same as the app */
@media (max-width: 560px) { :root { --pad-x: 16px; } }

/* Centred 820–900px boxes made headings and content start further right than the logo.
   They now use the full page width; long text keeps a readable line length instead. */
.narrow, .auto-shell, .legal-doc-shell, .pd-faq { max-width: var(--container); }
.narrow > p, .narrow > .lead, .auto-shell .auto-hero__lead, .auto-shell > .lead { max-width: 760px; }
.center .narrow > p, .narrow.center > p, .center .narrow > .lead, .narrow.center > .lead { margin-left: auto; margin-right: auto; }
.legal-doc-card > *:not(table):not(.eyebrow) { max-width: 820px; }
.steprail { max-width: calc(var(--container) + 2 * var(--pad-x)); }
.pd-faq .faq-accordion { max-width: none; }

/* Grid items may shrink: stops cards and forms pushing the page sideways on phones */
.section__inner > *, [class*="grid"] > *, [class*="layout"] > *, .media-split > * { min-width: 0; }
img, video, iframe { max-width: 100%; }

@media (max-width: 760px) {
  /* Views with inline two-column grids (style="grid-template-columns:…") stack on phones */
  main [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  main [style*="padding:48px"], main [style*="padding: 48px"] { padding: 24px 18px !important; }
  .about-shark { padding: 24px 18px !important; }
  /* Page intro bands use the same gutter as everything else */
  .page-hero, .blog-post-hero, .auto-hero, .pay-hero, .blog-hero, .legal-doc-page,
  .page-main, .blog-post-main, .auto-main, .pay-main { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .legal-doc-card { padding: 24px 18px; }
}

/* ==========================================================================
   Footer v3: light panel (white on warm grey), dark text, colourful socials
   ========================================================================== */
.ft { background: var(--white); color: var(--muted); border-top: 1px solid var(--border); box-shadow: 0 -12px 40px -30px rgba(28, 27, 26, .25); }
.ft .ft-band { box-shadow: 0 18px 40px -24px rgba(120, 100, 0, .55); }
.ft-col h4 { color: var(--ink); }
.ft-col a, .ft-legal a { color: var(--muted); }
.ft-col a:hover, .ft-legal a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ft-brand p { color: var(--muted); }
.ft-bottom { border-top-color: var(--border); color: var(--muted-2); }
.ft-locale { background: var(--paper); color: var(--ink) !important; }
.ft .footer-chip { color: var(--ink); background: var(--paper); border-color: var(--border); }
.ft .footer-chip:hover { background: var(--yellow); border-color: var(--yellow); }
.ft .footer-blog { border-top: 1px solid var(--border); }
.ft .footer-blog__summary { color: var(--ink); }
.ft .footer-blog__details[open] .footer-blog__summary, .ft .footer-blog__summary:hover { color: var(--ink); }
.ft .footer-blog__chevron { border-color: var(--muted); }
.sampark-body .ft .footer-blog-links a { color: var(--muted) !important; }
.sampark-body .ft .footer-blog-links a:hover { color: var(--ink) !important; }
.ft .brand-logo-wrap { padding: 0; background: none; }
.ft .nav__logo--footer .brand-logo { height: 40px; }

/* Social icons in each network's own colour */
.social-icons--brand .social-icons__link { color: #fff; border: 0; width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.social-icons--brand .social-icons__link:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.06); }
.social-icons--brand .social-icons__link[aria-label="YouTube"] { background: #FF0000; }
.social-icons--brand .social-icons__link[aria-label="Instagram"] { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icons--brand .social-icons__link[aria-label="Facebook"] { background: #1877F2; }
.social-icons--brand .social-icons__link[aria-label="X"] { background: #000; }
.social-icons--brand .social-icons__link[aria-label="LinkedIn"] { background: #0A66C2; }
.social-icons--brand .social-icons__link[aria-label="WhatsApp"] { background: #25D366; }
.social-icons--brand .social-icons__link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

@media (max-width: 640px) {
  .ft { border-radius: 24px 24px 0 0; }
}
.ft .social-icons--brand .social-icons__link, .ft .social-icons--brand .social-icons__link:hover { color: #fff !important; } /* beats footer link colours */

/* ==========================================================================
   Artwork cards (assets/img/sampark/*.webp) and carousels (views/inc/sp_carousel.php)
   ========================================================================== */
.ah-hero__media--card { background: none; padding: 0; min-height: 0; }
.ah-hero__media--card img { width: 100%; max-height: none; height: auto; border-radius: 22px; box-shadow: 0 22px 50px -24px rgba(60, 50, 0, .6); transform: rotate(1.5deg); }
.ah-cardimg { border-radius: 20px; overflow: hidden; line-height: 0; box-shadow: var(--shadow-md); }
.ah-cardimg img { width: 100%; height: auto; display: block; }

.spc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.spc__head .ah-title { margin-bottom: 4px; }
.spc__sub { font-size: 15px; max-width: 620px; }
.spc__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.spc__link { font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); margin-right: 4px; }
.spc__link:hover { border-color: var(--ink); }
.spc__btn { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--border); background: var(--white); font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.spc__btn:hover { background: var(--yellow); border-color: var(--yellow); }
.spc__track {
  list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 26%, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 2px; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.spc__track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
.spc__item { scroll-snap-align: start; border-radius: 20px; overflow: hidden; line-height: 0; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.spc__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.spc__item img { width: 100%; height: auto; display: block; aspect-ratio: 1; }
.spc--lav > .section__inner, .spc--yellow > .section__inner, .spc--green > .section__inner, .spc--blue > .section__inner, .spc--peach > .section__inner { border-radius: 28px; padding: 26px 26px 14px; }
.spc--lav > .section__inner { background: var(--lav); }
.spc--yellow > .section__inner { background: var(--yellow-3); }
.spc--green > .section__inner { background: var(--green); }
.spc--blue > .section__inner { background: var(--blue); }
.spc--peach > .section__inner { background: var(--peach); }
@media (max-width: 760px) {
  .spc__head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .spc__btn { display: none; }
  .spc__track { grid-auto-columns: 78%; }
  .spc--lav > .section__inner, .spc--yellow > .section__inner, .spc--green > .section__inner, .spc--blue > .section__inner, .spc--peach > .section__inner { padding: 18px 14px 8px; border-radius: 22px; }
}

/* Home finale: one pastel block instead of a black stats band + a yellow band */
.ah-finale { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; }
.ah-finale__cta { background: var(--yellow-3); border: 1px solid #f1e7a6; border-radius: 24px; padding: 26px 28px; }
.ah-finale__cta .h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.ah-finale__cta p { color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.ah-finale__stat { border-radius: 24px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; }
.ah-finale__stat b { font: 800 clamp(26px, 3vw, 36px) var(--font-head); color: var(--ink); }
.ah-finale__stat small { font-weight: 700; font-size: 14px; }
.ah-finale__stat--green { background: var(--green); color: var(--green-ink); }
.ah-finale__stat--blue { background: var(--blue); color: var(--blue-ink); }
.ah-finale__stat--peach { background: var(--peach); color: var(--peach-ink); }
@media (max-width: 1000px) { .ah-finale { grid-template-columns: repeat(3, 1fr); } .ah-finale__cta { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ah-finale__stat { min-height: 0; padding: 16px 12px; } .ah-finale__stat b { font-size: 22px; } .ah-finale__stat small { font-size: 12px; } }

/* Product page: Shark Tank block in lavender instead of black */
.pd-shark--pastel { background: transparent; }
.pd-shark--pastel .pd-shark__grid { background: var(--lav); border-radius: 28px; padding: clamp(20px, 3vw, 36px); }
.pd-shark--pastel .pd-shark__media { box-shadow: var(--shadow-md); border-radius: 20px; }
.pd-shark--pastel .pd-shark__title { color: var(--ink); }
.pd-shark--pastel .pd-shark__text { color: #4d4566; }
.pd-shark--pastel .pd-shark__badge { background: var(--white); }
.pd-shark--pastel .pd-shark__stats > div { background: rgba(255, 255, 255, .7); border-color: transparent; }
.pd-shark--pastel .pd-shark__stats b { color: var(--lav-ink); }
.pd-shark--pastel .pd-shark__stats span { color: #4d4566; }
.pd-shark--pastel .btn--yellow { box-shadow: none; }

/* ==========================================================================
   Payment page (views/pay_now.php)
   ========================================================================== */
.pp { padding-top: 26px; }
.pp-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pp-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-weight: 800; font-size: 13.5px; color: var(--muted); }
.pp-steps span { width: 24px; height: 24px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--paper); }
.pp-steps .is-done span { background: var(--green); color: var(--green-ink); }
.pp-steps .is-now { background: var(--ink); color: #fff; border-color: var(--ink); }
.pp-steps .is-now span { background: var(--yellow); color: var(--ink); }
.pp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pp-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.pp-lead { font-size: 16px; }
.pp-secure { background: var(--green); color: var(--green-ink); font-weight: 800; font-size: 13.5px; padding: 8px 14px; border-radius: 999px; }
.pp-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pp-methods { display: grid; gap: 14px; }
.pp-method { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
.pp-method--best { border: 2px solid var(--ink); padding-top: 26px; }
.pp-badge { position: absolute; top: -13px; left: 18px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }
.pp-method__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pp-method__ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.pp-method__txt { flex: 1; min-width: 0; }
.pp-method__txt .h3 { font-size: 19px; margin-bottom: 2px; }
.pp-method__txt p { color: var(--muted); font-size: 14px; }
.pp-method__amt { text-align: right; flex: none; }
.pp-method__amt b { display: block; font: 800 22px var(--font-head); }
.pp-method__amt s { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.pp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
.pp-chips li { background: var(--paper); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pp-cod { border: 1px solid var(--border-2); }
.pp-error { margin-top: 10px; color: var(--red-ink); font-weight: 700; font-size: 14px; }
.pp-notice { background: var(--peach); color: var(--peach-ink); border-radius: 18px; padding: 14px 16px; font-weight: 600; }
.pp-notice a { font-weight: 800; color: inherit; text-decoration: underline; }
.pp-ic--yellow { background: var(--yellow-2); }
.pp-ic--green { background: var(--green); color: var(--green-ink); }
.pp-ic--blue { background: var(--blue); color: var(--blue-ink); }
.pp-ic--lav { background: var(--lav); color: var(--lav-ink); }
.pp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pp-trust__item { border-radius: 18px; padding: 14px; display: grid; gap: 2px; }
.pp-trust__item b { font-size: 14.5px; color: var(--ink); }
.pp-trust__item small { font-size: 12.5px; font-weight: 600; }
.pp-back { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 14px; color: var(--muted); }
.pp-back:hover { color: var(--ink); }
.pp-aside { display: grid; gap: 14px; position: sticky; top: 96px; }
.pp-summary { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-sm); }
.pp-summary__img { border-radius: 16px; overflow: hidden; line-height: 0; margin-bottom: 14px; aspect-ratio: 16 / 9; }
.pp-summary__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.pp-summary .h3 { margin-bottom: 8px; }
.pp-rows { margin: 0; }
.pp-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.pp-rows dt { color: var(--muted); }
.pp-rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pp-rows__disc dd { color: var(--green-solid); }
.pp-rows__total { border-bottom: 0 !important; padding-top: 12px !important; }
.pp-rows__total dt { color: var(--ink); font-weight: 800; }
.pp-rows__total dd { font: 800 20px var(--font-head); }
.pp-note { margin-top: 10px; background: var(--paper); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.pp-review { border-radius: 20px; overflow: hidden; line-height: 0; box-shadow: var(--shadow-sm); }
.pp-review img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .pp-layout { grid-template-columns: minmax(0, 1fr); }
  .pp-aside { position: static; }
  .pp-review { display: none; }
}
@media (max-width: 560px) {
  .pp-trust { grid-template-columns: 1fr; }
  .pp-method { padding: 16px; }
  .pp-method--best { padding-top: 24px; }
  .pp-method__top { flex-wrap: wrap; }
  .pp-method__amt { text-align: left; width: 100%; padding-left: 62px; margin-top: -6px; }
}

/* ==========================================================================
   Footer v4: monochrome socials, pastel help strip (less yellow/black at the bottom)
   ========================================================================== */
.ft .ft-band { background: var(--lav); box-shadow: 0 18px 40px -26px rgba(75, 58, 138, .5); }
.ft .ft-band__text span { color: #4d4566; }
.ft .ft-band .btn--white { border-color: transparent; }
.social-icons--brand .social-icons__link,
.social-icons--brand .social-icons__link[aria-label] { background: var(--paper); border: 1px solid var(--border); box-shadow: none; }
.ft .social-icons--brand .social-icons__link, .ft .social-icons--brand .social-icons__link:hover { color: var(--ink) !important; }
.social-icons--brand .social-icons__link:hover { background: var(--ink); border-color: var(--ink); filter: none; }
.ft .social-icons--brand .social-icons__link:hover { color: #fff !important; }

/* ==========================================================================
   Hover contrast guard: button and link text never turns yellow or white
   on a light background (old dark-footer rules did that).
   ========================================================================== */
.sampark-body a.btn--white, .sampark-body button.btn--white,
.sampark-body a.btn--white:hover, .sampark-body button.btn--white:hover { color: var(--ink) !important; }
.btn--white:hover { background: var(--paper); border-color: var(--ink); }
.sampark-body a.btn--yellow:hover, .sampark-body button.btn--yellow:hover { color: var(--ink) !important; }
.sampark-body a.btn--dark:hover, .sampark-body button.btn--dark:hover { color: #fff !important; }
.sampark-body a.btn--outline:hover, .sampark-body button.btn--outline:hover { color: var(--ink) !important; background: var(--white); }
.ft .footer-locale:hover, .ft .ft-locale:hover, .ft .download-extras a:hover, .ft .footer__cols a:hover { color: var(--ink) !important; }
.ft .footer-chip:hover { color: var(--ink) !important; }
.spc__btn:hover, .spc__link:hover { color: var(--ink); }

/* Pack chooser on car tag product pages: 1 tag (product 42) / 2 tags (product 17), like the app */
.pack-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.pack-pick__opt { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--border-2); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
a.pack-pick__opt:hover { border-color: var(--ink); background: var(--paper); }
.pack-pick__opt b { font: 800 15px var(--font-head); }
.pack-pick__opt span { font: 800 20px var(--font-head); }
.pack-pick__opt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pack-pick__opt.is-on { border: 2px solid var(--ink); background: var(--yellow-3); }
.pack-pick__opt i { position: absolute; top: -10px; right: 10px; font-style: normal; background: var(--green); color: var(--green-ink); font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; }

/* Hero eTag form: the plate box keeps room for a full number; the longer button wraps below it when needed */
.ah-search { flex-wrap: wrap; }
.ah-search .ah-plate { flex: 1 1 230px; min-width: 0; }
.ah-search button { flex: 1 0 auto; min-height: 48px; }
@media (max-width: 760px) { .ah-search .ah-plate, .ah-search button { flex: none; } } /* column layout on phones: no flex height */
