:root {
  /* LINE Design System & lineapp luxury light palette */
  --line-green: #06c755;
  --line-green-hover: #05b34d;
  --line-android-green: #4cc764;
  --line-black: #111827;
  --line-white: #ffffff;
  --line-gray-650: #4b5563;
  --line-gray-500: #6b7280;
  --line-gray-250: #e5e7eb;
  --line-gray-200: #f3f4f6;

  /* Aliases for consistency */
  --primary: var(--line-green);
  --primary-hover: var(--line-green-hover);
  --secondary: var(--line-android-green);
  --ink: #111827;
  --muted: #4b5563;
  --border: #e2e8f0;
  --border-subtle: rgba(6, 199, 85, 0.18);
  --paper: #f5faf6;
  --paper-deep: #eef7f1;
  --card-bg: #ffffff;

  /* lineapp signature luxury radial background */
  --lux-bg-gradient:
    radial-gradient(980px 420px at 50% -120px, rgba(6, 199, 85, 0.2), transparent 65%),
    radial-gradient(420px 280px at 100% 12%, rgba(76, 199, 100, 0.12), transparent 70%),
    radial-gradient(380px 260px at 0% 78%, rgba(6, 199, 85, 0.08), transparent 72%),
    linear-gradient(180deg, #ebf8f0 0%, #f6fbf8 40%, #ffffff 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 28px rgba(6, 199, 85, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 16px 36px rgba(6, 199, 85, 0.15), 0 6px 16px rgba(0, 0, 0, 0.05);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-card: 20px;
  --radius-pill: 9999px;

  --shell: min(1200px, calc(100% - 2.5rem));
  --font: "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 199, 85, 0.4) transparent;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(6, 199, 85, 0.4);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--line-green);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--lux-bg-gradient);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 199, 85, 0.15);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(6, 199, 85, 0.25);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.25);
}

.nav {
  display: none;
  gap: 1.75rem;
  margin-left: 2rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.nav a:hover {
  color: var(--line-green);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--line-green);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.line-add-btn {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-left: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.line-add-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(6, 199, 85, 0.3));
}

.line-add-btn img {
  display: block;
  height: 38px;
  width: auto;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--line-green);
  color: var(--line-white);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.3);
}

.btn-primary:hover {
  background: var(--line-green-hover);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: #ffffff;
  border: 1.5px solid rgba(6, 199, 85, 0.35);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: rgba(6, 199, 85, 0.08);
  border-color: var(--line-green);
  color: var(--line-green);
}

/* Badge / Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip-emerald {
  background: rgba(6, 199, 85, 0.12);
  color: #049640;
  border: 1px solid rgba(6, 199, 85, 0.25);
}

/* Hero Section (Light Luxury Theme) */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(980px 480px at 50% -80px, rgba(6, 199, 85, 0.18), transparent 70%),
    radial-gradient(460px 300px at 90% 20%, rgba(76, 199, 100, 0.12), transparent 70%),
    linear-gradient(180deg, #eaf8ee 0%, #f6fbf8 50%, #ffffff 100%);
  border-bottom: 1px solid rgba(6, 199, 85, 0.15);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 199, 85, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 3.5rem 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  margin: 0 0 1rem;
}

.text-nowrap {
  white-space: nowrap;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero h1 .text-highlight {
  color: var(--line-green);
  background: linear-gradient(135deg, #06c755 0%, #049640 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.hero-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 500;
}

.hero-highlight-item svg {
  color: var(--line-green);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-media {
  justify-self: center;
  width: min(100%, 360px);
  position: relative;
}

.hero-media-wrapper {
  position: relative;
  border-radius: 28px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(6, 199, 85, 0.22);
  box-shadow:
    0 20px 48px rgba(6, 199, 85, 0.14),
    0 4px 16px rgba(0, 0, 0, 0.04);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  animation: hero-drift 12s ease-in-out infinite alternate;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.5rem;
}

.section-head .chip {
  margin-bottom: 0.85rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0.85rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--line-green), var(--line-android-green));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 199, 85, 0.38);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.15), rgba(76, 199, 100, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-green);
  margin-bottom: 1.15rem;
  border: 1px solid rgba(6, 199, 85, 0.2);
}

