/* ============================================================
   KANSO — Meta Ray-Ban charging stand landing page
   Source: Figma "Untitled" node 1:2 (MacBook Pro 14" - 1)
   ============================================================ */

:root {
  --bg: #252020;
  --accent: #06f7ff;
  --text: #ffffff;
  --text-soft: #d9d9d9;
  --text-muted: #c0bbbb;
  --line: rgba(255, 255, 255, 0.2);
  --frame-border: rgba(217, 217, 217, 0.5);
  --card-border: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(0, 0, 0, 0.5);
  --ink-on-accent: #252020;

  --font-display: "Goldman", sans-serif;
  /* Figtree = closest open-license match to Meta's proprietary "Optimistic" */
  --font-heading: "Figtree", sans-serif;
  --font-sans: "Figtree", sans-serif;
  --font-mono: "Figtree", sans-serif;

  --container-pad: clamp(20px, 8.47vw, 128px);

  /* Corner radii matched to meta.com tokens (card 20px / dialog 16px) */
  --radius-frame: 20px;
  --radius-card: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1512px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.header-inner {
  max-width: 1512px;
  margin-inline: auto;
  padding: 24px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  flex-shrink: 0;
}

.logo-anim {
  display: block;
  width: 100%;
  height: 100%;
}

/* Animated mark: ring draws on (~0.8s), dot pops in, plays once and holds */
.mark-enso {
  stroke-dasharray: 140 1000;
  stroke-dashoffset: 140;
  animation: kanso-draw 0.8s ease-out forwards;
}

.mark-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: kanso-pop 0.5s 0.75s forwards;
}

@keyframes kanso-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes kanso-pop {
  0% { opacity: 0; transform: scale(0); animation-timing-function: cubic-bezier(0.42, 0, 0.3, 1); }
  45% { opacity: 1; transform: scale(1.8); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  70% { transform: scale(0.85); animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mark-enso {
    animation: none;
    stroke-dashoffset: 0;
  }

  .mark-dot {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text-rest {
  letter-spacing: -0.01em;
}

.logo-suffix {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-soft);
}

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

.btn-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-family: var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
}

.btn-purchase .arrow {
  width: 16px;
  height: 20px;
  transform: rotate(-90deg);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text);
  transition: color 0.15s ease;
}

.cart-link:hover {
  color: var(--accent);
}

.card-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
}

.hero img,
.hero video {
  display: block;
  width: 100%;
  height: clamp(380px, 62.2vw, 941px);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-block: clamp(28px, 5vw, 72px) clamp(24px, 4vw, 56px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.hero-overlay .hero-headline {
  font-size: clamp(40px, 6.5vw, 96px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-overlay .hero-descriptor {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
}

/* ---------- Shared type ---------- */

.section {
  padding-block: clamp(48px, 5vw, 64px);
}

.headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline .accent,
.accent {
  color: var(--accent);
}

.headline-mixed {
  font-size: clamp(26px, 2.8vw, 38px);
}

.headline-light {
  font-weight: 400;
  font-size: 1em;
}

.headline-light-md {
  font-weight: 400;
  font-size: 1em;
}

.mono-body {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
}

.mono-body.loose {
  line-height: 28px;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  width: calc(100% - 2 * var(--container-pad));
  max-width: 1256px;
  margin: 0 auto;
}

/* ---------- Section 2: Flip. Grab. Go. ---------- */

.section-flip {
  padding-top: clamp(48px, 4.2vw, 63px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 490px);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.hero-descriptor {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
  color: var(--text-soft);
}

.hero-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  margin-left: auto;
}

.tagline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: clamp(32px, 3vw, 48px);
}

.tagline-row .tagline {
  margin-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 4.6vw, 70px);
}

.placeholder-frame {
  border: 1px solid var(--frame-border);
  border-radius: var(--radius-frame);
  aspect-ratio: 406 / 292;
}

/* Scroll-scrubbed feature video: tall track, pinned viewport-height stage.
   Scroll progress through the track drives video.currentTime (see index.html). */
.scrub-track {
  position: relative;
  height: 300vh;
}

.scrub-track[hidden] {
  display: none;
}

/* Stage hugs the 16:9 video and pins vertically centered in the viewport */
.scrub-sticky {
  position: sticky;
  top: calc((100vh - 56.25vw) / 2);
}

.scrub-video {
  display: block;
  width: 100%;
  height: auto;
}

/* Reduced motion: no pinning, the video sits in flow as a static frame */
.scrub-track.no-scrub {
  height: auto;
}

.scrub-track.no-scrub .scrub-sticky {
  position: static;
  height: auto;
}

.scrub-track.no-scrub .scrub-video {
  height: auto;
}

.step-photo {
  display: block;
  width: 100%;
  aspect-ratio: 406 / 292;
  object-fit: cover;
  object-position: 50% 57%;
  border-radius: var(--radius-frame);
}

.step-label {
  margin-top: 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}

.step-num,
.num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  color: var(--accent);
}

.step-copy {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
}

.tagline {
  margin-top: clamp(32px, 3vw, 48px);
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
}

/* ---------- Section 3: Solid black walnut ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 545px);
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}

.col-left .mono-body {
  margin-top: clamp(24px, 2.6vw, 40px);
  max-width: 618px;
}

.numbered-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 8px;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
}

.numbered-list p {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
}

.walnut-frame {
  aspect-ratio: 1256 / 813;
  border-color: rgba(245, 245, 245, 0.5);
  margin-top: clamp(40px, 4.2vw, 64px);
}

.caption {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

/* ---------- Specifications ---------- */

.specs-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.specs-list {
  margin-top: clamp(20px, 2vw, 32px);
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 56px);
  row-gap: 18px;
  max-width: 900px;
}

