@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@1,300;1,600&family=Roboto+Mono:wght@300;400;500;700&family=Public+Sans:wght@400;500;600&display=swap');

body {
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 300;
  margin: 0;
  background-color: #5F0E2E;
  color: white;
}

a {
  color: inherit;
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-sizing: border-box;
}

.section-hero {
  position: relative;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  height: 100vh;
}

.hero-appstore {
  position: relative;
  z-index: 3;
  margin-top: 16px;
  display: inline-block;
}

.hero-appstore img {
  height: 44px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.section-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, #F0F3FF);
  z-index: 2;
  pointer-events: none;
}

.section-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-wordmark {
  position: relative;
  z-index: 1;
  width: 70vw;
}

.section-2 {
  background-color: #F0F3FF;
  height: auto;
  /* Clear the hero polaroids that hang into this section: 70% of the tallest
     item (see .hero-items translate) + 50px max --ty drop + breathing room */
  padding-top: calc(0.7 * clamp(280px, 23.1vw, 560px) + 90px);
  padding-bottom: 6vw;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 4vw;
  padding-right: 4vw;
}

.brands-block {
  position: relative;
  margin: 0 0 6rem auto;
  width: clamp(160px, 16vw, 280px);
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.brands-carousel {
  display: none;
}

.brands-tagline,
.discover-tagline,
.save-tagline,
.search-tagline,
.social-tagline {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(14px, 1.8vw, 32px);
  line-height: 1.6;
  margin: 0;
}

.brands-tagline {
  color: #5F0E2E;
  text-align: right;
  margin: 0 0 0.75rem 0;
  font-size: clamp(12px, 1.15vw, 22px);
}

.brands-dot {
  display: block;
  width: 2.8vw;
  height: 2.8vw;
  border-radius: 50%;
  background: #f74a52;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.brand-logo-dot {
  position: absolute;
  border-radius: 50%;
  cursor: grab;
  z-index: 10;
  user-select: none;
  touch-action: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-dot:active {
  cursor: grabbing;
}

.discover-row {
  position: relative;
  width: 100%;
}

.discover-tagline {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  color: #5F0E2E;
  text-align: right;
  font-size: clamp(12px, 1.4vw, 26px);
}

.discover-text,
.save-text,
.search-text,
.social-text {
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18vw;
  filter: url(#inner-shadow);
  will-change: filter;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 0.9;
}

.discover-text {
  color: #F0F3FF;
}

.section-save {
  height: clamp(580px, 60vw, 100vh);
  background-color: #F0F3FF;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4vw;
  padding-right: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.save-row {
  position: relative;
  flex: 1;
}

.save-text {
  color: #F0F3FF;
  text-align: left;
}

.save-tagline {
  position: absolute;
  left: 0;
  top: calc(100% + 1.5rem);
  color: #5F0E2E;
  text-align: left;
}

/* The stage is one real flex item holding both the capsules and the jeans
   grid as absolutely positioned layers with identical bounds, so the two
   states always occupy the same box (mobile already works this way) */
.save-stage {
  position: relative;
  flex: 3;
  height: 100%;
}

.save-capsules {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sized as % of the .save-capsules container (not vw/vh) so the
   three-capsule stack always fits beside the text, in tall and wide windows */
.save-capsule {
  width: 30%;
  height: auto;
  object-fit: contain;
  position: relative;
  flex-shrink: 0;
  transition:
    translate 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease,
    rotate 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.save-capsule-1 {
  z-index: 3;
  translate: 0 -4vw;
  rotate: -7.84deg;
}

.save-capsule-2 {
  z-index: 2;
  margin-left: -8%;
  translate: 0 2.5vw;
}

.save-capsule-3 {
  z-index: 1;
  margin-left: -8%;
  translate: 0 -1.5vw;
  rotate: 13.35deg;
}

.section-save.exploded .save-capsule-1 {
  translate: -8.1vw -12.7vw;
  rotate: -30deg;
  opacity: 0;
}

.section-save.exploded .save-capsule-2 {
  translate: 10.4vw -7.5vw;
  rotate: 22deg;
  opacity: 0;
}

.section-save.exploded .save-capsule-3 {
  translate: 6.4vw 12.7vw;
  rotate: 40deg;
  opacity: 0;
}

.save-jeans-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.62vw;
  row-gap: 1.62vw;
  padding: 2.31vw 2.08vw 2.31vw 1.39vw;
  align-content: center;
  opacity: 0;
  transition: opacity 0.3s 0.25s ease;
  z-index: 3;
  pointer-events: none;
}

.section-save.exploded .save-jeans-grid {
  opacity: 1;
  pointer-events: auto;
}

.save-jean-wrap {
  position: relative;
  width: 55%;
}

.save-jean-wrap:nth-child(1) {
  justify-self: end;
}

.save-jean-wrap:nth-child(2) {
  justify-self: start;
  margin-top: 2.03vw;
}

.save-jean-wrap:nth-child(3) {
  justify-self: end;
}

.save-jean-wrap:nth-child(4) {
  justify-self: start;
  margin-top: 2.03vw;
}

.save-jean-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  transition:
    translate 0.45s cubic-bezier(0.34, 1.3, 0.64, 1),
    scale 0.45s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.38s ease;
  opacity: 0;
  scale: 0.85;
  translate: 0 20px;
}

@media (min-width: 768px) {
  .section-save.exploded .save-jean-wrap:nth-child(1) .save-jean-img {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    transition-delay: 0.25s;
  }

  .section-save.exploded .save-jean-wrap:nth-child(2) .save-jean-img {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    transition-delay: 0.31s;
  }

  .section-save.exploded .save-jean-wrap:nth-child(3) .save-jean-img {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    transition-delay: 0.36s;
  }

  .section-save.exploded .save-jean-wrap:nth-child(4) .save-jean-img {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    transition-delay: 0.41s;
  }
}

.save-tag {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s 0.55s ease;
  z-index: 5;
  pointer-events: none;
}

.save-tag img {
  height: 1.62vw;
  width: auto;
  display: block;
}

.save-tag-2 {
  top: 30%;
  right: -2.31vw;
}

.save-tag-3 {
  top: 20%;
  left: -2.31vw;
}

.save-tag-notify {
  position: absolute;
  top: calc(20% + 2.5vw);
  left: auto;
  right: calc(100% + 1.5vw);
  width: 75%;
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(12px, 1.1vw, 20px);
  color: #5F0E2E;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.02em;
  text-align: right;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s 0.6s ease;
  z-index: 5;
}

.section-save.exploded .save-tag-notify {
  opacity: 1;
}

.section-save.exploded .save-tag {
  opacity: 1;
}

.section-search {
  height: clamp(580px, 60vw, 100vh);
  background-color: #5F0E2E;
  flex-direction: row;
  align-items: center;
  padding-left: 4vw;
  padding-right: 4vw;
  overflow: hidden;
}

.search-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.search-text {
  color: #FFDDED;
  text-align: right;
}

.search-tagline {
  color: #FFDDED;
  text-align: right;
}

/* ── Search Animation ──────────────────────────── */
.search-stage {
  position: relative;
  flex: 0 0 50%;
  height: clamp(320px, 32.4vw, 830px);
  overflow: visible;
  clip-path: inset(-30vh -50px 0 calc(-4vw + 4px));
}

.search-card {
  position: absolute;
  width: 40vw;
  height: auto;
  background: #FFFFFF;
  border-radius: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 4.6vw)) rotate(-2.88deg) scale(0.84);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  padding: 2.08vw 2.31vw 1.62vw;
  gap: 1.16vw;
  z-index: 2;
}

.search-card-input {
  display: flex;
  align-items: flex-start;
  gap: 0.81vw;
  flex: 1;
}

.search-card-icon {
  width: 1.85vw;
  height: 1.85vw;
  flex-shrink: 0;
  margin-top: 2px;
}

.search-card-query {
  font-family: 'Public Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 1.16vw, 26px);
  color: #222;
  line-height: 1.5;
}

.search-cursor {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  background: #444;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: searchBlink 0.75s step-end infinite;
}

@keyframes searchBlink {
  50% {
    opacity: 0;
  }
}

.search-card-images {
  display: flex;
  gap: 0.69vw;
  flex-shrink: 0;
  align-items: flex-start;
}

.search-card-img {
  width: 7.5vw;
  aspect-ratio: 75 / 94;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0;
  scale: 0.93;
  transition: opacity 350ms ease, scale 350ms ease;
}

.search-card-img.show {
  opacity: 1;
  scale: 1;
}

.search-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-card-footer {
  display: flex;
  align-items: center;
  gap: 0.69vw;
  flex-shrink: 0;
  margin-top: auto;
}

.search-add-inspo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.29vw;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  padding: 0.58vw 0.81vw 0.64vw;
}

.search-add-label {
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 1.16vw, 26px);
  color: #5F0E2E;
  line-height: 1;
}

