/* JoinWme landing — tokens từ theme-terracotta */
:root {
  --lw-primary: #d37a36;
  --lw-primary-hover: #e59a5a;
  --lw-primary-pressed: #b86528;
  --lw-primary-strong: #4a2314;
  --lw-primary-subtle: #f8ebe0;
  --lw-primary-muted: #fbf3ec;
  --lw-primary-border: #efc9a8;
  --lw-bg: #f8f8f8;
  --lw-surface: #ffffff;
  --lw-border: #ebe4de;
  --lw-border-strong: #ddd2c8;
  --lw-text: #4a2314;
  --lw-text-secondary: #6a3a23;
  --lw-text-muted: #8b6a55;
  --lw-text-subtle: #a8907c;
  --lw-text-on-primary: #ffffff;
  --lw-shadow-button: 0 8px 24px rgba(211, 122, 54, 0.28);
  --lw-shadow-card: 0 8px 30px rgba(74, 35, 20, 0.07);
  --lw-gradient-from: #e59a5a;
  --lw-gradient-to: #b86528;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-sans: "Quicksand", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--lw-text);
  background: var(--lw-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lw-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--lw-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--lw-border);
  background: color-mix(in srgb, var(--lw-surface) 92%, transparent);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--lw-primary-strong);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  margin-left: 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--lw-text-muted);
}

.nav-desktop a:hover {
  color: var(--lw-primary-strong);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-actions .btn-ghost {
  display: none;
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--lw-border);
  border-radius: 999px;
  background: var(--lw-surface);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--lw-text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-mobile {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--lw-surface);
  border-bottom: 1px solid var(--lw-border);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  color: var(--lw-text-secondary);
  border-radius: 0.75rem;
}

.nav-mobile .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--lw-gradient-from), var(--lw-gradient-to));
  color: var(--lw-text-on-primary);
  box-shadow: var(--lw-shadow-button);
}

.btn-primary:hover {
  background: var(--lw-primary-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--lw-border-strong);
  color: var(--lw-primary-strong);
}

.btn-outline:hover {
  border-color: var(--lw-primary);
  background: var(--lw-primary-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--lw-text-secondary);
}

.btn-lg {
  min-height: 3.15rem;
  padding-inline: 1.45rem;
  font-size: 1rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(229, 154, 90, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(74, 35, 20, 0.5), transparent 50%),
    linear-gradient(160deg, #6a3a23 0%, #d37a36 48%, #4a2314 100%);
}

/* Khi có ảnh: đặt background-image trên .hero-media::after hoặc img */
.hero-media.has-image .hero-media-fallback {
  background:
    center / cover no-repeat url("../images/hero-meetup.jpg"),
    linear-gradient(160deg, #6a3a23, #d37a36);
}

.hero-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 14, 8, 0.92) 0%,
    rgba(26, 14, 8, 0.45) 42%,
    rgba(26, 14, 8, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 40rem;
  animation: hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-primary);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  color: var(--lw-primary-strong);
  margin-bottom: 0.85rem;
  max-width: 22ch;
  text-wrap: balance;
}

.section-lead {
  color: var(--lw-text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-pain {
  background: var(--lw-surface);
  border-block: 1px solid var(--lw-border);
}

.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pain-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--lw-primary);
  background: var(--lw-primary-muted);
  border-radius: 0 1.1rem 1.1rem 0;
}

.pain-list strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--lw-primary-strong);
}

.pain-list span {
  color: var(--lw-text-muted);
  font-weight: 600;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 650;
  color: var(--lw-text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--lw-primary);
  box-shadow: 0 0 0 4px var(--lw-primary-subtle);
}

.illus-slot {
  margin: 0;
}

.illus-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  border: 1.5px dashed var(--lw-primary-border);
  background:
    linear-gradient(145deg, var(--lw-primary-muted), var(--lw-primary-subtle));
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
  color: var(--lw-text-muted);
  font-weight: 700;
}

.illus-placeholder small {
  font-size: 0.75rem;
  color: var(--lw-text-subtle);
  font-weight: 600;
}

.illus-slot figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--lw-text-subtle);
  text-align: center;
}

.illus-wide .illus-placeholder {
  aspect-ratio: 21 / 9;
  margin-top: 2.5rem;
}

.section-how {
  background: var(--lw-surface);
  border-block: 1px solid var(--lw-border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

.step {
  padding: 1.35rem 1.4rem;
  border-radius: 1.35rem;
  background: var(--lw-bg);
  border: 1px solid var(--lw-border);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--lw-primary);
  margin-bottom: 0.55rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--lw-primary-strong);
}

.step p {
  color: var(--lw-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid article {
  padding: 1.35rem 1.4rem;
  border-radius: 1.35rem;
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow-card);
}

.feature-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--lw-primary-strong);
}

.feature-grid p {
  color: var(--lw-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.section-audience {
  background: linear-gradient(180deg, var(--lw-primary-muted), var(--lw-bg));
}

.audience-row {
  display: grid;
  gap: 1rem;
}

.audience-row article {
  padding: 1.5rem 1.4rem;
  border-radius: 1.35rem;
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
}

.audience-row h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.audience-row p {
  color: var(--lw-text-muted);
  font-weight: 600;
}

.section-cta {
  padding-top: 2rem;
}

.cta-panel {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, var(--lw-primary-strong), #6a3a23 55%, var(--lw-primary-pressed));
  color: #fff;
  box-shadow: var(--lw-shadow-card);
}

.cta-logo {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.1rem;
}

.cta-panel h2 {
  color: #fff;
  max-width: none;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.cta-panel > p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

.cta-panel .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-panel .hero-cta {
  justify-content: center;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.faq-list details {
  border: 1px solid var(--lw-border);
  border-radius: 1.1rem;
  background: var(--lw-surface);
  padding: 0.25rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 1rem 0;
  color: var(--lw-primary-strong);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  color: var(--lw-primary);
}

.faq-list p {
  padding: 0 0 1.1rem;
  color: var(--lw-text-muted);
  font-weight: 600;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--lw-border);
  background: var(--lw-surface);
}

.footer-inner {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.footer-inner > p {
  color: var(--lw-text-muted);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 750;
  color: var(--lw-text-secondary);
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--lw-text-subtle) !important;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .nav-desktop {
    display: flex;
  }

  .header-actions .btn-ghost {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .pain-list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content {
    padding-bottom: 5.5rem;
  }
}

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

  .hero-content,
  [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
