/* LaminarFlow v2 — layout and components. Colors come from tokens.css. */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Verdana", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Unbounded", "Verdana", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.container {
  width: min(1344px, 94vw);
  margin: 0 auto;
}

/* ---------- moving gradients ----------
   Repeating gradients with a fixed color-cycle length (--grad-period)
   along the tokenized --grad-angle axis. Sliding background-position by
   one period's horizontal projection (period / sin(angle)) loops
   seamlessly at any angle that keeps a horizontal component. */

.grad-anim {
  background-image: repeating-linear-gradient(var(--grad-angle), var(--grad-cycle));
  /* one horizontal period per tile — angled tiles only join seamlessly
     when the tile width is an exact multiple of period / sin(angle) */
  background-size: calc(var(--grad-period) / sin(var(--grad-angle))) 100%;
  animation: grad-slide 8s linear infinite;
  /* house type style on animated gradients: white with a hairline dark
     outline, so text survives the bright bands passing underneath */
  color: var(--grad-fg);
  text-shadow:
    0.5px 0 1px var(--text-outline),
    -0.5px 0 1px var(--text-outline),
    0 0.5px 1px var(--text-outline),
    0 -0.5px 1px var(--text-outline),
    0.5px 0.5px 1px var(--text-outline),
    -0.5px 0.5px 1px var(--text-outline),
    0.5px -0.5px 1px var(--text-outline),
    -0.5px -0.5px 1px var(--text-outline);
}

.panel-grad {
  --grad-period: var(--panel-period);
  background-image: repeating-linear-gradient(var(--grad-angle), var(--panel-cycle));
  animation-duration: 10s;
}

.text-grad {
  background-image: repeating-linear-gradient(var(--grad-angle), var(--grad-cycle));
  background-size: calc(var(--grad-period) / sin(var(--grad-angle))) 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-slide 8s linear infinite;
}

@keyframes grad-slide {
  to {
    background-position: calc(var(--grad-period) / sin(var(--grad-angle))) 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grad-anim,
  .text-grad {
    animation: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 17px 34px;
  font-size: 16px;
  font-weight: 700;
  min-height: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn-grad {
  box-shadow: 0 12px 44px var(--glow);
}

.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  font-weight: 500;
  background: rgb(from var(--bg) r g b / 0.35);
}

.btn-light {
  background: #ffffff;
  color: #17102a;
  text-shadow: none;
}

.btn-sm {
  padding: 12px 24px;
  font-size: 15px;
}

/* ---------- ambient blobs ---------- */

.bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}

.blob-a {
  top: -220px;
  left: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, var(--blob-a), var(--blob-a2), transparent 70%);
}

.blob-b {
  top: 320px;
  right: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--blob-b), transparent 70%);
}

/* ---------- nav ---------- */

.hero-wrap {
  position: relative;
}

.hero-wrap > .container {
  position: relative;
  z-index: 1;
  padding-top: 22px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 26px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
}

.site-nav .wordmark {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.75));
}

.site-nav .wordmark-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 44px var(--glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-links > a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 8vw, 120px) calc(var(--wave-band) + clamp(36px, 5vw, 64px));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--hairline);
  background: rgb(from var(--bg) r g b / 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.chip svg {
  stroke: var(--accent-1);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  margin: 30px auto 22px;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-copy {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* full-bleed hero video */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

/* ease the wave mask's flat fill into the blob-tinted ground below,
   so the media block's bottom edge never reads as a hard line */
.hero-media::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, var(--bg), transparent);
  pointer-events: none;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: rgb(from var(--bg) r g b / 0.72);
  pointer-events: none;
}

.hero-media-caption {
  position: absolute;
  /* clear the wave mask band */
  bottom: calc(16px + var(--wave-band));
  left: clamp(20px, 3.5vw, 48px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- streamline divider ----------
   Sits over the video's bottom edge; its fill path paints the page
   background below the top curve so the waves mask the video out. */

.waves {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media .waves {
  position: absolute;
  bottom: -1px;
  left: 0;
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 24px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 32px;
}

.card svg {
  display: block;
}

.card-1 svg { stroke: var(--accent-1); }
.card-2 svg { stroke: var(--accent-2); }
.card-3 svg { stroke: var(--accent-3); }

.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 10px;
}

.card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* "In motion" bento — video feature, pitch tile, photo tiles */
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin: 10px 0 32px;
}

.bento {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-row {
  display: grid;
  gap: 20px;
}

/* top: portrait video left, two photos; bottom: stacked wide photo + pitch,
   portrait video right */
.bento-row-top {
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 800px;
}

.bento-row-bottom {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 800px;
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-stack-photo {
  flex: 1;
  min-height: 0;
}

.bento-tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.bento-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* bottom scrim keeps the label legible until playback starts */
.bento-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(from var(--bg) r g b / 0.65));
  pointer-events: none;
}

.bento-video.playing::after {
  display: none;
}

.bento-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.bento-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.bento-play .play-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease;
}

.bento-play:hover .play-badge {
  transform: scale(1.08);
}

.bento-play:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -4px;
  border-radius: 24px;
}

.bento-label {
  position: absolute;
  bottom: 18px;
  left: 24px;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.bento-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  padding: 28px;
}

