@charset "UTF-8";

/* ==========================================================================
   MetaCare India v2.0 — Components
   Buttons, cards, navigation, forms, tables, badges, footer.

   Naming is flat and single-purpose (.btn, .card, .field) so selectors stay
   at one level of specificity and never fight each other over spacing.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-bd: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  /* 44px minimum height: the smallest reliable touch target on iOS and
     Android. Applies to every button on the site, not just mobile. */
  min-height: 46px;
  padding: 0 var(--s-5);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--d-fast) var(--ease-out),
    box-shadow var(--d-mid) var(--ease-out),
    background-color var(--d-fast) var(--ease-out),
    border-color var(--d-fast) var(--ease-out),
    color var(--d-fast) var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
}

/* The sweep: a band of light crosses the button on hover, the way a roller
   lays a wet edge. Sits behind the label via z-index on an ::after. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
  translate: -120% 0;
  transition: translate var(--d-slow) var(--ease-out);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn:hover::after { translate: 120% 0; }
.btn:active { transform: translateY(0); transition-duration: 60ms; }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--primary:hover { --btn-bg: var(--accent-strong); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  --btn-bd: color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn--secondary:hover { --btn-bg: var(--steel-100); --btn-bd: var(--accent); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--ink); box-shadow: none; }

.btn--light {
  --btn-bg: #ffffff;
  --btn-fg: var(--navy-800);
  --btn-bd: #ffffff;
  color: var(--navy-800);
}
.btn--light:hover {
  --btn-bg: var(--steel-100);
  --btn-fg: var(--navy-900);
  --btn-bd: var(--steel-100);
  color: var(--navy-900);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .35);
}
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-bd: rgba(255, 255, 255, .7); }

.btn--danger { --btn-bg: var(--oxide); --btn-fg: #fff; }

.btn--lg { min-height: 54px; padding-inline: var(--s-6); font-size: var(--t-base); }
.btn--sm { min-height: 38px; padding-inline: var(--s-4); font-size: var(--t-xs); }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: .5;
  pointer-events: none;
}

.btn__icon { flex: none; width: 1.1em; height: 1.1em; }

/* Arrow that slides on hover — signals "this goes somewhere". */
.btn--arrow .btn__icon { transition: translate var(--d-mid) var(--ease-spring); }
.btn--arrow:hover .btn__icon { translate: 4px 0; }

/* Text link with an underline that draws in from the left. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size var(--d-mid) var(--ease-out);
}

.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow svg { transition: translate var(--d-mid) var(--ease-spring); }
.link-arrow:hover svg { translate: 3px 0; }

/* --------------------------------------------------------------------------
   2. Cards
   The "coated edge": a hairline top highlight plus a soft ground shadow, so
   a card reads as a cured layer sitting on the page rather than a flat box.
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition:
    transform var(--d-mid) var(--ease-out),
    box-shadow var(--d-mid) var(--ease-out),
    border-color var(--d-mid) var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sheen);
  opacity: 0;
  transition: opacity var(--d-mid) var(--ease-out);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--rule));
}

.card:hover::before { opacity: .55; }

.card__title { font-size: var(--t-lg); font-weight: 600; line-height: 1.3; }
.card__text { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.62; }
.card__foot { margin-top: auto; padding-top: var(--s-3); }

/* Icon plate — a rotated square echoing the logo diamond. */
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-600), var(--steel-500));
  color: #fff;
  box-shadow: 0 8px 20px -10px var(--navy-600);
  transition: transform var(--d-mid) var(--ease-spring);
}

.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }

/* Numbered card, used only where the content is a genuine sequence. */
.card__step {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--steel-500);
}

.card--link { text-decoration: none; color: inherit; }
.card--flush { padding: 0; overflow: hidden; }