.search-add-sub {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(7px, 0.58vw, 13px);
  color: #828282;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
}

.search-send-btn {
  width: 3.12vw;
  height: 3.12vw;
  border-radius: 50%;
  background: #5F0E2E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-send-btn img {
  width: 1.74vw;
  height: 1.74vw;
  display: block;
}

@keyframes searchSendActivate {
  0% {
    scale: 1;
    background-color: #5F0E2E;
  }

  55% {
    scale: 1.24;
    background-color: #7d1640;
  }

  100% {
    scale: 1.18;
    background-color: #7d1640;
  }
}

.search-send-btn.sending {
  animation: searchSendActivate 520ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.search-results {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 72%;
  translate: 110% -50%;
  display: flex;
  align-items: stretch;
  z-index: 3;
  transition:
    opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
    rotate 700ms cubic-bezier(0.4, 0, 0.2, 1),
    scale 700ms cubic-bezier(0.4, 0, 0.2, 1);
  gap: 6.5%;
}

.search-results.visible {
  translate: 0 -50%;
}

.search-result-img {
  flex: 1;
  height: 100%;
  overflow: visible;
  position: relative;
  opacity: 0;
  translate: 0px var(--ry, 0px);
  scale: 0.92;
  transition:
    opacity 480ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    scale 480ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.search-result-img:not(:first-child) {
  margin-left: -3.01vw;
}

.search-result-img:nth-child(1) {
  --ry: -2.55vw;
  z-index: 3;
  rotate: 6.12deg;
}

.search-result-img:nth-child(2) {
  --ry: 2.55vw;
  z-index: 2;
  rotate: -5.37deg;
}

.search-result-img:nth-child(3) {
  --ry: -0.93vw;
  z-index: 1;
  rotate: 8deg;
}

.search-result-img.show {
  opacity: 1;
  translate: 0px var(--ry, 0px);
  scale: 1;
}

.search-result-img.show:hover {
  translate: 0px var(--ry, 0px);
  scale: 1.05;
  z-index: 10;
  transition: scale 300ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

.search-result-img img {
  width: 100%;
  height: auto;
  display: block;
}


.hero-items {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  translate: 0 70%;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 2vw;
  pointer-events: none;
}

.hero-items .disc-item {
  position: relative;
  display: block;
  margin-left: max(-50px, -5vw);
  pointer-events: auto;
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: translate 500ms ease, scale 500ms ease;
}

.hero-items .disc-item>img {
  height: clamp(280px, 23.1vw, 560px);
  width: auto;
  display: block;
}

.hero-items .disc-item:first-child {
  margin-left: 0;
}

.hero-items .disc-item:nth-child(1) {
  --ty: 0px;
  --tx: -14px;
}

.hero-items .disc-item:nth-child(2) {
  --ty: 50px;
  --tx: 9px;
}

.hero-items .disc-item:nth-child(3) {
  --ty: 0px;
  --tx: -4px;
}

.hero-items .disc-item:nth-child(4) {
  --ty: 45px;
  --tx: 11px;
}

.hero-items .disc-item:nth-child(5) {
  --ty: -5px;
  --tx: -8px;
}

@media (hover: hover) and (pointer: fine) {
  .hero-items .disc-item:hover {
    translate: var(--tx) calc(var(--ty) - 14px);
    scale: 1.04;
    z-index: 10;
  }
}

/* ── Discover like button (hearts) ─────────────────── */
/* Each product photo has the printed heart baked in at a different spot
   (varying crop/rotation per shot), so the overlay position is tuned per item. */
.brands-carousel .disc-like {
  display: none;
}

.disc-like {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: clamp(16px, 1.4vw, 26px);
  height: auto;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  line-height: 0;
  z-index: 6;
}

.disc-like img {
  width: 100%;
  height: auto;
  display: block;
}

.disc-like .disc-like-on {
  display: none;
}

.disc-like.liked .disc-like-off {
  display: none;
}

.disc-like.liked .disc-like-on {
  display: block;
}

.disc-like.pop {
  animation: heartPop 260ms ease;
}

@keyframes heartPop {
  0% {
    scale: 1;
  }

  40% {
    scale: 1.32;
  }

  100% {
    scale: 1;
  }
}

.hero-tagline-break {
  display: none;
}

.hero-tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 300;
  font-size: 1rem;
  color: #FFDDED;
  letter-spacing: 0.05em;
}

/* ── Social ──────────────────────────────────────── */

.section-social {
  height: clamp(580px, 60vw, 100vh);
  background-color: #5F0E2E;
  flex-direction: row;
  align-items: center;
  padding-left: 4vw;
  padding-right: 4vw;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.social-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  padding-top: clamp(2rem, 5vw, 8vw);
}

.social-text {
  color: #FFDDED;
  text-align: center;
}

.social-influencers {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  translate: 0 25%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 5;
}

.influencer-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-left: -5vw;
  z-index: 1;
}

.influencer-wrap:first-child {
  margin-left: 0;
}

.influencer-wrap:nth-child(1) {
  translate: 0 -2.5vw;
  rotate: -5.88deg;
}

.influencer-wrap:nth-child(3) {
  translate: 0 -1.5vw;
  rotate: 4.02deg;
}

.influencer-wrap:nth-child(2) {
  z-index: 2;
}

.influencer-wrap:hover {
  z-index: 10;
}

.influencer-img {
  height: clamp(360px, 30vw, 720px);
  width: auto;
  display: block;
  pointer-events: auto;
  transition: scale 400ms ease;
}

.influencer-wrap:hover .influencer-img {
  scale: 1.06;
}

.influencer-overlay {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.influencer-wrap:hover .influencer-overlay {
  opacity: 1;
}

.influencer-search {
  width: 95%;
  top: 40%;
  left: -30%;
  rotate: -2.88deg;
}

.influencer-cap-1 {
  width: 58%;
  bottom: 2%;
  right: -18%;
  z-index: 3;
  rotate: 13.35deg;
}

.influencer-cap-2 {
  width: 58%;
  bottom: -14%;
  right: 10%;
}

.social-tagline {
  color: #FFDDED;
  text-align: center;
}

/* ── Footer ──────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 0;
  background-color: #F0F3FF;
  padding: clamp(5vw, 7vw, 10.5vw) 0 3vw;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.footer-main {
  position: relative;
  margin-top: clamp(3vw, 5vw, 7vw);
}

.footer-wordmark {
  display: block;
  width: 100%;
}

.footer-brand {
  text-decoration: none;
}

.footer-wordmark-full {
  display: block;
  width: 100%;
  height: auto;
}

.footer-logo-mark {
  display: none;
}

.footer-columns {
  position: absolute;
  top: 8vw;
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  padding: 0 4vw;
  pointer-events: none;
  gap: 5vw;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 2vw 0 0;
  padding: 0 4vw;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.3vw;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 2.5vw;
}

.footer-social-row a,
.footer-copy,
.footer-brand,
.footer-col-header,
.footer-col a {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-size: 1.15vw;
  color: #5F0E2E;
}

.footer-social-row a,
.footer-copy {
  font-weight: 400;
  text-decoration: none;
  line-height: 1.8;
}

.footer-social-icon {
  height: clamp(20px, 1.7vw, 38px);
  width: auto;
  display: block;
}

.footer-appstore-badge {
  display: flex;
  justify-content: center;
}

.footer-appstore-badge img {
  height: clamp(44px, 3.5vw, 80px);
  display: block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
  pointer-events: auto;
}

.footer-brand {
  font-weight: 500;
}

.footer-col-header {
  font-weight: 500;
  margin: 0 0 0.4vw;
}

.footer-col a {
  font-weight: 400;
  text-decoration: none;
  line-height: 1.8;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* ── Toolbar ─────────────────────────────────────── */

#toolbar {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
}

.toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: 50px;
  width: calc(100vw - 24px);
  box-sizing: border-box;
  transition: max-width 300ms ease-in-out, background 300ms ease-in-out;
}

