:root {
  --cream:      #FAF7F3;
  --cream-2:    #EDE9E3;
  --ink:        #44433F;   /* soft, never black */
  --ink-soft:   #847F78;
  --rose:       #6FA897;   /* calm eucalyptus primary (unisex) */
  --rose-deep:  #5E9686;
  --card:       #FFFFFF;
  --shadow:     0 10px 30px rgba(80, 88, 92, 0.10);
  --shadow-sm:  0 4px 14px rgba(80, 88, 92, 0.08);
  --accent:     #9CC5B6;   /* live preview accent (changes with selection) */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 50% -10%, #ECF2EE 0%, rgba(236,242,238,0) 55%),
    radial-gradient(120% 80% at 100% 110%, #E8EEF1 0%, rgba(232,238,241,0) 55%),
    var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

#app { width: 100%; }

/* one screen visible at a time */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 22px;
}
.step-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(env(safe-area-inset-top) + 30px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 30px);
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: calc(env(safe-area-inset-top) + 46px) 0 18px; }
.hero-logo {
  width: min(345px, 92vw);
  height: auto;
  display: block;
  margin: 0 auto 46px;
}
.hero-title {
  font-size: 30px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.hero-sub {
  margin: 16px auto 26px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 340px;
}
.hero-sub strong { color: var(--ink); }
.hero-fine { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 999px;
  padding: 17px 26px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 8px 20px rgba(94, 150, 134, 0.32);
  width: 100%;
}
.btn-primary:active { background: var(--rose-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  width: 100%;
}
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Content blocks ---------- */
.block { padding: 30px 0; }
.block.soft {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  padding: 28px 22px;
  margin: 8px -4px;
  box-shadow: var(--shadow-sm);
}
.block-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 18px;
}
.block-text { text-align: center; color: var(--ink-soft); font-size: 16px; }
.block-text strong { color: var(--ink); }

.pains { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pains li {
  background: var(--card);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 15.5px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.pains li span { font-size: 20px; }

.steps3 { display: flex; flex-direction: column; gap: 16px; }
.step3 { display: flex; align-items: center; gap: 14px; }
.step3 span {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 14px;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.step3 p { font-size: 15.5px; color: var(--ink); }

/* ---------- Price block ---------- */
.price-block { text-align: center; padding: 34px 0 16px; }
.price { font-size: 56px; font-weight: 800; letter-spacing: -1.5px; }
.price-note { color: var(--ink-soft); margin: 0 0 22px; font-size: 15px; }
.reassure { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.reassure li { font-size: 14.5px; color: var(--ink-soft); }
.foot { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 30px 0 40px; }

/* ---------- Step screens ---------- */
.progress {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-bottom: 30px;
}
.progress i {
  width: 28px; height: 5px;
  border-radius: 3px;
  background: var(--cream-2);
  display: inline-block;
}
.progress i.on { background: var(--rose); }

.q-title { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; text-align: center; }
.q-sub { text-align: center; color: var(--ink-soft); margin: 8px 0 28px; font-size: 16px; }

.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px 4px; }
.field input {
  width: 100%;
  border: none;
  background: #fff;
  border-radius: 16px;
  padding: 17px 18px;
  font-size: 17px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  outline: none;
  font-family: inherit;
}
.field input:focus { box-shadow: 0 0 0 3px rgba(111,168,151,.35), var(--shadow-sm); }
.field input::placeholder { color: #C3B9B3; }

/* name field with locked suffix */
.namefield-wrap { display: flex; justify-content: center; }
.namefield {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.namefield:focus-within { box-shadow: 0 0 0 3px rgba(111,168,151,.35), var(--shadow-sm); }
.namefield input {
  border: none; background: transparent; outline: none;
  font-size: 18px; font-weight: 700; color: var(--ink);
  font-family: inherit; padding: 0; min-width: 2ch;
}
.namefield input::placeholder { color: #C3B9B3; font-weight: 500; }
.name-suffix { font-size: 18px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }

.hint-line { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; padding: 0 4px; }
.hint-line.center { text-align: center; margin-top: 16px; }
.err { color: #C58468; font-size: 14px; font-weight: 600; min-height: 20px; text-align: center; margin-top: 4px; }

.nav { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }

/* ---------- Look ---------- */
.look-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.look-card {
  border: 2.5px solid transparent;
  background: #fff;
  border-radius: 22px;
  padding: 28px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .18s ease, transform .12s ease;
}
.look-card:active { transform: scale(.97); }
.look-card.sel { border-color: var(--rose); }
.look-emoji { font-size: 46px; margin-bottom: 10px; }

/* ---------- Color swatches ---------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  justify-items: center;
  margin-bottom: 8px;
}
.swatch {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease;
}
.swatch:active { transform: scale(.92); }
.swatch.sel { transform: scale(1.06); }
.swatch.sel::after {
  content: '✓';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 22px; font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.swatch-label {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 600;
}
.swatch-wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------- Review ---------- */
.preview-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.preview-dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}
.preview-name { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.preview-meta { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

.summary { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.summary li {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); font-size: 15px;
}
.summary li b { font-weight: 700; }
.summary .sw-mini { width: 18px; height: 18px; border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 6px; }

.price-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; padding: 6px 4px 20px;
}
.price-line strong { font-size: 22px; }
.btn-pay { margin-bottom: 8px; }

/* ---------- Thank you / e-Transfer ---------- */
.thanks { text-align: center; }
.thanks-emoji { font-size: 54px; margin-bottom: 14px; }
.etransfer-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  margin: 22px 0 24px;
}
.et-line { font-size: 16px; color: var(--ink); }
.et-line strong { font-weight: 800; }
.et-email {
  margin: 14px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--rose-deep);
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.btn-copy {
  border: none;
  background: var(--cream-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  font-family: inherit;
  transition: transform .12s ease, background .2s ease;
}
.btn-copy:active { transform: scale(.95); }
.btn-copy.done { background: var(--rose); color: #fff; }
.et-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }
.thanks-foot { font-size: 15.5px; color: var(--ink); margin-bottom: 20px; line-height: 1.55; }
.thanks-note { margin: 0 0 24px; padding-top: 18px; border-top: 1px solid var(--line, #ECE8E2); }
.thanks-note p { font-size: 15px; line-height: 1.6; color: var(--ink); }
.thanks-sign { margin-top: 10px; font-weight: 700; font-style: italic; }

/* ---------- Rotate hint ---------- */
.rotate { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  .rotate {
    display: flex; position: fixed; inset: 0; z-index: 999;
    background: var(--cream); align-items: center; justify-content: center; text-align: center;
  }
  #app { display: none; }
}
.rotate-emoji { font-size: 44px; margin-bottom: 12px; }
.rotate-card p { font-size: 19px; font-weight: 700; }
.rotate-card span { color: var(--ink-soft); font-size: 14px; }
