/* Collab marketing site — shared styles.
   Dark editorial, lime + lilac accents, warm paper, pill rounding, Manrope.
   Per-page accent is themed via --accent (see body.theme-*). */

:root {
  --ink: #111113;
  --surface: #1b1b1e;
  --surface-high: #26262b;
  --paper: #f4f0e7;
  --cloud: #fafaf7;
  --lime: #c9f24e;
  --lilac: #dca7e6;
  --forest: #16261c;
  --text: #f4f2ec;
  --muted: #9a9aa2;
  --line: rgba(255, 255, 255, 0.10);
  --accent: var(--lime);
  --maxw: 1120px;
  --radius: 24px;
}

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

body {
  font-family: 'Manrope', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.theme-lilac { --accent: var(--lilac); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Material Symbols (matches the app's icon set). */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  direction: ltr; display: inline-block; vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
.muted { color: var(--muted); }
.lime { color: var(--lime); }
.lilac { color: var(--lilac); }
.accent { color: var(--accent); }

html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { letter-spacing: 0; line-height: 1.28; }
html[lang="th"] .hero h1 { line-height: 1.2; }
html[lang="th"] body, html[lang="th"] .lead, html[lang="th"] p { line-height: 1.7; }
html[lang="th"] .eyebrow { letter-spacing: 0.4px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.2px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, filter .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: #17171a; }
.btn-lilac { background: var(--lilac); color: #17171a; }
.btn-paper { background: var(--paper); color: #17171a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-lime:hover, .btn-lilac:hover, .btn-paper:hover, .btn-submit:hover { filter: brightness(1.06); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(17, 17, 19, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 1px; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--lime);
  display: grid; place-items: center; color: #17171a;
}
.brand .mark .material-symbols-outlined { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a.pill {
  padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .15s ease;
}
.nav-links a.pill.active { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.nav-links a.pill:hover { color: var(--text); }

/* Language toggle */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.lang button {
  font-family: inherit; cursor: pointer; border: none; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 12.5px; letter-spacing: .4px;
  padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.lang button.active { background: var(--accent); color: #17171a; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 78px 0 44px; position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -140px; left: 50%; transform: translateX(-50%);
  width: 760px; max-width: 92vw; height: 480px;
  background: var(--accent); opacity: 0.08; filter: blur(110px); border-radius: 999px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--muted); margin-top: 22px; max-width: 33ch; }
.hero-cta { margin-top: 30px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text);
}
.badge .i { color: var(--accent); }
.badge .material-symbols-outlined { font-size: 17px; }

/* hero collage */
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage .card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--surface);
}
.collage .card img { width: 100%; height: 100%; object-fit: cover; }
.collage .tall { grid-row: span 2; aspect-ratio: 3/5; }
.collage .short { aspect-ratio: 4/3; }
.collage .tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; backdrop-filter: blur(6px);
}
.collage .reward {
  position: absolute; left: 12px; bottom: 12px; background: var(--accent); color: #17171a;
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.collage .reward .material-symbols-outlined { font-size: 16px; }

/* ── Sections ────────────────────────────────────────────── */
section.block { padding: 72px 0; }
section.block[id] { scroll-margin-top: 88px; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* icon chip (features + index concepts) */
.ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
}
.ic .material-symbols-outlined { font-size: 24px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #17171a;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 18px; transition: transform .2s ease, border-color .2s ease;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.stat .big { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.stat .big.accent { color: var(--accent); }
.stat .lbl { color: var(--muted); margin-top: 6px; font-size: 14px; }

/* categories */
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px;
  transition: border-color .2s ease, transform .2s ease;
}
.cat:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.cat .material-symbols-outlined { font-size: 18px; color: var(--accent); }

/* ── CTA / waitlist ──────────────────────────────────────── */
.cta {
  border-radius: 32px; padding: 56px clamp(24px, 5vw, 64px); position: relative; overflow: hidden;
}
.cta.lime { background: var(--lime); color: #14140f; }
.cta.lilac { background: var(--lilac); color: #17131a; }
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 18ch; }
.cta p { margin-top: 14px; font-size: 17px; opacity: .8; max-width: 46ch; }

.waitlist { display: flex; gap: 10px; margin-top: 28px; max-width: 480px; flex-wrap: wrap; }
.waitlist input {
  flex: 1; min-width: 220px; padding: 16px 20px; border-radius: 999px; border: none;
  font-family: inherit; font-size: 15px; background: rgba(0, 0, 0, .08); color: #17171a;
}
.waitlist input::placeholder { color: rgba(0, 0, 0, .45); }
.waitlist .btn-submit { background: #17171a; color: var(--cloud); border: none; }
.form-note { margin-top: 12px; font-size: 13px; opacity: .7; }
.form-ok { display: none; margin-top: 16px; font-weight: 700; align-items: center; gap: 7px; }
.form-ok.show { display: inline-flex; }
.form-ok .material-symbols-outlined { font-size: 19px; }

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 20px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 20px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
footer .links a:hover { color: var(--text); }

/* split chooser (index) */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.choice {
  border-radius: 28px; overflow: hidden; position: relative; min-height: 380px;
  display: flex; align-items: flex-end; border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.choice:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.choice:hover img { transform: scale(1.04); }
.choice .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .82)); }
.choice .inner { position: relative; padding: 30px; width: 100%; }
.choice h2 { font-size: 30px; }
.choice p { color: #d9d9d4; margin: 10px 0 18px; max-width: 32ch; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .collage { max-width: 460px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .chooser { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Featured collab cards (mirror the app's opportunity card) ───────────── */
.opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.opp {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; border: 1px solid var(--line); display: block;
}
.opp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.opp:hover img { transform: scale(1.05); }
.opp .o-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06) 35%, rgba(0,0,0,.55) 68%, rgba(0,0,0,.9)); }
.opp .o-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; }
.opp .o-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cloud);
}
.opp .o-tag .material-symbols-outlined { font-size: 14px; }
.opp .o-body { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.opp .o-reward {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: #17171a; font-size: 12.5px; font-weight: 700; margin-bottom: 10px;
}
.opp .o-reward .material-symbols-outlined { font-size: 15px; }
.opp .o-biz { color: var(--cloud); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.opp .o-brief { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; margin-top: 6px; }
.opp .o-brief .material-symbols-outlined { font-size: 15px; color: var(--accent); }

/* ── Photo category tiles ───────────────────────────────────────────────── */
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-cards.cols3 { grid-template-columns: repeat(3, 1fr); }
.cat-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--line); display: block; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cc-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.82)); }
.cat-card .cc-label { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 7px; color: var(--cloud); font-weight: 700; font-size: 15px; }
.cat-card .cc-label .material-symbols-outlined { font-size: 18px; color: var(--accent); }

/* ── Alternating editorial split ────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5/4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split.rev .split-media { order: 2; }
.split-text h2 { font-size: clamp(26px, 3.4vw, 38px); }
.split-text p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }
.split-list { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.split-list .li { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.split-list .li .material-symbols-outlined { color: var(--accent); font-size: 21px; }
.split .opp { max-width: 360px; margin: 0 auto; width: 100%; }

/* ── Photo gallery band ─────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .g { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 1; border: 1px solid var(--line); }
.gallery .g.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery .g:hover img { transform: scale(1.05); }

@media (max-width: 880px) {
  .opp-grid { grid-template-columns: 1fr 1fr; }
  .cat-cards, .cat-cards.cols3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.rev .split-media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .opp-grid { grid-template-columns: 1fr; }
}
