/* ===========================
   CORE TOKENS
=========================== */
:root{
  --navy:#0b1d3a; --navy-2:#0e1731;
  --blue:#3f7dd9; --blue-press:#316ac2; --blue-ink:#113a78;
  --gold:#f6c63b; --gold-press:#e2b327;
  --ink:#0a0f1a; --muted:#4b5a73; --border:#e7edf6; --bg:#fff;
  --radius:16px; --shadow:0 18px 40px rgba(0,0,0,.18);
  --focus:0 0 0 3px rgba(47,92,168,.35);
  --logo-h:56px; --btn-radius:0;
}

/* ===========================
   BASE
=========================== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink); background:var(--bg);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,video{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
:focus-visible{outline:var(--focus)}
.muted{color:var(--muted)}
.section{padding:56px 0}

/* Robust gutters (with safe-area support) */
.container{
  max-width:1200px;
  margin-inline:auto;
  padding-inline:16px;
  width:calc(100% - 32px);
}
@media (min-width:600px){
  .container{ padding-inline:24px; width:calc(100% - 48px) }
}
@media (min-width:1024px){
  .container{ padding-inline:32px; width:min(1200px,calc(100% - 64px)) }
}
@supports(padding:max(0px)){
  .container{
    padding-inline:max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  }
}

/* Remove horizontal scrollbar anywhere on the PDP */
body, html {
  overflow-x: hidden;
}

/* ===========================
   HEADINGS
   (global, but light so they don't fight hero/PDP)
=========================== */

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Default page/section titles */
.section h2,
.container > h2 {
  margin: 0 0 12px;
  font-size: clamp(44px, 4vw, 60px);
  line-height: 1.15;
}

/* Sub-heads inside sections (e.g. cards, FAQ questions) */
.section h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.25;
}

/* Keep hero & PDP overrides as-is */
.hero h1 { /* already defined above, leave unchanged */ }
.pdp h1,
.card.card--sm h1 { /* PDP heading styles already in CSS */ }

/* ===========================
   HEADER
=========================== */
.header{
  position:sticky; top:0; z-index:1000;
  background:#fff;
  border-bottom:1px solid rgba(12,22,45,.06);
}
.header__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 0;
}

.brand__logo{
  width:38px;height:38px;border-radius:10px;background:var(--navy);
  position:relative; box-shadow:inset 0 0 0 3px #fff; outline:2px solid var(--navy);
}
.brand__logo:before,.brand__logo:after{
  content:""; position:absolute; inset:8px auto 8px 7px;
  width:6px; background:var(--gold); border-radius:6px;
}
.brand__logo:after{ left:auto; right:7px; }
.brand__logo-img{ height:var(--logo-h)!important; width:auto; display:block; }
@media (min-width:768px){ :root{ --logo-h:52px; } }
@media (min-width:1200px){ :root{ --logo-h:56px; } }
@media (max-width:480px){
  :root{ --logo-h:60px; }
  .header__row{ padding:16px 0; }
}
@media (max-width:360px){ :root{ --logo-h:64px; } }
@media (max-width:420px){ .brand span{ display:none; } }

.nav{
  display:flex; gap:18px; align-items:center; font-weight:600;
}
.nav a{ padding:8px 10px; border-radius:10px; }
.nav a:hover{ background:#f6f8fb; }

/* ===========================
   HAMBURGER / MOBILE DRAWER
=========================== */
.nav-toggle{
  appearance:none; border:0; background:transparent;
  padding:8px; color:var(--navy); display:none;
}
.nav-toggle svg{ display:block }
.nav-close{
  appearance:none; border:0; background:transparent;
  padding:8px; color:#fff;
}
@media (max-width:900px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }
}

