/* =========================================================
   Visora — Landing Page
   Sliced 1:1 from Figma (1440 desktop frame)
   ========================================================= */

:root {
  --n-10: #ffffff;
  --n-20: #f5f5f5;
  --n-25: #fafafa;
  --n-30: #e5e5e5;
  --n-40: #d4d4d4;
  --n-50: #a1a1a1;
  --n-60: #737373;
  --n-100: #171717;
  --peach: #ffe2d6;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Phudu", var(--font);

  --page: 1440px;
  --gutter: 60px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--n-10);
  color: var(--n-100);
  font-family: var(--font);
  /* "Inter Display" = Inter at its display optical size */
  font-variation-settings: "opsz" 32;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; font-weight: 400; }

#smooth-content { overflow: hidden; }

/* ---------- Shared bits ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--n-10);
  border: 1px solid var(--n-20);
  border-radius: 100px;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.12));
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge img { width: 12px; height: 12px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-light {
  padding: 10px 24px;
  background: var(--n-10);
  border: 1px solid rgba(23, 23, 23, 0.04);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.btn-dark {
  color: var(--n-10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 95.833%),
    var(--n-100);
  border: 1px solid var(--n-10);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.btn-sm {
  height: 32px;
  gap: 4px;
  padding: 0 14px;
  font-weight: 400;
}
.btn-sm img { width: 12px; height: 12px; }

.bg-word {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  font-variation-settings: normal;
  text-box: trim-both cap alphabetic;
  pointer-events: none;
  user-select: none;
}

/* Section headings */
.sec-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 620px;
  max-width: 100%;
  text-align: center;
}
.sec-head.gap-20 { gap: 20px; }

.sec-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.sec-text.gap-24 { gap: 24px; }

.sec-title {
  width: 500px;
  max-width: 100%;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1.68px;
}
.sec-sub {
  width: 526px;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.2;
  color: var(--n-60);
}

/* Prompt box (hero + step 1) */
.prompt {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: 16px;
  background: var(--n-10);
  border: 1px solid var(--n-20);
  border-radius: 12px;
  box-shadow: 0 1px 12px 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.prompt textarea,
.prompt-ph {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  height: 16px;
  color: var(--n-100);
}
.prompt textarea::placeholder,
.prompt-ph { color: var(--n-40); }

.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.chips { display: flex; align-items: stretch; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: var(--n-10);
  border: 1px solid var(--n-20);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 0.2s;
}
button.chip:hover { background: var(--n-25); }
.chip > img:first-child { width: 14px; height: 14px; }
.chip .caret { width: 10px; height: 10px; margin-left: 4px; }
.chip.gap-6 { gap: 4px; }
.chip.gap-6 .caret { margin-left: 6px; }
.chip-square { width: 32px; justify-content: center; }

/* ===================== NAV ===================== */
.nav {
  position: absolute;
  z-index: 20;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--gutter) * 2);
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 167px;
  font-size: 24px;
  line-height: 1.12;
}
.brand img { width: 20px; height: 20px; }
.brand-white { color: var(--n-10); }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--n-60);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--n-100); }
.nav-links a.is-active { color: var(--n-100); font-weight: 500; }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 984px;
  background: var(--n-10);
  overflow: hidden;
}

.hero-cards {
  position: absolute;
  top: 500px;
  left: 50%;
  width: 1000px;
  height: 612px;
  margin-left: -500px;
}
/* cards sit on a wheel (pivot = ring centre); JS spins the ring */
.hero-ring {
  position: absolute;
  left: 500px;
  top: 520px;
  width: 0;
  height: 0;
  will-change: transform;
}
.hero-card {
  position: absolute;
  left: -82px;
  top: -108px;
  width: 164px;
  height: 216px;
  transform: rotate(var(--a)) translateY(-410px);
}
.hc-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--peach);
}
.hc-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bgword {
  position: absolute;
  top: 455px;
  left: 50%;
  width: 2438px;
  height: 575px;
  margin-left: -1222.85px; /* -503.15px offset on a 1440 frame */
}
.hero-bgword .bg-word {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 821.429px;
  color: #000;
  opacity: 0.04;
}