.toolbar-icon-link {
  display: flex;
  flex-shrink: 0;
}

.toolbar-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.toolbar-expandable {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-in-out;
  white-space: nowrap;
}

.toolbar-tagline {
  color: #ffffff;
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
  transition: color 300ms ease-in-out;
}

.toolbar-links {
  display: flex;
  gap: 20px;
}

.disabled-link {
  opacity: 0.4;
  cursor: not-allowed;
}

.toolbar-links a {
  color: #ffffff;
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  text-decoration: underline;
  white-space: nowrap;
  transition: color 300ms ease-in-out;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-in-out;
}

.toolbar-social {
  display: block;
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.toolbar-appstore {
  display: block;
  height: 28px;
  object-fit: contain;
}

#toolbar.is-open .toolbar-bar {
  max-width: calc(100vw - 24px);
}

#toolbar.is-open .toolbar-expandable,
#toolbar.is-open .toolbar-right {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 150ms;
}

/* ── Adaptive invert: light-section override ── */
#toolbar.nav-on-light .toolbar-bar {
  background: rgba(95, 14, 46, 0.08);
}

#toolbar.nav-on-light .toolbar-tagline,
#toolbar.nav-on-light .toolbar-links a {
  color: #5F0E2E;
}

@keyframes marquee {
  from {
    translate: 0 0;
  }

  to {
    translate: -50% 0;
  }
}

