:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5e574c;
  --line: rgba(28, 25, 21, 0.12);
  --card: #fffcf7;
  --green: #0c6b49;
  --green-press: #084d35;
  --gold: #8a6438;
  --sand: #f6f0e4;
  --danger: #8c2f2f;
  --shadow: 0 24px 60px rgba(62, 42, 16, 0.08);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(176, 132, 74, 0.18), transparent 55%),
    radial-gradient(700px 380px at -10% 8%, rgba(12, 107, 73, 0.08), transparent 50%),
    var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

[lang="ar"] body,
body:lang(ar) {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--green); }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 30;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.top {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #f3efe6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}

.company {
  font-weight: 680;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.8);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px 0 14px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  z-index: 20;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(240px, calc(100vw - 32px));
  max-height: min(70vh, 420px);
  overflow: auto;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 6px;
}

.lang-menu button {
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  border-radius: 10px;
  min-height: 42px;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-menu button[aria-selected="true"],
.lang-menu button:hover { background: var(--sand); }

.hero {
  display: grid;
  gap: 22px;
  padding-bottom: 28px;
}

h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Songti SC", "PMingLiU", serif;
  font-size: clamp(40px, 6vw + 1rem, 76px);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

:lang(zh) h1,
:lang(zh-Hant) h1,
:lang(ja) h1,
:lang(ko) h1 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(34px, 4.4vw, 58px);
}

:lang(ar) h1 {
  font-family: Tahoma, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.25;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:lang(ar) .eyebrow,
:lang(zh) .eyebrow,
:lang(zh-Hant) .eyebrow,
:lang(ja) .eyebrow,
:lang(ko) .eyebrow,
:lang(th) .eyebrow,
:lang(hi) .eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
}

.sub {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

.kicker {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.chips button {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.7);
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.chips button[aria-pressed="true"] {
  background: var(--ink);
  color: #f6f1e8;
  border-color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  min-width: 0;
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  word-break: keep-all;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.wa, .submit, .ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 12px 16px;
  text-align: center;
}

.wa {
  background: var(--green);
  color: white;
}

.wa:hover { background: var(--green-press); }

.wa:active, .submit:active { transform: translateY(1px); }

.wa svg { flex: none; }

.form-title {
  margin: 16px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.note, .handoff, .fallback {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.note strong { color: var(--ink); font-weight: 700; }

.fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mini {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  background: var(--sand);
  border-radius: 14px;
  color: #3d3428;
  font-size: 14.5px;
  line-height: 1.45;
}

.notice p { margin: 0; }

.notice-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

form { margin-top: 14px; display: grid; gap: 10px; }

.field { display: grid; gap: 6px; }

.field span, .opt {
  font-size: 13px;
  font-weight: 650;
}

.req { color: var(--gold); }

.opt { color: var(--muted); font-weight: 500; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  min-height: 52px;
  padding: 12px 12px;
  outline: none;
}

textarea { min-height: 96px; resize: vertical; }

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid #1f8a62;
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.submit { background: var(--ink); color: #f6f1e8; }

.privacy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--danger);
}

.success h2, .fail h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.success p, #failDump { overflow-wrap: anywhere; }

.success p, .fail p { margin: 0 0 12px; color: var(--muted); }

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.section { padding: 18px 0 8px; }

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.grid-3, .steps {
  display: grid;
  gap: 12px;
}

.lite, .step, details {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.lite, .step { padding: 16px 16px 18px; }

.lite h3, .step p { margin: 6px 0 0; }

.lite h3 { font-size: 16px; }

.lite p, .step p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

.step strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  color: var(--gold);
  font-weight: 560;
}

.faq { padding-bottom: 28px; }

details { padding: 4px 16px; background: transparent; }

summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--gold);
  font-size: 22px;
  font-weight: 500;
}

details[open] summary::after { content: "–"; }

details p { margin: 0 0 14px; color: var(--muted); }

.foot {
  width: min(var(--max), calc(100% - 32px));
  margin: 10px auto 24px;
  color: var(--muted);
  font-size: 13px;
}

.foot p { margin: 0 0 6px; }

.dev {
  margin: 0 auto 18px;
  width: min(var(--max), calc(100% - 32px));
  background: #fff4d8;
  border: 1px solid #e2c98a;
  color: #5c4314;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 15;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.sticky[hidden] { display: none; }

@media (max-width: 899px) {
  h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.12; }
  .sub { font-size: 16px; }
  .form-title { font-size: 20px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }

  main {
    width: min(var(--max), calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    column-gap: 40px;
    align-items: start;
    padding-bottom: 36px;
  }

  .hero.wrap,
  .section.wrap {
    display: contents;
    width: auto;
  }

  .hero-copy { grid-column: 1; grid-row: 1; padding-top: 8px; }

  #contact {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .section h2,
  #whyList { grid-column: 1; }

  .section h2 { margin-top: 28px; }

  .card {
    position: sticky;
    top: 20px;
    padding: 18px;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
  }

  .chips button {
    width: auto;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  #whyList { grid-template-columns: 1fr; }

  .section { padding: 12px 0 20px; }

  .sticky { display: none; }
}

@media (max-width: 380px) {
  .stats { gap: 6px; }
  .stats strong { font-size: 16px; }
  .chips button { font-size: 12px; padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa:active, .submit:active { transform: none; }
}