/* progressive blur at the base of the card fan */
.hero-blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  pointer-events: none;
}
.hero-fade {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1440px;
  height: 196px;
  margin-left: -720px;
  background: radial-gradient(1508px 196px at 50% 0, rgba(255, 255, 255, 0) 45.939%, #fff 78.821%);
  pointer-events: none;
}

.hero-head {
  position: absolute;
  z-index: 5;
  top: 158px;
  left: 50%;
  width: 592px;
  margin-left: -296px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -2.88px;
  white-space: nowrap;
  text-align: center;
}
.hero-line { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-emoji {
  position: relative;
  flex: none;
  width: 51px;
  height: 51px;
}
.he-bg {
  position: absolute;
  inset: 0;
  background: var(--n-20);
  border: 2px solid var(--n-10);
  border-radius: 12px;
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.08);
}
.he-frame { position: absolute; left: 12px; top: 12.5px; width: 26px; height: 26px; }
.he-img {
  position: absolute;
  left: -11px;
  top: 1.5px;
  width: 72px;
  height: 54px;
  object-fit: cover;
}
.hero-sub {
  font-size: 20px;
  line-height: 1.2;
  color: var(--n-60);
  text-align: center;
  white-space: nowrap;
}

.hero-prompt {
  position: absolute;
  z-index: 6;
  bottom: 91px;
  left: 50%;
  width: 500px;
  margin-left: -250px;
}
.hero-prompt .prompt-bar { gap: 100px; }

/* ===================== TRUSTED ===================== */
.trusted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  background: var(--n-10);
}
.trusted-label {
  font-size: 16px;
  line-height: 1.2;
  color: var(--n-60);
}
.marquee {
  position: relative;
  width: 857.143px;
  max-width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 123px, #000 calc(100% - 133px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 123px, #000 calc(100% - 133px), transparent 100%);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.143px;
  width: 142.857px;
  height: 40px;
  font-size: 17.143px;
  font-weight: 600;
  color: var(--n-40);
  white-space: nowrap;
}

/* ===================== EXPLORE ===================== */
.explore {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding-top: 80px;
  background: var(--n-25);
}
.explore-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 145px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.accordion {
  display: flex;
  width: 100%;
  max-width: var(--page);
  height: 600px;
  border: 1px solid var(--n-30);
}
.panel {
  position: relative;
  flex: 168 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  color: var(--n-10);
}
.panel.is-active { flex-grow: 600; cursor: default; }

.panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}
.panel-img.pos-bottom { object-position: bottom; }
.panel-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s;
}
.panel-blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 229px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 49.744%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.5s;
}
.panel.is-active .panel-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 49.744%, rgba(0, 0, 0, 0.4) 100%);
}
.panel.is-active .panel-blur { opacity: 1; }

.panel-row {
  position: absolute;
  left: 40px;
  bottom: 40px;
  width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.6s cubic-bezier(.2,.8,.2,1), visibility 0.4s;
}
.panel.is-active .panel-row { opacity: 1; visibility: visible; transform: none; transition-delay: 0.3s; }
.panel-row h3,
.panel-vtitle {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.64px;
  white-space: nowrap;
}
.panel-vtitle {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 32px;
  margin-left: -16px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: opacity 0.4s 0.2s, visibility 0.4s 0.2s;
}
.panel.is-active .panel-vtitle { opacity: 0; visibility: hidden; transition-delay: 0s; }

.circle-btn {
  flex: none;
  display: block;
  background: var(--n-10);
  border: 3px solid rgba(23, 23, 23, 0.12);
  border-radius: 100px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.circle-btn span {
  position: relative;
  display: flex;
  padding: 12px;
  border: 1px solid var(--n-10);
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 95.833%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}
.circle-btn img { width: 20px; height: 20px; transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.circle-btn:hover { transform: scale(1.06); }
.circle-btn:hover img { transform: translateX(2px); }

/* ===================== STEPS ===================== */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 80px var(--gutter);
  background: var(--n-10);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1320px;
}
.step { display: flex; flex-direction: column; gap: 24px; min-width: 0; overflow: hidden; }
.step-media {
  position: relative;
  height: 400px;
  background: var(--n-25);
  border: 1px solid var(--n-20);
  border-radius: 12px;
  overflow: hidden;
}
.step-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 406px;
  height: 380px;
  transform: translate(-50%, -50%);
  background: var(--n-10);
  border: 1px solid var(--n-20);
  border-radius: 10px;
}
.step-info { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.step-info h3 { font-size: 28px; line-height: 1.2; }
.step-info p { font-size: 18px; line-height: 1.35; color: var(--n-60); }

/* step 1 */
.prompt-ghost,
.prompt-step {
  position: absolute;
  left: 50%;
  top: 50%;
}
.prompt-ghost {
  width: 330px;
  padding: 16px 16px 10px;
  background: var(--n-100);
  opacity: 0.05;
  transform: translate(calc(-50% + 0.67px), calc(-50% + 15px));
}
.prompt-step {
  width: 350px;
  gap: 24px;
  box-shadow: 0 1px 12px 1px rgba(0, 0, 0, 0.03);
  transform: translate(-50%, -50%);
}
.prompt-step .prompt-bar,
.prompt-ghost .prompt-bar { gap: 6px; }
.prompt .prompt-bar > .btn { flex: none; }
.prompt-typed {
  min-height: 43px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--n-40);
}
.typed-dark { color: var(--n-100); font-weight: 500; }

