:root {
  /* ===== THEME (measured from libernovo.com home @1270px) ===== */
  --font-head:
    "HelveticaNeue Medium", "Helvetica Neue", Helvetica, Arial, system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:
    "HelveticaNeue Regular", "Helvetica Neue", Helvetica, Arial, system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff;
  --ink: #000000;
  --dark: #101820;
  --muted: #5c6470;
  --soft: #f1f3f6;
  --primary: #ec6a1f;
  --accent: #ec6a1f;
  --sale: #ec6a1f;
  --border: #c7cad1;
  --radius: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --maxw: 1151px;
  --gutter: 2rem;
  --header-h: 56px;
  --announce-h: 41px;
  --curve: cubic-bezier(0.25, 0.1, 0.25, 1);
  /* fluid type scale: slope*(100vw-768px)+base (clamped) */
  --fs-3: clamp(
    1.75rem,
    calc(0.0178571429 * (100vw - 768px) + 1.75rem),
    2.6rem
  );
  --fs-4: clamp(1.5rem, calc(0.0119047619 * (100vw - 768px) + 1.5rem), 2.1rem);
  --fs-5: clamp(1.25rem, calc(0.005952381 * (100vw - 768px) + 1.25rem), 1.5rem);
  --fs-6: clamp(
    1.125rem,
    calc(0.0029761905 * (100vw - 768px) + 1.125rem),
    1.3rem
  );
  --section-pad: clamp(
    80px,
    calc(0.0714285714 * (100vw - 768px) + 5rem),
    116px
  );
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: auto;
}
body {
  font-size: 1rem;
  line-height: 1.3;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img,
canvas,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  position: relative;
}
h1,
h2,
h3,
.logo,
.angle {
  font-family: var(--font-head);
}
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}
h2.title {
  font-size: var(--fs-3);
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.btn {
  display: inline-block;
  padding: 8.5px 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  border: 0.667px solid var(--primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}
.btn:hover {
  background: #d85a12;
  border-color: #d85a12;
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 0.667px solid #fff;
}
.btn.ghost:hover {
  background: #fff;
  color: var(--dark);
}
.btn.light {
  background: #fff;
  color: var(--dark);
}

/* placeholder for your own images/videos */
.ph {
  background: linear-gradient(135deg, #e9e7e3, #d8d5cf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a867e;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-slot);
  position: absolute;
  inset: auto 10px 10px auto;
  font-size: 11px;
  opacity: 0.7;
}
.ph.has-img::after {
  display: none;
}
.ph img,
.ph video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* announcement + header */
.announce {
  background: var(--dark);
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: var(--announce-h);
  height: var(--announce-h);
  padding: 0 12px;
}
.announce a {
  text-decoration: underline;
  margin-left: 8px;
}
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #eee;
}
header.site .bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}
nav.main {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
nav.main .has-mega {
  position: relative;
}
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 24px;
  display: none;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  min-width: 520px;
}
.has-mega:hover .mega {
  display: flex;
}
.mega a {
  display: block;
  text-align: center;
  font-size: 14px;
}
.mega .ph {
  width: 140px;
  height: 110px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.icons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cart-btn {
  position: relative;
  font-weight: 600;
}
.cart-btn span {
  background: var(--dark);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  padding: 2px 7px;
  margin-left: 4px;
}
.burger {
  display: none;
}

/* hero slider */
.hero {
  height: calc(100vh - var(--header-h) - var(--announce-h));
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #2a2a2a, var(--dark));
  color: #777;
}
.slide .copy {
  position: absolute;
  left: 6vw;
  bottom: 14vh;
  max-width: 560px;
  z-index: 3;
}
.slide .copy small {
  display: block;
  margin-bottom: 10px;
  opacity: 0.8;
}
.slide .copy h1 {
  font-size: clamp(34px, 5.5vw, 76px);
  margin-bottom: 14px;
}
.slide .copy p {
  margin-bottom: 24px;
  opacity: 0.85;
  font-size: 18px;
}
.slide .copy .btn + .btn {
  margin-left: 10px;
}
.dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.dots button {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
}
.dots button.active {
  background: #fff;
}

/* find your fit */
.fit {
  padding: var(--section-pad) 0;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 0.667px solid var(--border);
  font-weight: 400;
  transition: all 0.3s ease;
}
.tab.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.tab small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}
.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
}
.card .ph {
  height: 280px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: transparent;
}
.card h3 {
  font-size: var(--fs-5);
  margin-bottom: 4px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.price {
  font-weight: 500;
  margin-bottom: 4px;
}
.price s {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
.save {
  display: inline-block;
  color: var(--sale);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.card.hide {
  display: none;
}

/* personas */
.personas {
  padding: var(--section-pad) 0;
  background: var(--soft);
}
.track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px 20px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar {
  display: none;
}
.persona {
  flex: 0 0 min(420px, 80vw);
  scroll-snap-align: start;
}
.persona .ph {
  height: 520px;
  border-radius: var(--radius);
}
.persona h3 {
  margin: 14px 0 4px;
  font-size: 20px;
}
.persona p {
  color: var(--muted);
  font-size: 14px;
}

/* pinned pain points */
.pain {
  height: 500vh;
}
.pain .sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.pain .list h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin-bottom: 34px;
}
.pain-item {
  padding: 18px 0;
  border-top: 1px solid #e5e5e5;
  opacity: 0.35;
  transition: opacity 0.4s;
}
.pain-item h3 {
  font-size: 20px;
}
.pain-item p {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height 0.5s;
  margin-top: 0;
}
.pain-item.active {
  opacity: 1;
}
.pain-item.active p {
  max-height: 140px;
  margin-top: 10px;
}
.pain .media {
  position: relative;
  height: 72vh;
  border-radius: var(--radius);
  overflow: hidden;
}
.pain .media .ph {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
}
.pain .media .ph.active {
  opacity: 1;
}

/* milestones */
.miles {
  overflow: hidden;
  padding: 100px 0 0;
  background: var(--dark);
  color: #fff;
}
.miles h2 {
  color: #fff;
}
.miles .pin {
  height: 100vh;
  display: flex;
  align-items: center;
}
.miles .rail {
  display: flex;
  gap: 24px;
  padding: 0 6vw;
  will-change: transform;
}
.mile {
  flex: 0 0 min(520px, 80vw);
}
.mile .ph {
  height: 56vh;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
}
.mile h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
}

/* reviews */
.reviews {
  padding: var(--section-pad) 0;
}
.rev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.rev .ph {
  aspect-ratio: 9/14;
  border-radius: var(--radius);
}
.rev p {
  margin-top: 12px;
  font-size: 14px;
  color: #333;
}
.rev b {
  display: block;
  margin-top: 6px;
}
.press {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
  opacity: 0.55;
  font-weight: 700;
}

/* why + experience */
.why {
  padding: 0 0 100px;
}
.why .ph {
  height: 70vh;
  border-radius: var(--radius);
}
.exp {
  padding: 0 0 110px;
}
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.exp-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  color: #fff;
}
.exp-card .ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3a3a3a, #1d1d1d);
  color: #777;
}
.exp-card div.t {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  z-index: 2;
}
.exp-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

