/* DoorAI｜智门 — standalone static site styles
   Design rules (from approved landing page):
   - Bright backgrounds = dark text; dark backgrounds = light text
   - A card: white-green | B card: gold-beige | C card: deep emerald
   - D advisor + AI quiz: 门灵 purple accent
   - Package cards equal height, top-aligned, buttons pinned to bottom
   - No watermark text. Strong contrast on placeholders, disclaimers, eyebrows.
*/

:root {
  --ink: #1c2733;
  --ink-soft: #3d4a57;
  --muted: #5a6672;
  --line: #dfe5ea;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --green: #2e7d32;
  --green-deep: #1b5e20;
  --green-tint: #eef6ee;
  --gold: #8a6d1a;
  --gold-bg: #fdf6e3;
  --gold-line: #e8d9a8;
  --emerald: #0d4d3a;
  --emerald-deep: #08352a;
  --emerald-text: #eaf5ef;
  --purple: #6a4c93;
  --purple-deep: #4f3572;
  --purple-tint: #f3f0fa;
  --purple-line: #d9cfee;
  --accent: #6a4c93;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 40, 30, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans JP",
    "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #44505c; margin: 0 0 10px;
}
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.2; margin: 0 0 14px; color: #16222e; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; margin: 0 0 10px; color: #16222e; }
h3 { font-size: 19px; line-height: 1.4; margin: 0 0 8px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 720px; }
.small { font-size: 13px; color: #55606b; }
.disclaimer { font-size: 13px; color: #4a545e; line-height: 1.6; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-name { font-size: 20px; font-weight: 800; line-height: 1.1; }
.brand-name small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
nav.main { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
nav.main a:hover { background: var(--purple-tint); color: var(--purple-deep); }
.lang-switch { display: flex; gap: 4px; flex-wrap: wrap; }
.lang-switch button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 5px 10px; font-size: 13px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 700; }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--purple); color: #fff; font-weight: 700; font-size: 16px;
  padding: 12px 22px; border-radius: 999px; line-height: 1.3;
}
.btn:hover { background: var(--purple-deep); color: #fff; }
.btn.secondary { background: #fff; color: var(--purple-deep); border: 2px solid var(--purple); }
.btn.secondary:hover { background: var(--purple-tint); }
.btn.green { background: var(--green); }
.btn.green:hover { background: var(--green-deep); }
.btn.light { background: #fff; color: var(--emerald-deep); }
.btn.light:hover { background: #eaf5ef; }

/* ---------- Hero ---------- */
.hero { padding: 0 0 56px; background: linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%); }
.hero-banner { width: 100%; max-height: 340px; object-fit: cover; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 32px; align-items: start; margin-top: 32px; }
.hero-copy .tagline { font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; color: var(--purple-deep); margin: 0 0 12px; }
.hero-copy p { color: var(--ink-soft); font-size: 17px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.mascot { text-align: center; }
.mascot img { width: 100%; max-width: 340px; margin: 0 auto; border-radius: var(--radius); }
.mascot-caption {
  background: #ffffff; color: #2b3540; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-top: 12px;
  font-size: 15px; line-height: 1.6; box-shadow: var(--shadow); text-align: left;
}
.mascot-caption strong { color: var(--purple-deep); }
.trust-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.trust-strip span { background: var(--purple-tint); color: var(--purple-deep); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; color: #2b3540; }
.field label .req { color: #b3261e; }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 12px; border: 1.5px solid #c8d0d8; border-radius: 10px;
  background: #fff; color: #1c2733; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #5f6b76; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--purple-line); border-color: var(--purple); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 14px; font-weight: 700; border-radius: 10px; padding: 12px 14px; display: none; }
.form-status.ok { display: block; background: var(--green-tint); color: var(--green-deep); border: 1px solid #b9d9bc; }
.form-status.err { display: block; background: #fdf0ef; color: #8f1d17; border: 1px solid #e5b4b0; }

/* ---------- Package cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-top: 28px; }
.card {
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0;
}
.card h3 { font-size: 22px; }
.card .price { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; }
.card .price-note { font-size: 14px; margin-bottom: 14px; }
.card ul { margin: 0 0 18px; padding-left: 20px; }
.card li { margin-bottom: 8px; }
.card .card-foot { margin-top: auto; padding-top: 16px; }
.card .btn { width: 100%; text-align: center; }
.card-a { background: #ffffff; border: 2px solid #b9d9bc; }
.card-a .price, .card-a h3 { color: var(--green-deep); }
.card-b { background: var(--gold-bg); border: 2px solid var(--gold-line); }
.card-b .price, .card-b h3 { color: #6d5310; }
.card-b .btn { background: #8a6d1a; }
.card-b .btn:hover { background: #6d5310; }
.card-c { background: var(--emerald); border: 2px solid var(--emerald); color: var(--emerald-text); }
.card-c h3, .card-c .price { color: #ffffff; }
.card-c .price-note, .card-c li, .card-c p { color: var(--emerald-text); }
.card-c .card-note { color: #cfe5d6; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge-a { background: var(--green-tint); color: var(--green-deep); }
.badge-b { background: #f3e5b8; color: #6d5310; }
.badge-c { background: rgba(255,255,255,0.16); color: #fff; }

/* ---------- D advisor + quiz (purple) ---------- */
.purple-band { background: var(--purple-tint); border-top: 1px solid var(--purple-line); border-bottom: 1px solid var(--purple-line); }
.purple-band h2, .purple-band h3 { color: var(--purple-deep); }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 20px; }
.d-card { background: #fff; border: 1px solid var(--purple-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.quiz-card { background: #fff; border: 2px solid var(--purple); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; }
.quiz-q { margin-bottom: 18px; }
.quiz-q p { font-weight: 700; margin: 0 0 8px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opts label { border: 1.5px solid #c8d0d8; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 15px; background: #fff; }
.quiz-opts input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opts input:checked + span { font-weight: 800; color: var(--purple-deep); }
.quiz-opts label:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.quiz-result { display: none; margin-top: 20px; background: var(--purple-tint); border: 1px solid var(--purple-line); border-radius: 12px; padding: 18px; }
.quiz-result.show { display: block; }
.quiz-result h3 { color: var(--purple-deep); }

/* ---------- À la carte ---------- */
.alacarte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin-top: 18px; }
.alacarte label { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.alacarte input { margin-top: 4px; accent-color: var(--purple); width: 18px; height: 18px; flex-shrink: 0; }
.alacarte .svc { font-weight: 700; }
.alacarte .svc-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.alacarte-total { margin-top: 16px; font-size: 18px; font-weight: 800; }
.saving-hint { margin-top: 8px; background: var(--gold-bg); border: 1px solid var(--gold-line); border-radius: 10px; padding: 12px 14px; font-weight: 600; color: #5d4a0e; display: none; }
.saving-hint.show { display: block; }

/* ---------- Process / FAQ ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num { width: 38px; height: 38px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; color: #16222e; }
details.faq p { color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Footer ---------- */
footer.site { background: #16222e; color: #dbe4ec; padding: 48px 0 28px; }
footer.site a { color: #cdbdf0; }
footer.site h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer-grid p, .footer-grid li { color: #dbe4ec; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid #344554; font-size: 13px; color: #9fb0bf; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .d-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav.main { display: none; }
}
@media (max-width: 560px) {
  section { padding: 44px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .alacarte { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .hero-banner { max-height: 200px; }
  .lang-switch { order: 3; width: 100%; }
  .btn { width: 100%; text-align: center; }
  .hero-ctas .btn { width: 100%; }
  .card .btn { width: 100%; }
}
