/* Shopify App page — hero film, steps, brand wall, pricing */

/* HERO — film as the centrepiece; content sits above the glow */
.hero-eyebrow, .hero h1, .hero-sub, .hero-cta, .signal-row { position: relative; }
.hero-sub { max-width: 600px; }
.hero-cta { margin-bottom: 80px; }
.hero-film { position: relative; max-width: 1040px; margin: 0 auto 80px; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid #2A2A2A; background: #0E0C0A; box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 140px rgba(255,45,120,0.06); }
.hero-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.js .hero-film { animation: heroRise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: 0.4s; }
.js .signal-row { animation-delay: 0.52s; }

/* GRADIENT EMPHASIS */
.pricing-title em, .brand-you span, .calc-margin-value {
  font-style: italic;
  background: linear-gradient(135deg, #888 0%, #C8783A 20%, #FF2D78 45%, #E8C547 70%, #7B8FB0 90%, #888 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

/* SECTION BASICS */
.label-on-dark { color: #666; }

/* STEPS */
.steps-section { padding: 130px 0; background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--bd); border: 2px solid var(--bd); list-style: none; }
.step { background: var(--bg); padding: 52px 44px 56px; transition: background 0.25s; }
.step:hover { background: var(--bg-card); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: #999; margin-bottom: 28px; display: flex; align-items: center; gap: 16px; transition: color 0.3s; }
.step-num::after { content: ''; height: 1px; flex: 1; background: #999; transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.step:hover .step-num { color: var(--fg); }
.step:hover .step-num::after { transform: scaleX(1); }
.step h3 { font-family: var(--serif); font-size: 36px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 18px; }
.step p { font-size: 15px; color: var(--fg2); line-height: 1.7; font-weight: 300; }

/* Steps — scroll reveal */
.js .step { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.25s; }
.js .step:nth-child(2) { transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s, background 0.25s; }
.js .step:nth-child(3) { transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s, background 0.25s; }
.js .step.in-view { opacity: 1; transform: translateY(0); }

/* BRANDS */
.brands-section { background: var(--bg-card); padding: 130px 0; }
/* Columns are minmax(0, 1fr) and each logo is laid over its cell rather than in it, so a logo's own
   size can never widen a column or stretch a row — left to size themselves, they pushed the wall off narrow screens */
.brands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--bd); border: 2px solid var(--bd); list-style: none; }
.brand { position: relative; background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 22px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; padding: inherit; object-fit: scale-down; filter: grayscale(1) contrast(1.25); opacity: 0.8; transition: filter 0.5s ease, opacity 0.5s ease; }
.brand-soft img { filter: grayscale(1) brightness(0.5) contrast(1.7); }
.brand:hover img { filter: grayscale(0) contrast(1); opacity: 1; }
.brand-you span { font-family: var(--serif); font-size: 26px; letter-spacing: -0.015em; line-height: 1.1; padding: 0 2px; }

/* PRICING */
.pricing-section { background: var(--bg-dark); padding: 130px 0; position: relative; }
.pricing-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 28% 60%, rgba(200,120,58,0.08) 0%, transparent 70%); pointer-events: none; }
.pricing-section .container { position: relative; }
.pricing-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.pricing-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.5vw, 80px); line-height: 1.01; letter-spacing: -0.025em; color: #F7F4EF; }
.pricing-desc { font-size: 17px; color: rgba(247,244,239,0.5); line-height: 1.65; font-weight: 300; max-width: 440px; margin-bottom: 28px; }
.pricing-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pricing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.pricing[hidden] { display: none; }
.pricing-fallback { font-size: 15px; color: rgba(247,244,239,0.55); line-height: 1.65; font-weight: 300; max-width: 440px; }