.card--deep {
  background: color-mix(in srgb, #fff 6%, transparent);
  border-color: var(--deep-rule);
  color: var(--deep-ink);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card--deep .card__text { color: var(--deep-ink-2); }
.card--deep:hover { border-color: rgba(255, 255, 255, .3); background: color-mix(in srgb, #fff 10%, transparent); }

/* Media card */
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--d-slow) var(--ease-out);
}

.card--flush:hover .card__media img { scale: 1.06; }

.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }

/* --------------------------------------------------------------------------
   3. Badges, chips, pills
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: .3em .75em;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge--accent { background: var(--steel-100); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
.badge--ok { background: var(--verd-soft); border-color: color-mix(in srgb, var(--verdigris) 35%, transparent); color: var(--verdigris); }
.badge--warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 35%, transparent); color: var(--amber); }
.badge--alert { background: var(--oxide-soft); border-color: color-mix(in srgb, var(--oxide) 35%, transparent); color: var(--oxide); }
.badge--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.badge--gold { background: rgba(240, 171, 0, .15); border-color: rgba(240, 171, 0, .45); color: #d09000; }
[data-theme="dark"] .badge--gold, .site-header--over-hero .badge--gold, .band-deep .badge--gold { color: #f0ab00; background: rgba(240, 171, 0, .18); border-color: rgba(240, 171, 0, .55); }
.badge--jotun { background: #031e45; border-color: rgba(240, 171, 0, .5); color: #fff; box-shadow: 0 0 12px rgba(240, 171, 0, .2); }

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--d-mid) var(--ease-out), box-shadow var(--d-mid) var(--ease-out), border-color var(--d-mid) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Over a dark hero the bar is transparent; once scrolled it becomes a solid
   surface. .is-stuck is applied by app.js. */
.site-header.is-stuck {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand__mark { width: 38px; height: 38px; flex: none; }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.brand__sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }

.site-header--over-hero .brand__name { color: #fff; }
.site-header--over-hero .brand__sub { color: var(--steel-400); }
.site-header--over-hero.is-stuck .brand__name { color: var(--ink); }
.site-header--over-hero.is-stuck .brand__sub { color: var(--ink-3); }

/* Brand group with Jotun Authorized Dealer lockup */
.brand-group {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
  min-width: 0;
}

.brand-dealer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
}

.brand-dealer-badge__divider {
  width: 1px;
  height: 22px;
  background: var(--rule);
  opacity: .75;
  flex: none;
}

.site-header--over-hero:not(.is-stuck) .brand-dealer-badge__divider {
  background: rgba(255, 255, 255, .25);
}

.brand-dealer-badge__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(240, 171, 0, .09);
  border: 1px solid rgba(240, 171, 0, .32);
  transition: all var(--d-fast) var(--ease-out);
  flex: none;
}

.brand-dealer-badge__link:hover {
  background: rgba(240, 171, 0, .18);
  border-color: rgba(240, 171, 0, .6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 171, 0, .2);
}

.brand-dealer-badge__label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c98800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.brand-dealer-badge__lead {
  margin-right: 0.35em;
}

.site-header--over-hero:not(.is-stuck) .brand-dealer-badge__label,
[data-theme="dark"] .brand-dealer-badge__label {
  color: #f0ab00;
}

.brand-dealer-badge__logo {
  height: 18px;
  width: auto;
  display: block;
}

.auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(240, 171, 0, .1);
  border: 1px solid rgba(240, 171, 0, .35);
  color: #c98800;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-self: flex-start;
}

[data-theme="dark"] .auth-trust-pill {
  color: #f0ab00;
}

.auth-trust-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 8px #27c93f;
}

/* Mobile responsive optimizations for iPhone (375-430px) & Samsung Galaxy (360-412px) */
@media (max-width: 640px) {
  .brand-group {
    gap: var(--s-2);
  }

  .brand-dealer-badge {
    gap: var(--s-2);
  }

  .brand-dealer-badge__divider {
    height: 18px;
  }

  .brand-dealer-badge__link {
    padding: 2px 7px;
    gap: 5px;
  }

  .brand-dealer-badge__lead {
    display: none;
  }

  .brand-dealer-badge__label {
    font-size: .56rem;
    letter-spacing: .06em;
  }

  .brand-dealer-badge__logo {
    height: 15px;
  }
}

@media (max-width: 480px) {
  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .brand__sub {
    font-size: .52rem;
    letter-spacing: .18em;
  }

  .site-header__inner {
    gap: var(--s-2);
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle,
  .burger {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 370px) {
  /* Ultra-narrow devices like Galaxy Z Fold outer screen (340px) or iPhone SE1 (320px) */
  .brand-group {
    gap: 5px;
  }

  .brand-dealer-badge {
    gap: 5px;
  }

  .brand__name {
    font-size: .98rem;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
  }

  .brand-dealer-badge__link {
    padding: 2px 5px;
    gap: 4px;
  }

  .brand-dealer-badge__logo {
    height: 13px;
  }

  .theme-toggle,
  .burger {
    width: 36px;
    height: 36px;
  }
}

.nav { display: none; }

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--s-1);
  }
}

