/* =================================================================
   Click-Fit Abutment — Landing page styles
   Structure:
     1.  Design tokens (custom properties)
     2.  Reset & base
     3.  Typography helpers
     4.  Layout primitives (container, section)
     5.  Buttons
     6.  Reveal / animation utilities
     7.  Preloader
     8.  Navigation + mobile menu
     9.  Hero
     10. Marquee
     11. Problem
     12. Solution
     13. Advantages (cards)
     14. Showcase
     15. How it works (steps + video)
     16. Components
     17. Testimonials
     18. CTA / form
     19. Footer
     20. Lightbox
     21. Responsive
     22. Reduced motion
   ================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Warm, Anthropic-inspired ivory palette */
  --canvas:        #f6f2ea;
  --canvas-alt:    #efe9dd;
  --canvas-deep:   #e7dfd0;
  --ink:           #1a1813;
  --ink-soft:      #4f4a40;
  --ink-faint:     #8a8377;
  --line:          rgba(26, 24, 19, 0.12);

  /* Accent — refined clay */
  --accent:        #c2693f;
  --accent-deep:   #a8542f;
  --accent-tint:   rgba(194, 105, 63, 0.12);

  /* Trust blue (from Click-Fit brand) used sparingly */
  --brand-blue:    #2c3a8c;

  /* Dark sections */
  --night:         #14130f;
  --night-soft:    #211f19;
  --on-night:      #f3efe6;
  --on-night-dim:  rgba(243, 239, 230, 0.66);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 7.5vw, 6.75rem);
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  z-index: 2000;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section__title {
  font-size: clamp(1.75rem, 4.6vw, 3.6rem);
  font-weight: 400;
  max-width: 16ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.section__head--center .section__title { margin-inline: auto; }

.section__kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}

em { font-style: italic; }

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* Anchor targets should clear the fixed nav */
section[id], [id="components"], [id="contact"] { scroll-margin-top: 84px; }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.section__head--center { text-align: center; margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--canvas);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(26,24,19,0.5); }

.btn--small { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
.btn--large { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); box-shadow: 0 14px 30px -10px rgba(168,84,47,0.6); }

.btn--ghost-light {
  background: transparent;
  color: var(--on-night);
  border: 1px solid rgba(243,239,230,0.4);
}
.btn--ghost-light:hover { background: rgba(243,239,230,0.1); box-shadow: none; }

.btn__play { font-size: 0.7rem; }

/* ---------- 6. Reveal utilities ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Text mask reveal (hero headline) */
.hero__title .line { display: block; overflow: hidden; }
.hero__title [data-reveal-text] {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.hero__title.is-visible [data-reveal-text] { transform: none; }

/* ---------- 7. Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--night);
  display: grid; place-items: center;
  z-index: 3000;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.preloader__mark {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--on-night);
  letter-spacing: -0.01em;
}
.preloader__dot { color: var(--accent); }
.preloader__bar {
  width: 180px; height: 2px;
  background: rgba(243,239,230,0.18);
  border-radius: 2px; overflow: hidden;
}
.preloader__fill {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.3s linear;
}

/* ---------- 8. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav__brand-mark, .footer__mark, .preloader__mark, .nav__brand {
  font-family: var(--font-display);
}
.nav__brand-mark {
  font-size: 1.4rem; font-weight: 500;
  color: var(--on-night);
  transition: color 0.4s var(--ease);
}
.nav__brand-dot, .footer__mark .nav__brand-dot { color: var(--accent); }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--on-night-dim);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--on-night); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { color: var(--on-night); border: 1px solid rgba(243,239,230,0.35); background: transparent; }
.nav__cta:hover { background: rgba(243,239,230,0.12); box-shadow: none; }

/* Scrolled (solid) state */
.nav.is-scrolled {
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__brand-mark { color: var(--ink); }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }
.nav.is-scrolled .nav__cta { color: var(--ink); border-color: var(--line); }
.nav.is-scrolled .nav__cta:hover { background: rgba(26,24,19,0.06); }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* Mobile toggle — 44px hit area for touch */
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav__toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--on-night); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { bottom: 18px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
body.menu-open .nav__toggle span { background: var(--ink); }
body.menu-open .nav__brand-mark { color: var(--ink); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--canvas);
  z-index: 999;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.mobile-menu__links a { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); padding: 0.55rem 1.2rem; }
.mobile-menu__links a.btn { font-family: var(--font-body); font-size: 1rem; margin-top: 1.2rem; color: #fff; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(4rem, 9vw, 7rem);
  color: var(--on-night);
  overflow: hidden;
  background: var(--night);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.08);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,19,15,0.82) 0%, rgba(20,19,15,0.66) 35%, rgba(20,19,15,0.72) 60%, rgba(20,19,15,0.95) 100%),
    radial-gradient(130% 90% at 25% 60%, rgba(20,19,15,0.55), transparent 65%);
}
.hero__content { position: relative; z-index: 2; max-width: 920px; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--on-night-dim);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-size: clamp(2.1rem, 8.5vw, 6rem);
  font-weight: 300;
  line-height: 1.04;
  color: var(--on-night);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.hero__title .accent span { color: var(--accent); font-style: italic; }
