/*
 * Swappt website: the home page. Tokens, header, footer and buttons are in
 * site.css.
 */

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }
}

.section-white {
  background: var(--surface-lowest);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 16px;
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 1.55;
}

.icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-fixed);
  color: var(--primary);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 72px;
  /* Both glows fade out inside the section, so its bottom edge stays clean. */
  background:
    radial-gradient(50% 42% at 86% 16%, rgba(225, 18, 107, 0.1), transparent 70%),
    radial-gradient(36% 30% at 0% 56%, rgba(255, 177, 194, 0.3), transparent 70%);
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 104px;
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }
}

.hero-chip {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-fixed);
  color: var(--on-primary-fixed);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-lead {
  max-width: 540px;
  margin-top: 24px;
  color: var(--on-surface-variant);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  color: var(--on-surface-variant);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  max-width: 120vw;
  max-height: 120vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 18, 107, 0.2), rgba(255, 177, 194, 0.14) 46%, transparent 70%);
  transform: translate(-50%, -50%);
}

@media (max-width: 479px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Phone mock of the Discover screen (sized in em, so it scales as one) ---------- */

.phone {
  --w: 300px;
  position: relative;
  width: 30em;
  height: 62.9em;
  padding: 0.9em;
  border-radius: 4.6em;
  background: #1c1b1e;
  box-shadow:
    inset 0 0 0 0.15em #3b393e,
    0 40px 80px -28px rgba(63, 0, 25, 0.45),
    0 16px 32px -16px rgba(28, 27, 30, 0.3);
  font-size: calc(var(--w) / 30);
  user-select: none;
}

@media (max-width: 359px) {
  .phone {
    --w: 264px;
  }
}

@media (min-width: 1200px) {
  .phone {
    --w: 320px;
  }
}

.m-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 3.7em;
  background: var(--surface);
  color: var(--on-surface);
}

.m-island {
  position: absolute;
  top: 1em;
  left: 50%;
  width: 8.6em;
  height: 2.5em;
  border-radius: 2em;
  background: #000;
  transform: translateX(-50%);
}

.m-status {
  flex: none;
  height: 4.4em;
}

.m-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 4em;
  padding: 0 1.4em;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.m-brand img {
  width: 2.4em;
  height: 2.4em;
}

.m-brand span {
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.m-header-icons {
  display: flex;
  align-items: center;
  gap: 1.2em;
}

.m-header-icons svg {
  width: 2em;
  height: 2em;
  fill: currentColor;
}

.m-me {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-fixed), var(--tertiary-fixed));
  box-shadow: 0 0 0 0.2em rgba(183, 0, 84, 0.18);
}

.m-pills {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 1.2em 1em;
  overflow: hidden;
  white-space: nowrap;
}

.m-pill {
  flex: none;
  padding: 0.55em 1.15em;
  border-radius: 2em;
  background: var(--surface-high);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.m-pill-on {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.m-deck {
  position: relative;
  flex: 1;
  margin: 0 1.2em;
}

.m-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 1.2em;
  background: var(--surface-container);
  box-shadow: 0 1.2em 2.4em -1em rgba(28, 27, 30, 0.45);
}

.m-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(49, 48, 51, 0.92) 0%, rgba(49, 48, 51, 0.5) 30%, rgba(49, 48, 51, 0) 56%),
    linear-gradient(to bottom, rgba(49, 48, 51, 0.32), rgba(49, 48, 51, 0) 22%);
}

.m-card-top {
  position: absolute;
  top: 1.3em;
  left: 1.3em;
  z-index: 1;
}

.m-style {
  display: inline-block;
  padding: 0.45em 1em;
  border-radius: 2em;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.m-card-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  color: var(--inverse-on-surface);
}

.m-info {
  padding: 0 1.4em 1.1em;
}

.m-chips {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.6em;
}