.bento-text h3 {
  font-size: 20px;
  line-height: 1.2;
}

.bento-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq .section-title {
  margin-bottom: 32px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}

.faq details p {
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* ---------- closing CTA panel ---------- */

.cta-panel {
  border-radius: 32px;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px);
  text-align: center;
  margin-top: 24px;
}

.cta-panel h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--grad-fg);
}

.cta-panel p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--grad-fg);
  max-width: 52ch;
  margin: 16px auto 0;
}

/* notification signup form inside the CTA panel */
.notify-form {
  margin-top: 28px;
}

.notify-fields {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.notify-form input[type="email"] {
  width: min(360px, 100%);
  border-radius: 999px;
  padding: 15px 24px;
  font: inherit;
  font-size: 16px;
  color: #ffffff;
  background: rgb(from var(--bg) r g b / 0.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.notify-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.notify-form input[type="email"]:focus-visible,
.cta-panel .btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* honeypot — visually gone, still in the submitted form data */
.notify-extra {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notify-status {
  display: none;
  font-size: 16px;
  color: #ffffff;
  margin: 8px 0 0;
}

.notify-form[data-state="success"] .notify-fields {
  display: none;
}

.notify-form[data-state="success"] .notify-status-success {
  display: block;
}

.notify-form[data-state="error"] .notify-status-error {
  display: block;
}

.notify-form[data-state="submitting"] button {
  opacity: 0.7;
  pointer-events: none;
}

.notify-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 14px 0 0;
}

/* ---------- support contact form ---------- */

.contact-page {
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.contact-content {
  width: min(680px, 100%);
  margin: 0 auto;
}

.contact-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-wrap: balance;
}

.contact-intro {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 17px;
}

.privacy-page {
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.privacy-content {
  width: min(820px, 100%);
  margin: 0 auto;
}

.privacy-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-wrap: balance;
}

.privacy-updated {
  margin: 18px 0 36px;
  color: var(--text-muted);
}

.privacy-content section + section {
  margin-top: 30px;
}

.privacy-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.privacy-content p,
.privacy-content li {
  color: var(--text-muted);
}

.privacy-content p {
  margin: 0 0 12px;
}

.privacy-content ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.privacy-content li + li {
  margin-top: 6px;
}

.privacy-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact-form label {
  /* display: grid; */
  /* gap: 0; */
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-subtle);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.contact-form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 1em;
}

.contact-status {
  display: none;
  margin: 0;
  color: var(--text-muted);
}

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.contact-form[data-state="success"] .contact-fields {
  display: none;
}

.contact-form[data-state="success"] .contact-status-success,
.contact-form[data-state="error"] .contact-status-error,
.contact-form[data-state="submitting"] .contact-status-pending {
  display: block;
}

.contact-form[data-state="submitting"] button {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 30px 0 40px;
  font-size: 14px;
  color: var(--text-subtle);
}

/* visitor theme switcher — buttons are generated from the theme list */
.theme-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-switcher button {
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-subtle);
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.theme-switcher button:hover {
  color: var(--text);
}

.theme-switcher button[aria-pressed="true"] {
  border-color: var(--focus-ring);
  color: var(--text);
}

.theme-switcher button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- shop product page ---------- */

.product-page {
  padding-top: clamp(42px, 7vw, 90px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.product-gallery {
  min-width: 0;
}

.product-main-image,
.product-detail-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.product-main-image {
  aspect-ratio: 1 / 0.94;
  height: clamp(300px, 44vw, 600px);
  border-radius: 16px;
}

.product-detail-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.product-detail-image {
  aspect-ratio: 1 / 0.78;
  height: clamp(130px, 18vw, 220px);
  border-radius: 10px;
}

.product-info {
  max-width: 510px;
}

.product-kicker {
  margin: 0 0 18px;
  color: var(--accent-1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info h1 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  text-wrap: balance;
}

.product-description {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.product-price-current {
  font-family: "Unbounded", "Verdana", sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.product-price-original {
  color: var(--text-subtle);
  font-size: 18px;
}

.product-sale-note {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.product-action {
  width: 100%;
  margin-top: 24px;
}

.product-availability {
  margin: 12px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
  text-align: center;
}

.product-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.product-detail {
  padding: 24px 20px;
}

.product-detail + .product-detail {
  border-left: 1px solid var(--hairline);
}

.product-detail h2 {
  font-family: "Manrope", "Verdana", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.product-detail p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .product-main-image {
    height: auto;
    max-height: 560px;
  }

  .product-info {
    max-width: none;
  }

  .product-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-detail + .product-detail {
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }
}

@media (max-width: 1000px) {
  /* the caption band collides with the CTAs at narrow widths;
     it's decorative, so drop it */
  .hero-media-caption {
    display: none;
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .bento-row-top,
  .bento-row-bottom {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .bento-row-bottom .bento-video {
    order: -1;
  }

  .bento-tile {
    aspect-ratio: 4 / 3;
  }

  .bento-video {
    aspect-ratio: 9 / 16;
  }

  .bento-stack-photo {
    flex: none;
  }

  .bento-text {
    aspect-ratio: auto;
  }

  .site-nav {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav-links {
    gap: 14px 18px;
    justify-content: flex-end;
  }

}
