/* ==========================================================================
   FurnitureFlow — landing.css (page-specific; tokens/components in brand.css)
   ========================================================================== */

body { overflow-x: hidden; }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--ff-line); }

.ff-nav-links { display: contents; }

h1, h2, h3 {
  font-family: var(--ff-font-display);
  color: var(--ff-ink);
  margin: 0;
  text-wrap: balance;
}

.ff-section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.ff-section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.18;
  margin-top: 10px;
}

.ff-section-head p {
  margin: 14px 0 0;
  color: var(--ff-mut);
  font-size: 16.5px;
  max-width: 58ch;
}

.ff-section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 520px;
}

/* ----------------------------------- Hero ---------------------------------- */
.ff-hero { padding: 64px 0 96px; }

.ff-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.ff-hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 13ch;
}

.ff-hero-lede {
  margin: 22px 0 0;
  font-size: 18px;
  color: var(--ff-mut);
  max-width: 46ch;
}

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

/* Before/after comparison slider — required markup/classes per spec. */
.ba-slider {
  position: relative;
  border-radius: var(--ff-radius);
  overflow: hidden;
  box-shadow: var(--ff-shadow);
  border: 1px solid var(--ff-line);
  aspect-ratio: 3 / 2;
  background: var(--ff-line);
}

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

.ba-before { position: absolute; inset: 0; }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.ba-label {
  position: absolute;
  top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(43, 33, 24, 0.75);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  pointer-events: none;
}

.ba-l1 { left: 12px; }
.ba-l2 { right: 12px; }

/* Visual handle synced by landing.js — a vertical seam + grip, echoing the
   drawer-pull hardware visible in the product photography. Decorative only;
   the invisible full-bleed range input above still owns all interaction. */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #fff;
  opacity: 0.9;
}

.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(43, 33, 24, 0.3);
}

/* Outward-pointing chevrons signal "drag me left/right", avoiding any
   resemblance to a media play/pause control. */
.ba-grip::before,
.ba-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}

.ba-grip::before {
  left: 9px;
  border-right: 6px solid var(--ff-acc);
}

.ba-grip::after {
  right: 9px;
  border-left: 6px solid var(--ff-acc);
}

.ff-hero-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ff-mut);
  text-align: center;
}

/* -------------------------------- Feature cards ----------------------------- */
.ff-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ff-feature {
  padding: 30px 26px;
}

.ff-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ff-radius-sm);
  background: var(--ff-acc-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.ff-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ff-acc-deep);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ff-feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.ff-feature p {
  margin: 0;
  color: var(--ff-mut);
  font-size: 15px;
}

/* ---------------------------------- Steps ---------------------------------- */
.ff-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ff-line);
  border-radius: var(--ff-radius);
  overflow: hidden;
  background: var(--ff-card);
}

.ff-step {
  padding: 32px 28px;
  position: relative;
}

.ff-step + .ff-step { border-left: 1px solid var(--ff-line); }

.ff-step-num {
  font-family: var(--ff-font-display);
  font-size: 34px;
  color: var(--ff-acc);
  opacity: 0.55;
  line-height: 1;
}

.ff-step h3 {
  font-size: 17px;
  margin: 14px 0 8px;
  line-height: 1.3;
}

.ff-step p {
  margin: 0;
  color: var(--ff-mut);
  font-size: 15px;
}

/* --------------------------------- Gallery ---------------------------------- */
.ff-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ff-gallery-item {
  position: relative;
  border-radius: var(--ff-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ff-line);
  aspect-ratio: 3 / 2;
  box-shadow: var(--ff-shadow);
}

.ff-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ff-gallery-item:hover img { transform: scale(1.035); }

.ff-gallery-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(43, 33, 24, 0.72);
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
}

.ff-gallery-footer {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ff-gallery-note {
  color: var(--ff-mut);
  font-size: 14px;
  margin: 0;
}

/* --------------------------------- Pricing ---------------------------------- */
.ff-pricing-wrap { display: flex; justify-content: center; }

.ff-pricing-card {
  max-width: 480px;
  width: 100%;
  padding: 40px 40px 34px;
  text-align: left;
}

.ff-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ff-price {
  font-family: var(--ff-font-display);
  font-size: 42px;
  color: var(--ff-ink);
}

.ff-price-sep {
  color: var(--ff-mut);
  font-size: 16px;
}

.ff-price-setup {
  color: var(--ff-mut);
  font-size: 15px;
  margin: 6px 0 0;
}

.ff-check-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ff-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.ff-check-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--ff-acc);
  transform: rotate(45deg);
}

.ff-founder-note {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: var(--ff-radius-sm);
  background: var(--ff-acc-soft);
  font-size: 14px;
  color: var(--ff-acc-deep);
}

.ff-founder-note strong { display: block; margin-bottom: 4px; }

.ff-pricing-cta { margin-top: 28px; width: 100%; }

/* ------------------------------------ FAQ ------------------------------------ */
.ff-faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ff-line);
}

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

.ff-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 16.5px;
  font-weight: 600;
}

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

.ff-faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--ff-font-display);
  font-size: 22px;
  color: var(--ff-acc);
  transition: transform 0.2s ease;
}

.ff-faq-item[open] summary::after { transform: rotate(45deg); }

.ff-faq-item p {
  margin: 0 0 20px;
  padding: 0 4px;
  color: var(--ff-mut);
  font-size: 15px;
  max-width: 62ch;
}

/* ---------------------------------- Contact ---------------------------------- */
.ff-contact-card {
  padding: 48px 44px;
  text-align: center;
  background: linear-gradient(180deg, var(--ff-card), #fffdfa);
}

.ff-contact-card h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }

.ff-contact-card p {
  margin: 14px auto 0;
  color: var(--ff-mut);
  max-width: 50ch;
  font-size: 16px;
}

.ff-contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.ff-contact-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ff-mut);
}

/* ---------------------------------- Responsive -------------------------------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .ff-hero { padding: 44px 0 64px; }
  .ff-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ff-hero h1 { max-width: none; }
  .ff-features-grid { grid-template-columns: 1fr; }
  .ff-steps-grid { grid-template-columns: 1fr; }
  .ff-step + .ff-step { border-left: none; border-top: 1px solid var(--ff-line); }
  .ff-gallery-grid { grid-template-columns: 1fr 1fr; }
  .ff-gallery-item:nth-child(3) { grid-column: 1 / -1; }
  .ff-pricing-card { padding: 32px 26px 28px; }
  .ff-contact-card { padding: 36px 24px; }
}

@media (max-width: 640px) {
  .ff-nav-links { display: none; }
  .ff-gallery-grid { grid-template-columns: 1fr; }
  .ff-price { font-size: 34px; }
}