.nav__link {
  position: relative;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--d-mid) var(--ease-out);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { scale: 1 1; }
.nav__link[aria-current='page'] { color: var(--accent); font-weight: 600; }

.site-header--over-hero .nav__link { color: rgba(255, 255, 255, .82); }
.site-header--over-hero .nav__link:hover,
.site-header--over-hero .nav__link[aria-current='page'] { color: #fff; }
.site-header--over-hero .nav__link::after { background: #fff; }
.site-header--over-hero.is-stuck .nav__link { color: var(--ink-2); }
.site-header--over-hero.is-stuck .nav__link:hover { color: var(--ink); }
.site-header--over-hero.is-stuck .nav__link[aria-current='page'] { color: var(--accent); }
.site-header--over-hero.is-stuck .nav__link::after { background: var(--accent); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }

/* Burger — three bars that fold into an X. */
.burger {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  flex: none;
}

@media (min-width: 1024px) { .burger { display: none; } }

.site-header--over-hero .burger { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.site-header--over-hero.is-stuck .burger { background: var(--surface); border-color: var(--rule); }

.burger__box { width: 20px; height: 14px; position: relative; }

.burger__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: translate var(--d-mid) var(--ease-out), rotate var(--d-mid) var(--ease-out), opacity var(--d-fast) linear;
}

.site-header--over-hero .burger__bar { background: #fff; }
.site-header--over-hero.is-stuck .burger__bar { background: var(--ink); }

.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 6px; }
.burger__bar:nth-child(3) { top: 12px; }

.burger[aria-expanded='true'] .burger__bar:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.burger[aria-expanded='true'] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__bar:nth-child(3) { translate: 0 -6px; rotate: -45deg; }

/* Mobile sheet */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + var(--s-5)) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  background: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  translate: 0 -12px;
  transition: opacity var(--d-mid) var(--ease-out), translate var(--d-mid) var(--ease-out), visibility var(--d-mid);
}

.mobile-nav.is-open { visibility: visible; opacity: 1; translate: 0 0; }

@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav__list { display: flex; flex-direction: column; gap: var(--s-1); list-style: none; padding: 0; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-3) var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mobile-nav__link[aria-current='page'] { color: var(--accent); }
.mobile-nav__link svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }

/* Staggered entrance for the sheet items. */
.mobile-nav.is-open .mobile-nav__item {
  animation: nav-in 420ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes nav-in {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

.mobile-nav__foot { margin-top: auto; padding-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme='light']) .theme-toggle .icon-sun { display: none; }
}

.site-header--over-hero .theme-toggle { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.site-header--over-hero.is-stuck .theme-toggle { background: var(--surface); border-color: var(--rule); color: var(--ink-2); }

/* Over the dark hero a ghost button inherits --ink-2, which is a dark
   blue-grey and close to unreadable on navy. Lift it to white there, and
   restore the normal treatment once the bar goes solid. */
.site-header--over-hero .btn--ghost { --btn-fg: rgba(255, 255, 255, .88); }
.site-header--over-hero .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; }
.site-header--over-hero.is-stuck .btn--ghost { --btn-fg: var(--ink-2); }
.site-header--over-hero.is-stuck .btn--ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--ink); }

/* --------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: var(--s-2); }

.field__label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.field__req { color: var(--oxide); font-weight: 700; }

.field__hint { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.5; }

.field__error {
  font-size: var(--t-xs);
  color: var(--oxide);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.textarea { min-height: 130px; resize: vertical; line-height: 1.6; padding-top: var(--s-3); }

.input::placeholder,
.textarea::placeholder { color: var(--ink-3); opacity: 1; }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--steel-400); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea { border-color: var(--oxide); }

.field--invalid .input:focus,
.field--invalid .textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--oxide) 20%, transparent); }

.select {
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2374899C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  background-size: 18px;
}

/* Split control for a dial code plus a national number. */
.input-group { display: flex; gap: var(--s-2); }
.input-group .select { flex: none; width: 130px; }
.input-group .input { flex: 1 1 auto; min-width: 0; }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-2);
  /* Comfortable target without making the label itself huge. */
  padding: var(--s-1) 0;
}

