/* ============================================================
   Florahprint / TerraHex
   Layout modeled on the reference video: cream editorial base,
   oversized thin grotesk headlines, serif accents, a full-color
   product-switcher hero. Colors come from the TerraHex logo.
   ============================================================ */
:root {
  --cream: #E7E3DA;
  --cream-2: #F1EEE8;
  --ink: #1C1C18;
  --ink-soft: #5E5B53;
  --sage: #7A9466;
  --sage-light: #A8BF8F;
  --forest: #12160F;
  --bone: #F3F0E7;

  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --bar: 36px; /* announcement bar height */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --pad: clamp(1rem, 2vw, 2rem);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7V97' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { padding-inline: var(--pad); }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--ink-soft); }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: var(--bone); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.sage { color: var(--sage); }

/* Big condensed all-caps headlines (from the first design) */
.hero__title, .how__title, .proof__big, .faq__title, .signup__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .9;
}
/* Thin grotesk caps for secondary statements (from the video design) */
.proof__confirm { font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; }

/* ---------- Buttons (sage pills from the first design) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 .9375rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn--sage { background: var(--sage); color: #0C0D0B; }
.btn--sage:hover { background: var(--sage-light); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--line { border-color: var(--sage); color: var(--bone); width: 100%; }
.btn--line:hover { background: var(--sage); color: #0C0D0B; }

/* ---------- Photo slots: show a drawn placeholder until the real photo exists ---------- */
.media-slot { position: relative; overflow: hidden; }
.media-slot img, .media-slot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { display: none; }
.no-img > img, .no-img > video { display: none; }
.no-img > .ph { display: block; }
.ph--photo { position: absolute; inset: 0; display: none; place-items: center; background: radial-gradient(circle at 50% 55%, #2B3524, #12160F 75%); }
.no-img > .ph--photo { display: grid; }
.ph--photo svg { width: 55%; max-width: 360px; }
.ph--hex { background: var(--hex), linear-gradient(160deg, #6F8A5C, #2C3A24); background-size: 56px 97px, cover; }

/* ---------- Header: sage announcement bar + nav ----------
   Over the hero the nav is transparent and takes the slide's text color;
   after scrolling it turns solid cream and the bar slides away. */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .35s var(--ease);
}
.header.is-solid { transform: translateY(calc(-1 * var(--bar))); }
.announce {
  height: var(--bar); display: grid; place-items: center; padding: 0 1rem;
  background: var(--sage); color: #0C0D0B; font-size: .8125rem; font-weight: 500; text-align: center;
  white-space: nowrap; overflow: hidden;
}
.announce a { font-weight: 600; }
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .45rem var(--pad); font-size: .875rem;
  color: var(--navfg, #F3F0E7);
  border-bottom: 1px solid transparent;
  transition: color .6s, background-color .35s, border-color .35s;
}
.header.is-solid .nav {
  color: var(--ink);
  background: rgba(231, 227, 218, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-color: rgba(28, 28, 24, .12);
}
.nav a { text-decoration: none; padding: .6rem 0; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__left, .nav__right { display: flex; gap: 1.5rem; }
.nav__right { justify-content: flex-end; }
.nav__logo { gap: .5rem; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.nav__logo:hover { text-decoration: none !important; }
.nav__logo img { width: 36px; height: 36px; transform: scale(1.3); transition: filter .4s; }
/* On light backgrounds, flip the logo's white lines to dark (green stays green) */
.nav.is-dark-text .nav__logo img, .header.is-solid .nav__logo img { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
/* Cart link with item count */
.nav .nav__cart { gap: .4rem; position: relative; }
.nav__cart svg { flex: none; }
.nav__cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--sage); color: #0C0D0B; font-size: .75rem; font-weight: 600; line-height: 1;
}
.nav__cart-count[hidden] { display: none; }
.nav__cart.is-bump .nav__cart-count { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 600px) {
  .nav__left a:nth-child(2), .nav__right a:not(.nav__cart) { display: none; }
  .nav__cart-label { display: none; }
  .nav .nav__cart { min-width: 44px; min-height: 44px; justify-content: flex-end; }
  .nav__logo { font-size: 1.25rem; }
  .announce { font-size: .75rem; }
}

/* ---------- Sticky mini product card ---------- */
.mini {
  position: fixed; top: calc(var(--bar) + 3.6rem); right: var(--pad); z-index: 60;
  display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: stretch;
  width: 330px; padding: 6px; background: #fff; color: var(--ink); border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  transition: opacity .3s, transform .3s var(--ease);
}
.mini.is-hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.mini__thumb { width: 64px; height: 64px; border-radius: 3px; overflow: hidden; background: var(--th, #1D241A); transition: background-color .6s; }
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini__thumb svg { width: 100%; height: 100%; padding: 4px; }
.mini__info, .mini__side { display: flex; flex-direction: column; justify-content: space-between; padding: .2rem 0; font-size: .8125rem; }
.mini__name { font-weight: 500; }
.mini__side { align-items: flex-end; padding-right: .4rem; color: var(--ink-soft); }
.mini__buy { color: var(--ink); font-weight: 500; text-decoration: none; min-height: 24px; }
.mini__buy:hover { text-decoration: underline; }
@media (max-width: 900px) { .mini { display: none; } }

/* ---------- HERO ---------- */
.hero {
  --hbg: #1D241A; --hfg: #F3F0E7; --leaf: #7A9466;
  position: relative; min-height: max(100svh, 680px); overflow: hidden;
  background: var(--hbg); color: var(--hfg);
  transition: background-color .9s var(--ease), color .6s;
}
.hero[data-theme="white"] { --hbg: #D6DDCB; --hfg: #1C1C18; --leaf: #5F7B4E; }
.hero[data-theme="climb"] { --hbg: #3F5A33; --hfg: #F3F0E7; --leaf: #A8BF8F; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 45%, rgba(255, 255, 255, .12), transparent 55%), linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, .28));
}

.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: var(--hex); background-size: 56px 97px;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 70%); mask-image: linear-gradient(to left, #000 10%, transparent 70%);
}
.hero[data-theme="white"]::after { filter: invert(1); opacity: .35; }
.hero__title {
  position: absolute; z-index: 2; top: calc(var(--bar) + 4rem); left: var(--pad);
  font-size: clamp(4.5rem, 12.5vw, 13rem);
}
.mask { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line { display: block; transition: transform .65s var(--ease); }
.hero__line.is-leaving { transform: translateY(-105%); }
.hero__line.is-entering { transform: translateY(105%); transition: none; }
.hero__meta { position: absolute; z-index: 3; left: var(--pad); top: calc(var(--bar) + 4.75rem + clamp(4.5rem, 12.5vw, 13rem) * 1.85); }
.hero__kicker { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-bottom: 1rem; }
.hero[data-theme="white"] .hero__kicker { color: #4E6A3E; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .6rem; }

.hero__product {
  position: absolute; z-index: 3; right: 9vw; top: 50%;
  width: min(42vw, 620px); aspect-ratio: 1; transform: translateY(-46%);
}
.hero__img {
  width: 100%; height: 100%; animation: bob 6s ease-in-out infinite; transition: transform .8s var(--ease), opacity .5s;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
}
/* Photos sit in a hexagon frame, echoing the TerraHex shape */
/* Border: a full-size hexagon behind the photo, with the photo clipped to a slightly smaller hexagon */
.hero { --frame: #FFFFFF; }
.hero[data-theme="white"] { --frame: #5F7B4E; }
.hero[data-theme="climb"] { --frame: #F3F0E7; }
.hero__img::before {
  content: ""; position: absolute; inset: 0; background: var(--frame);
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  transition: background-color .9s var(--ease);
}
.hero__img.no-img::before { display: none; }
.hero__img img { position: relative; object-fit: cover; clip-path: polygon(50% 2.25%, 91.35% 26.13%, 91.35% 73.87%, 50% 97.75%, 8.65% 73.87%, 8.65% 26.13%); }
.hero__img .ph { width: 100%; height: 100%; }
.hero__img.is-swapping { transform: translateY(30px) rotate(-6deg) scale(.92); opacity: 0; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -16px; rotate: 2deg; } }

.hero__float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.leafy {
  position: absolute; left: 0; top: 0; width: var(--w, 40px); color: var(--leaf);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r));
  transition: transform 1.6s var(--ease), color .9s;
}
.leafy svg, .leafy img {
  display: block; width: 100%; height: auto;
  animation: tumble var(--d, 8s) ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
.leafy img { filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .35)); }
.leafy.is-hex svg { animation-name: drift; opacity: .8; }
/* Depth of field, like the reference video */
.leafy.is-front { z-index: 4; }
.leafy.is-front img { filter: blur(5px) drop-shadow(0 20px 24px rgba(0, 0, 0, .3)); opacity: .95; }
.leafy.is-back img { filter: blur(1.4px) brightness(.85) drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); opacity: .9; }
@keyframes drift { to { transform: translateY(-22px) rotate(14deg); } }
/* Slow 3D tumble so the leaves feel like they're floating in the air */
@keyframes tumble {
  0%   { transform: perspective(600px) scaleX(var(--flip, 1)) translateY(0) rotateX(0deg) rotateY(0deg) rotate(0deg); }
  50%  { transform: perspective(600px) scaleX(var(--flip, 1)) translateY(-14px) rotateX(18deg) rotateY(-22deg) rotate(8deg); }
  100% { transform: perspective(600px) scaleX(var(--flip, 1)) translateY(-26px) rotateX(-10deg) rotateY(16deg) rotate(16deg); }
}
/* Phones and tablets: animated blur/shadow filters and 3D tumbles are too heavy, so use
   fewer leaves, no filters and a simple 2D sway that the GPU can move without repainting. */
@media (max-width: 900px), (pointer: coarse) {
  .leafy img, .leafy.is-front img, .leafy.is-back img { filter: none; }
  .leafy.is-front img { opacity: .8; }
  .leafy svg, .leafy img { animation-name: sway; will-change: transform; }
  .leafy.is-hex svg { animation-name: drift; }
  .leafy:nth-child(n+7) { display: none; }
}
@keyframes sway {
  from { transform: scaleX(var(--flip, 1)) translateY(0) rotate(0deg); }
  to   { transform: scaleX(var(--flip, 1)) translateY(-18px) rotate(12deg); }
}

.hero__info {
  position: absolute; z-index: 2; left: var(--pad); bottom: 7.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 15rem)); gap: 2rem; font-size: .8125rem;
}
.hero__name { font-size: 1.5rem; line-height: 1.1; margin-bottom: .5rem; }
.hero__label { opacity: .7; margin-bottom: .35rem; }
.hero__val { font-weight: 500; }

.hero__thumbs { position: absolute; z-index: 5; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: flex; gap: .75rem; }
.thumb { width: 64px; height: 64px; padding: 3px; border: 1.5px solid transparent; border-radius: 6px; background: none; cursor: pointer; transition: border-color .3s, transform .2s; }
.thumb:hover { transform: translateY(-2px); }
.thumb[aria-selected="true"] { border-color: var(--hfg); }
.thumb__inner { display: block; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; position: relative; }
.thumb__inner img { width: 100%; height: 100%; object-fit: cover; }
.thumb__inner svg { width: 100%; height: 100%; padding: 3px; }
.thumb--black { background: #1D241A; }
.thumb--white { background: #D6DDCB; }
.thumb--climb { background: #3F5A33; }

@media (max-width: 900px) {
  .hero { min-height: 760px; }
  .hero { min-height: 820px; }
  .hero__title { top: calc(var(--bar) + 3.75rem); font-size: clamp(4rem, 21vw, 8rem); }
  .hero__meta { top: calc(var(--bar) + 4.5rem + clamp(4rem, 21vw, 8rem) * 1.85); }
  .hero__product { right: 50%; top: auto; bottom: 6.5rem; width: min(72vw, 380px); transform: translateX(50%); }
  .hero__info { display: none; }
}

/* ---------- SIZE STRIP (first design) ---------- */
.sizes { background: #0C0D0B; color: var(--bone); }
.sizes__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.size-tile { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; align-items: center; padding: 2rem var(--pad); }
.size-tile + .size-tile { border-left: 1px solid #2C3027; }
.size-tile__num { font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--sage); }
.size-tile h3 { font-size: 1.0625rem; font-weight: 600; }
.size-tile p:not(.size-tile__num) { color: #A9AD9F; font-size: .9375rem; }
.size-tile .btn { grid-column: 1 / -1; margin-top: 1rem; }
@media (max-width: 820px) {
  .sizes__grid { grid-template-columns: 1fr; }
  .size-tile + .size-tile { border-left: 0; border-top: 1px solid #2C3027; }
}

/* ---------- MARQUEE (first design) ---------- */
.marquee { overflow: hidden; background: var(--sage); color: #0C0D0B; padding: .9rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.75rem); text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 22px; height: 25px; flex: none; background: #0C0D0B; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SHOP ---------- */
.shop { padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(4rem, 7vw, 6rem); }
.shop__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.shop__eyebrow { color: #4E6A3E; font-weight: 600; letter-spacing: .14em; margin-bottom: .5rem; }
.shop__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; font-size: clamp(3.5rem, 8vw, 7.5rem); }
.shop__lede { font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.25; max-width: 28rem; }
.shop__facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(28, 28, 24, .15); }
.shop__facts li { padding: 1rem 1rem 0 0; display: flex; align-items: baseline; gap: .6rem; }
.shop__facts li + li { padding-left: 1rem; border-left: 1px solid rgba(28, 28, 24, .15); }
.shop__facts strong { font-family: var(--display); font-weight: 400; font-size: 2.5rem; line-height: 1; color: var(--sage); }
.shop__facts span { font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
@media (max-width: 760px) {
  .shop__intro { grid-template-columns: 1fr; }
  .shop__facts li { flex-direction: column; gap: .25rem; }
}

.grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 6px) / 3); gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 6px;
}
.grid::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .grid { grid-auto-columns: 70%; } }
@media (max-width: 560px) { .grid { grid-auto-columns: 86%; } }
.pcard { scroll-snap-align: start; }
.pcard__img { display: block; aspect-ratio: 4 / 5; background: var(--cream-2); }
.pcard__name a, .cart-item__name a { text-decoration: none; color: inherit; }
.cart-item__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pcard__img img { transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__img .ph { width: 70%; margin: 15% auto 0; }
.pcard__body { padding: 1.25rem .25rem 0; display: grid; gap: .35rem; }
.pcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pcard__name { font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.pcard__price { flex: none; font-family: var(--display); font-size: clamp(1.3rem, 1.55vw, 1.55rem); line-height: 1; color: var(--ink); }
.pcard__detail { font-size: .9375rem; color: var(--ink-soft); }
.pcard__buy {
  margin-top: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; min-height: 52px; padding: .8rem 1.4rem; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.pcard__buy:hover { background: var(--ink); color: var(--bone); }
.pcard__buy:active { transform: scale(.98); }
.pcard .pcard__buy.is-added { background: var(--sage); border-color: var(--sage); color: #0C0D0B !important; }

.pager { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2rem; }
.pager__count { font-family: var(--display); font-size: 2rem; line-height: 1; display: flex; align-items: baseline; gap: .35rem; min-width: 5.5rem; }
.pager__count [data-pager-now] { color: var(--ink); }
.pager__sep, .pager__count [data-pager-total] { color: rgba(28, 28, 24, .35); font-size: 1.25rem; }
.pager__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(28, 28, 24, .12); position: relative; overflow: hidden; }
.pager__bar span { position: absolute; inset: 0 auto 0 0; width: 33%; border-radius: 3px; background: var(--sage); transition: left .45s var(--ease), width .45s var(--ease); }
.pager__btns { display: flex; gap: .6rem; }
.pager__btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.pager__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.pager__btn:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.pager__btn[data-dir="1"]:hover:not(:disabled) svg { transform: translateX(3px); }
.pager__btn[data-dir="-1"]:hover:not(:disabled) svg { transform: translateX(-3px); }
.pager__btn:active:not(:disabled) { transform: scale(.94); }
.pager__btn:disabled { opacity: .25; cursor: default; }
@media (max-width: 560px) { .pager__count { font-size: 1.6rem; min-width: 4.5rem; } .pager__btn { width: 48px; height: 48px; } }

/* ---------- HOW IT WORKS ---------- */
.how {
  background: var(--hex), var(--forest); background-size: 56px 97px, auto;
  color: var(--bone); padding: clamp(4rem, 7vw, 6rem) 0 0; position: relative;
}
.how__title { font-size: clamp(3.5rem, 8vw, 7.5rem); padding-inline: var(--pad); position: relative; z-index: 2; }
.steps { list-style: none; margin: 2.5rem 0 3rem; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps li { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px dashed rgba(243, 240, 231, .25); border-radius: 14px; font-weight: 500; background: rgba(12, 13, 11, .5); }
.steps span {
  flex: none; display: grid; place-items: center; width: 44px; height: 50px;
  background: var(--sage); color: #0C0D0B; font-family: var(--display); font-size: 1.4rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.how__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.how__list li { display: flex; gap: 1.25rem; align-items: baseline; }
.how__num { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--sage); min-width: 2.5rem; }
.how__img { aspect-ratio: 4 / 4.2; }
.how__img img { object-position: 62% 60%; }
.how__img video { object-position: 50% 50%; }
/* Play button, shown only when the browser blocks autoplay or the visitor paused it */
.vplay {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  display: none; place-items: center; padding: 0 0 0 4px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(243, 240, 231, .92); color: #1C1C18; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.vplay:focus-visible { outline: 3px solid #A8C18F; outline-offset: 3px; }
.needs-tap .vplay { display: grid; }
.no-img .vplay { display: none; }
.how__list { list-style: none; margin: 0; padding: 4rem var(--pad) 4rem 0; }
.how__list li { padding: 1.6rem 0; border-top: 1px solid rgba(243, 240, 231, .18); }
.how__list li:first-child { border-top: 0; }
.how__list h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; margin-bottom: .5rem; }
.how__list p { font-size: .875rem; opacity: .8; max-width: 26rem; }
@media (max-width: 860px) {
  .how__grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .how__list { padding: 1rem var(--pad) 4rem; }
}

/* ---------- STATEMENT + REVIEWS ---------- */
.proof { padding-top: clamp(2rem, 3.5vw, 3rem); }
.proof__big { font-size: clamp(4.5rem, 13.5vw, 15rem); padding-inline: var(--pad); margin-bottom: clamp(1.25rem, 2.5vw, 2rem); position: relative; z-index: 2; }
.proof__photo { min-height: max(90vh, 620px); color: #fff; }
.proof__photo > img { position: absolute; inset: 0; }
.proof__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1) 35%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .7)); pointer-events: none; }
.proof__overlay { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .45); }
.proof__overlay { position: absolute; inset: 0; z-index: 2; padding: 2rem var(--pad); display: grid; grid-template-rows: auto 1fr auto; }
.proof__confirm { font-size: clamp(2rem, 4vw, 3.5rem); }
.proof__names {
  display: flex; gap: clamp(1rem, 6vw, 6rem); align-self: center; flex-wrap: wrap; justify-self: start;
  padding: .35rem 1.5rem; border-radius: 999px;
  background: rgba(12, 13, 11, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.proof__names button {
  background: none; border: 0; cursor: pointer; color: #fff; opacity: .6; padding: .5rem 0; min-height: 44px;
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.5rem); transition: opacity .3s;
  text-shadow: inherit;
}
.proof__names button small { font-family: var(--sans); font-size: .7rem; margin-right: .5rem; }
.proof__names button { opacity: .8; }
.proof__names button[aria-selected="true"], .proof__names button:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.proof__quote { max-width: 36rem; transition: opacity .35s; }
.proof__quote.is-fading { opacity: 0; }
.proof__quote blockquote { font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.12; margin-bottom: .9rem; }
.proof__quote figcaption { font-size: .8125rem; opacity: .85; }

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.faq__head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.faq__title { font-size: clamp(3.5rem, 8vw, 7.5rem); }
.faq__intro p { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; margin-bottom: 1.25rem; max-width: 30rem; }
@media (max-width: 760px) { .faq__head { grid-template-columns: 1fr; } }
.faq__list details { border-top: 1px solid rgba(28, 28, 24, .14); }
.faq__list details:last-child { border-bottom: 1px solid rgba(28, 28, 24, .14); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 4.5rem 1.25rem 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.1; color: rgba(28, 28, 24, .55);
  transition: color .25s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover, .faq__list details[open] summary { color: var(--ink); }
.plus { position: absolute; right: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 1px solid rgba(28, 28, 24, .2); border-radius: 3px; background: var(--cream-2); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__list details p { max-width: 44rem; padding: 0 4.5rem 1.6rem 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- SIGNUP ---------- */
.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--hex), #151712; background-size: 56px 97px, auto; color: var(--bone);
}
.signup__title { font-size: clamp(4rem, 10vw, 10rem); }
.signup__lede { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; margin-bottom: 1.5rem; }
.signup__form { display: flex; flex-wrap: wrap; gap: .75rem; }
.signup__form input {
  flex: 1 1 220px; min-height: 52px; padding: 0 1.25rem; border-radius: 999px;
  border: 2px solid #2C3027; background: #0C0D0B; color: var(--bone); font: inherit;
}
.signup__form input::placeholder { color: #7D8174; }
.signup__form input:focus { outline: none; border-color: var(--sage); }
.signup__form .btn { min-height: 52px; }
.signup__msg { flex-basis: 100%; font-size: .875rem; color: var(--sage-light); }
.signup__msg.is-error { color: #F0A58F; }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--forest); color: var(--bone); padding: 4rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand img { width: 96px; height: auto; margin: -10px 0 .5rem -12px; }
.footer__brand .serif { font-size: 2rem; line-height: 1; }
.footer .muted { color: #A9AD9F; font-size: .875rem; margin-top: .4rem; }
.footer h3 { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 1rem; }
.footer nav a { display: block; padding: .35rem 0; text-decoration: none; color: #D5D7CD; font-size: .9375rem; }
.footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(243, 240, 231, .15); font-size: .8125rem; color: #A9AD9F; }
.footer__base a { text-decoration: none; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Cart / checkout page ---------- */
.header--page { position: sticky; }
.header--page .nav { color: var(--ink); background: rgba(231, 227, 218, .92); border-color: rgba(28, 28, 24, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header--page .nav__logo img { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.cartpage { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding-top: 2rem; padding-bottom: 5rem; }
.cartpage__back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .875rem; font-weight: 500; text-decoration: none; }
.cartpage__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.cartpage__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; font-size: clamp(3.5rem, 9vw, 7rem); margin: .5rem 0 2.5rem; }
.cartpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; align-items: start; }
.cartpage__grid[hidden], .cart-empty[hidden] { display: none; }
@media (max-width: 900px) { .cartpage__grid { grid-template-columns: 1fr; } }

.ship-meter { background: var(--cream-2); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: .9375rem; }
.ship-meter__bar { display: block; position: relative; height: 6px; margin-top: .7rem; border-radius: 6px; background: rgba(28, 28, 24, .1); overflow: hidden; }
.ship-meter__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sage); border-radius: 6px; transition: width .5s var(--ease); }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(28, 28, 24, .12); }
.cart-item__img { width: 112px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--ph-bg, #2C3A24); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img.no-img { background: url("media/terrahex-logo.png") center / 60% no-repeat, var(--hex), linear-gradient(160deg, #6F8A5C, #2C3A24); background-size: 60%, 56px 97px, cover; }
.cart-item__img.no-img img { display: none; }
.cart-item__name { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.cart-item__detail { font-size: .875rem; margin-top: .2rem; }
.cart-item__opt { display: inline-flex; align-items: center; gap: .6rem; margin-top: .9rem; font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.cart-item__opt select {
  font: 500 .9375rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink);
  min-height: 44px; padding: 0 2.25rem 0 .9rem; border: 1.5px solid rgba(28, 28, 24, .3); border-radius: 999px; cursor: pointer;
  background: var(--bone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231C1C18' stroke-width='2'/%3E%3C/svg%3E") right .8rem center / 14px no-repeat;
  appearance: none; -webkit-appearance: none;
}
.cart-item__opt select:hover { border-color: var(--ink); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.cart-item__price { font-size: 1.0625rem; font-weight: 600; }
.cart-item__remove { background: none; border: 0; padding: .4rem 0; min-height: 32px; cursor: pointer; font-size: .8125rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cart-item__remove:hover { color: #9B3B2E; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid rgba(28, 28, 24, .3); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; }
.qty button:hover:not(:disabled) { background: rgba(28, 28, 24, .07); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty input { width: 2.5rem; height: 44px; border: 0; background: none; text-align: center; font: 600 1rem var(--sans); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; }
  .cart-item__img { width: 84px; }
  .cart-item__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .cart-item__price { margin-left: auto; }
}

.summary { position: sticky; top: 5.5rem; background: var(--forest); color: var(--bone); border-radius: 14px; padding: 1.75rem; }
.summary__title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin-bottom: 1.25rem; }
.summary__rows { margin: 0; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(243, 240, 231, .14); }
.summary__rows dt .muted { color: #A9AD9F; }
.summary__rows dd { margin: 0; font-weight: 600; }
.summary__total { font-size: 1.125rem; border-bottom: 0 !important; padding-top: 1rem !important; }
.summary__note { font-size: .8125rem; color: #A9AD9F; margin: .25rem 0 1.25rem; }
.summary__pay { width: 100%; gap: .6rem; min-height: 56px; font-size: 1rem; }
.summary__pay:disabled { opacity: .7; cursor: progress; }
.summary__msg { color: #F2B8A8; font-size: .875rem; margin-top: .75rem; }
.summary__msg:empty { display: none; }
.summary__trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .8125rem; color: #C9CCBF; }
.summary__trust li { padding-left: 1.4rem; position: relative; }
.summary__trust li::before { content: ""; position: absolute; left: 0; top: .35em; width: 10px; height: 11px; background: var(--sage-light); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@media (max-width: 900px) { .summary { position: static; } }

.cart-empty { text-align: center; padding: 3rem 0 2rem; display: grid; justify-items: center; gap: 1.5rem; }
.cart-empty .serif { font-size: clamp(1.4rem, 3vw, 2rem); max-width: 28ch; }
.thanks { display: grid; justify-items: center; text-align: center; align-content: center; gap: 1.5rem; padding-top: 4rem; }
.thanks .cartpage__title { margin: 0; }
.thanks__lede { font-size: clamp(1.2rem, 2.4vw, 1.6rem); max-width: 34ch; }
.thanks__hex { width: 96px; height: 104px; display: grid; place-items: center; background: var(--sage); color: #0C0D0B; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
/* ---------- Contact page ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: .5rem; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact .cartpage__title { margin-bottom: 1.5rem; }
.contact__lede { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.3; max-width: 30rem; }
.contact__tips { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; max-width: 30rem; }
.contact__tips li { display: grid; gap: .2rem; padding: 1rem 0 1rem 1.6rem; border-top: 1px solid rgba(28, 28, 24, .15); position: relative; font-size: .9375rem; }
.contact__tips li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 11px; height: 12px; background: var(--sage); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.contact__tips strong { font-weight: 600; }
.contact__tips span { color: var(--ink-soft); }
.contact__tips a { color: var(--ink); text-underline-offset: 3px; }

.contact__card { background: var(--bone); border: 1px solid rgba(28, 28, 24, .1); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 24px 60px -30px rgba(18, 22, 15, .35); }
.cform { display: grid; gap: 1.15rem; }
.cform[hidden], .cform__done[hidden] { display: none; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }
.cform__field { display: grid; gap: .4rem; min-width: 0; }
.cform label, .cform__label { font-size: .875rem; font-weight: 600; }
.cform__opt { font-weight: 400; color: var(--ink-soft); }
.cform input[type="text"], .cform input[type="email"], .cform select, .cform textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid rgba(28, 28, 24, .22); border-radius: 10px; padding: .8rem .95rem; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.cform textarea { resize: vertical; min-height: 140px; }
.cform select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231C1C18' stroke-width='2'/%3E%3C/svg%3E") right .9rem center / 14px no-repeat; }
.cform input::placeholder, .cform textarea::placeholder { color: #9A978E; }
.cform input:hover, .cform select:hover, .cform textarea:hover { border-color: rgba(28, 28, 24, .45); }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122, 148, 102, .28); }
.cform [aria-invalid="true"] { border-color: #B4483A !important; }
.cform__err { color: #A23E31; font-size: .8125rem; font-weight: 500; }
.cform__err:empty { display: none; }
.cform__hint { font-size: .8125rem; color: var(--ink-soft); }

.cform__drop {
  position: relative; display: flex; align-items: center; gap: .9rem; min-height: 84px; padding: 1rem 1.1rem;
  border: 1.5px dashed rgba(28, 28, 24, .3); border-radius: 12px; background: #fff; cursor: pointer;
  font-weight: 400 !important; transition: border-color .2s, background-color .2s;
}
.cform__drop:hover, .cform__drop.is-over { border-color: var(--sage); background: #F6F8F2; }
.cform__drop:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122, 148, 102, .28); }
.cform__drop.has-file { border-style: solid; border-color: var(--sage); }
.cform__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cform__drop-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(122, 148, 102, .16); color: #4E6A3E; }
.cform__drop-text { font-size: .9375rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.cform__drop-text strong { color: var(--ink); font-weight: 600; }
.cform__preview { margin-left: auto; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.cform__preview[hidden] { display: none; }
.cform__clear { justify-self: start; background: none; border: 0; padding: .3rem 0; min-height: 32px; cursor: pointer; font-size: .8125rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cform__clear[hidden] { display: none; }
.cform__clear:hover { color: #A23E31; }
.cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__send { width: 100%; min-height: 56px; gap: .6rem; font-size: 1rem; margin-top: .25rem; }
.cform__send:disabled { opacity: .7; cursor: progress; }
.cform__send svg { transition: transform .2s var(--ease); }
.cform__send:hover svg { transform: translateX(3px); }
.cform__status { color: #A23E31; font-size: .875rem; font-weight: 500; text-align: center; }
.cform__status:empty { display: none; }
.cform__done { display: grid; justify-items: center; text-align: center; gap: 1.1rem; padding: 2rem 0 1rem; outline: none; }
.cform__done-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: .9; }
.cform__done .serif { font-size: 1.2rem; max-width: 26rem; }

/* ---------- Review page ---------- */
.stars { border: 0; margin: 0; padding: 0; min-width: 0; }
.stars legend { padding: 0; margin-bottom: .5rem; }
.stars__row { display: flex; align-items: center; gap: .15rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.stars label::before {
  content: ""; width: 38px; height: 38px; background: rgba(28, 28, 24, .14); transition: background-color .15s, transform .15s;
  clip-path: polygon(50% 3%, 61.8% 36.5%, 97% 37.5%, 69% 59%, 79.4% 93%, 50% 72.5%, 20.6% 93%, 31% 59%, 3% 37.5%, 38.2% 36.5%);
}
.stars label:hover::before { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--sage); outline-offset: 1px; }
.stars__row:has(#r-star1:checked) label:nth-of-type(-n+1)::before,
.stars__row:has(#r-star2:checked) label:nth-of-type(-n+2)::before,
.stars__row:has(#r-star3:checked) label:nth-of-type(-n+3)::before,
.stars__row:has(#r-star4:checked) label:nth-of-type(-n+4)::before,
.stars__row:has(#r-star5:checked) label:nth-of-type(-n+5)::before { background: var(--sage); }
.stars__row:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1)::before,
.stars__row:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2)::before,
.stars__row:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3)::before,
.stars__row:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4)::before,
.stars__row:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5)::before { background: var(--sage-light); }
.stars__word { margin-left: .75rem; font-family: var(--serif); font-size: 1.25rem; color: #4E6A3E; }
.stars[aria-invalid="true"] label::before { background: rgba(180, 72, 58, .25); }

.cform__check { display: flex; gap: .75rem; align-items: flex-start; }
.cform__check input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--sage); cursor: pointer; }
.cform__check label { font-weight: 400 !important; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.cform__check input[aria-invalid="true"] { outline: 2px solid #B4483A; outline-offset: 2px; }

.review__google {
  display: grid; gap: .25rem; margin-top: 1.75rem; max-width: 30rem; padding: 1.1rem 1.25rem; border-radius: 12px;
  background: var(--forest); color: var(--bone); text-decoration: none; transition: transform .2s var(--ease);
}
.review__google:hover { transform: translateY(-2px); }
.review__google span { color: #C9CCBF; font-size: .9375rem; }
.review__google[href=""] { display: none; }

/* "Write a review" strip under the reviews photo */
.proof__cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.5rem var(--pad); background: var(--forest); color: var(--bone); }
.proof__cta p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); }

.footer--slim { padding-top: 0; }
.footer--slim .footer__base { margin-top: 0; border-top: 0; padding-block: 1.5rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer__base a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Product pages ---------- */
.product { padding-top: 1.25rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .8125rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-underline-offset: 3px; }
.pmain { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .pmain { grid-template-columns: 1fr; } }

.pgal { position: sticky; top: 90px; display: grid; gap: .75rem; }
@media (max-width: 900px) { .pgal { position: static; } }
.pgal__main { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--bone); }
.pgal__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pgal__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.pgal__thumbs button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bone); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.pgal__thumbs button:hover { opacity: 1; }
.pgal__thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.pgal__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Missing photo: hex placeholder with the logo */
.pgal .no-img { background: url("media/terrahex-logo.png") center 44% / 34% no-repeat, var(--hex), linear-gradient(160deg, #6F8A5C, #2C3A24); background-size: 34%, 56px 97px, cover; }
.pgal__thumbs .no-img { background-size: 55%, 28px 48px, cover; background-position: center; }
.pgal .no-img img { visibility: hidden; }
.pgal__soon { display: none; position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; color: var(--bone); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.pgal__main.no-img .pgal__soon { display: block; }

.pinfo__eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin: .25rem 0 .6rem; }
.pinfo__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: .92; margin: 0 0 1rem; }
.pinfo__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1.1rem; }
.pinfo__price strong { font-family: var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.pinfo__price span { font-size: .875rem; color: var(--ink-soft); }
.pinfo__save { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--sage); color: #0C0D0B !important; font-weight: 600; font-size: .8125rem !important; }
.pinfo__lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.4; margin: 0 0 1.25rem; }
.pinfo__fit { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.75rem; padding: .55rem .9rem; border-radius: 10px; background: var(--bone); font-size: .9375rem; font-weight: 500; }
.pinfo__fit::before { content: ""; width: 12px; height: 13px; background: var(--sage); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pinfo__fit a { font-weight: 400; color: var(--ink-soft); text-underline-offset: 3px; }

.popt { border: 0; margin: 0 0 1.5rem; padding: 0; }
.popt legend { padding: 0; margin-bottom: .7rem; font-size: .875rem; font-weight: 600; }
.popt legend span { font-weight: 400; color: var(--ink-soft); }
.popt__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.popt__item { position: relative; }
.popt__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.popt__item label { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .45rem 1.1rem .45rem .5rem; border: 1.5px solid rgba(28, 28, 24, .25); border-radius: 999px; font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s; }
.popt__item--text label { padding-left: 1.1rem; }
.popt__item label:hover { border-color: var(--ink); }
.popt__item input:checked + label { border-color: var(--ink); background: var(--bone); box-shadow: inset 0 0 0 1px var(--ink); }
.popt__item input:focus-visible + label { outline: 2px solid var(--sage); outline-offset: 2px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(28, 28, 24, .25); flex: none; }
.swatch--black { background: #1B1D18; }
.swatch--white { background: #F6F4EE; }

.pbuy { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.pbuy .qty { flex: none; height: 56px; }
.pbuy .qty button, .pbuy .qty input { height: 52px; }
.pbuy__add { flex: 1 1 220px; min-height: 56px; gap: .6rem; font-size: 1rem; }
.pbuy__add.is-added { background: var(--forest); color: var(--bone); }
.pbuy__status { min-height: 1.5rem; margin: 0 0 1.25rem; font-size: .9375rem; }
.pbuy__status a { font-weight: 600; text-underline-offset: 3px; }

.ptrust { list-style: none; margin: 0 0 2rem; padding: 1rem 0 0; border-top: 1px solid rgba(28, 28, 24, .15); display: grid; gap: .55rem; font-size: .9375rem; }
.ptrust li { display: flex; gap: .65rem; align-items: center; }
.ptrust svg { flex: none; color: var(--sage); }
.ptrust a { text-underline-offset: 3px; }

.pacc { border-top: 1px solid rgba(28, 28, 24, .15); }
.pacc details { border-bottom: 1px solid rgba(28, 28, 24, .15); }
.pacc summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 58px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1rem; }
.pacc summary::-webkit-details-marker { display: none; }
.pacc summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform .25s var(--ease); }
.pacc details[open] summary::after { transform: rotate(45deg); }
.pacc__body { padding: 0 0 1.25rem; font-size: .9875rem; line-height: 1.6; color: var(--ink-soft); }
.pacc__body p, .pacc__body ul { margin: 0 0 .75rem; }
.pacc__body ul { padding-left: 1.15rem; }
.pacc__body li::marker { color: var(--sage); }
.pacc__body a { color: var(--ink); text-underline-offset: 3px; }
.sizetable { width: 100%; border-collapse: collapse; margin: .25rem 0 .9rem; font-size: .9375rem; }
.sizetable th, .sizetable td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid rgba(28, 28, 24, .12); }
.sizetable th { color: var(--ink); font-weight: 600; }
.sizetable tr.is-this td { color: var(--ink); font-weight: 600; }

.pjobs { margin-top: clamp(4rem, 8vw, 6.5rem); padding: clamp(2.5rem, 5vw, 4rem); border-radius: 18px; background: var(--forest); color: var(--bone); }
.pjobs h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: .92; margin: 0 0 2rem; }
.pjobs h2 .sage { color: var(--sage-light); }
.pjobs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pjobs li { padding-top: 1rem; border-top: 1px solid rgba(243, 240, 231, .2); font-size: .9375rem; line-height: 1.5; color: #C9CCBF; }
.pjobs strong { display: block; margin-bottom: .35rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--bone); }
.pjobs__num { display: block; margin-bottom: .6rem; font-size: .75rem; letter-spacing: .1em; color: var(--sage-light); }
@media (max-width: 900px) { .pjobs ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pjobs ul { grid-template-columns: 1fr; } }

.prelated { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.prelated h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: .95; margin: 0 0 1.5rem; }
.prelated__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.prelated__list a { display: block; text-decoration: none; }
.prelated__img { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; margin-bottom: .75rem; background: var(--bone); }
.prelated__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prelated__list a:hover img { transform: scale(1.04); }
.prelated__img.no-img { background: url("media/terrahex-logo.png") center / 45% no-repeat, var(--hex), linear-gradient(160deg, #6F8A5C, #2C3A24); background-size: 45%, 56px 97px, cover; }
.prelated__img.no-img img { visibility: hidden; }
.prelated__name { display: block; font-weight: 600; font-size: 1rem; }
.prelated__price { display: block; color: var(--ink-soft); font-size: .9375rem; margin-top: .15rem; }
@media (max-width: 900px) { .prelated__list { grid-template-columns: 1fr 1fr; } }

/* ---------- About page ---------- */
.about__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: 2.5rem; }
.about__intro .cartpage__title { margin: .5rem 0 0; }
.about__lede { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.3; margin: 0 0 .4rem; max-width: 32rem; }
.about__photo { margin: 0 0 clamp(3rem, 6vw, 5rem); border-radius: 14px; overflow: hidden; }
.about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1100; object-fit: cover; object-position: 50% 55%; }
.about__chapter { display: grid; grid-template-columns: 7rem minmax(0, 44rem); gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid rgba(28, 28, 24, .15); }
.about__num { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--sage); }
.about__chapter h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95; margin: 0 0 1.1rem; }
.about__chapter p { font-size: 1.0625rem; line-height: 1.65; margin: 0 0 1rem; }
.about__link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 500; text-underline-offset: 4px; }
.about__values ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.about__values li { display: grid; align-content: start; gap: .4rem; padding: 1.4rem 1.25rem; background: var(--bone); border-radius: 12px; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
.about__values li::before { content: ""; width: 14px; height: 16px; margin-bottom: .35rem; background: var(--sage); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.about__values strong { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.about__cta { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem); background: var(--forest); color: var(--bone); border-radius: 16px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.about__cta h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: .92; margin: 0; }
.about__cta .sage { color: var(--sage-light); }
.about__cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.about__cta .btn--line { width: auto; }
@media (max-width: 900px) {
  .about__intro { grid-template-columns: 1fr; }
  .about__values ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .about__chapter { grid-template-columns: 1fr; gap: .5rem; }
  .about__num { font-size: 2.25rem; }
  .about__values ul { grid-template-columns: 1fr; }
  .about__photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Policy pages ---------- */
.policy { max-width: 860px; }
.policy__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.policy__tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1.5px solid rgba(28, 28, 24, .25); border-radius: 999px; font-size: .875rem; font-weight: 500; text-decoration: none; }
.policy__tabs a:hover { border-color: var(--ink); }
.policy__tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.policy .cartpage__title { margin-bottom: 1rem; }
.policy__updated { font-size: .875rem; color: var(--ink-soft); margin: 0 0 2rem; }
.policy__facts { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.policy__facts li { display: grid; gap: .15rem; padding: 1rem 1.1rem 1rem 2.4rem; background: var(--bone); border-radius: 10px; position: relative; font-size: .875rem; color: var(--ink-soft); }
.policy__facts li::before { content: ""; position: absolute; left: 1rem; top: 1.25rem; width: 11px; height: 12px; background: var(--sage); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.policy__facts strong { color: var(--ink); font-size: 1rem; font-weight: 600; }
@media (max-width: 700px) { .policy__facts { grid-template-columns: 1fr; } }
.policy__body { font-size: 1.0625rem; line-height: 1.65; max-width: 44rem; }
.policy__body h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1; margin: 2.75rem 0 .9rem; padding-top: 1.25rem; border-top: 1px solid rgba(28, 28, 24, .15); scroll-margin-top: 90px; }
.policy__body h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 .35rem; }
.policy__body p, .policy__body ul, .policy__body ol { margin: 0 0 1rem; }
.policy__body ul, .policy__body ol { padding-left: 1.25rem; }
.policy__body li { margin-bottom: .5rem; }
.policy__body li::marker { color: var(--sage); }
.policy__body a { text-underline-offset: 3px; }
.policy__legal { margin-top: 2rem !important; padding-top: 1.25rem; border-top: 1px solid rgba(28, 28, 24, .15); font-size: .875rem; color: var(--ink-soft); }
.policy__callout { background: var(--bone); border-left: 4px solid var(--sage); border-radius: 0 10px 10px 0; padding: 1.1rem 1.25rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--sage); color: var(--ink);
  box-shadow: 0 10px 24px rgba(18, 22, 15, .28);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--bone); }
.to-top svg { transition: transform .2s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top svg { transition: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; transform: translate(-50%, 150%); opacity: 0;
  background: var(--ink); color: var(--bone); padding: .9rem 1.4rem; border-radius: 4px; font-size: .9375rem;
  max-width: calc(100% - 2rem); text-align: center; transition: transform .3s var(--ease), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--sage-light); font-weight: 600; margin-left: .35rem; white-space: nowrap; }

/* Add-to-cart confirmation on the button */
.buy { position: relative; }
.buy.is-added { color: var(--sage) !important; }
.btn.buy.is-added { background: var(--sage); color: #0C0D0B !important; }
.buy.is-added::after { content: " \2713"; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.nowrap { white-space: nowrap; }
