:root {
  --fm-bg: #f4efe7;
  --fm-surface: #fffaf3;
  --fm-surface-strong: #fffdf9;
  --fm-band-odd: transparent;
  --fm-band-even: rgba(255, 249, 241, 0.98);
  --fm-text: #141414;
  --fm-muted: #5e5a54;
  --fm-accent: #5d7cff;
  --fm-accent-soft: rgba(93, 124, 255, 0.14);
  --fm-border: rgba(20, 20, 20, 0.1);
  --fm-shadow: 0 26px 70px rgba(30, 31, 34, 0.08);
  --fm-shadow-soft: 0 14px 34px rgba(30, 31, 34, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body.fm-body {
  min-height: 100vh;
  margin: 0;
  color: var(--fm-text);
  background:
    radial-gradient(circle at top left, rgba(93, 124, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 35%),
    var(--fm-bg);
}

.fm-page {
  overflow-x: clip;
}

.fm-section {
  padding: 3rem 0;
}

.fm-section-odd {
  background: var(--fm-band-odd);
}

.fm-section-even {
  background: var(--fm-band-even);
  border-top: 1px solid rgba(20, 20, 20, 0.06);
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

.fm-shell {
  position: relative;
  padding: 0 0 2.5rem;
}

.fm-media-panel {
  position: relative;
  border-radius: 1.7rem;
  min-height: 18rem;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 232, 0.95)),
    #fff;
  overflow: hidden;
  box-shadow: var(--fm-shadow-soft);
}

.fm-media-panel::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(93, 124, 255, 0.12);
  filter: blur(10px);
}

.fm-product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fm-product-frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 16rem;
  padding: 2.5rem 1rem 1rem;
}

.fm-product-image {
  width: min(100%, 25rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 26px 28px rgba(18, 24, 40, 0.18));
}