/* footer */
footer {
  background: var(--soft);
  color: #000;
  padding: 70px 0 30px;
  font-size: 14px;
}
.f-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}
.f-grid h4 {
  color: #000;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-6);
  margin-bottom: 14px;
}
.f-grid a {
  display: block;
  margin-bottom: 9px;
  opacity: 0.75;
}
.f-grid a:hover {
  opacity: 1;
}
.f-bottom {
  border-top: 0.667px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0.7;
}

/* cart drawer */
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 90;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
body.cart-open .drawer {
  transform: none;
}
body.cart-open .drawer-bg {
  opacity: 1;
  pointer-events: auto;
}
.drawer h3 {
  margin-bottom: 18px;
}
.drawer .empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
}

/* ===== product landing ===== */
.p-hero {
  height: 100vh;
  background: #0c0c0c;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding-bottom: 12vh;
}
.p-hero .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(160deg, #222, #0c0c0c);
  color: #666;
}
.p-hero .copy {
  position: relative;
  z-index: 3;
}
.p-hero h1 {
  font-size: clamp(40px, 7vw, 100px);
}
.p-hero small {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}
.subnav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.subnav nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.subnav nav a {
  opacity: 0.55;
}
.subnav nav a.active {
  opacity: 1;
  border-bottom: 2px solid var(--dark);
  padding-bottom: 4px;
}
.subnav .btn {
  padding: 9px 20px;
  font-size: 14px;
}

/* scroll-scrub 360 */
.spin {
  height: 600vh;
  background: #f6f5f3;
}
.spin .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.spin canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.spin .caption {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  max-width: 380px;
  opacity: 0;
  pointer-events: none;
}
.spin .caption.r {
  left: auto;
  right: 6vw;
  text-align: right;
}
.spin .caption h3 {
  font-size: clamp(26px, 3.2vw, 44px);
  margin-bottom: 8px;
}
.spin .caption p {
  color: var(--muted);
}
.spin .head {
  position: absolute;
  top: 12vh;
  width: 100%;
  text-align: center;
}
.spin .head h2 {
  font-size: clamp(34px, 5vw, 72px);
}

/* recline */
.recline {
  height: 500vh;
  background: var(--dark);
  color: #fff;
}
.recline .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 0 6vw;
}
.recline canvas {
  width: 100%;
  height: 80vh;
  border-radius: var(--radius);
  background: #1b1b1b;
}
.angle {
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.modes {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modes li {
  list-style: none;
  opacity: 0.3;
  transition: 0.3s;
  font-size: 18px;
}
.modes li.active {
  opacity: 1;
}
.modes li span {
  display: block;
  font-size: 14px;
  opacity: 0.7;
}

.compare {
  padding: var(--section-pad) 0;
}
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cmp {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 28px;
}
.cmp ul {
  margin: 16px 0 22px 18px;
  color: #333;
  line-height: 1.8;
  font-size: 14px;
}
.cmp .ph {
  height: 240px;
  border-radius: 12px;
  background: transparent;
}
.specs {
  padding: 0 0 110px;
}
.adj {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.adj .ph {
  height: 360px;
  border-radius: var(--radius);
}
.adj h3 {
  margin-top: 12px;
  font-size: 18px;
}
.cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 120px 24px;
}
.cta h2 {
  font-size: clamp(32px, 5vw, 64px);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  nav.main {
    display: none;
  }
  .burger {
    display: block;
  }
  .cards,
  .cmp-grid,
  .exp-grid,
  .adj {
    grid-template-columns: 1fr;
  }
  .rev-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pain .sticky,
  .recline .sticky {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pain .media {
    height: 38vh;
    order: -1;
  }
  .f-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subnav nav {
    display: none;
  }
  .recline canvas {
    height: 42vh;
  }
}