.mobile-drawer{
  position:fixed; inset:0 auto 0 0;
  width:min(86vw,360px);
  background:#0b1d3a; color:#fff;
  transform:translateX(-100%);
  transition:transform .22s ease-out;
  z-index:9999; box-shadow:0 20px 60px rgba(0,0,0,.35);
  display:flex; flex-direction:column;
  overflow:auto; -webkit-overflow-scrolling:touch;
}
.mobile-drawer__header{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mobile-drawer .brand__logo-img{ height:36px; }
.mobile-drawer__nav{
  display:flex; flex-direction:column; gap:8px; padding:16px;
}
.mobile-drawer__nav a{
  display:block; padding:14px 12px; border-radius:12px;
  color:#e9f1ff; font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
  background:rgba(255,255,255,0.03);
}
.mobile-drawer__nav a:hover{ background:rgba(255,255,255,.08); }
.mobile-drawer__nav .cta-head{
  background:var(--blue); color:#fff; box-shadow:none; text-align:center;
}

.mobile-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.48);
  z-index:9998; opacity:0; pointer-events:none;
  transition:opacity .18s ease;
}
html.nav-open .mobile-drawer{ transform:none; }
html.nav-open .mobile-backdrop{ opacity:1; pointer-events:auto; }
html.nav-open{ overflow:hidden; }

/* ===========================
   HERO SECTION
   - Video/image background support
   - Responsive typography
   - Performance optimized
=========================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  min-height: clamp(500px, 60vh, 700px); /* Prevent collapse */
}

/* Media Container */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster {
  background: #0a152c center/cover no-repeat;
}

/* Video optimization - prevent mobile performance issues */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

/* Gradient overlay for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 33, 0.35) 0%,
    rgba(10, 16, 33, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Content container */
.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 12vh, 120px) 0 clamp(48px, 8vh, 96px);
  
  /* Ensure content is readable even if video/image fails to load */
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow label (e.g., "NEW", "LIMITED", etc.) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  background: #fff;
  color: var(--navy);
  
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  
  padding: 8px 14px;
  border-radius: 999px; /* Pill shape */
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* Subtle animation on load */
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero heading */
.hero h1 {
  margin: 20px 0 16px;
  
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  
  /* Text shadow for better contrast on video */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  
  /* Prevent orphan words */
  text-wrap: balance;
  
  animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero description */
.hero p {
  max-width: 680px;
  margin: 0;
  
  color: #e8ecf8;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  
  /* Better readability on video background */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  
  animation: slideUp 0.8s ease-out 0.4s both;
}

/* CTA buttons container */
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  
  animation: slideUp 0.8s ease-out 0.6s both;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero__content {
    padding: 64px 0 48px;
  }
  
  .hero h1 {
    margin: 16px 0 12px;
  }
  
  .hero__cta {
    margin-top: 20px;
  }
  
  /* Stack CTA buttons on mobile */
  .hero__cta > * {
    flex: 1 1 100%;
    min-width: 200px;
  }
}

/* Performance: Hide video on slow connections */
@media (prefers-reduced-data: reduce) {
  .hero__video {
    display: none;
  }
}

/* Accessibility: Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero *,
  .hero *::before,
  .hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===========================
   BUTTONS — CLEAN, NO SHADOW
=========================== */

.btn{
  appearance:none;
  border-radius:var(--btn-radius);
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  font-weight:800;
  padding:0.8rem 1.25rem;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .12s ease;
  box-shadow:none; /* kill all shadows */
}

.btn:hover{
  transform:translateY(-1px);
}

.btn:active{
  transform:translateY(0);
}

/* Primary (blue) */
.btn--primary{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}
.btn--primary:hover{
  background:var(--blue-press);
  border-color:var(--blue-press);
}
.btn--primary:active{
  background:var(--blue-press);
}

/* Accent (gold) */
.btn--accent{
  background:var(--gold);
  color:#1a1200;
  border-color:var(--gold);
}
.btn--accent:hover{
  background:var(--gold-press);
  border-color:var(--gold-press);
}
.btn--accent:active{
  background:var(--gold-press);
}

/* Ghost (outline) */
.btn--ghost{
  background:transparent;
  color:var(--blue-ink);
  border-color:var(--blue-ink);
}
.btn--ghost:hover{
  background:rgba(17,58,120,.06);
}
.btn--ghost:active{
  background:rgba(17,58,120,.12);
}