.hero__lede {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--on-night-dim);
  font-weight: 300;
}
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__shopnote {
  margin-top: 1.4rem; font-size: 0.95rem; color: var(--on-night-dim); font-weight: 300;
}
.hero__shopnote a {
  color: var(--on-night); font-weight: 500;
  border-bottom: 1px solid var(--accent); padding-bottom: 1px;
  transition: color 0.25s var(--ease);
}
.hero__shopnote a:hover { color: var(--accent); }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--on-night-dim);
}
.hero__scroll-line { width: 1px; height: 46px; background: rgba(243,239,230,0.5); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent); animation: scrollPulse 2.2s var(--ease) infinite;
}
.hero__scroll-text { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
@keyframes scrollPulse { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------- 10. Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--canvas);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 1.5rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 400;
  animation: marquee 32s linear infinite;
}
.marquee__track .dot { color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. Problem ---------- */
.problem { background: var(--canvas); }
.problem__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem);
}
.problem__item { padding-top: 2rem; border-top: 1px solid var(--line); }
.problem__num {
  font-family: var(--font-display); font-size: 1rem; color: var(--accent); display: block; margin-bottom: 1.2rem;
}
.problem__item h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.problem__item p { color: var(--ink-soft); }

/* ---------- 12. Solution ---------- */
.solution { background: var(--canvas-alt); }
.solution__inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.solution__media { position: relative; display: grid; place-items: center; }
.solution__media img { width: min(86%, 420px); filter: drop-shadow(0 30px 50px rgba(26,24,19,0.22)); }
.solution__glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-tint), transparent 70%);
  filter: blur(20px);
}
.solution__lede { margin-top: 1.6rem; font-size: 1.12rem; color: var(--ink-soft); max-width: 48ch; }
.solution__list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.solution__list li {
  padding-left: 1.8rem; position: relative; color: var(--ink-soft);
}
.solution__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.solution__list li span { color: var(--ink); font-weight: 500; }

/* ---------- 13. Advantages ---------- */
.advantages { background: var(--canvas); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(26,24,19,0.4); border-color: transparent; }
.card__icon { font-size: 1.7rem; color: var(--accent); margin-bottom: 1rem; line-height: 1; }
.card h3 { font-size: 1.32rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }
.card--accent { background: var(--ink); color: var(--canvas); border-color: transparent; display: flex; flex-direction: column; }
.card--accent h3 { color: var(--canvas); }
.card--accent p { color: var(--on-night-dim); }
.card__link { margin-top: auto; padding-top: 1rem; color: var(--accent); font-weight: 500; font-size: 0.95rem; }
.card__link:hover { text-decoration: underline; }

/* spans for varied grid rhythm */
.cards .card:nth-child(1) { grid-column: span 2; }
.cards .card:nth-child(4) { grid-column: span 2; }
.cards .card:nth-child(8) { grid-column: span 2; }

