:root {
  --green: #704500;
  --green-mid: #E6A422;
  --green-soft: #FFF1C9;
  --green-ink: #704500;
  --blue: #1D1A14;
  --blue-mid: #5E5342;
  --blue-soft: #F2EBDC;
  --blue-ink: #1D1A14;
  --red: #E24B4A;
  --bg: #FBF8F1;
  --gold: #FFD45A;
  --paper: #FFFDF8;
  --ink: #1D1A14;
  --muted: #5E5342;
  --line: #EADFC8;
  --gray-soft: #F5EFE2;
  --radius: 10px;
  --wrap: 1120px;
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(255, 255, 255, .85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg) radial-gradient(60% 50% at 85% 5%, #FFE9B0, transparent 70%) no-repeat fixed;
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.01em; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.small { font-size: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 241, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; max-width: 1360px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--green); text-decoration: none; }
.nav-group { position: relative; }
.nav-parent { font: inherit; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; }
.nav-parent:hover, .nav-parent.active, .nav-group.open .nav-parent { color: var(--green); }
.nav-menu { display: none; position: absolute; top: calc(100% + 12px); left: -14px; min-width: 210px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(29, 26, 20, .12); }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.nav-menu a:hover, .nav-menu a.active { background: var(--green-soft); color: var(--green-ink); }
.nav-group.open .nav-menu { display: block; }
@media (hover: hover) and (min-width: 901px) { .nav-group:hover .nav-menu { display: block; } }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; color: var(--ink); cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .1s, background .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #F3BC3E; }
.btn-ghost { background: var(--paper); color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.nav .btn { color: var(--ink); }

.pill { display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-weight: 500; }
.pill-blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill-warn { background: #FAEEDA; color: #633806; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-candles { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 75%; opacity: .2; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 .green { display: block; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 16px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* chat demo */
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 12px 32px rgba(29, 26, 20, .06); }
.chat-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.chat-who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 700; }
.avatar img { width: 28px; height: 28px; display: block; }
.app-icon { width: 96px; height: 96px; display: block; margin-bottom: 16px; }
.phone-who { display: flex; align-items: center; gap: 8px; }
.phone-who img { width: 26px; height: 26px; }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--green-mid); display: inline-block; margin-right: 6px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; min-height: 230px; max-height: 300px; overflow-y: auto; padding: 2px; font-size: 15px; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 86%; animation: pop .25s ease; }
.msg.me { background: var(--gray-soft); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--green-soft); color: var(--green-ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--green-mid); color: var(--green); }
.chip-urgent { border-color: #EF9F27; color: #854F0B; }

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.alt .card { background: var(--bg); }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.icon.blue { background: var(--blue-soft); color: var(--blue); }
a.card { color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: var(--green-mid); transform: translateY(-2px); }
.card-link { color: var(--green); font-weight: 600; font-size: 14px; margin-top: 10px; display: inline-block; }
.featured { border: 2px solid var(--green-mid); }

/* behavior report */
.report { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.report-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.report-row:first-of-type { border-top: 0; }
.flag { flex: none; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.flag.hi { background: #FCEBEB; color: #791F1F; }
.flag.mid { background: #FAEEDA; color: #633806; }
.flag.ok { background: var(--green-soft); color: var(--green-ink); }

/* fund */
.fund { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.fund-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fund-amount { font-size: 32px; font-weight: 700; color: var(--blue); }
.bar { height: 12px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.bar > span { display: block; height: 100%; background: var(--blue-mid); border-radius: 999px; width: 0; transition: width 1.2s ease; }

/* faq */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; }
details[open] { border-color: var(--green-mid); }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 18px; color: var(--muted); }
details > div strong { color: var(--ink); }
.src { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin-top: 10px; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--gray-soft); }
tr:last-child td { border-bottom: 0; }

/* page head */
.page-head { padding-top: 52px; padding-bottom: 28px; }
.page-head p { font-size: 18px; color: var(--muted); max-width: 680px; }

.notice { background: #FAEEDA; color: #633806; border-radius: 12px; padding: 14px 18px; font-size: 14px; }
.notice-green { background: var(--green-soft); color: var(--green-ink); }

/* form */
.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green-mid); border-color: transparent; }
.form-error { color: #A32D2D; font-size: 14px; min-height: 1em; }

/* cta band */
.cta-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.cta-band p { color: #E8DFC9; }
.cta-band .btn-primary { background: var(--gold); color: var(--ink); }
.cta-band .btn-primary:hover { background: #F3BC3E; }

/* article / knowledge */
.layout-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 14px; }
.toc h4 { margin: 16px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.toc a { display: block; color: var(--ink); padding: 4px 0; }
.toc a:hover { color: var(--green); text-decoration: none; }
.article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 20px; scroll-margin-top: 84px; }
.article h2 { font-size: 24px; }
.article h3 { margin-top: 20px; }
.article ul, .article ol { padding-left: 20px; margin: 0 0 1em; }
.article li { margin-bottom: 6px; }
.tip { background: var(--green-soft); color: var(--green-ink); border-radius: 10px; padding: 12px 16px; font-size: 15px; margin: 12px 0; }
.example { background: var(--blue-soft); color: var(--blue-ink); border-radius: 10px; padding: 12px 16px; font-size: 15px; margin: 12px 0; }
.cat-label { font-size: 12px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .05em; }

/* course */
.module { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 18px; }
.module-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lesson { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.lesson:first-of-type { margin-top: 12px; }
.lesson input { width: 20px; height: 20px; accent-color: var(--green); margin-top: 3px; flex: none; cursor: pointer; }
.lesson.done strong { text-decoration: line-through; color: var(--muted); }
.progress-text { font-size: 14px; color: var(--muted); }

.stat { font-size: 26px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.shot { margin: 0 0 16px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.shot figcaption { margin-top: 6px; }

/* mascot */
.mascot-stage { margin-bottom: -14px; position: relative; z-index: 1; }
#mascot { height: 320px; }
#mascot canvas { display: block; width: 100%; height: 100%; }
.mood-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 24px; }
.mood { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mood:hover { border-color: var(--green-mid); }
.mood[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.mascot-off { display: none; }
.mascot-flat { display: block; margin: 40px auto 20px; }
.mascot-flat[hidden] { display: none; }
.mood-3d { border-style: dashed; }

/* glass */
.card, .chat, .fund, .report, .article, .module, details, .table-wrap, .pill-glass { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 8px 28px rgba(112, 69, 0, .08); }
.alt { background: rgba(255, 255, 255, .35); }
.alt .card { background: var(--glass); }
.site-header { background: rgba(255, 255, 255, .55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }

/* voice */
.voice-pick { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); max-width: 150px; margin-left: auto; }
.quiz-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(29, 26, 20, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.quiz { background: var(--paper); border-radius: 18px; padding: 26px; width: 100%; max-width: 520px; }
.quiz h2 { font-size: 24px; margin: 8px 0 16px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { font: inherit; text-align: left; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; }
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--green-mid); background: var(--green-soft); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.quiz-skip { font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.quiz-sample { background: var(--green-soft); color: var(--green-ink); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }

/* post */
.post { max-width: 760px; margin: 0 auto; padding: 36px 20px 24px; }
.post h1 { font-size: clamp(28px, 4.4vw, 40px); margin-top: 12px; }
.post h2 { font-size: 24px; margin-top: 32px; }
.post ul, .post ol { padding-left: 20px; margin: 0 0 1em; }
.post li { margin-bottom: 6px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; overflow-wrap: anywhere; }
.help-box { background: var(--blue-soft); color: var(--blue-ink); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.calc-result { background: var(--green-soft); color: var(--green-ink); border-radius: 14px; padding: 22px; }
.calc-money { font-size: 36px; font-weight: 700; line-height: 1.2; }

/* steps */
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-no { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step h3 { margin: 0 0 4px; }
.step p { margin-bottom: 8px; }

/* phone mockups */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.phone { background: #0B1410; color: #E6F2EC; border-radius: 26px; padding: 16px 14px; border: 6px solid #1F3A2E; display: flex; flex-direction: column; min-height: 470px; font-size: 13px; line-height: 1.5; }
.phone-title { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.phone-card { background: #12211A; border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.phone-muted { color: #8FB3A3; font-size: 12px; }
.phone-green { color: #5DCAA5; }
.phone-red { color: #F09595; }
.phone-amber { color: #EF9F27; }
.phone-bubble { padding: 8px 10px; border-radius: 12px; margin-bottom: 6px; max-width: 90%; }
.phone-bubble.me { background: #1F3A2E; align-self: flex-end; }
.phone-bubble.ai { background: #085041; color: #E1F5EE; align-self: flex-start; }
.phone-tabs { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; font-size: 11px; color: #8FB3A3; border-top: 1px solid #1F3A2E; }
.phone-tabs b { color: #5DCAA5; font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; margin-top: 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-note { font-size: 13px; margin-top: 10px; margin-bottom: 0; }

@media (max-width: 900px) {
  .hero .wrap, .cta-band { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-side, .calc { grid-template-columns: 1fr; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 14px; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav-parent { padding: 10px 0; text-align: left; width: 100%; }
  .nav-menu { position: static; box-shadow: none; border: 0; background: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav-menu::before { display: none; }
  .nav-menu a { padding: 8px 0; }
  .nav .btn { margin-top: 8px; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .hero { padding: 36px 0 44px; }
  .grid-2, .grid-3, .grid-4, .phones { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .wrap { padding: 0 16px; }
}

/* app screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }
.logo { white-space: nowrap; }
@media (max-width: 440px) { .site-header .logo-text { display: none; } }