/* Geometry modifiers */
.btn--square{
  border-radius:0 !important;
}

/* Only disable empty ANCHOR links (never buttons) */
a.btn[href="#"], a.btn:not([href]){
  pointer-events:none; opacity:.5; filter:grayscale(.2);
}

/* ===========================
   GRID & CARDS (GLOBAL)
=========================== */
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(12,1fr);
  position:relative;
  z-index:1;
}

.card{
  grid-column:span 12;
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
  z-index:0;
}

@media (min-width:720px){
  .card--lg{ grid-column:span 7 }
  .card--sm{ grid-column:span 5 }
}

.card__media{
  position:relative;
  z-index:1;
  aspect-ratio:16 / 10;
  background:#0d1836;
}
.card__media img,
.card__media video{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.sticker{
  position:absolute; left:12px; top:12px;
  padding:8px 12px;
  font-weight:900; border-radius:10px;
  background:#0b1d3a; color:#fff;
  box-shadow:var(--shadow);
}
.sticker--gold{ background:var(--gold); color:#121212; }

.card__body{
  position:relative; z-index:2;
  padding:16px 16px 18px;
}
.price{ font-weight:900; color:var(--navy-2); }
.card__cta{ display:flex; gap:10px; margin-top:10px; }
.card__cta a{ pointer-events:auto; }

.product-grid--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .product-grid--two {
    grid-template-columns: 1fr;
  }
} 


/* ===========================
   Product grid – with PLP styles
=========================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #f8f8f6;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

/* Full-card clickable link wrapper */
.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.5rem 1.75rem;
  text-decoration: none;
  color: inherit;
}

/* Subtle hover lift on larger screens */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.10);
  }
}

.product-card__media {
  position: relative;
  margin-bottom: 1.25rem;
}

.product-card__media img {
  width: 100%;
  display: block;
  border-radius: 0.5rem;
  background: #ffffff;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.product-card__price-row {
  margin-bottom: 0.35rem;
}

.product-card__price {
  font-weight: 600;
  font-size: 0.98rem;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.product-card__stars {
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.product-card__rating-label {
  color: #666;
}

.product-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eceee8;
  font-size: 0.75rem;
  color: #444;
}

.product-card__text {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 0.9rem;
}

.product-card__footer {
  margin-top: auto;
}

.product-card__cta {
  display: flex;
  gap: 0.5rem;
}

/* ===========================
   HOMEPAGE PRODUCT GALLERY
   (index #featured – clean, cardless)
=========================== */

/* Grid: 3-ish columns on desktop, 1 per row on mobile */
#featured .grid{
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:40px 32px;
}

/* Remove card chrome so it looks like standalone products */
#featured .card{
  background:transparent;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}

/* Clean white surrounding, no dark box, images centered */
#featured .card__media{
  background:transparent;
  aspect-ratio:auto;
  border-bottom:none;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-top:12px;
}
#featured .card__media img{
  max-width:320px;
  width:100%;
  height:auto;
  object-fit:contain;
  background:transparent !important; /* kill grey fallback here */
}

/* Card body sits on white with subtle spacing only */
#featured .card__body{
  padding:14px 0 0;
}

/* Compact copy + CTA layout */
#featured .card h3{
  margin:0 0 4px;
}
#featured .card p{
  margin:0 0 8px;
  color:var(--muted);
  font-size:.95rem;
}
#featured .price{
  font-size:1.05rem;
}

/* Rating row + labels (if you add them) */
#featured .product-rating{
  margin-top:4px;
  font-size:.8rem;
  color:#2c3f60;
}

/* CTA buttons tighter */
#featured .card__cta{
  margin-top:10px;
  gap:8px;
}
#featured .card__cta .btn{
  min-height:40px;
  padding-inline:14px;
  font-size:.9rem;
}

