/* ============================================================
   LOOP — Thailand social fashion rental marketplace
   Design system
   ============================================================ */

:root {
  /* Brand palette */
  --lavender: #A78BFA;
  --purple: #8B5CF6;
  --purple-dark: #7C3AED;
  --light-lavender: #F5F3FF;
  --lavender-100: #EDE9FE;
  --lavender-50: #FAF8FF;
  --pink: #F9A8D4;
  --pink-soft: #FCE7F3;
  --pink-deep: #EC6FB4;

  --ink: #1F2937;
  --ink-soft: #5B6472;
  --ink-faint: #8A92A0;
  --white: #FFFFFF;

  --border: rgba(124, 58, 237, 0.12);
  --border-strong: rgba(124, 58, 237, 0.22);

  /* Soft shadows */
  --shadow-sm: 0 1px 2px rgba(124, 58, 237, 0.06), 0 2px 8px rgba(124, 58, 237, 0.05);
  --shadow-md: 0 6px 20px rgba(124, 58, 237, 0.10), 0 2px 6px rgba(124, 58, 237, 0.06);
  --shadow-lg: 0 18px 50px rgba(124, 58, 237, 0.16), 0 6px 16px rgba(124, 58, 237, 0.08);
  --shadow-pink: 0 14px 36px rgba(236, 111, 180, 0.22);
  --shadow-purple: 0 12px 30px rgba(139, 92, 246, 0.34);

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1180px;
  --gutter: 24px;

  --font-display: 'Prompt', 'Noto Sans Thai Looped', system-ui, sans-serif;
  --font-body: 'Noto Sans Thai Looped', 'Prompt', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(56px, 9vw, 116px) 0;
  position: relative;
}
.section--lavender { background: var(--light-lavender); }
.section--tint {
  background: linear-gradient(180deg, var(--lavender-50) 0%, var(--white) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-dark);
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink-deep);
  /* Optically center the dot against Latin-cap eyebrow text */
  transform: translateY(-1.5px);
}

.section-head { max-width: 720px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-title {
  font-size: clamp(28px, 4.4vw, 46px);
  margin-top: 18px;
}
.section-lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 28px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(139,92,246,0.42); }

.btn--pink {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn--pink:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(236,111,180,0.34); }

.btn--ghost {
  background: var(--white);
  color: var(--purple-dark);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--purple); background: var(--lavender-50); transform: translateY(-2px); }

.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, var(--lavender-100), var(--pink-soft));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.0) 0px,
    rgba(255,255,255,0.0) 13px,
    rgba(255,255,255,0.45) 13px,
    rgba(255,255,255,0.45) 14px
  );
  opacity: 0.5;
  z-index: 0;
}
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.ph--pink { background: linear-gradient(135deg, var(--pink-soft), #FFE4EF); }
.ph--violet { background: linear-gradient(135deg, var(--lavender-100), #DFD7FF); }
.ph--mix { background: linear-gradient(135deg, #E7DEFF, #FFDDEC); }
.ph__tag {
  position: relative;
  z-index: 1;
  margin: 12px;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--purple-dark);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

/* Framed product screenshot inside a step card */
.step__shot {
  background: var(--white);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.step__shot::before { display: none; }
.step__shot .ph__img {
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 12px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.chip .chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); }
.chip:hover { transform: translateY(-2px); border-color: var(--border-strong); }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 9px;
  color: var(--ink);
}
.field__hint { color: var(--ink-faint); font-weight: 400; font-size: 13.5px; }

.input, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.14);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

/* selectable pill (multi/single choice) */
.opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all .16s ease;
}
.opt:hover { border-color: var(--purple); color: var(--ink); }
.opt--active {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.opt-group { display: flex; flex-wrap: wrap; gap: 10px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 44px);
}

/* ---------- Privacy / consent note ---------- */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: left;
}
.form-consent svg {
  flex-shrink: 0;
  /* center the shield on the first text line (Thai consonant band) */
  margin-top: 2px;
  color: var(--purple);
  opacity: 0.85;
}

/* ---------- Misc ---------- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.divider-note {
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- Early Access benefits ---------- */
.benefit-chip {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 18px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--lavender-100);
  border: 1px solid rgba(139,92,246,0.18);
  color: var(--purple-dark);
  font-size: 14.5px; font-weight: 600;
  line-height: 1.3;
}
.benefit-chip svg { flex-shrink: 0; transform: translateY(1px); }

.benefit-highlight {
  display: flex; align-items: center; gap: 13px;
  margin-top: 22px;
  padding: 15px 18px; border-radius: 16px;
  background: var(--lavender-50);
  border: 1px solid rgba(139,92,246,0.18);
  color: var(--ink);
  font-size: 15.5px; font-weight: 600; line-height: 1.5;
  text-wrap: pretty;
}
.benefit-highlight__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--purple-dark);
  box-shadow: 0 2px 6px rgba(124,58,237,0.12);
}
.benefit-highlight--pink {
  background: var(--pink-soft);
  border-color: rgba(236,111,180,0.22);
}
.benefit-highlight--pink .benefit-highlight__icon { color: var(--pink-deep); }

.form-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--lavender-100);
  color: var(--purple-dark);
  font-size: 13.5px; font-weight: 600; line-height: 1.3;
}
.form-badge svg { flex-shrink: 0; transform: translateY(-1px); }
.form-badge--pink { background: var(--pink-soft); color: var(--pink-deep); }

/* Founding Seller form header */
.form-head { margin-bottom: 22px; }
.form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink);
}
.form-intro {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Small disclaimer under seller submit button */
.form-disclaimer {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-faint);
  text-align: left;
}
.form-disclaimer + .form-consent { margin-top: 8px; }

/* Floating decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal--in { opacity: 1; transform: none; }

.fade-up { animation: fadeUp .6s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