/* step 2 */
.gen-status {
  position: absolute;
  top: 69px;
  left: calc(50% - 79.98px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9.79px;
}
.gen-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23.251px;
  height: 23.251px;
  border: 0.612px solid var(--n-10);
  border-radius: 50%;
  background: var(--n-100);
}
.gen-dot img { width: 12.237px; height: 12.237px; }
.gen-text { font-size: 22.337px; line-height: 1.35; color: var(--n-40); white-space: nowrap; }
.gen-card {
  position: absolute;
  overflow: hidden;
  border-radius: 11.654px;
}
.gen-a {
  left: 46.63px;
  top: 153px;
  width: 168.977px;
  height: 168.977px;
  border: 0.971px solid var(--n-10);
  box-shadow: 0 0 11.654px rgba(0, 0, 0, 0.24);
}
.gen-a img { width: 100%; height: 100%; object-fit: cover; }
.gen-a::after,
.gen-b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 3.885px 3.885px rgba(0, 0, 0, 0.04);
}
.gen-b {
  left: 225.32px;
  top: 209.33px;
  width: 112.651px;
  height: 112.651px;
  border: 0.971px solid var(--n-10);
  background: var(--n-10);
  box-shadow: 0 0 11.654px rgba(0, 0, 0, 0.24);
}
.gen-b::after { box-shadow: inset 0 0 3.885px 3.885px rgba(0, 0, 0, 0.06); }
.gen-b img {
  position: absolute;
  left: -8.74px;
  top: -5.83px;
  width: 126.247px;
  height: 124.305px;
  object-fit: cover;
  filter: blur(1.942px) brightness(0.8);
  border-radius: 11.654px;
}
.gen-b span {
  position: absolute;
  left: calc(50% - 4.86px);
  top: calc(50% - 7.77px);
  font-size: 11.654px;
  line-height: 1.35;
  color: var(--n-10);
}
.gen-c {
  left: 347.68px;
  top: 209.33px;
  width: 112.651px;
  height: 112.651px;
  background: var(--n-30);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gen-c img { width: 9.711px; height: 9.711px; }

/* step 3 */
.ghost {
  position: absolute;
  width: 157px;
  height: 155px;
  background: rgba(250, 250, 250, 0.7);
  border: 1px solid rgba(245, 245, 245, 0);
  border-radius: 13.171px;
  transform: translateY(-50%);
}
.ghost.bordered { border-color: var(--n-20); }
.g-433 { right: 97px;  top: calc(50% - 147.5px); }
.g-434 { right: 328px; top: calc(50% - 15.5px); }
.g-435 { right: -69px; top: calc(50% + 61.5px); }
.g-436 { right: -69px; top: calc(50% - 130.5px); }
.g-452 { right: 269px; top: calc(50% - 181.5px); }
.g-451 { right: -7px;  top: calc(50% - 187.5px); }

.compare {
  position: absolute;
  left: 111.67px;
  top: 79px;
  width: 200px;
  height: 200px;
  overflow: hidden;
  --pos: 50%;
  cursor: ew-resize;
}
.compare-img {
  position: absolute;
  left: 0.49px;
  top: -0.12px;
  width: 200px;
  height: 200px;
  border-radius: 14.203px;
  overflow: hidden;
  filter: drop-shadow(0 0 6.897px rgba(0, 0, 0, 0.24));
}
.cmp-before,
.cmp-after,
.cmp-after img,
.cmp-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cmp-before,
.cmp-after img { object-fit: cover; border-radius: 13.793px; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-tint {
  border-radius: 13.793px;
  background: rgba(221, 221, 221, 0.2);
  box-shadow: inset 0 0 4.598px 4.598px rgba(0, 0, 0, 0.25);
}
.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--pos) - 0.09px);
  width: 0;
}
.cmp-line {
  /* svg is drawn horizontally; rotate it to vertical */
  position: absolute;
  width: 286.43px;
  height: 2.367px;
  left: -143.215px;
  top: calc(-38px + 143.215px);
  transform: rotate(90deg);
}
.cmp-knob {
  position: absolute;
  top: calc(50% + 4.77px);
  left: 0.65px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33.141px;
  height: 33.141px;
  background: var(--n-10);
  border: 1px solid var(--n-20);
  border-radius: 50%;
  box-shadow: 0 0 14.203px 2.367px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10.139px);
}
.cmp-knob img { width: 14.484px; height: 14.484px; }
.boost {
  position: absolute;
  left: calc(50% - 0.17px);
  top: calc(50% + 120px);
  transform: translate(-50%, -50%);
  gap: 8px;
  font-weight: 500;
}
.boost:hover { transform: translate(-50%, calc(-50% - 1px)); }

