/* ============================================================
   Bright white canvas + softly tinted cards.
   Loaded after vivid.css. The page ground goes back to clean
   white; the cards carry a light, non-blue wash so the layout
   still has warmth and rhythm.
   ============================================================ */

:root {
  --card-cream: #fdf6e8;
  --card-sand: #faf3e6;
  --card-mint: #eef8f2;
  --card-lilac: #f4effc;
  --card-peach: #fef1ea;
  --card-line: #efe7da;
}

/* ---------- white ground ---------- */
body {
  background:
    radial-gradient(1200px 620px at 50% -10%, rgba(255, 214, 132, 0.10) 0%, rgba(255, 255, 255, 0) 62%),
    #ffffff;
  background-attachment: fixed;
}

.section--white { background: #ffffff; }
.section--cool {
  background:
    radial-gradient(820px 380px at 88% 0%, rgba(255, 214, 132, 0.08) 0%, rgba(255, 255, 255, 0) 62%),
    #ffffff;
}

/* ---------- card tints ---------- */
.plan:not(.plan--featured),
.pcard:not(.pcard--best),
.use-card,
.cpage-card,
.summary-card,
.legal-toc,
.verify-card,
.status-card,
.about-step,
.about-value,
.stat-strip__item,
.apply-panel,
.plan-block,
.paybox,
.faq-page details {
  border-color: var(--card-line);
}

/* home plans: the two secondary cards share one cool neutral so the
   deep-blue featured card sits in the middle without fighting it */
.plans > .plan:not(.plan--featured) {
  background: linear-gradient(180deg, #f3f7fc 0%, #e6edf7 100%);
  border-color: #d3dfee;
}
.plans > .plan:not(.plan--featured):hover { border-color: #c3d2e6; }

/* pricing page — the recommended Print + digital card keeps the deep-blue
   treatment of the featured plan on the home page, Digital only stays neutral */
.pcard--print {
  background: linear-gradient(180deg, #0a2450 0%, #071a3d 58%, #061733 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 24px 60px rgba(7, 26, 61, 0.28);
}
.pcard--print:hover { box-shadow: 0 30px 70px rgba(7, 26, 61, 0.34); }
.pcard--print .pcard__title { color: #fff; }
.pcard--print .pcard__sub { color: rgba(255, 255, 255, 0.66); }
.pcard--print .pcard__amount {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.pcard--print .pcard__price-meta { color: rgba(255, 255, 255, 0.6); }
.pcard--print .pcard__price-meta b { color: rgba(255, 255, 255, 0.92); }
.pcard--print .pcard__list { border-top-color: rgba(255, 255, 255, 0.12); }
.pcard--print .pcard__list li { color: rgba(255, 255, 255, 0.84); }
.pcard--print .pcard__list svg {
  background: transparent;
  padding: 0;
  color: var(--accent);
}
.pcard--print .pcard__list .is-off { color: rgba(255, 255, 255, 0.34); }
.pcard--print .pcard__list .is-off svg {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}
.pcard--print .pcard__note {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
}
.pcard--print .pcard__art {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.pcard--print .pcard__badge { color: #20170a; }

/* the Digital only card stays on the page's neutral surface */
.pcard--digital {
  background: linear-gradient(180deg, #f3f7fc 0%, #e6edf7 100%);
  border-color: #d3dfee;
}
.pcard--digital .pcard__note {
  background: rgba(255, 255, 255, 0.72);
  border-color: #dfe7f2;
}

/* use cases */
.use-card:nth-child(1) { background: var(--card-peach); }
.use-card:nth-child(2) { background: var(--card-lilac); }

/* inner-page cards */
.cpage-card { background: var(--card-cream); }
.cpage-card--soft { background: var(--card-sand); }
.status-card:nth-child(odd) { background: var(--card-cream); }
.status-card:nth-child(even) { background: var(--card-mint); }

/* application + checkout surfaces */
.apply-panel { background: #ffffff; }
.plan-block { background: var(--card-cream); }
.summary-card { background: var(--card-mint); }
.paybox { background: var(--card-cream); }
.sig { background: #ffffff; }

/* about page */
.stat-strip__item:nth-child(1) { background: var(--card-cream); }
.stat-strip__item:nth-child(2) { background: var(--card-mint); }
.stat-strip__item:nth-child(3) { background: var(--card-lilac); }
.stat-strip__item:nth-child(4) { background: var(--card-peach); }
.about-step:nth-child(odd) { background: var(--card-cream); }
.about-step:nth-child(even) { background: var(--card-mint); }
.about-value:nth-child(1) { background: var(--card-cream); }
.about-value:nth-child(2) { background: var(--card-mint); }
.about-value:nth-child(3) { background: var(--card-lilac); }
.about-value:nth-child(4) { background: var(--card-peach); }
.about-note { background: var(--card-sand); }

/* legal pages */
.legal-toc { background: var(--card-cream); }
.legal-note { background: var(--card-sand); border-color: var(--card-line); }

/* country + destination cards stay clean, warming on hover */
.country-card { background: #ffffff; }
.country-card:hover { background: var(--card-cream); border-color: var(--card-line); }
.dest-card {
  background: linear-gradient(180deg, #f6fafe 0%, #e9f1fb 100%);
  border-color: #e0e9f4;
}
.dest-card:hover { background: linear-gradient(180deg, #ffffff 0%, #eaf2fc 100%); }

/* form fields stay white inside tinted panels */
.afield input[type="text"],
.afield input[type="email"],
.afield input[type="tel"],
.afield input[type="date"],
.afield input[type="number"],
.afield select,
.unit-input input,
.dob select,
.segmented,
.unit-toggle,
.option,
.ship-card,
.addon,
.checkline,
.toolbar,
.term-switch,
.uploads .upload {
  background-color: #ffffff;
}

.option.is-selected { background-color: #fffaf0; }
.ship-card.is-selected { background-color: #fffaf0; }
.addon.is-on { background-color: #fffaf0; }

/* section-level backgrounds that are not section--* classes */
.pricing {
  background:
    radial-gradient(760px 380px at 12% 0%, rgba(255, 214, 132, 0.10) 0%, rgba(255, 255, 255, 0) 60%),
    #ffffff;
}
.faq {
  background:
    radial-gradient(700px 340px at 88% 0%, rgba(255, 214, 132, 0.08) 0%, rgba(255, 255, 255, 0) 62%),
    #ffffff;
}
.dest, .how, .section--white { background: #ffffff; }


/* inner panels that used the blue tint now follow the warm card family */
.plan-block.is-collapsed {
  background: var(--card-cream);
  border-color: var(--card-line);
}
.cpage__callout {
  background: var(--card-sand);
  border-color: var(--card-line);
}
.cpage__callout--note {
  background: #fdf3e0;
  border-color: #f3e2c2;
}
.summary-card .cpage-card__facts span,
.summary-rows + .summary-note { border-color: var(--card-line); }
.legal-note { background: var(--card-sand); }



/* ============================================================
   Traveler proof mosaic — brighter tints, one personality per
   tile, plus a little motion so the grid feels alive.
   Order: 1 photo · 2 quote · 3 stat · 4 photo · 5 product ·
          6 feature · 7 feature · 8 quote · 9 stat
   ============================================================ */

.mosaic { --tile-ease: cubic-bezier(0.16, 1, 0.3, 1); }

.mosaic .tile {
  transition: transform 0.35s var(--tile-ease), box-shadow 0.35s var(--tile-ease),
              border-color 0.35s var(--tile-ease);
}
.mosaic .tile:not(.tile--photo):hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(11, 42, 91, 0.16);
}

/* 2 — first testimonial: butter yellow with a gold avatar */
.mosaic > :nth-child(2) {
  background: linear-gradient(160deg, #fff6d8 0%, #fdefc4 100%);
  border-color: #f3e0a8;
}
.mosaic > :nth-child(2) .tile__avatar {
  background: linear-gradient(180deg, #ffd25e 0%, #f2ac21 100%);
  color: #4a3407;
  box-shadow: 0 6px 14px rgba(242, 172, 33, 0.35);
}

/* 5 — product tile: neutral studio backdrop that merges with the shot */
.mosaic > :nth-child(5) {
  background: linear-gradient(160deg, #eef2f7 0%, #dfe7f0 100%);
  border-color: #d5dfea;
}
.mosaic > :nth-child(5) .tile--product img { mix-blend-mode: normal; }
.mosaic > :nth-child(5) .tile--product__cap {
  background: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.9);
  color: #23405f;
}

/* 6 — refund review: bright mint + green chip */
.mosaic > :nth-child(6) {
  background: linear-gradient(160deg, #e9fbf0 0%, #d6f5e4 100%);
  border-color: #bfe9d0;
}
.mosaic > :nth-child(6) .tile__icon {
  background: #ccf0da;
  border-color: #a9e0bf;
  color: #16794f;
}

/* 7 — encrypted checkout: bright peach + terracotta chip */
.mosaic > :nth-child(7) {
  background: linear-gradient(160deg, #ffefe6 0%, #ffe0d1 100%);
  border-color: #f8cdb6;
}
.mosaic > :nth-child(7) .tile__icon {
  background: #ffdcc7;
  border-color: #f6bda0;
  color: #ad4a24;
}

/* 8 — second testimonial: bright sand + teal avatar */
.mosaic > :nth-child(8) {
  background: linear-gradient(160deg, #fdf1dc 0%, #f9e6c4 100%);
  border-color: #f0d8ae;
}
.mosaic > :nth-child(8) .tile__avatar {
  background: linear-gradient(180deg, #8adcc1 0%, #46bd9c 100%);
  color: #073b2c;
  box-shadow: 0 6px 14px rgba(70, 189, 156, 0.38);
}

/* 3 & 9 — deep-blue stat tiles with a slow drifting glow */
.mosaic > :nth-child(3) {
  background:
    radial-gradient(120% 120% at 88% 4%, rgba(58, 122, 232, 0.6) 0%, rgba(6, 22, 48, 0) 62%),
    linear-gradient(160deg, #0b2a5b 0%, #071a3d 100%);
  background-size: 180% 180%;
  animation: tileGlowBlue 14s ease-in-out infinite alternate;
}
.mosaic > :nth-child(9) {
  background:
    radial-gradient(95% 85% at 8% 6%, rgba(255, 194, 26, 0.16) 0%, rgba(6, 22, 48, 0) 62%),
    linear-gradient(160deg, #0c2f66 0%, #051530 100%);
  background-size: 180% 180%;
  animation: tileGlowGold 16s ease-in-out infinite alternate;
}
@keyframes tileGlowBlue {
  from { background-position: 0% 0%; }
  to { background-position: 100% 60%; }
}
@keyframes tileGlowGold {
  from { background-position: 100% 0%; }
  to { background-position: 0% 70%; }
}

/* icon chips breathe very slightly, so the two feature cards feel alive */
.mosaic > :nth-child(6) .tile__icon,
.mosaic > :nth-child(7) .tile__icon {
  animation: chipFloat 5.5s ease-in-out infinite;
}
.mosaic > :nth-child(7) .tile__icon { animation-delay: 0.8s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* hover: the tile picks up its own border tone */
.mosaic > :nth-child(2):hover { border-color: #eccf86; }
.mosaic > :nth-child(5):hover { border-color: #cfb3ee; }
.mosaic > :nth-child(6):hover { border-color: #9fdcb9; }
.mosaic > :nth-child(7):hover { border-color: #f3b795; }
.mosaic > :nth-child(8):hover { border-color: #eccf9a; }

/* photo tiles keep their tilt on hover */
.mosaic > .tile--photo:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(11, 42, 91, 0.2); }

@media (prefers-reduced-motion: reduce) {
  .mosaic > :nth-child(3),
  .mosaic > :nth-child(9),
  .mosaic > :nth-child(6) .tile__icon,
  .mosaic > :nth-child(7) .tile__icon { animation: none; }
  .mosaic .tile:not(.tile--photo):hover,
  .mosaic > .tile--photo:hover { transform: none; }
}


/* ============================================================
   Hover flip for the Traveler proof tiles + soft “mask” fills
   for the pricing toggle and secondary plan buttons.
   ============================================================ */

/* ---------- hover switch (no 3D, just a smooth slide) ---------- */
.mosaic .tile {
  position: relative;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
}

.tile__back {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: inherit;
  text-align: center;
  color: #fff;
  transform: translateY(101%);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.24, 1),
              opacity 0.16s ease;
  pointer-events: none;
}
.tile__back--red {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(160deg, #e23b32 0%, #b81f1a 100%);
}
.tile__back--purple {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(160deg, #7a45e6 0%, #5520b3 100%);
}
.tile__back-label {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tile__back-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.mosaic .tile:not(.tile--photo):hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(11, 42, 91, 0.2);
}
.mosaic .tile:not(.tile--photo):hover .tile__back,
.mosaic .tile:not(.tile--photo):focus-within .tile__back {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tile__back { transition: opacity 0.2s linear; transform: none; }
  .mosaic .tile:not(.tile--photo):hover { transform: none; }
}
@media (hover: none) {
  .mosaic .tile:not(.tile--photo):hover { transform: none; }
  .tile__back { display: none; }
}

/* ---------- softer “mask” fills on the pricing controls ---------- */
.toggle,
.term-switch {
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #d9e3f4 0%, #c2d2e8 100%);
  border-color: #bccde5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(11, 42, 91, 0.10);
}
.toggle__btn:not([aria-selected="true"]),
.term-switch__btn:not([aria-pressed="true"]) {
  background: rgba(255, 255, 255, 0.62);
  color: #2b3852;
}
.toggle__btn:not([aria-selected="true"]):hover,
.term-switch__btn:not([aria-pressed="true"]):hover {
  background: #ffffff;
  color: var(--blue-800);
}

/* the two secondary plan buttons get a translucent mask instead of a bare outline */
.plans .plan:not(.plan--featured) .btn--ghost {
  background: linear-gradient(180deg, #dde7f6 0%, #c4d5ec 100%);
  border-color: #b3c6e1;
  color: #0f2c58;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(11, 42, 91, 0.06),
              0 6px 14px rgba(11, 42, 91, 0.08);
}
.plans .plan:not(.plan--featured) .btn--ghost:hover {
  background: linear-gradient(180deg, #f2f7ff 0%, #c9dbf5 100%);
  border-color: var(--electric);
  color: var(--electric);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px rgba(47, 111, 237, 0.18);
}

/* pricing detail page �� the Digital only CTA mirrors the secondary plan
   buttons on the home page (masked fill) instead of a solid navy pill */
.pcard__cta:not(.pcard__cta--accent) {
  background: linear-gradient(180deg, #dde7f6 0%, #c4d5ec 100%);
  color: #0f2c58;
  border: 1px solid #b3c6e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(11, 42, 91, 0.08);
}
.pcard__cta:not(.pcard__cta--accent):hover {
  background: linear-gradient(180deg, #f2f7ff 0%, #c9dbf5 100%);
  color: var(--electric);
  border-color: var(--electric);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px rgba(47, 111, 237, 0.18);
}

/* ============================================================
   “Car rental abroad” / “Roadside checks” — deep, layered cards with
   a glass info panel, an accent per card and a sheen on hover.
   ============================================================ */

.use-cases { gap: 22px; }

.use-card {
  --uc-accent: #ffc21a;
  position: relative;
  display: block;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 44px rgba(7, 26, 61, 0.20), 0 2px 6px rgba(7, 26, 61, 0.10);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.use-cases .use-card:nth-child(2) { --uc-accent: #57a9ff; }

.use-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.use-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(6, 22, 48, 0) 40%, rgba(4, 16, 31, 0.7) 100%),
    linear-gradient(180deg, rgba(4, 16, 31, 0.05) 26%, rgba(4, 16, 31, 0.62) 74%, rgba(4, 16, 31, 0.9) 100%);
  transition: opacity 0.35s ease;
}

/* light sweep */
.use-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 3;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  transform: translateX(-70%) rotate(4deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.85s ease, opacity 0.3s ease;
}

.use-card__body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(6, 22, 48, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(2, 10, 24, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.use-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}
.use-card__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--uc-accent);
}

.use-card__title { margin-top: 9px; font-size: 23px; font-weight: 600; letter-spacing: -0.025em; }
.use-card__text { margin-top: 7px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); max-width: 40ch; }

.use-card__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* hover choreography */
.use-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 36px 72px rgba(7, 26, 61, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.use-card:hover img { transform: scale(1.06); filter: saturate(1.08) contrast(1.02); }
.use-card:hover::before { transform: translateX(70%) rotate(4deg); opacity: 1; }
.use-card:hover .use-card__body {
  background: rgba(6, 22, 48, 0.56);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}
.use-card:hover .use-card__arrow {
  background: var(--uc-accent);
  border-color: var(--uc-accent);
  color: #0b1a33;
  transform: translate(2px, -2px) scale(1.06);
}
.use-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .use-card,
  .use-card img,
  .use-card::before,
  .use-card__body,
  .use-card__arrow { transition: none; }
  .use-card:hover { transform: none; }
  .use-card:hover img { transform: none; }
  .use-card:hover::before { opacity: 0; }
}

@media (max-width: 760px) {
  .use-card { aspect-ratio: 4 / 3.4; }
  .use-card__body { left: 10px; right: 10px; bottom: 10px; padding: 15px 16px; }
  .use-card__title { font-size: 20px; }
  .use-card__text { display: none; }
}

/* keep the subject readable when the tall tiles crop a landscape photo */
.mosaic > .tile--photo img { object-position: center 32%; }
.mosaic > :nth-child(4) img { object-position: center 38%; }

/* keep the stat tiles compact when the mosaic collapses to one column */
@media (max-width: 760px) {
  .mosaic .tile--stat { min-height: 128px; }
  .mosaic .tile--product { min-height: 200px; }
  .mosaic .tile--quote { padding: 18px; }
}