.feature-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Affiliate Section */
.affiliate-section {
  position: relative;
}

.affiliate-hero-card {
  background: #ffffff;
  border: 1px solid rgba(6, 199, 85, 0.22);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.affiliate-reward-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.affiliate-reward-box {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.affiliate-reward-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 199, 85, 0.35);
}

.affiliate-reward-box.highlight-box {
  background: linear-gradient(180deg, rgba(6, 199, 85, 0.08) 0%, #ffffff 100%);
  border-color: rgba(6, 199, 85, 0.35);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.09);
}

.affiliate-reward-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
  background: rgba(6, 199, 85, 0.12);
  color: #049640;
  border: 1px solid rgba(6, 199, 85, 0.25);
}

.affiliate-reward-box .feature-icon-wrapper {
  margin-bottom: 0.85rem;
}

.affiliate-reward-val {
  font-size: clamp(2.2rem, 4.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--line-green);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.affiliate-reward-box h4 {
  margin: 0 0 0.4rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}

.affiliate-reward-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.affiliate-steps-box {
  margin-top: 2rem;
  background: #ffffff;
  border: 1px solid rgba(6, 199, 85, 0.22);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.affiliate-steps-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.affiliate-steps-header h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.affiliate-steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.affiliate-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--paper);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.affiliate-step-item:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 199, 85, 0.35);
}

.affiliate-step-item .step-num {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--line-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.28);
}

.affiliate-step-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.affiliate-step-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.affiliate-cta-btn-wrapper {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

/* How it works (Flow) */
.section-alt {
  background: linear-gradient(180deg, rgba(235, 248, 240, 0.8) 0%, rgba(246, 251, 248, 0.95) 100%);
  border-top: 1px solid rgba(6, 199, 85, 0.15);
  border-bottom: 1px solid rgba(6, 199, 85, 0.15);
}

.flow-dual-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.flow-column {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(6, 199, 85, 0.2);
  border-radius: 24px;
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.flow-column-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px dashed rgba(6, 199, 85, 0.22);
}

.flow-column-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(6, 199, 85, 0.12);
  color: var(--line-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(6, 199, 85, 0.25);
}

.flow-column.merchant .flow-column-header-icon {
  background: rgba(4, 150, 64, 0.12);
  color: #049640;
  border-color: rgba(4, 150, 64, 0.25);
}

.flow-column-header-text h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-column-header-text p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.step-card {
  display: flex;
  gap: 1.15rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(6, 199, 85, 0.18);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-green);
  box-shadow: var(--shadow-card);
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--line-green);
  color: var(--line-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.28);
}

.flow-column.merchant .step-badge {
  background: #049640;
  box-shadow: 0 4px 10px rgba(4, 150, 64, 0.28);
}

.step-body strong {
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.flow-preview-banner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(6, 199, 85, 0.22);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.flow-preview-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-preview-content p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.richmenu-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.richmenu-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.richmenu-card-header {
  display: flex;
  align-items: center;
}

.richmenu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
}

.richmenu-badge.customer-badge {
  background: rgba(6, 199, 85, 0.12);
  color: #058237;
  border: 1px solid rgba(6, 199, 85, 0.25);
}

.richmenu-badge.merchant-badge {
  background: rgba(184, 148, 31, 0.12);
  color: #856404;
  border: 1px solid rgba(184, 148, 31, 0.3);
}

.preview-container {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(6, 199, 85, 0.2);
  background: var(--line-white);
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.12);
}

.preview-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* PDPA by Design Section */
.pdpa-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, rgba(235, 248, 240, 0.5) 50%, #ffffff 100%);
  border-top: 1px solid rgba(6, 199, 85, 0.15);
  border-bottom: 1px solid rgba(6, 199, 85, 0.15);
}