.specs-list dt {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
  color: var(--text-muted);
}

.specs-list dd {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
}

/* ---------- Section 4: Give them a home ---------- */

.lead-copy {
  margin-top: clamp(24px, 2.6vw, 40px);
  max-width: 741px;
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 77px);
  align-items: flex-start;
  margin-top: clamp(32px, 3vw, 44px);
}

.value-cards {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 77px);
}

.value-card {
  width: 332px;
  max-width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 11px 20px 20px;
}

.value-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 32px;
}

.value-sub {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
  color: var(--text-soft);
}

.spec-list {
  flex: 1 1 380px;
  max-width: 554px;
}

.spec-title {
  font-weight: 700;
}

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

.faq-list {
  margin-top: clamp(20px, 2vw, 28px);
  max-width: 741px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 2px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-toggle:hover .faq-q {
  color: var(--accent);
}

.faq-q {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 25.6px;
  transition: color 0.15s ease;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-soft);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-a {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
  color: var(--text-muted);
  padding: 0 2px 6px;
}

.faq-panel-inner .faq-a:last-child {
  padding-bottom: 20px;
}

.faq-a a,
.faq-contact a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-contact {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 741px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
  color: var(--text-muted);
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 2px 20px;
  max-width: 440px;
}

.notify-email {
  flex: 1 1 220px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}

.notify-email::placeholder {
  color: var(--text-muted);
}

.notify-email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.notify-btn {
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
}

.notify-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.notify-status {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  padding: 0 2px 20px;
  min-height: 20px;
}

.signup-card {
  max-width: 860px;
  border: 1px solid rgba(6, 247, 255, 0.35);
  border-radius: var(--radius-frame);
  background: linear-gradient(180deg, rgba(6, 247, 255, 0.07), rgba(0, 0, 0, 0.45));
  box-shadow: 0 0 80px rgba(6, 247, 255, 0.08);
  padding: clamp(24px, 3.5vw, 40px);
}

.signup-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.signup-title-light {
  font-weight: 400;
  color: var(--text-soft);
}

.signup-copy {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 22px;
  color: var(--text-soft);
  max-width: 640px;
}

.section-signup .notify-form {
  margin-top: 20px;
}

.signup-card .notify-status {
  padding-bottom: 0;
}

.loading-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -5px;
}

/* Looping version of the header mark animation: ring draws on, dot pops,
   brief hold, fade, repeat. */