/* ---------- 14. Showcase ---------- */
.showcase { background: var(--canvas-alt); overflow: hidden; }
.showcase__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.showcase__row--reverse .showcase__media { order: 2; }
.showcase__media { position: relative; display: grid; place-items: center; min-height: 320px; }
.showcase__plate {
  position: absolute; width: min(80%, 360px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--canvas-deep) 78%);
  box-shadow: inset 0 0 60px rgba(26,24,19,0.06);
}
.showcase__plate--alt { background: radial-gradient(circle at 50% 40%, #fff, #e7ddd2 80%); }
.showcase__media img { position: relative; z-index: 1; width: min(62%, 280px); filter: drop-shadow(0 24px 40px rgba(26,24,19,0.25)); }
.showcase__text h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }
.showcase__text p { color: var(--ink-soft); max-width: 46ch; }

.showcase__feature { background: var(--night); border-radius: var(--radius-lg); margin-top: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.showcase__feature-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.showcase__feature-text h3 { color: var(--on-night); font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.showcase__feature-text p { color: var(--on-night-dim); max-width: 38ch; }

/* Video card */
.video-card {
  position: relative; width: 100%; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; display: block;
}
.video-card__poster { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.video-card:hover .video-card__poster { transform: scale(1.05); }
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,15,0.25); }
.video-card__btn {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; z-index: 2;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(246,242,234,0.92); color: var(--ink);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.video-card:hover .video-card__btn { transform: scale(1.08); background: #fff; }
.video-card__play { font-size: 1.4rem; margin-left: 3px; color: var(--accent-deep); }

/* ---------- 15. How it works ---------- */
.how { background: var(--canvas); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.step { position: relative; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.step__index {
  position: absolute; top: -0.3rem; left: 0;
  font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); opacity: 0.9; line-height: 1;
}
.step__body { margin-top: 2.4rem; }
.step__body h3 { font-size: 1.32rem; margin-bottom: 0.6rem; }
.step__body p { color: var(--ink-soft); font-size: 0.97rem; }

.how__video { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(26,24,19,0.5); }
.how__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }

/* ---------- 16. Components ---------- */
.components { background: var(--ink); color: var(--canvas); }
.components .section__title { color: var(--canvas); }
.components .section__kicker { color: var(--accent); }
.components__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.component {
  border: 1px solid rgba(243,239,230,0.16); border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.8rem;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.component:hover { background: rgba(243,239,230,0.05); transform: translateY(-4px); border-color: rgba(243,239,230,0.28); }
.component__media {
  aspect-ratio: 1 / 1; margin-bottom: 1.4rem; border-radius: 14px;
  background: radial-gradient(circle at 50% 38%, #ffffff, #e9e3d8 78%);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(26,24,19,0.04);
}
.component__media img {
  width: 78%; height: 78%; object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease);
}
.component:hover .component__media img { transform: scale(1.06); }
.component h3 { color: var(--canvas); font-size: 1.28rem; margin-bottom: 0.7rem; }
.component p { color: var(--on-night-dim); font-size: 0.94rem; }

/* Shop CTA band under the accessory grid */
.components__cta {
  margin-top: 2.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem 2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(194,105,63,0.18), rgba(243,239,230,0.05));
  border: 1px solid rgba(194,105,63,0.4); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3.4vw, 2.8rem);
}
.components__cta-text { max-width: 56ch; }
.components__cta h3 { color: var(--canvas); font-size: 1.35rem; margin-bottom: 0.5rem; }
.components__cta p { color: var(--on-night-dim); font-size: 0.98rem; }
.components__cta .btn { flex-shrink: 0; }

/* ---------- 17. Testimonials ---------- */
.testimonials { background: var(--canvas-alt); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.6rem;
}
.quote blockquote { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.4; color: var(--ink); }
.quote figcaption { display: flex; flex-direction: column; }
.quote__name { font-weight: 600; }
.quote__role { color: var(--ink-faint); font-size: 0.88rem; }

/* ---------- 18. CTA / form ---------- */
.cta { background: var(--canvas); }
.cta__inner {
  background: var(--night); color: var(--on-night);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center; max-width: 880px;
}
.cta .section__kicker { color: var(--accent); }
.cta__title { color: var(--on-night); font-size: clamp(2rem, 4.5vw, 3.3rem); margin-bottom: 1.2rem; }
.cta__lede { color: var(--on-night-dim); max-width: 52ch; margin: 0 auto 2.2rem; }
.cta__lede strong { color: var(--on-night); font-weight: 600; }
.cta__shop { margin: 0 0 2.6rem; }

/* Contact details (replaces the form) */
.contact {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  text-align: left; max-width: 760px; margin: 0 auto 2.2rem;
}
.contact__item {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: rgba(243,239,230,0.06); border: 1px solid rgba(243,239,230,0.16);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
  font-style: normal; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.4s var(--ease);
}
a.contact__item:hover { border-color: var(--accent); background: rgba(243,239,230,0.1); transform: translateY(-3px); }
.contact__label {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--accent);
}
.contact__value { color: var(--on-night); font-size: 1.02rem; line-height: 1.5; }
.contact__item--address .contact__value { font-size: 0.96rem; color: var(--on-night-dim); }

.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 18b. Sticky mobile shop CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: none;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
body.menu-open .mobile-cta { transform: translateY(110%); }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ---------- 19. Footer ---------- */
.footer { background: var(--canvas-deep); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.footer__mark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; display: inline-block; margin-bottom: 0.8rem; }
.footer__brand p { color: var(--ink-soft); max-width: 30ch; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 1.1rem; }
.footer__col a { display: block; color: var(--ink-soft); padding: 0.3rem 0; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0;
}
.footer__social a:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.footer__bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.8rem; color: var(--ink-faint); font-size: 0.86rem;
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .solution__inner { grid-template-columns: 1fr; }
  .solution__media { order: -1; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:nth-child(n) { grid-column: span 1; }
  .cards .card--accent { grid-column: span 2 !important; }

  .components__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; max-width: 460px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 680px) {
  body { font-size: 1rem; }

  /* Long German compounds must be allowed to break */
  h1, h2, h3, h4 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

  .problem__grid { grid-template-columns: 1fr; gap: 2rem; }
  .problem__item { padding-top: 1.5rem; }
  .problem__num { margin-bottom: 0.7rem; }

  .steps { grid-template-columns: 1fr; }
  .showcase__row { grid-template-columns: 1fr; gap: 1.6rem; }
  .showcase__row--reverse .showcase__media { order: -1; }
  .showcase__media { order: -1; min-height: 230px; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }

  .hero { padding-top: 6.5rem; padding-bottom: 4.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }

  .marquee { padding-block: 0.85rem; }
  .marquee__track { font-size: 0.98rem; gap: 1.1rem; }

  /* Card grids become swipeable, edge-to-edge snap carousels */
  .cards, .components__grid, .quotes {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 300px);
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar,
  .components__grid::-webkit-scrollbar,
  .quotes::-webkit-scrollbar { display: none; }
  .cards > *, .components__grid > *, .quotes > * { scroll-snap-align: start; }
  .cards .card--accent { grid-column: auto !important; }
  .card { padding: 1.5rem 1.3rem; }
  .card:hover { transform: none; }
  .quote { padding: 1.6rem 1.4rem; gap: 1.2rem; }
  .quote blockquote { font-size: 1.1rem; }
  .component { padding: 1.1rem 1.1rem 1.5rem; }

  /* Steps become a vertical timeline */
  .steps { gap: 0; margin-bottom: 2.5rem; }
  .step {
    border-top: 0;
    padding: 0 0 2rem 3.6rem;
  }
  .step:last-child { padding-bottom: 0.5rem; }
  .step::before {
    content: "";
    position: absolute; left: 1.1rem; top: 0.4rem; bottom: -0.4rem;
    width: 1px; background: var(--line);
  }
  .step:last-child::before { display: none; }
  .step__index {
    position: absolute; top: 0; left: 0;
    width: 2.2rem; height: 2.2rem;
    display: grid; place-items: center;
    font-size: 1.15rem; line-height: 1;
    background: var(--accent-tint);
    border: 1px solid rgba(194, 105, 63, 0.35);
    border-radius: 50%;
    opacity: 1;
  }
  .step__body { margin-top: 0; }
  .step__body h3 { font-size: 1.2rem; padding-top: 0.25rem; }

  /* Manual video goes edge-to-edge */
  .how__video {
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
  }

  .components__cta { flex-direction: column; align-items: stretch; text-align: left; }
  .components__cta .btn { justify-content: center; }

  .cta__inner { padding: 2.6rem 1.4rem; }
  .contact { text-align: left; }
  .contact__actions .btn { flex: 1 1 auto; justify-content: center; }

  .footer__bar { flex-direction: column; gap: 0.4rem; padding-bottom: 1.4rem; }

  /* Leave room for the sticky shop bar */
  .mobile-cta { display: block; }
  .footer { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
}

/* Small phones — iPhone SE and narrower */
@media (max-width: 430px) {
  :root {
    --gutter: 1.1rem;
    --section-y: 3rem;
    --radius-lg: 20px;
  }

  .nav__inner { padding-block: 0.9rem; }
  .nav__brand-mark { font-size: 1.25rem; }

  .hero { padding-bottom: 3.5rem; }
  .hero__eyebrow { font-size: 0.68rem; letter-spacing: 0.16em; margin-bottom: 1.1rem; }
  .hero__title { font-size: clamp(1.9rem, 10.5vw, 2.5rem); }
  .hero__lede { margin-top: 1.2rem; font-size: 1rem; }
  .hero__actions { margin-top: 1.8rem; }
  .hero__shopnote { font-size: 0.88rem; }

  .section__title { font-size: 1.6rem; }
  .section__kicker { font-size: 0.68rem; margin-bottom: 0.8rem; }
  .section__head { margin-bottom: 2rem; }

  .btn { padding: 0.9rem 1.4rem; font-size: 0.92rem; }
  .btn--large { padding: 1rem 1.6rem; font-size: 0.95rem; }

  .marquee__track { font-size: 0.9rem; }

  .problem__item h3 { font-size: 1.3rem; }
  .solution__lede { font-size: 1.02rem; }
  .solution__media img { width: min(78%, 320px); }

  .cards, .components__grid, .quotes { grid-auto-columns: min(86%, 280px); }

  .showcase__text h3 { font-size: 1.45rem; }
  .showcase__media { min-height: 190px; }
  .showcase__media img { width: min(56%, 210px); }

  .cta__inner { padding: 2.2rem 1.15rem; }
  .cta__title { font-size: 1.65rem; }
  .contact__item { padding: 1.1rem 1.1rem; }
  .contact__value { font-size: 0.95rem; }
  .contact__actions { flex-direction: column; }

  .mobile-menu__links a { font-size: 1.45rem; }

  .footer__social a { width: 44px; height: 44px; }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__title [data-reveal-text] { transform: none !important; }
  .hero__video { display: none; }
  .marquee__track { animation: none; }
}