/* ── Mobile (max 767px) ──────────────────────────── */
@media (max-width: 767px) {

  /* Typography — individual sizes from Figma mobile frame (669px) scaled to 390px */
  .discover-text {
    font-size: clamp(90px, 20vw, 160px);
    text-align: center;
  }

  .search-text {
    font-size: clamp(145px, 38.9vw, 240px);
    text-align: center;
  }

  .save-text {
    font-size: clamp(170px, 45.9vw, 270px);
  }

  .social-text {
    font-size: clamp(140px, 37.6vw, 230px);
    text-align: center;
  }

  .brands-tagline {
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
  }

  .discover-tagline {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
  }

  .search-tagline {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
  }

  .social-tagline {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
  }

  /* Hero */
  .section-hero video {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 100vh;
    /* fallback for browsers without dvh */
    width: 100dvh;
    height: 100vw;
    /* fallback */
    height: 100dvw;
    translate: -50% -50%;
    rotate: 90deg;
  }

  .hero-wordmark {
    width: 90vw;
  }

  .hero-tagline {
    font-size: 0.85rem;
    text-align: center;
  }

  .hero-tagline-break {
    display: inline;
  }

  .hero-appstore img {
    height: 40px;
  }

  .hero-items {
    display: none;
  }

  .brands-tagline,
  .brands-dot {
    display: none;
  }

  /* Carousel */
  .brands-carousel {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    translate: 0 50%;
    z-index: 3;
    overflow: hidden;
    height: 220px;
    padding: 60px 16px 0;
  }

  .brands-carousel-track {
    display: flex;
    align-items: flex-end;
    width: max-content;
    animation: marquee 43s linear infinite;
  }

  .brands-carousel-track .disc-item {
    position: relative;
    display: block;
    flex-shrink: 0;
    margin-left: -22px;
  }

  .brands-carousel-track .disc-item>img {
    height: 160px;
    width: auto;
    display: block;
  }

  .brands-carousel-track .disc-item:nth-child(odd) {
    translate: 0 0;
    rotate: -6deg;
  }

  .brands-carousel-track .disc-item:nth-child(even) {
    translate: 0 -22px;
    rotate: 6deg;
  }

  /* Section 2 — Discover */
  .section-2 {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 140px;
    padding-bottom: 32px;
    padding-left: 6vw;
    padding-right: 6vw;
  }

  /* Reorder: Discover word first, brands block below */
  .discover-row {
    order: 1;
  }

  .brands-block {
    display: none;
  }

  .discover-tagline {
    position: static;
    margin-top: 28px;
    transform: none;
  }

  /* Search section */
  .section-search {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 22vh 4vw 140px;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .search-row {
    align-items: center;
    width: 100%;
    flex: none;
    margin-top: 32px;
  }

  .search-stage {
    flex: none;
    width: 92vw;
    height: clamp(330px, 88vw, 520px);
    clip-path: none;
    overflow: visible;
    margin-top: 0;
    align-self: center;
  }

  .search-card {
    width: 80vw;
    height: auto;
    min-height: 180px;
    padding: 16px 18px 14px;
    gap: 12px;
  }

  .search-card-input {
    gap: 10px;
  }

  .search-card-icon {
    width: 20px;
    height: 20px;
  }

  .search-card-query {
    font-size: 16px;
  }

  .search-card-images {
    gap: 8px;
  }

  .search-card-img {
    width: 19vw;
    flex-shrink: 1;
    scale: 0.93;
  }

  .search-card-img.show {
    scale: 1;
  }

  .search-card-img img {
    scale: 1.05;
  }

  .search-card-footer {
    gap: 8px;
  }

  .search-add-inspo {
    gap: 3px;
    padding: 6px 10px 7px;
  }

  .search-add-label {
    font-size: 14px;
  }

  .search-add-sub {
    font-size: 12px;
  }

  .search-send-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .search-send-btn img {
    width: 20px;
    height: 20px;
  }

  /* Inset from the stage edges — full-bleed results crowded the phone width */
  .search-results {
    height: 60%;
    left: 4%;
    right: 4%;
  }

  /* Social section */
  .section-social {
    flex-direction: column;
    height: auto;
    padding: 60px 0 80px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
  }

  .social-row {
    align-items: center;
    align-self: auto;
    padding: 0 6vw;
    padding-top: 0;
    width: 100%;
    box-sizing: border-box;
    flex: none;
  }

  .social-influencers {
    position: static;
    transform: none;
    translate: 0;
    margin-top: 64px;
    justify-content: center;
    padding-left: 0;
    align-items: flex-end;
    width: 100%;
  }

  .influencer-wrap {
    margin-left: -6vw;
  }

  .influencer-wrap:nth-child(1) {
    translate: 0 -3vw;
    rotate: -5.88deg;
  }

  .influencer-wrap:nth-child(3) {
    translate: 0 -2vw;
    rotate: 4.02deg;
  }

  .influencer-img {
    height: clamp(150px, 45vw, 200px);
  }

  .influencer-search {
    display: none;
  }

  .influencer-cap-1 {
    display: none;
  }

  .influencer-cap-2 {
    display: none;
  }

  /* Footer */
  .site-footer {
    padding: 40px 6vw 24px;
  }

  .footer-main {
    margin-top: 0;
  }

  .footer-wordmark-full {
    display: none;
  }

  .footer-logo-mark {
    display: block;
    width: calc(100% + 12vw);
    height: auto;
    margin: 0 -6vw;
  }

  .footer-columns {
    top: 30vw;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    gap: 3vw;
  }

  .footer-col-header,
  .footer-col a,
  .footer-brand {
    font-size: 14px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    margin: 16px 0 0;
    padding: 0;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-bottom>div:last-child {
    display: none;
  }

  .footer-social-row a {
    font-size: 14px;
  }

  .footer-copy {
    font-size: 11px;
  }

  .footer-appstore-badge img {
    height: 36px;
  }

  .footer-col {
    gap: 4px;
  }

  /* Prevent horizontal scroll from display word bleed */
  /* Use clip on body (not hidden) — overflow-x: hidden on body creates a scroll
     container that blocks iOS Safari's vertical page scroll, hiding the footer */
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
  }

  /* Navbar — mobile open state: single horizontal row */
  #toolbar.is-open .toolbar-bar {
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  /* Hide tagline on mobile — too long for single row */
  .toolbar-tagline {
    display: none;
  }

  #toolbar.is-open .toolbar-expandable {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .toolbar-links {
    gap: 14px;
  }

  .toolbar-links a {
    font-size: 16px;
  }

  .toolbar-link-brands,
  .toolbar-link-careers {
    display: none;
  }

  a.toolbar-link-about {
    font-size: 13px;
  }

  #toolbar.is-open .toolbar-right {
    gap: 10px;
  }

  .toolbar-social {
    height: 24px;
    width: 24px;
  }

  .toolbar-appstore {
    height: 24px;
  }

}