/* Mobile: one product per row, full-width CTAs */
@media (max-width:720px){
  #featured .grid{
    grid-template-columns:1fr;
    gap:32px;
  }
  #featured .card__media{
    padding-top:0;
  }
  #featured .card__cta{
    flex-direction:column;
  }
  #featured .card__cta .btn{
    width:100%;
    justify-content:center;
  }
}


/* ===========================
   TRUST
=========================== */
.trust{
  background:#fff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.trust__row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  padding:16px 0;
}
@media (max-width:720px){
  .trust__row{ grid-template-columns:1fr }
}
.trust__item{
  display:flex; align-items:center; gap:14px;
  background:#f8fbff; border-radius:14px;
  padding:14px 16px;
  box-shadow:inset 0 0 0 1px var(--border);
  transition:transform .12s, box-shadow .12s, background .12s;
}
.trust__item:hover{
  background:#f2f7ff;
  box-shadow:inset 0 0 0 2px #dbe7fb, 0 8px 20px rgba(0,0,0,.06);
  transform:translateY(-1px);
}
.trust__icon{
  width:40px; height:40px; border-radius:999px;
  display:grid; place-items:center;
  color:#0b1d3a; background:#fff;
  box-shadow:inset 0 0 0 2px #e5edf9;
}
.trust__text strong{
  display:block; font-weight:900; line-height:1.15; color:#0c1d3e;
}
.trust__text span{
  display:block; font-size:13px; color:#4b5a73;
}

