/* ==================================================================
   MyStyla landing page — styles  (VARIANT B — "styling" angle)
   Distinct palette from the money variant: plum / blush / gold.
   Mobile-first, data-light, editorial. No frameworks.
   ================================================================== */

:root {
  --blush:      #FBF1F1;   /* page background */
  --blush-2:    #F5E5E6;
  --ink:        #211A20;   /* aubergine-black */
  --ink-soft:   #4E414C;
  --muted:      #8C7E89;
  --plum:       #7A2E55;   /* primary accent */
  --plum-dark:  #5F2342;
  --gold:       #B8893F;   /* secondary accent */
  --line:       #ECD9DB;
  --white:      #FFFCFC;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 18px 40px -22px rgba(33, 26, 32, .38);
  --shadow-sm:  0 6px 18px -10px rgba(33, 26, 32, .30);

  --maxw: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--blush);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); margin-bottom: .5em; }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--plum); margin-bottom: .8rem;
}
.eyebrow.center { display: block; }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-lede { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--plum-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--blush); }
.btn-text { background: transparent; color: var(--ink-soft); padding-left: 8px; padding-right: 8px; }
.btn-text:hover { color: var(--plum); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; padding: 16px; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 241, 241, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand-sm { font-size: 1.25rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-copy h1 { margin-bottom: .35em; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* phone mock */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 270px; max-width: 78vw; aspect-ratio: 9 / 18.6;
  background: linear-gradient(160deg, #2c2230, #181018);
  border-radius: 38px; padding: 14px; box-shadow: var(--shadow);
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; background: #181018; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 26px; background: var(--blush); padding: 30px 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.ps-greeting { font-size: .82rem; color: var(--muted); margin: 0; }
.ps-q { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; margin: 0 0 4px; }
.ps-outfit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1.05; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; font-size: 1.9rem;
}
.ps-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--ink-soft); }
.ps-tag { background: var(--gold); color: #fff; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.ps-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-btn { text-align: center; font-size: .78rem; font-weight: 600; padding: 9px 6px; border-radius: 999px; }
.ps-btn-ghost { border: 1.5px solid var(--line); color: var(--ink-soft); }
.ps-btn-fill { background: var(--plum); color: #fff; }

/* ---------- strip ---------- */
.strip { background: var(--ink); color: var(--blush); }
.strip-inner { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 30px 22px; }
.strip-item { display: flex; align-items: baseline; gap: 12px; }
.strip-item strong { font-family: var(--serif); font-size: 1.9rem; color: #fff; }
.strip-item span { font-size: .95rem; color: #E6D6D9; }

/* ---------- problem ---------- */
.problem .section-lede { font-size: 1.2rem; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--blush-2);
  color: var(--plum); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- the feeling / value ---------- */
.feel { background: var(--blush-2); }
.feel-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.ticks strong { color: var(--ink); }

.feel-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.fc-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.fc-day { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fc-dot {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--blush-2);
  color: var(--plum); font-weight: 600; font-size: .82rem;
}
.fc-look { flex: 1; color: var(--ink-soft); font-size: .95rem; }
.fc-emoji { font-size: 1.2rem; }
.fc-day-hl { border-bottom: none; margin-top: 6px; background: var(--plum); border-radius: 12px; padding: 14px 16px; }
.fc-day-hl .fc-dot { background: rgba(255,255,255,.18); color: #fff; }
.fc-day-hl .fc-look { color: #fff; font-weight: 500; }

/* ---------- local ---------- */
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.local-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.li-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--blush-2);
  font-size: 1.4rem; font-family: var(--serif); color: var(--plum); margin-bottom: 12px;
}
.local-item h3 { margin-bottom: 4px; }
.local-item p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------- signup ---------- */
.signup { background: var(--ink); }
.signup-card {
  background: var(--blush); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.signup-head { text-align: center; margin-bottom: 28px; }
.signup-head h2 { margin-bottom: .3em; }
.signup-head p { color: var(--ink-soft); margin: 0 auto; max-width: 38em; }
.signup-form { display: grid; gap: 16px; max-width: 460px; margin: 0 auto; }
.field { display: grid; gap: 6px; }
.field label { font-size: .92rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(122, 46, 85, .15);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--plum); }
.consent-popia { color: var(--muted); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-msg { min-height: 1.2em; margin: 0; font-size: .9rem; text-align: center; }
.form-msg.error { color: var(--plum-dark); font-weight: 600; }
.form-msg.pending { color: var(--muted); }

/* ---------- fake-door + price probe steps ---------- */
.signup-step { text-align: center; max-width: 460px; margin: 0 auto; padding: 8px 0; }
.signup-step h3 { font-size: 1.5rem; margin-bottom: .35em; }
.signup-step > p { color: var(--ink-soft); margin: 0 auto 1.4rem; max-width: 34em; }
.signup-step .btn-block { margin-bottom: 8px; }
.step-badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
  background: var(--blush-2); color: var(--plum); font-size: .82rem; font-weight: 600;
}

/* Two columns suits the four price rungs in config.js (2×2), with the
   "only if free" option spanning beneath. Change the column count if you
   change how many rungs the probe offers, or one will sit orphaned. */
.price-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.price-opt {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink);
  padding: 18px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.price-opt span { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.price-opt:hover { border-color: var(--plum); background: var(--blush); }
.price-opt:active { transform: translateY(1px); }
.price-opt-free {
  grid-column: 1 / -1; font-family: var(--sans); font-size: .95rem; font-weight: 600;
  color: var(--ink-soft); padding: 14px;
}
.price-opt-free:hover { color: var(--plum); }
#price-skip { margin-top: 12px; }

.signup-success { text-align: center; max-width: 460px; margin: 0 auto; padding: 12px 0; }
.success-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #fff;
  font-size: 1.8rem; margin-bottom: 14px;
}
.signup-success h3 { font-size: 1.6rem; margin-bottom: .3em; }
.signup-success p { color: var(--ink-soft); margin: 0 auto; max-width: 32em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--blush); padding: 40px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { text-align: center; display: grid; gap: 6px; }
.site-footer .brand { color: var(--blush); margin: 0 auto; }
.footer-tag { color: #E6D6D9; margin: 0; font-size: .95rem; }
.footer-fine { color: var(--muted); font-size: .82rem; margin: 8px auto 0; max-width: 44em; }

/* ==================================================================
   Responsive
   ================================================================== */
@media (min-width: 720px) {
  .strip-inner { grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 34px 22px; }
  .strip-item { flex-direction: column; gap: 4px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 30px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .feel-grid { grid-template-columns: 1.05fr .95fr; }
  .local-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