/* Save section: stacked layout below desktop, fluidly sized from phone to tablet width */
@media (max-width: 900px) {
  .section-save {
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: unset;
    padding: clamp(48px, 10vw, 88px) 6vw clamp(40px, 5vw, 48px);
    justify-content: flex-start;
    cursor: default;
    overflow: visible;
  }

  .save-row {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .save-text {
    text-align: center;
  }

  .save-tagline {
    position: static;
    margin-top: clamp(12px, 2vw, 18px);
    text-align: center;
  }

  /* Fixed-height stage so capsules and jeans crossfade in place instead of
     resizing the section - both are absolutely positioned to fill it. Height is
     derived from the jeans grid's own two-row math (the taller of the two) plus
     a flat allowance for the "get notified" caption under the third photo, so
     it can't drift out of sync with the values that actually size the grid. */
  .save-stage {
    flex: none;
    display: block;
    position: relative;
    width: 100%;
    height: calc(2 * clamp(110px, 33vw, 300px) * 1.333 + clamp(24px, 5vw, 40px) + 84px);
    margin-top: clamp(24px, 4vw, 32px);
  }

  .save-capsules {
    position: absolute;
    inset: 0;
    width: 100%;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.3s ease;
  }

  /* % of the stage width so the stack spans it edge to edge at every size,
     instead of px/vw clamps that left the capsules tiny in a tall stage */
  .save-capsule {
    width: 40%;
    height: auto;
  }

  .save-capsule-1 {
    translate: 0 -5.5vw;
    rotate: -7.84deg;
    margin-left: 0;
  }

  .save-capsule-2 {
    translate: 0 3.5vw;
    rotate: 0deg;
    margin-left: -10%;
  }

  .save-capsule-3 {
    translate: 0 -2vw;
    rotate: 13.35deg;
    margin-left: -10%;
  }

  .section-save.exploded .save-capsules {
    opacity: 0;
    pointer-events: none;
  }

  .save-jeans-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    row-gap: clamp(24px, 5vw, 40px);
    overflow: hidden;
    transition: opacity 0.3s ease;
  }

  /* Image fills the wrap exactly (width-driven, not max-height) so its edges
     line up with the wrap's box - the .save-tag badges are positioned relative
     to the wrap, and a narrower auto-width image left them floating in the
     empty space past the image's real edge instead of overlapping it. */
  .save-jean-wrap {
    width: clamp(110px, 33vw, 300px);
  }

  .save-jean-img {
    width: 100%;
    height: auto;
  }

  .save-jean-wrap:nth-child(2),
  .save-jean-wrap:nth-child(4) {
    margin-top: clamp(10px, 2vw, 16px);
  }

  .section-save.exploded .save-jean-img {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }

  .save-tag img {
    height: clamp(14px, 2vw, 18px);
  }

  .save-tag-notify {
    position: static;
    max-width: 100%;
    width: 100%;
    font-size: clamp(9px, 1vw, 11px);
    text-align: right;
    margin-top: clamp(4px, 1vw, 8px);
    padding-right: 2px;
  }
}

