:root {
  --black: #111111;
  --white: #ffffff;
  --gold: #c9a227;
  --gold-soft: #e8d5a3;
  --gray: #6b6b6b;
  --ink: #1a1a1a;
  --paper: #f7f5f0;
  --paper-deep: #efe9dc;
  --line: rgba(17, 17, 17, 0.12);
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2rem));
  --font: "Sarabun", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(17, 17, 17, 0.05), transparent 45%),
    var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 240, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 50%;
}

.nav {
  display: none;
  gap: 1.25rem;
  margin-left: 1.5rem;
  color: var(--gray);
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  margin-left: auto;
}

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

.line-add-btn:hover {
  transform: translateY(-1px);
}

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

.cta-inner .line-add-btn {
  margin-left: 0;
}

.btn-line {
  background: var(--black);
  color: var(--white);
}

.btn-line:hover {
  background: #000;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(17, 17, 17, 0.28);
  color: var(--black);
}

.btn-ghost:hover {
  border-color: var(--black);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 80% at 78% 45%, rgba(201, 162, 39, 0.12), transparent 58%),
    linear-gradient(160deg, #1a1a1a 0%, #111111 45%, #0a0a0a 100%);
}

.hero-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: 2.75rem 2.5rem;
}

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

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

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

.brand-mark {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions .btn-line {
  background: var(--gold);
  color: var(--black);
}

.hero-actions .btn-line:hover {
  background: var(--gold-soft);
}

.hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-actions .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(232, 213, 163, 0.22), rgba(232, 213, 163, 0.08)),
    var(--paper-deep);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
}

.section-head p {
  margin: 0.7rem 0 0;
  color: var(--gray);
  font-size: 1.05rem;
}

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

.feature {
  padding: 1.4rem 1.35rem 1.5rem;
  border-top: 1px solid var(--line);
}

.feature-num {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feature h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature p {
  margin: 0.55rem 0 0;
  color: var(--gray);
}

.flow-layout {
  display: grid;
  gap: 2rem;
}

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

.step {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.step strong {
  font-size: 1.08rem;
}

.step span {
  color: var(--gray);
}

.preview {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
}

.preview p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.2rem 1rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
  font-weight: 600;
  font-size: 1.05rem;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 400;
}

.faq[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0 0 1rem;
  color: var(--gray);
}

.cta-band {
  padding: 2rem 0 2.25rem;
  background:
    linear-gradient(135deg, #111111 0%, #1c1c1c 55%, #2a2416 100%);
  color: var(--white);
}

.cta-inner {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 36rem;
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.cta-inner > p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
}

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

.cta-credit {
  margin: 1rem 0 0 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

.cta-credit a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.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: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -1.25%, 0);
  }
}

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

  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
    padding-block: 3.25rem 3rem;
  }

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

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

  .flow-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .flow-layout .section-head {
    grid-column: 1 / -1;
  }
}

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

  .hero-layout {
    gap: 2.5rem;
    padding-block: 3.75rem 3.5rem;
  }

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

.legal-page {
  padding-block: 2.5rem 4rem;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-back-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 1.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-back-bar:hover {
  color: var(--black);
  transform: translateX(-2px);
}

.legal-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.legal-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.legal-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  background: var(--gold-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0.5rem 0 0;
}

.legal-switch-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.legal-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.2s ease;
}

.legal-tab:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.04);
}

.legal-tab.is-active {
  color: var(--black);
  font-weight: 600;
  background: var(--paper-deep);
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.legal-section h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section p {
  margin: 0;
  color: #3a3a3a;
  line-height: 1.65;
}

.legal-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #3a3a3a;
}

.legal-list li {
  line-height: 1.6;
}

.legal-footer-note {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--paper-deep);
  border: 1px solid rgba(201, 162, 39, 0.25);
  font-size: 0.92rem;
  color: #444;
}

.legal-footer-note p {
  margin: 0;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.footer-nav-links a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-nav-links a:hover {
  color: var(--white);
}

@media (min-width: 720px) {
  .legal-card {
    padding: 2.5rem 2.25rem;
  }
}

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

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