.pdpa-lead-box {
  background: #ffffff;
  border: 1.5px solid rgba(6, 199, 85, 0.28);
  border-radius: 22px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pdpa-lead-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.16), rgba(76, 199, 100, 0.08));
  color: var(--line-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(6, 199, 85, 0.25);
}

.pdpa-lead-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
}

.pdpa-lead-text p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.pdpa-grid {
  display: grid;
  gap: 1.5rem;
}

.pdpa-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdpa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 199, 85, 0.4);
}

.pdpa-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #049640;
  background: rgba(6, 199, 85, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 0.9rem;
}

.pdpa-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.pdpa-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq {
  border: 1px solid rgba(6, 199, 85, 0.2);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 0.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq[open] {
  border-color: rgba(6, 199, 85, 0.45);
  box-shadow: var(--shadow-card);
  background: #ffffff;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-toggle-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 199, 85, 0.12);
  flex-shrink: 0;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
  user-select: none;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background-color: var(--line-green);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    opacity 0.2s ease;
}

/* Vertical line for the + icon */
.faq-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Open State (-) */
.faq[open] .faq-toggle-icon {
  background: var(--line-green);
}

.faq[open] .faq-toggle-icon::before {
  background-color: #ffffff;
  transform: translate(-50%, -50%) rotate(180deg);
}

.faq[open] .faq-toggle-icon::after {
  background-color: #ffffff;
  transform: translate(-50%, -50%) rotate(180deg);
  opacity: 0;
}

.faq-content {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  border-top: 1px dashed rgba(6, 199, 85, 0.15);
  padding-top: 0.85rem;
}

/* CTA Band (Bright Luxury Mint Theme) */
.cta-band {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(6, 199, 85, 0.18), transparent 70%),
    linear-gradient(135deg, #e6f7ec 0%, #f0faf4 50%, #e1f5e8 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(6, 199, 85, 0.22);
}

.cta-inner {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 40rem;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cta-inner > p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.cta-inner .line-add-btn {
  display: inline-block;
  margin: 0 auto;
}

.cta-credit {
  margin: 2.5rem 0 0 !important;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(6, 199, 85, 0.2);
  color: var(--line-gray-500) !important;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

.cta-credit a {
  color: #049640;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cta-credit a:hover {
  color: var(--line-green);
}

/* Legal Pages (Privacy Policy & Terms of Use) */
.legal-page-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(6, 199, 85, 0.15);
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(6, 199, 85, 0.14), transparent 70%),
    linear-gradient(180deg, #edf9f1 0%, #ffffff 100%);
}

.legal-page-header h1 {
  margin: 0.5rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
}

.legal-page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.legal-nav-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid rgba(6, 199, 85, 0.25);
  background: #ffffff;
  color: var(--muted);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.legal-nav-tab.is-active,
.legal-nav-tab:hover {
  background: var(--line-green);
  color: #ffffff;
  border-color: var(--line-green);
}

.legal-body {
  padding: 3rem 0 5rem;
}

.legal-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(6, 199, 85, 0.2);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-card);
  line-height: 1.75;
  color: var(--ink);
}

.legal-card section {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-card section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.legal-card h2 {
  margin: 0 0 1rem;
  font-size: 1.32rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1f2937;
}

.legal-card p {
  margin: 0 0 1rem;
  color: #374151;
  font-size: 1rem;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: #374151;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

.legal-card strong {
  color: #111827;
}

.legal-footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px dashed rgba(6, 199, 85, 0.25);
  font-size: 0.9rem;
  color: var(--line-gray-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.18s;
}

.delay-3 {
  transition-delay: 0.26s;
}

@keyframes hero-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

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

  .hero-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    padding-block: 4.5rem 4.5rem;
  }

  .hero-media {
    width: min(100%, 380px);
    justify-self: end;
  }

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

  .affiliate-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 860px) {
  .flow-dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-preview-banner {
    padding: 2.25rem;
  }

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

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .affiliate-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 3.5rem;
    padding-block: 5.5rem 5rem;
  }

  .hero-media {
    width: min(100%, 420px);
  }
}