/* Legal pages (privacy, terms) */
.legal-page-body {
  background-color: #F0F3FF;
  color: #5F0E2E;
  min-height: 100vh;
  font-style: normal;
}

.legal-page-body section {
  height: auto;
}

.legal-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}

.legal-content {
  max-width: 90ch;
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.2vw, 1.4rem);
}

.legal-title {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  line-height: 1.1;
}

.legal-body {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.2vw, 1.4rem);
  letter-spacing: -0.04em;
  color: #5F0E2E;
  line-height: 1.7;
}

.legal-body p {
  margin: 0 0 1.5em 0;
}

@media (max-width: 767px) {
  .legal-page {
    padding-top: 5rem;
  }
}

@media (max-width: 600px) {
  .legal-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .legal-body {
    font-size: 0.95rem;
  }
}

/* ── Contact Page ────────────────────────────────── */

.hidden {
  display: none !important;
}

.contact-page-body {
  background-color: #F0F3FF;
  color: #5F0E2E;
  min-height: 100vh;
  font-style: normal;
}

.contact-page-body section {
  height: auto;
  display: block;
  font-size: inherit;
}

.contact-section {
  padding: clamp(5rem, 8vw, 11rem) clamp(1rem, 2.72%, 3rem) clamp(2rem, 3vw, 3.5rem);
}