/* ===================== FAQ ===================== */
.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  padding: 80px var(--gutter);
  background: var(--n-10);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 726px;
  max-width: 100%;
}
.faq-item {
  position: relative;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
.faq-item:not(.is-open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 1px;
  background: var(--n-20);
}
.faq-item:not(.is-open) { margin-bottom: 12px; }
.faq-item.is-open { background: var(--n-25); border-color: var(--n-20); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 11px 23px;
  text-align: left;
  font-size: 24px;
  line-height: 1.2;
  transition: padding 0.4s cubic-bezier(.2,.8,.2,1);
}
.faq-item.is-open .faq-q { align-items: flex-start; padding: 23px 23px 0; }
.faq-icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: var(--n-20);
  transition: background-color 0.35s;
}
.faq-icon img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.faq-icon .ic-up { opacity: 0; transform: rotate(180deg); }
.faq-item.is-open .faq-icon { background: var(--n-100); border: 0.612px solid var(--n-10); }
.faq-item.is-open .faq-icon .ic-up { opacity: 1; transform: none; }
.faq-item.is-open .faq-icon .ic-down { opacity: 0; transform: rotate(-180deg); }
.faq-q:hover .faq-icon { background: var(--n-30); }
.faq-item.is-open .faq-q:hover .faq-icon { background: var(--n-100); }

.faq-a { height: 0; overflow: hidden; }
.faq-item.is-open .faq-a { height: auto; }
.faq-a p {
  padding: 0 107px 23px 23px; /* 44 icon + 40 gap + 23 pad */
  margin-top: -3px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--n-60);
}

/* ===================== GALLERY ===================== */
.gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding-top: 80px;
  background: var(--n-10);
  overflow: hidden;
}
.gallery-bgword {
  position: absolute;
  top: 376px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 821.429px;
  color: #000;
  opacity: 0.04;
}
.gallery-stage { position: relative; width: 100%; height: 567px; }
.gallery-track {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2023.013px;
  height: 586.443px;
  margin-left: calc(-1011.5065px - 0.49px);
  overflow: hidden;
}
/* every card rides a large wheel (pivot far below the track); JS places and
   sizes them — the card passing the 0° slot grows to the featured size */
.g-card {
  position: absolute;
  left: 50%;
  top: 2850px; /* wheel centre; JS offsets by half the card size */
  width: 233px;
  height: 311px;
  will-change: transform;
}
.g-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--peach);
}
.g-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* CTA only shows on the card the visitor stops on */
.g-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.9);
  padding: 12px 16px;
  background: var(--n-10);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
}
.g-card:hover .g-cta,
.g-card:focus-within .g-cta {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
.g-cta:hover { transform: translate(-50%, -50%) scale(1.05) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
/* touch screens can't hover: show it on whichever card sits in the centre */
@media (hover: none) {
  .g-card.is-center .g-cta { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
}
.gallery-fade {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 50%;
  width: 1439px;
  height: 80px;
  margin-left: calc(-719.5px + 0.5px);
}

/* ===================== FOOTER ===================== */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 80px var(--gutter) 60px;
  background: var(--n-100);
  color: var(--n-10);
  overflow: hidden;
}
.footer-top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.footer-tag {
  width: 489px;
  max-width: 100%;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.96px;
}
.footer-cols { display: flex; }
.fcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 150px;
}
.fcol p {
  margin-bottom: 4px; /* 12px total gap below heading */
  font-size: 14px;
  line-height: 1.35;
  color: var(--n-50);
}
.fcol a {
  position: relative;
  font-size: 18px;
  line-height: 1.35;
  white-space: nowrap;
}
.fcol a::after,
.footer-bottom a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.fcol a:hover::after,
.footer-bottom a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-word {
  position: relative;
  width: 1309px;
  max-width: 100%;
  height: 222px;
  margin: 0 auto;
}
.footer-word .bg-word {
  position: absolute;
  top: 33px;
  left: calc(50% - 97px);
  transform: translateX(-50%);
  font-size: 820px;
  color: var(--n-10);
  opacity: 0.03;
}
.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-right: 8px; /* row is 1312px wide, left-aligned in the 1320 grid */
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}
.footer-bottom a { position: relative; }