.check input[type='checkbox'],
.check input[type='radio'] {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check a { font-weight: 600; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }

.switch__track {
  position: relative;
  width: 48px;
  height: 28px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--rule);
  transition: background-color var(--d-mid) var(--ease-out), border-color var(--d-mid) var(--ease-out);
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: translate var(--d-mid) var(--ease-spring);
}

.switch input:checked + .switch__track { background: var(--verdigris); border-color: var(--verdigris); }
.switch input:checked + .switch__track::after { translate: 20px 0; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }

/* OTP entry — six single-character boxes. */
.otp {
  display: flex;
  gap: clamp(var(--s-2), 2vw, var(--s-3));
  justify-content: center;
}

.otp__box {
  width: clamp(42px, 13vw, 58px);
  height: clamp(52px, 15vw, 66px);
  padding: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 500;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out), scale var(--d-fast) var(--ease-spring);
}

.otp__box:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  scale: 1.05;
}

.otp__box[data-filled='true'] { border-color: var(--accent); background: var(--steel-50); }

/* Reveal-password button, sitting inside the field's padding-right gutter. */
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}

.pw-toggle:hover { color: var(--accent); background: var(--surface-2); }
.pw-toggle[aria-pressed='true'] { color: var(--accent); }

/* Password strength */
.strength { display: flex; gap: 4px; margin-top: var(--s-2); }
.strength__seg { height: 4px; flex: 1; border-radius: 2px; background: var(--surface-3); transition: background-color var(--d-mid) var(--ease-out); }
.strength[data-score='1'] .strength__seg:nth-child(1) { background: var(--oxide); }
.strength[data-score='2'] .strength__seg:nth-child(-n+2) { background: var(--amber); }
.strength[data-score='3'] .strength__seg:nth-child(-n+3) { background: var(--steel-500); }
.strength[data-score='4'] .strength__seg { background: var(--verdigris); }

/* --------------------------------------------------------------------------
   6. Alerts
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  border-left-width: 3px;
  background: var(--surface);
  font-size: var(--t-sm);
  line-height: 1.58;
}

.alert__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert__body { min-width: 0; }
.alert__title { font-weight: 700; display: block; margin-bottom: 2px; }

.alert--info { border-left-color: var(--accent); background: var(--steel-50); color: var(--ink); }
.alert--info .alert__icon { color: var(--accent); }
.alert--ok { border-left-color: var(--verdigris); background: var(--verd-soft); }
.alert--ok .alert__icon { color: var(--verdigris); }
.alert--warn { border-left-color: var(--amber); background: var(--amber-soft); }
.alert--warn .alert__icon { color: var(--amber); }
.alert--error { border-left-color: var(--oxide); background: var(--oxide-soft); }
.alert--error .alert__icon { color: var(--oxide); }

/* --------------------------------------------------------------------------
   7. Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 640px; }

.table th,
.table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}

.table tbody tr { transition: background-color var(--d-fast) linear; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--deep-bg);
  color: var(--deep-ink-2);
  padding-top: var(--s-9);
  padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.site-footer a:not(.btn) { color: var(--deep-ink-2); text-decoration: none; transition: color var(--d-fast) var(--ease-out); }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer .btn { color: var(--btn-fg); text-decoration: none; }
.site-footer .btn:hover { color: var(--btn-fg); }

.footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-7);
}

@media (min-width: 680px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-7); } }

.footer-heading {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-4);
}

.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--t-sm); }

.footer-bottom {
  border-top: 1px solid var(--deep-rule);
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
}

.social-row { display: flex; gap: var(--s-2); }

.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--deep-rule);
  background: rgba(255, 255, 255, .04);
  transition: background-color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}

.social-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   9. Misc components
   -------------------------------------------------------------------------- */