.contact-box {
  background: #5F0E2E;
  border-radius: 5px;
  overflow: hidden;
  max-width: 1200px;
  margin-inline: auto;
}

.contact-top {
  position: relative;
  padding: clamp(1.5rem, 2.8vw, 3.2rem) 0 clamp(5rem, 8vw, 10rem) clamp(1.5rem, 2.8vw, 3.2rem);
}

.contact-title {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2rem, 5.8vw, 100px);
  letter-spacing: -0.06em;
  color: #FFFFFF;
  margin: 0;
  line-height: 1;
}

.contact-tabs {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0;
  z-index: 2;
}

.contact-tab {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.88vw, 32px);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  background: #C8CBDA;
  border: none;
  cursor: pointer;
  padding: clamp(0.5rem, 0.7vw, 1rem) clamp(1.4rem, 3vw, 3.2rem);
  transition: background 150ms ease;
  line-height: 1.3;
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 100%, 0% 100%);
  position: relative;
  z-index: 1;
  margin-right: -12px;
}

.contact-tab:last-child {
  margin-right: 0;
}

/* Inactive tabs: lower recency rank = pressed more recently = lighter + in front
   (stacking handled by inline z-index set in contact.js). */
.contact-tab[data-recency="1"] {
  background: #D8DBE6;
}

.contact-tab[data-recency="2"] {
  background: #B6BACE;
}

.contact-tab.active {
  background: #FFFFFF;
  z-index: 2;
}


.contact-content {
  background: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 6rem);
  padding: clamp(2rem, 3.5vw, 5rem) clamp(1.5rem, 2.8vw, 3.2rem) clamp(2.5rem, 4.5vw, 6rem);
  align-items: start;
  position: relative;
  z-index: 3;
  margin-top: -1px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-panel {
  display: none;
}

.contact-panel.active {
  display: block;
}

.contact-heading {
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.5rem, 6.8vw, 117px);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  margin: 0 0 clamp(0.75rem, 1.5vw, 2rem);
  line-height: 1;
}

.contact-desc {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.88vw, 32px);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  line-height: 1.55;
  margin: 0;
}

.contact-links {
  margin-top: clamp(2rem, 5vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 2.5rem);
}

.contact-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.contact-link-label {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.7rem, 1.16vw, 20px);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  line-height: 1.3;
}

.contact-link-email {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.88vw, 32px);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  text-decoration: none;
  line-height: 1.3;
}

.contact-link-email:hover {
  text-decoration: underline;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 2rem);
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.45vw, 0.5rem);
}

.contact-form-group[hidden] {
  display: none;
}

.contact-field-label {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.8rem, 1.45vw, 25px);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  line-height: 1.3;
}

.required-mark {
  color: inherit;
  margin-left: 2px;
}

.required-mark[data-invalid="true"] {
  color: #D0021B;
}

.contact-field {
  width: 100%;
  background: #DADDEA;
  border: none;
  border-radius: 3px;
  padding: clamp(0.55rem, 0.87vw, 1rem) clamp(0.75rem, 1vw, 1.2rem);
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.8rem, 1.45vw, 25px);
  letter-spacing: -0.06em;
  color: #B2B2B2;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
}

.contact-field:focus {
  box-shadow: 0 0 0 2px rgba(95, 14, 46, 0.25);
}

.contact-field[aria-invalid="true"] {
  box-shadow: 0 0 0 2px rgba(208, 2, 27, 0.5);
}

.contact-field[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 2px rgba(208, 2, 27, 0.7);
}

.contact-field::placeholder {
  color: #B2B2B2;
}

.contact-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F0E2E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right clamp(0.75rem, 1vw, 1.2rem) center;
  padding-right: clamp(2rem, 3vw, 3rem);
  cursor: pointer;
}

.contact-textarea {
  min-height: clamp(120px, 12vw, 207px);
  resize: vertical;
}

.contact-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(0.5rem, 1vw, 1.5rem);
  flex-wrap: wrap;
}

.contact-privacy {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.6rem, 0.87vw, 15px);
  letter-spacing: -0.06em;
  color: rgba(95, 14, 46, 0.7);
  margin: 0;
  line-height: 1.5;
}

.contact-privacy a {
  color: rgba(95, 14, 46, 0.7);
  text-decoration: none;
}

.contact-privacy a:hover {
  text-decoration: underline;
}

.contact-submit {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.88vw, 32px);
  letter-spacing: -0.06em;
  color: #FFFFFF;
  background: #5F0E2E;
  border: none;
  border-radius: 10px;
  padding: clamp(0.45rem, 0.75vw, 1rem) clamp(1.5rem, 3vw, 3.5rem);
  cursor: pointer;
  transition: opacity 150ms ease;
  flex-shrink: 0;
  line-height: 1.4;
}