/* fallback for browsers without text-box trimming */
@supports not (text-box: trim-both cap alphabetic) {
  .bg-word { margin-top: -0.155em; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .step-media { height: 360px; }
  .step-media > * { scale: 0.88; }
  .step-media > .step-sheet { scale: 1; }
  .footer-cols .fcol { width: 130px; }
}

@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .accordion { height: 520px; }
  .step-grid { grid-template-columns: 1fr; max-width: 520px; }
  .step-media { height: 400px; }
  .step-media > * { scale: 1; }
  .footer-top { flex-direction: column; gap: 56px; }
  .footer-cols { flex-wrap: wrap; row-gap: 32px; }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 100px;
    background: var(--n-20);
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--n-100); transition: transform 0.3s; }
  .nav.is-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    transform: none;
    padding: 16px 20px;
    background: var(--n-10);
    border: 1px solid var(--n-20);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  .nav.is-open .nav-cta {
    display: flex;
    position: absolute;
    top: 290px;
    left: 20px;
  }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .nav { top: 24px; }
  .hero { height: 760px; }
  .hero-head { top: 110px; width: calc(100% - 32px); margin-left: 0; transform: translateX(-50%); }
  .hero-title { font-size: 40px; letter-spacing: -1.6px; gap: 4px; }
  .hero-line { gap: 8px; }
  .hero-emoji { width: 32px; height: 32px; }
  .he-bg { border-radius: 8px; }
  .he-frame { left: 7px; top: 7px; width: 18px; height: 18px; }
  .he-img { left: -7px; top: 1px; width: 46px; height: 34px; }
  .hero-sub { font-size: 16px; white-space: normal; max-width: 320px; }
  .hero-cards { top: 400px; transform: scale(0.6); transform-origin: 50% 0; }
  .hero-bgword { top: 420px; transform: scale(0.5); transform-origin: 50% 0; }
  .hero-prompt { width: calc(100% - 32px); margin-left: 0; transform: translateX(-50%); bottom: 48px; }
  .hero-prompt .prompt-bar { gap: 12px; }
  .hero-prompt .btn-sm { padding: 0 12px; }

  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); }

  .explore,
  .steps,
  .gallery { gap: 48px; padding-top: 64px; }
  .steps,
  .faq { padding-top: 64px; padding-bottom: 64px; gap: 48px; }
  .sec-title { font-size: 36px; letter-spacing: -1.08px; }
  .sec-sub { font-size: 16px; }

  .accordion { flex-direction: column; height: auto; }
  .panel,
  .panel.is-active { flex: none; height: 96px; }
  .panel.is-active { height: 420px; }
  .panel { transition: height 0.6s cubic-bezier(.65,0,.35,1); }
  .panel-row { left: 20px; right: 20px; bottom: 20px; width: auto; }
  .panel-row h3 { font-size: 24px; white-space: normal; }
  .panel-vtitle {
    writing-mode: horizontal-tb;
    transform: none;
    left: 20px;
    bottom: 50%;
    margin: 0 0 -12px;
    width: auto;
    font-size: 24px;
  }

  .step-grid { max-width: 100%; }
  .step-media { height: 360px; }
  .step-media > * { scale: 0.85; }
  .step-media > .step-sheet { scale: 1; width: calc(100% - 20px); height: calc(100% - 20px); }
  .step-info h3 { font-size: 24px; }
  .step-info p { font-size: 16px; }

  .faq-q { font-size: 18px; gap: 16px; padding: 11px 15px; }
  .faq-item.is-open .faq-q { padding: 15px 15px 0; }
  .faq-a p { padding: 0 71px 15px 15px; margin-top: -6px; font-size: 16px; }
  .faq-icon { width: 40px; height: 40px; }
  .faq-icon img { top: 10px; left: 10px; }

  .gallery-bgword { top: 300px; font-size: 400px; }
  .gallery-stage { height: 420px; }
  .gallery-track { transform: scale(0.7); transform-origin: 50% 0; }

  .footer { padding-top: 64px; padding-bottom: 40px; }
  .footer-tag { font-size: 26px; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .fcol { width: auto; }
  .footer-word { height: 120px; }
  .footer-word .bg-word { font-size: 260px; left: 50%; top: 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* SplitText masks clip at line-height:1 — give descenders (g, p, y) room */
.split-lines > div,
.hero-title .split > div {
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}