/* ===========================
   PDP BASICS
=========================== */
.pdp{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
@media (min-width:960px){
  .pdp{
    grid-template-columns:1.1fr .9fr;
    gap:28px; align-items:start;
  }
}

.pdp__figure{
  position:relative;
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}
.pdp__figure img{ width:100%; height:auto; }
.badge{
  position:absolute; left:14px; top:14px;
  font-weight:900; border-radius:12px;
  padding:6px 10px;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.badge--gold{ background:var(--gold); color:#1a1200; }

.pdp__details{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.pdp__title{
  margin:0 0 8px;
  font-size:clamp(22px,3.6vw,28px);
}
.pdp__bullets{ margin:0 0 14px; padding-left:18px; }
.pdp__bullets li{ margin:6px 0; }

.pdp__buy{ margin-top:12px; }
.pdp__price{
  font-weight:900; font-size:22px;
  margin:0 0 12px; color:var(--navy-2);
}
.pdp__cta{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  max-width:520px;
}
@media (min-width:720px){
  .pdp__cta{ grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .pdp__cta .btn--primary{ width:100%; }
}

/* How-to cards */
.pdp-howto{ margin-top:26px; }
.howto-grid{
  display:grid; gap:12px; grid-template-columns:1fr;
}
@media (min-width:720px){
  .howto-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1100px){
  .howto-grid{ grid-template-columns:repeat(4,1fr); }
}
.step-card{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  position:relative;
  min-height:148px;
}
.step-num{
  position:absolute; left:14px; top:14px;
  width:32px; height:32px; border-radius:999px;
  display:grid; place-items:center;
  background:var(--blue); color:#fff;
  font-weight:900;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}

/* ===========================
   PDP PAGE — FLAT, CLEAN LAYOUT
   (no card chrome on main content)
=========================== */

.pdp-page .card {
  background: transparent;   /* no white card box */
  box-shadow: none;          /* no drop shadow */
  border-radius: 0;          /* no rounded outline */
  border: none;
}

/* Keep inner content aligned but not “card-like” */
.pdp-page .card__body {
  padding: 0;
}

/* Hero image container – no dark frame */
.pdp-page .card__media {
  background: transparent;
  border-bottom: none;
  aspect-ratio: auto;        /* let image define height */
}

/* Hero image – just the product on white */
.pdp-page .card__media img {
  background: transparent;
  object-fit: contain;
}

/* Top grid spacing tweaks */
.pdp-page .grid[style*="row-gap"] {
  row-gap: 24px;             /* a little more breathing room */
}

/* Right-hand info column spacing */
.pdp-page .card.card--sm .card__body {
  padding-left: 32px;
}

@media (max-width: 720px) {
  /* On mobile, stack nicely and remove side indent */
  .pdp-page .card.card--sm .card__body {
    padding-left: 0;
    margin-top: 18px;
  }
}

/* ===========================
   SIGNUP & FOOTER
=========================== */
.signup{
  background:var(--navy); color:#fff;
  padding:54px 0;
  position:relative; overflow:hidden;
}
.signup .container{ position:relative; z-index:1 }
.signup h3{
  margin:0 0 10px;
  font-size:clamp(24px,3.6vw,36px);
}
.input{
  display:flex; gap:10px; max-width:520px;
}
.input input{
  flex:1; padding:14px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
  background:#fff; color:#111;
}
.mountains{
  position:absolute; bottom:-2px; left:0; right:0; height:90px;
  background:linear-gradient(0deg,#0b1d3a 35%,transparent 36%),
             url('/media/ecs-mountains.svg') center/cover no-repeat;
  opacity:.85;
}

.site-footer{ color:#cfe0ff; }
.footer-top{
  background:linear-gradient(180deg,var(--navy) 0%,#0a1736 100%);
  padding:40px 0 20px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:32px;
}
@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; gap:36px; }
}
.footer-brand .brand{ color:#fff; font-size:18px; }
.footer-tag{
  color:#9fb2d8; margin:.5rem 0 0;
  font-size:15px; line-height:1.5;
}
.footer-col h4{
  color:#fff; margin:0 0 14px;
  font-size:14px; letter-spacing:.04em;
  text-transform:uppercase;
}
.footer-col a{
  display:block; color:#cfe0ff; opacity:.95;
  padding:10px 0; font-size:15px; line-height:1.4;
}
.footer-col a:hover{
  opacity:1;
  text-decoration:underline;
  text-underline-offset:3px;
}
.footer-legal{
  background:#0e1731;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:13px;
}
.legal-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0; gap:12px; flex-wrap:wrap;
}
.legal-links a{
  color:#cfe0ff; opacity:.9;
  padding:6px 10px; border-radius:999px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}
.legal-links a:hover{
  opacity:1; background:rgba(255,255,255,.06);
}

/* ===========================
   TRUST STRIP (on cards/pages)
=========================== */
.trust-strip{
  display:flex; flex-wrap:wrap;
  gap:8px 12px; margin-top:12px; color:#2c3f60;
}
.trust-strip span{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:#f6f8ff;
  box-shadow:inset 0 0 0 1px #e2e9fb;
  font-weight:700; font-size:13px;
}

/* ===========================
   FORM POLISH (Contact)
=========================== */
.form{ --pad:12px; --radius:12px; --bd:1px solid var(--border); }
.field{ margin:10px 0 14px; }
.form label{
  display:block; font-weight:800;
  margin:0 0 6px; color:var(--navy-2);
}

.form-input,.form-textarea,.form-select{
  width:100%; padding:var(--pad);
  border:var(--bd); border-radius:var(--radius);
  background:#fff; color:var(--ink); font:inherit;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:border-color .2s, box-shadow .2s, transform .02s;
  -webkit-appearance:none; appearance:none;
}
.form-input:hover,.form-textarea:hover,.form-select:hover{
  border-color:#dbe7fb;
}
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible{
  outline:none;
  border-color:#cddaf3;
  box-shadow:0 0 0 3px rgba(47,92,168,.18),
             inset 0 0 0 1px rgba(17,58,120,.08);
}
.form-textarea{ resize:vertical; min-height:132px; }

/* Select arrow */
.form-select{
  padding-right:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='none' stroke='%23113a78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:18px 18px;
}

/* File input */
input[type="file"]{
  border:var(--bd); border-radius:var(--radius);
  padding:8px; background:#fff;
}
input[type="file"]::file-selector-button{
  font-weight:800; border:0; padding:10px 12px;
  margin-right:10px; border-radius:10px;
  background:#f2f7ff; color:var(--blue-ink);
  box-shadow:inset 0 0 0 2px #dbe7fb;
  transition:filter .15s, transform .02s;
}
input[type="file"]::file-selector-button:hover{
  filter:brightness(1.02);
}
input[type="file"]::file-selector-button:active{
  transform:translateY(1px);
}

.form-hint{ color:var(--muted); font-size:13px; margin-top:6px; }
.form-actions{
  display:flex; gap:12px; flex-wrap:wrap; margin-top:12px;
}
.form-actions .btn{
  padding:16px 20px;
  font-size:16px; line-height:1.1;
  min-height:48px;
}
@media (max-width:520px){
  .form-actions .btn{ width:100%; }
}

#formStatus{ margin-top:10px; font-size:14px; }
#formStatus.ok{ color:#0d6938; }
#formStatus.err{ color:#7a1d1d; }

/* ===========================
   RESPONSIVE TWEAKS
=========================== */
@media (max-width:720px){
  .trust { margin-top:14px; }
  .trust__row { gap:10px; }
  .trust__item { padding:12px 14px; }
}
@media (max-width:520px){
  .pdp h1 { font-size:28px; line-height:1.15; }
  .pdp .price { font-size:22px; }
  .pdp .muted { font-size:15px; }
}
@media (max-width:420px){
  .pdp .card{ margin-inline:0; }
}

/* PDP — mobile upgrades for current structure */
@media (max-width: 720px){
  .card--lg, .card--sm { grid-column: span 12 !important; }
  .card.card--sm h1 { font-size: 26px; line-height: 1.15; }
  .price { font-size: 22px; }
  .card__cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card__cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  .howto-grid { gap: 12px; }
  .step-card { padding: 14px; min-height: auto; }
  .step-num { left: 10px; top: 10px; }
  .trust__row { grid-template-columns: 1fr; gap: 10px; }
  .trust__item { padding: 12px 14px; }
}

/* PDP Buy Bar — default hidden */
.pdp-buybar,
.pdp-buybar-spacer {
  display: none;
}

/* Mobile only buy bar */
@media (max-width: 720px) {
  .pdp-buybar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
    display: block !important;
  }

  .pdp-buybar__row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .pdp-buybar__price {
    font-weight: 800;
    color: var(--navy-2);
    font-size: 17px;
  }

  .pdp-buybar .btn {
    min-height: 44px;
  }

  .pdp-buybar-spacer {
    display: block !important;
    height: calc(70px + env(safe-area-inset-bottom));
  }
}

/* Fallback if env() not supported */
@supports not (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 720px) {
    .pdp-buybar__row { padding-bottom: 16px; }
    .pdp-buybar-spacer { height: 70px; }
  }
}

/* ===== Mobile form comfort ===== */
@media (max-width: 640px){
  .form-page .container{
    padding-inline:max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
  }
  .form-page .card{
    max-width:none; border-radius:0; margin:0 -12px;
    box-shadow:none;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
  }

  .form label{ font-size:16px; }
  .form-input, .form-textarea, .form-select{
    font-size:17px;
    min-height:52px;
    padding:14px 14px;
  }
  .form-textarea{ min-height:160px; line-height:1.4; }

  .form-actions{ flex-direction:column; gap:10px; }
  .form-actions .btn{
    width:100%; min-height:52px; font-size:17px;
  }

  .trust-strip{ gap:10px; }
  .trust-strip .chip{
    display:inline-flex; align-items:center; gap:8px;
    padding:10px 12px; font-weight:700;
  }
}

/* helpful universal polish */
.form .err{ color:#7a1d1d; }
.form .ok{ color:#0d6938; }
input:-webkit-autofill{
  transition:background-color 9999s ease-in-out 0s;
}

/* ===========================
   IMAGE FALLBACKS (clean & invisible when broken)
=========================== */

/* Default: no forced background on images */
img {
  background: transparent;
}

/* Normal media images get a soft gray only when they actually load */
.card__media img,
.pdp__figure img,
.grid .card img,
.article-content img {
  background-color: #f3f3f3;
  color: transparent;
}

/* Broken or empty image placeholders – hide completely */
.card__media img:is(:not([src]), [src=""], [src="#"], [src="null"], [src="undefined"]),
.pdp__figure img:is(:not([src]), [src=""], [src="#"], [src="null"], [src="undefined"]),
.grid .card img:is(:not([src]), [src=""], [src="#"], [src="null"], [src="undefined"]),
.article-content img:is(:not([src]), [src=""], [src="#"], [src="null"], [src="undefined"]) {
  background: transparent;
  display: none;
}

/* If load fails (set by JS error listener) – also hide */
.card__media img[data-error="true"],
.pdp__figure img[data-error="true"],
.grid .card img[data-error="true"],
.article-content img[data-error="true"] {
  background: transparent;
  display: none;
}

/* EXCEPTIONS — PDP thumbnails can still use white if you want */
.pdp-page .card__body .chip img {
  background-color: #ffffff !important;
}

.pdp-page .card__body .chip img:is(:not([src]), [src=""], [src="#"], [src="null"], [src="undefined"]),
.pdp-page .card__body .chip img[data-error="true"] {
  background-color: #ffffff !important;
  display: none;
}

/* ===========================
   Feed
=========================== */

.page-header {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

/* GRID */
.content-feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* CARD CONTAINER */
.content-card {
  background: #ffffff;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

/* THUMB LINK */
.content-card__thumb {
  display: block;
}

/* IMAGE WRAPPER */
.content-card__thumb-inner {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #fff;
}

/* IMAGE */
.content-card__thumb-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  opacity: 1 !important;
}

/* TYPE LABEL PILL */
.content-card__pill {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* CARD BODY */
.content-card__body {
  padding: 0.9rem 1rem 1.1rem;
  background: #ffffff;
}

/* META ROW */
.content-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

/* CATEGORY TAG */
.content-card__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

/* TITLE */
.content-card__title {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  font-weight: 600;
}

/* TITLE LINK */
.content-card__title a {
  text-decoration: none;
  color: #0a0a10;
}

.content-card__title a:hover {
  text-decoration: underline;
}

/* DESCRIPTION */
.content-card__description {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.45;
}

/* Mobile product spacing */
@media (max-width: 600px) {
  .product-row {
    margin-bottom: 32px;   /* clean breathing room between products */
  }

  /* optional: add a little padding above products if the page starts tight */
  .product-list {
    padding-top: 12px;
  }
}


/* Calculator Card */
.calculator-card {
  background: #f7f7f7;
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  max-width: 550px;
  margin-top: 1rem;
}

.calculator-label {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Large, beautiful input */
.calculator-input {
  width: 100%;
  font-size: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

/* Button matches site buttons */
.calculator-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.pole-result {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}


/* ===========================
   Feed page typography tweaks
   
=========================== */

/* Make the page title a bit larger */
.feed-page .page-header h1 {
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

/* Hide the "Ski Feed" pill just on the Feed page */
.feed-page .page-header .eyebrow {
  display: none;
}

/* Make individual card titles a bit smaller */
.feed-page .content-card__title {
  font-size: 0.95rem;
  line-height: 1.25;
}


/* 2-per-row product grid on desktop for Featured Ski Gear */
.product-grid.product-grid--two {
  display: grid;
  gap: 2rem;
}

/* Desktop: 2 columns */
@media (min-width: 900px) {
  .product-grid.product-grid--two {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    max-width: 960px;           /* optional: keeps cards from stretching too wide */
    margin-inline: auto;        /* centers the grid */
  }
}

/* Mobile / small tablets: 1 column */
@media (max-width: 899px) {
  .product-grid.product-grid--two {
    grid-template-columns: 1fr;
  }
}


.guide-video__frame {
  position: relative;
  width: 100%;
  max-width: 540px;       /* bigger on phones + small screens */
  margin: 0 auto 1.75rem;
  aspect-ratio: 9 / 16;
}

.guide-video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

/* Make it larger on desktop */
@media (min-width: 960px) {
  .guide-video__frame {
    max-width: 640px;     /* nice big portrait frame on desktop */
  }
}