/* Back to Top Floating Button */
.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--line-green);
  border: 1.5px solid rgba(6, 199, 85, 0.35);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--line-green);
  color: #ffffff;
  border-color: var(--line-green);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.38);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}

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

  .hero-media img,
  .reveal,
  .btn,
  .feature-card,
  .back-to-top {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Affiliate Guide Page Specific Styles
   ========================================================================== */

.affiliate-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.affiliate-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(6, 199, 85, 0.1);
  border: 1px solid rgba(6, 199, 85, 0.28);
  border-radius: var(--radius-pill);
  color: var(--line-green);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.affiliate-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.affiliate-hero .hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* 4 Steps Timeline */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2.5rem 0;
}

.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.step-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 199, 85, 0.35);
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b6b32 0%, #064e23 100%);
  border: 2px solid #d4af37;
  color: #ffd700;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(6, 78, 35, 0.35);
}

.step-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.step-tagline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--line-green);
  background: rgba(6, 199, 85, 0.1);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.step-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--ink);
  line-height: 1.6;
}

.step-checklist li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--line-green);
  margin-top: 3px;
}

/* Reward Perks Grid (Step 4 Cards) */
.reward-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin: 1.25rem 0 0.5rem;
}

.reward-perk-item {
  background: var(--paper, #f5faf6);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 16px);
  padding: 1.4rem 1.15rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reward-perk-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(6, 199, 85, 0.12);
  border-color: rgba(6, 199, 85, 0.4);
}

.reward-perk-item.primary {
  background: linear-gradient(180deg, rgba(6, 199, 85, 0.08) 0%, #ffffff 100%);
  border-color: rgba(6, 199, 85, 0.35);
}

.reward-perk-item.gold {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, #ffffff 100%);
  border-color: rgba(212, 175, 55, 0.4);
}

.reward-perk-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.reward-perk-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-green);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.reward-perk-item.primary .reward-perk-badge {
  background: linear-gradient(135deg, #0b6b32 0%, #064e23 100%);
  border-color: #06c755;
  color: #ffffff;
}

.reward-perk-item.gold .reward-perk-badge {
  background: linear-gradient(135deg, #0b6b32 0%, #064e23 100%);
  border: 1.5px solid #d4af37;
  color: #ffd700;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.reward-perk-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.reward-perk-highlight {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--line-green);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.reward-perk-item.gold .reward-perk-highlight {
  color: #b45309;
}

.reward-perk-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .reward-perks-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Callout Box inside Step */
.step-callout {
  background: rgba(6, 199, 85, 0.05);
  border-left: 4px solid var(--line-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.step-callout.warning {
  background: rgba(245, 158, 11, 0.07);
  border-left-color: #d97706;
}

.step-callout-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.step-callout p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Benefits Section */
.affiliate-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3.5rem;
}

.benefit-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--line-green) 12%, #ffffff);
  color: var(--line-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.benefit-box p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* FAQ Accordion in Affiliate Guide */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-answer {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Bottom CTA Card */
.affiliate-cta-card {
  background: linear-gradient(135deg, #0b6b32 0%, #064e23 100%);
  color: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-card);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3.5rem 0 2rem;
  box-shadow: 0 16px 36px rgba(6, 78, 35, 0.35);
  position: relative;
  overflow: hidden;
}

.affiliate-cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #ffffff;
}

.affiliate-cta-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.affiliate-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #06c755;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.45);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.affiliate-cta-btn:hover {
  background: #05b34d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.6);
}

@media (max-width: 640px) {
  .step-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
  .step-indicator {
    flex-direction: row;
    gap: 1rem;
  }
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}