/* Stat tile */
.stat { display: flex; flex-direction: column; gap: var(--s-1); }
.stat__value { font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--t-sm); color: var(--ink-2); }
.band-deep .stat__label { color: var(--deep-ink-2); }
.band-deep .stat__value { color: #fff; }

/* Definition row used in profile and detail views */
.dl { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .dl { grid-template-columns: 180px 1fr; gap: var(--s-3) var(--s-5); } }
.dl dt { font-size: var(--t-sm); color: var(--ink-3); font-weight: 600; }
.dl dd { margin: 0; font-size: var(--t-sm); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--t-xs); color: var(--ink-3); list-style: none; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before { content: '/'; color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Accordion */
.accordion { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.accordion + .accordion { margin-top: var(--s-3); }

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  min-height: 60px;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion__icon { flex: none; width: 20px; height: 20px; color: var(--accent); transition: rotate var(--d-mid) var(--ease-out); }
.accordion[open] .accordion__icon { rotate: 45deg; }
.accordion__body { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); font-size: var(--t-sm); line-height: 1.65; }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; padding: var(--s-8) var(--s-5); color: var(--ink-2); }
.empty__icon { width: 56px; height: 56px; color: var(--steel-400); }

/* Progress */
.progress { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.progress__bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy-600), var(--steel-500)); transition: width var(--d-slow) var(--ease-out); }

/* Divider with a centred label */
.divider { display: flex; align-items: center; gap: var(--s-4); color: var(--ink-3); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; }
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* --------------------------------------------------------------------------
   Jotun Authorized Dealer — Global Components
   -------------------------------------------------------------------------- */

/* Mobile drawer Jotun dealer card */
.mobile-nav__dealer-card {
  margin: var(--s-4) 0;
  padding: var(--s-4);
  background: linear-gradient(135deg, rgba(3, 30, 69, .45), rgba(7, 23, 38, .7));
  border: 1px solid rgba(240, 171, 0, .3);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.mobile-nav__dealer-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.mobile-nav__dealer-text {
  display: flex;
  flex-direction: column;
  font-size: var(--t-xs);
  line-height: 1.3;
}

.mobile-nav__dealer-text strong {
  color: #fff;
  font-size: var(--t-sm);
}

.mobile-nav__dealer-text small {
  color: var(--steel-400);
}

/* Footer Jotun Authorized Dealer accreditation seal banner */
.footer-dealer-banner {
  margin-top: var(--s-8);
  margin-bottom: var(--s-6);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(3, 30, 69, .9) 0%, rgba(7, 23, 38, .96) 100%);
  border: 1px solid rgba(240, 171, 0, .35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
  position: relative;
  overflow: hidden;
}

.footer-dealer-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #d52b1e 0%, #f0ab00 45%, #1b5490 100%);
}

.footer-dealer-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
}

@media (min-width: 960px) {
  .footer-dealer-banner__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--s-6);
  }
}

.footer-dealer-banner__brand {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.footer-dealer-banner__logo {
  height: 38px;
  width: auto;
  border-radius: 4px;
  flex: none;
}

.footer-dealer-banner__creds {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-dealer-banner__badge {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f0ab00;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-dealer-banner__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0ab00;
  box-shadow: 0 0 8px #f0ab00;
}

.footer-dealer-banner__tagline {
  font-size: var(--t-xs);
  color: var(--steel-400);
}

.footer-dealer-banner__desc p {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--deep-ink-2);
  line-height: 1.55;
}

.footer-dealer-banner__desc strong {
  color: #fff;
}

.footer-dealer-banner__action {
  flex: none;
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}

.footer-dealer-banner__action .btn--light {
  --btn-bg: #ffffff;
  --btn-fg: #031e45;
  --btn-bd: #ffffff;
  background: #ffffff;
  color: #031e45 !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: all var(--d-fast) var(--ease-out);
}

.footer-dealer-banner__action .btn--light:hover {
  --btn-bg: #f0ab00;
  --btn-fg: #031e45;
  --btn-bd: #f0ab00;
  background: #f0ab00 !important;
  color: #031e45 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 171, 0, .45);
}

.footer-dealer-banner__action .btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  --btn-bd: rgba(255, 255, 255, .4);
  color: #ffffff !important;
  transition: all var(--d-fast) var(--ease-out);
}

.footer-dealer-banner__action .btn--outline-light:hover {
  --btn-bg: rgba(255, 255, 255, .15);
  --btn-bd: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .footer-dealer-banner {
    padding: var(--s-4);
    margin-top: var(--s-6);
  }

  .footer-dealer-banner__logo {
    height: 30px;
  }

  .footer-dealer-banner__badge {
    font-size: .6rem;
  }

  .footer-dealer-banner__action .btn {
    width: 100%;
    justify-content: center;
  }
}