/* Pricing — garment stage + margin */
.stage { position: sticky; top: 96px; }
.stage-frame { aspect-ratio: 1/1; background: var(--bg-card); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 14px; }
.stage-frame img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.stage-frame img.is-swapping { opacity: 0; transform: scale(0.97); }
.calc { padding-top: 28px; color: #F7F4EF; }
.calc-select {
  -webkit-appearance: none; appearance: none; width: 100%;
  font-family: var(--serif); font-size: 30px; letter-spacing: -0.015em; line-height: 1.15; color: #F7F4EF;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23F7F4EF' stroke-opacity='.6' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 2px center;
  border: 0; border-radius: 0; padding: 0 32px 0 0; cursor: pointer; text-overflow: ellipsis;
}
.calc-select option { font-family: var(--sans); font-size: 15px; color: #111; background: #fff; }
.calc-select:focus-visible { outline: 2px solid #F7F4EF; outline-offset: 6px; }
.calc-fabric { font-size: 14px; color: rgba(247,244,239,0.45); font-weight: 300; margin-top: 8px; }
.calc-rows { margin-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px; }
.calc-row dt, .calc-row label { color: rgba(247,244,239,0.55); font-weight: 300; }
.calc-row dd { font-variant-numeric: tabular-nums; }
.calc-input { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(255,255,255,0.28); border-radius: 4px; padding: 6px 12px; transition: border-color 0.2s; }
.calc-input:focus-within { border-color: #F7F4EF; }
.calc-input input { width: 64px; background: transparent; border: 0; outline: 0; color: #F7F4EF; font: inherit; font-variant-numeric: tabular-nums; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.calc-input input::-webkit-outer-spin-button, .calc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-margin { padding-top: 26px; }
.calc-margin-label { display: block; font-size: 15px; color: rgba(247,244,239,0.55); font-weight: 300; }
.calc-margin-value { display: inline-block; font-family: var(--serif); font-size: clamp(60px, 6.4vw, 92px); line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; padding-right: 0.08em; }
.calc-margin-note { display: block; font-size: 13px; color: rgba(247,244,239,0.4); font-weight: 300; }

/* Pricing — rate list (each row selects the garment on stage) */
.rates { border-top: 1px solid rgba(255,255,255,0.14); }
.rates-head, .rate { display: grid; grid-template-columns: minmax(0, 1fr) 84px 92px; gap: 16px; align-items: center; padding: 0 22px; }
.rates-head { height: 46px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,244,239,0.35); }
.rates-head span + span, .rate-num { text-align: right; }
.rate { position: relative; min-height: 62px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: background 0.2s; }
.rate::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #C8783A, #FF2D78, #E8C547); transform: scaleY(0); transform-origin: top; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.rate:hover { background: rgba(255,255,255,0.04); }
.rate:has(input:checked) { background: rgba(255,255,255,0.07); }
.rate:has(input:checked)::before { transform: scaleY(1); }
.rate:has(input:focus-visible) { outline: 2px solid #F7F4EF; outline-offset: -2px; }
.rate-title { display: block; font-size: 15px; color: rgba(247,244,239,0.72); transition: color 0.2s; }
.rate:hover .rate-title, .rate:has(input:checked) .rate-title { color: #F7F4EF; }
.rate-fabric { display: block; font-size: 12px; color: rgba(247,244,239,0.36); font-weight: 300; margin-top: 2px; }
.rate-num { font-size: 15px; color: rgba(247,244,239,0.72); font-variant-numeric: tabular-nums; }
.rate:has(input:checked) .rate-num { color: #F7F4EF; }
.rates-note { font-size: 13px; color: rgba(247,244,239,0.4); font-weight: 300; margin-top: 22px; padding: 0 22px; }

/* FINAL CTA */
.final-cta p { max-width: 480px; }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .js .step { opacity: 1; transform: none; transition: none; }
  .js .hero-film, .js .signal-row { animation: none; }
  .stage-frame img, .brand img, .rate::before { transition: none; }
}

/* MOBILE */
@media (max-width: 900px) {
  /* Hero */
  .hero-cta { margin-bottom: 44px; }
  .hero-film { margin-bottom: 44px; border-radius: 10px; }

  /* Sections */
  .steps-section, .brands-section, .pricing-section { padding: 72px 0; }

  /* Steps */
  .steps { grid-template-columns: 1fr; }
  .step { padding: 36px 24px 40px; }
  .step h3 { font-size: 28px; }

  /* Brands */
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand { padding: 16px; }
  .brand-you { grid-column: 1 / -1; aspect-ratio: auto; padding: 30px 16px; }

  /* Pricing */
  .pricing-head { grid-template-columns: 1fr; gap: 28px; align-items: start; margin-bottom: 40px; }
  .pricing-title { font-size: clamp(34px, 9vw, 48px); }
  .pricing-desc { font-size: 15px; }
  .pricing-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .pricing-actions .btn { width: 100%; justify-content: center; }
  .pricing { grid-template-columns: 1fr; gap: 48px; }
  .stage { position: static; }
  .stage-frame { aspect-ratio: auto; height: min(calc(100vw - 40px), 440px); padding: 10px; border-radius: 10px; }
  .calc-select { font-size: 25px; }
  .calc-margin-value { font-size: clamp(56px, 16vw, 72px); }
  .rates-head, .rate { grid-template-columns: minmax(0, 1fr) 52px 70px; gap: 12px; padding: 0 12px; }
  .rates-note { padding: 0 12px; }

  /* Reviews */
  .reviews { margin-top: 40px; }
}
@media (max-width: 520px) {
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand { padding: 12px; }
  /* Back to a regular cell — min-height: 0 keeps its two lines of text from making its row taller than the rest */
  .brand-you { grid-column: auto; aspect-ratio: 4/3; min-height: 0; padding: 12px; text-align: center; }
  .brand-you span { font-size: 22px; }
}