.fm-product-placeholder {
  width: min(100%, 25rem);
  min-height: 20rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 1.6rem;
  border: 1px dashed rgba(20, 20, 20, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(239, 232, 220, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.fm-page.is-placeholder .fm-product-placeholder {
  display: flex;
}

.fm-page.is-placeholder .fm-product-image {
  display: none;
}

.fm-sock-shape {
  position: relative;
  width: 10rem;
  height: 14rem;
  border-radius: 4rem 4rem 2.3rem 2.3rem;
  background: linear-gradient(180deg, #fffefb 0%, #ebe2d7 100%);
  border: 1px solid rgba(20, 20, 20, 0.1);
  box-shadow: 0 18px 32px rgba(20, 20, 20, 0.08);
  transform: rotate(-7deg);
}

.fm-sock-shape::before {
  content: "";
  position: absolute;
  right: -1.7rem;
  bottom: 0.8rem;
  width: 5.2rem;
  height: 3.8rem;
  border-radius: 2.2rem 2rem 2rem 1.6rem;
  background: linear-gradient(145deg, #fffefb 0%, #ebe2d7 100%);
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.fm-sock-shape::after {
  content: "FM";
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: var(--fm-accent);
}

.fm-copy {
  padding: 0.35rem 0.25rem 0.2rem 0;
  max-width: 28rem;
}

.fm-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-title {
  margin: 0;
  font-size: clamp(2.9rem, 11vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.fm-subtitle {
  margin: 1rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.16rem, 4.3vw, 1.45rem);
  line-height: 1.3;
}

.fm-bodycopy {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--fm-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.fm-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
}

.fm-price {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fm-price small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-cta,
.fm-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.fm-cta {
  background: var(--fm-text);
  color: #fff;
  box-shadow: 0 16px 24px rgba(20, 20, 20, 0.14);
}

.fm-secondary-cta {
  background: transparent;
  color: var(--fm-text);
  border-color: var(--fm-border);
}

.fm-cta:hover,
.fm-secondary-cta:hover,
.fm-cta:focus-visible,
.fm-secondary-cta:focus-visible {
  transform: translateY(-1px);
}

.fm-cta:hover,
.fm-cta:focus-visible {
  background: var(--fm-accent);
  color: #fff;
}

.fm-cta.is-loading,
.fm-cta[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.92;
}

.fm-cta.is-loading::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: fm-spin 700ms linear infinite;
}

.fm-secondary-cta:hover,
.fm-secondary-cta:focus-visible {
  border-color: rgba(20, 20, 20, 0.3);
  color: var(--fm-accent);
}

.fm-section-label {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-color-options {
  display: grid;
  gap: 0.8rem;
  max-width: 36rem;
}

.fm-color-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  border: 1px solid var(--fm-border);
  border-radius: 1.2rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.fm-color-option,
.fm-waitlist-input {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.fm-color-option:hover,
.fm-color-option:focus-visible {
  border-color: rgba(20, 20, 20, 0.26);
  transform: translateY(-1px);
}

.fm-color-option.is-selected {
  border-color: rgba(93, 124, 255, 0.42);
  background: rgba(93, 124, 255, 0.07);
}

.fm-color-option[data-availability-state="coming-soon"],
.fm-color-option[data-availability-state="planned"] {
  opacity: 0.86;
}

.fm-swatches {
  display: flex;
  gap: 0.45rem;
}

.fm-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.12);
}

.fm-swatch-cream {
  background: #f6f1e8;
}

.fm-swatch-blue {
  background: #5d7cff;
}

.fm-swatch-black {
  background: #111111;
}

.fm-swatch-warm-white {
  background: #f4efe7;
}

.fm-swatch-butter {
  background: #e6c95c;
}

.fm-color-name {
  display: block;
  font-size: 0.98rem;
}

.fm-color-availability {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-color-availability-available {
  color: #2f6f51;
}

.fm-color-availability-coming-soon,
.fm-color-availability-planned {
  color: var(--fm-muted);
}

.fm-selected-indicator {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: transparent;
}

.fm-color-option.is-selected .fm-selected-indicator {
  color: var(--fm-accent);
}

.fm-detail-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fm-detail-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fm-muted);
}

.fm-detail-item::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--fm-accent);
  flex: 0 0 auto;
}

.fm-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.fm-progress-copy {
  margin: 0;
  font-size: 0.98rem;
  max-width: 18rem;
}

.fm-progress-value {
  color: var(--fm-muted);
  font-size: 0.82rem;
}

.fm-progress {
  height: 0.5rem;
  background: rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fm-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fm-accent), rgba(93, 124, 255, 0.45));
}

.fm-lifestyle-grid {
  display: grid;
  gap: 1.5rem;
}

.fm-lifestyle-card {
  position: relative;
  padding: 1rem 0 1.5rem;
  min-height: 11rem;
  overflow: hidden;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.fm-lifestyle-card::before {
  content: "";
  position: absolute;
  inset: auto -1.5rem -2.3rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(93, 124, 255, 0.08);
}

.fm-lifestyle-grid > .fm-lifestyle-card:first-child {
  border-top: 0;
}

.fm-lifestyle-label {
  margin: 0 0 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-lifestyle-media {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--fm-shadow-soft);
}

.fm-lifestyle-image {
  display: block;
  width: 100%;
  height: auto;
}

.fm-lifestyle-title {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.fm-lifestyle-body {
  margin: 0.7rem 0 0;
  max-width: 26ch;
  color: var(--fm-muted);
  line-height: 1.6;
}

.fm-coming-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.fm-site-footer {
  padding: 1.2rem 0 2rem;
}

.fm-site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  color: var(--fm-muted);
}

.fm-site-footer-brand,
.fm-site-footer-note {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fm-coming-block {
  width: min(100%, 34rem);
  padding: 0.5rem 0;
}

.fm-coming-title {
  margin: 0;
  font-size: clamp(3rem, 12vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.fm-coming-subtitle {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 4.4vw, 1.5rem);
}

.fm-coming-body {
  margin: 1rem 0 1.5rem;
  color: var(--fm-muted);
  line-height: 1.65;
  max-width: 32rem;
}

.fm-waitlist-form {
  margin: 0 0 1.25rem;
}

.fm-waitlist-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-waitlist-row {
  display: grid;
  gap: 0.75rem;
}

.fm-waitlist-input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--fm-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--fm-text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fm-waitlist-input:focus {
  border-color: rgba(93, 124, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(93, 124, 255, 0.1);
}

.fm-cta-inline {
  width: 100%;
}

.fm-waitlist-feedback {
  min-height: 1.4rem;
  margin: 0.7rem 0 0;
  color: var(--fm-accent);
  font-size: 0.92rem;
}

.fm-waitlist-feedback.is-error {
  color: #9f3c32;
}

@keyframes fm-spin {
  to {
    transform: rotate(360deg);
  }
}

.fm-footer-note {
  margin-top: 1rem;
  color: var(--fm-muted);
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .fm-shell {
    padding: 0 0 4rem;
  }

  .fm-section {
    padding: 4.75rem 0;
  }

  .fm-copy {
    padding: 1.2rem 1rem 0.4rem;
  }

  .fm-media-panel {
    min-height: 36rem;
    padding: 1.35rem;
  }

  .fm-product-frame {
    min-height: 31rem;
    padding-top: 3.2rem;
  }

  .fm-product-placeholder {
    min-height: 29rem;
  }

  .fm-lifestyle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .fm-lifestyle-card {
    border-top: 0;
    padding: 1.15rem 0 1.6rem;
  }

  .fm-price-row {
    flex-direction: row;
    align-items: center;
  }

  .fm-site-footer {
    padding: 1.4rem 0 2.6rem;
  }

  .fm-waitlist-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .fm-cta-inline {
    width: auto;
  }
}