.loading-enso {
  stroke-dasharray: 140 1000;
  stroke-dashoffset: 140;
  animation: kanso-draw-loop 1.8s ease-in-out infinite;
}

.loading-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: kanso-pop-loop 1.8s ease-out infinite;
}

@keyframes kanso-draw-loop {
  0% { stroke-dashoffset: 140; opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes kanso-pop-loop {
  0%, 40% { opacity: 0; transform: scale(0); }
  55% { opacity: 1; transform: scale(1.8); }
  65% { transform: scale(0.85); }
  75% { transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.loading-text {
  margin-left: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .loading-enso {
    animation: none;
    stroke-dashoffset: 0;
  }

  .loading-dot {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel,
  .faq-chevron {
    transition: none;
  }
}

.purchase-price .was {
  opacity: 0.55;
  text-decoration: line-through;
  margin-right: 8px;
}

.btn-purchase.is-soldout {
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- YOURS. + purchase card ---------- */

.section-signup {
  position: relative;
  z-index: 2;
}

.section-yours {
  padding-top: 0;
  margin-top: clamp(-220px, -16vw, -96px);
  padding-bottom: clamp(56px, 6vw, 96px);
  overflow: hidden;
}

.section-yours .purchase-card {
  position: relative;
  z-index: 2;
  margin-top: clamp(-200px, -14vw, -64px);
  transform: translateY(25px);
  background: rgba(0, 0, 0, 0.5);
}

.yours-image {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
}

@media (max-width: 640px) {
  .yours-image {
    height: 70vw;
    object-fit: cover;
  }
}

.purchase-card {
  margin-top: clamp(80px, 20vw, 300px);
  margin-left: auto;
  max-width: 600px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px 23px 24px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.purchase-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 25.6px;
}

.purchase-note {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-muted);
}

.purchase-price {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 25.6px;
  color: var(--text-soft);
}

/* ---------- Floating add-to-cart ---------- */

.floating-cart {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-cart.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-cart .container {
  padding-inline: 0;
}

.floating-cart .purchase-card {
  margin-top: 0;
  width: max-content;
  max-width: none;
  padding: 12px 14px 12px 18px;
  gap: 16px;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.floating-cart .purchase-name {
  white-space: nowrap;
}

.floating-cart:not(.is-visible) .purchase-card {
  pointer-events: none;
}

.floating-cart .purchase-name {
  font-size: 13px;
  line-height: 18px;
}

.floating-cart .purchase-price {
  font-size: 13px;
  line-height: 18px;
}

.floating-cart .card-cta {
  font-size: 14px;
  padding: 10px 14px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a {
  color: inherit;
}

/* ---------- Focus / interaction ---------- */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-purchase:hover {
  filter: brightness(1.08);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .section-intro,
  .two-col {
    grid-template-columns: 1fr;
  }

  .numbered-list {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-block: 14px;
  }

  .logo-mark {
    width: 24px;
    height: 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-label,
  .step-copy {
    margin-top: 14px;
  }

  .tagline-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tagline-row .hero-cta {
    margin-left: 0;
  }

  .value-row,
  .value-cards {
    flex-direction: column;
  }

  .value-card {
    width: 100%;
  }

  .purchase-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .card-cta {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .specs-title {
    font-size: 20px;
  }

  .specs-list {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .specs-list dt {
    margin-top: 16px;
    font-size: 14px;
  }

  .specs-list dt:first-of-type {
    margin-top: 0;
  }

  .floating-cart {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .floating-cart .purchase-card {
    flex-direction: row;
    align-items: center;
    width: auto;
    max-width: 560px;
    margin-inline: auto;
    padding: 12px 12px 12px 16px;
    gap: 14px;
  }

  .floating-cart .purchase-name {
    white-space: normal;
  }

  .floating-cart .purchase-name {
    font-size: 12px;
    line-height: 16px;
  }

  .floating-cart .purchase-price {
    font-size: 12px;
    line-height: 16px;
  }

  .floating-cart .card-cta {
    font-size: 13px;
    padding: 9px 12px;
  }

  .floating-cart .card-cta .arrow {
    width: 13px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .logo-suffix {
    display: none;
  }
}