.m-chip {
  padding: 0.35em 0.75em;
  border-radius: 2em;
  background: rgba(28, 27, 30, 0.65);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.m-title {
  font-size: 2.15em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.m-desc {
  margin-top: 0.35em;
  overflow: hidden;
  font-size: 1.1em;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.9;
}

.m-owner {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 1.1em 1.4em;
  border-top: 1px solid rgba(243, 239, 244, 0.1);
  background: rgba(49, 48, 51, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.m-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  background: var(--primary-fixed);
  color: var(--on-primary-fixed);
  box-shadow: 0 0 0 0.15em rgba(255, 177, 194, 0.6);
}

.m-avatar span {
  font-size: 1.3em;
  font-weight: 700;
}

.m-owner-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.m-owner-name {
  font-size: 1.2em;
  font-weight: 600;
}

.m-owner-sub {
  font-size: 1.05em;
  opacity: 0.8;
}

.m-owner svg {
  width: 2.2em;
  height: 2.2em;
  fill: currentColor;
  opacity: 0.85;
}

.m-actions {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 2.6em;
  height: 8em;
}

.m-pass,
.m-want {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.m-pass {
  width: 4.8em;
  height: 4.8em;
  background: var(--surface-container);
  color: var(--secondary);
  box-shadow: 0 0.5em 1.2em -0.4em rgba(28, 27, 30, 0.3);
}

.m-pass svg {
  width: 2.3em;
  height: 2.3em;
  fill: currentColor;
}

.m-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}

.m-offer img {
  width: 3.6em;
  height: 3.6em;
  border-radius: 1em;
  object-fit: cover;
  box-shadow: 0 0 0 0.2em var(--surface-lowest), 0 0 0 0.35em var(--primary-fixed);
}

.m-offer span {
  color: var(--on-surface-variant);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.m-want {
  width: 5.8em;
  height: 5.8em;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 0 0.6em rgba(225, 18, 107, 0.12), 0 0.9em 2em -0.4em rgba(183, 0, 84, 0.55);
}

.m-want svg {
  width: 2.8em;
  height: 2.8em;
  fill: currentColor;
}

.m-hint {
  flex: none;
  margin-bottom: 1em;
  color: var(--on-surface-variant);
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.m-tabs {
  position: relative;
  display: grid;
  flex: none;
  grid-template-columns: repeat(5, 1fr);
  height: 6.4em;
  padding: 0.9em 0.4em 0;
  background: rgba(252, 248, 253, 0.94);
  box-shadow: 0 -0.2em 1.2em rgba(0, 0, 0, 0.05);
}

.m-tabs::after {
  content: '';
  position: absolute;
  bottom: 0.8em;
  left: 50%;
  width: 10em;
  height: 0.45em;
  border-radius: 1em;
  background: var(--on-surface);
  transform: translateX(-50%);
}

.m-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  color: var(--on-surface-variant);
}

.m-tab svg {
  width: 2.2em;
  height: 2.2em;
  fill: currentColor;
}

.m-tab span {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.m-tab-on {
  color: var(--primary);
}

.m-tab-on span {
  font-weight: 700;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

.step {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-card);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-num {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step h3 {
  margin-top: 20px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 8px;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

/* ---------- Styles ---------- */

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .style-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

.style-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.style-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 12px;
}

.style-meta h3 {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--tertiary-fixed);
  color: var(--on-tertiary-fixed);
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.style-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--primary-container), var(--primary));
  color: var(--on-primary);
  box-shadow: 0 20px 40px -24px rgba(183, 0, 84, 0.7);
}

.style-cta .icon-circle {
  background: rgba(255, 255, 255, 0.18);
  color: var(--on-primary);
}

.style-cta h3 {
  margin-top: 20px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.style-cta p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.style-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.style-cta a:focus-visible {
  outline-color: var(--on-primary);
}

.style-cta a .icon {
  width: 20px;
  height: 20px;
}

/* ---------- My Closet ---------- */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 96px;
  }

  /* The card sits left of the copy on wide screens, after it on phones. */
  .closet-visual {
    order: -1;
  }
}

.closet-card {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-card), 0 40px 80px -48px rgba(63, 0, 25, 0.35);
}

.closet-label {
  margin: 4px 4px 12px;
  color: var(--primary);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closet-photo {
  position: relative;
}

.closet-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.photo-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(28, 27, 30, 0.65);
  color: #ffffff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.closet-body {
  padding: 16px 4px 4px;
}

.closet-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chip-soft {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-fixed);
  color: var(--on-primary-fixed);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.closet-note {
  margin-top: 12px;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 20px;
}

.closet-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 16px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.closet-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.features {
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  gap: 16px;
}

.feature h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.feature p {
  margin-top: 4px;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

/* ---------- Safety ---------- */

.safety-grid {
  display: grid;
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .safety-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
  }
}

.safety-item {
  display: flex;
  gap: 16px;
}

.safety-item h3 {
  padding-top: 2px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.safety-item p {
  margin-top: 4px;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

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

.faq-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }

  .faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.faq-aside a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq[open] summary .icon {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 20px 20px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.faq-body a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---------- Download ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  color: var(--on-primary);
  text-align: center;
  box-shadow: 0 40px 80px -40px rgba(183, 0, 84, 0.7);
}

@media (min-width: 768px) {
  .cta-panel {
    padding: 88px 48px;
  }
}

.cta-panel::before,
.cta-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-panel::before {
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
}

.cta-panel::after {
  bottom: -200px;
  left: -140px;
  width: 460px;
  height: 460px;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 13px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 12px 24px -8px rgba(63, 0, 25, 0.5);
}

.cta-panel h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cta-panel p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn-light {
  background: var(--surface-lowest);
  color: var(--primary);
  box-shadow: 0 12px 24px -12px rgba(63, 0, 25, 0.6);
}

.btn-light:hover {
  background: var(--primary-fixed);
}

.cta-panel .btn-light:focus-visible {
  outline-color: var(--on-primary);
}

.soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  background: rgba(63, 0, 25, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  font-weight: 600;
}

@media (max-width: 479px) {
  .cta-actions > * {
    flex: 1 1 100%;
  }
}