.contact-submit:hover {
  opacity: 0.82;
}

.contact-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.contact-success {
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.45vw, 25px);
  letter-spacing: -0.06em;
  color: #5F0E2E;
  padding: clamp(1rem, 2vw, 2.5rem) 0;
}

@media (max-width: 767px) {
  .contact-section {
    padding: 90px 12px 32px;
  }

  .contact-top {
    padding: 1.5rem 0 clamp(4rem, 12vw, 6rem) 1.25rem;
  }

  .contact-title {
    font-size: clamp(2.25rem, 11vw, 4rem);
  }

  .contact-tabs {
    z-index: 2;
  }

  .contact-tab {
    flex: 0 0 auto;
    text-align: center;
    font-size: 14px;
    padding: 0.6rem 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1.25rem 2rem;
    position: relative;
    z-index: 3;
  }

  .contact-heading {
    font-size: clamp(2.25rem, 11vw, 4rem);
  }

  .contact-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .contact-links {
    margin-top: 1.75rem;
    gap: 1rem;
  }

  .contact-link-label {
    font-size: 11px;
  }

  .contact-link-email {
    font-size: 14px;
  }

  .contact-field-label {
    font-size: 13px;
  }

  .contact-field {
    font-size: 14px;
    padding: 0.6rem 0.75rem;
  }

  .contact-textarea {
    min-height: 120px;
  }

  .contact-form-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-submit {
    font-size: 15px;
    padding: 0.55rem 1.75rem;
  }

  .contact-privacy {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brands-carousel-track {
    animation: none !important;
  }

  .search-cursor {
    animation: none !important;
  }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */

.faq-page {
  background-color: #F0F3FF;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
}

.contact-page-body .site-footer {
  padding-top: 2rem;
}

.contact-page-body .footer-main {
  margin-top: 0;
}

.faq-page .site-footer {
  padding-top: 1rem;
}

.faq-page .footer-main {
  margin-top: 0;
}


.faq-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
}

.faq-title {
  font-family: 'Cormorant Infant', serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.5rem, 8vw, 8rem);
  letter-spacing: -0.06em;
  color: #EBEFFF;
  filter: url(#inner-shadow);
  will-change: filter;
  text-align: center;
  margin: 0;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* --- Accordion list --- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(2rem, 4vw, 4rem);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.faq-item {
  border-radius: 5px;
  overflow: hidden;
  background: #DADDEA;
}

.faq-item.faq-item--open {
  background: #FFFFFF;
}

/* --- Question button --- */

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 1.5vw, 1.5rem) clamp(1.2rem, 2vw, 2rem);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 1rem;
}

.faq-question-text {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.8rem);
  letter-spacing: -0.06em;
  color: #5F0E2E;
}

.faq-toggle {
  font-family: 'Cormorant Infant', serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 5rem);
  color: #5F0E2E;
  flex-shrink: 0;
  transition: rotate 0.3s ease;
  line-height: 1;
}

.faq-item--open .faq-toggle {
  rotate: 45deg;
}

/* --- Answer (max-height animation) --- */

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.faq-item--open .faq-answer {
  max-height: 600px;
}

.faq-answer p,
.faq-answer li {
  margin: 0;
  padding: 0 clamp(1.2rem, 2vw, 2rem) clamp(1rem, 1.5vw, 1.5rem);
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.4vw, 1.4rem);
  color: #5F0E2E;
  line-height: 1.7;
}

.faq-answer ul {
  margin: 0;
  padding-left: clamp(2.4rem, 3.5vw, 3.5rem);
  padding-bottom: clamp(1rem, 1.5vw, 1.5rem);
  color: #5F0E2E;
}

.faq-answer li {
  padding: 0 clamp(1.2rem, 2vw, 2rem) 0.4rem 0;
}

/* --- Back-to-top button --- */

.faq-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #5F0E2E;
  color: #F0F3FF;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.faq-back-top.visible {
  opacity: 1;
}

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

@media (max-width: 767px) {
  .faq-main {
    padding-top: 5rem;
    padding-bottom: 1rem;
  }

  .faq-title {
    margin-top: 4rem;
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .faq-question-text {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

  .faq-toggle {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

  .faq-back-top {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    bottom: 1rem;
    right: 1rem;
  }
}

/* --- Feedback --- */

.failed,
.invalid,
.invalidEmail,
.invalidRecaptcha {
  color: red;
  font-size: 1.1em;
}

.grecaptcha-badge {
  visibility: hidden;
}

.good-feedback,
.bad-feedback,
.bot-feedback {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
  min-height: 1.5rem;
}

.faq-list :is(.good-feedback, .bad-feedback, .bot-feedback) {
  color: #5F0E2E;
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  min-height: 0;
}

.faq-feedback {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.ok,
.requested {
  font-size: 1.1em;
}