/* บัญชีอุ่นใจ landing page
   White page, brand colours from the logo kit (โลโก้/แบบC-ตราวงกลม/อ่านก่อน.txt):
     blue  #0F3B87 → #1A5DB8 → #2E8FE0   (logo roundel and wordmark)
     green #2F9A46 → #61C160 → #A6E07F   (leaf)
     grey  #706F72                        (secondary text)
   Every colour is a token below. */

:root {
  --c-blue-900: #0B2B63;
  --c-blue-800: #0F3B87;
  --c-blue-700: #123E8C;
  --c-blue-600: #1A5DB8;
  --c-blue-400: #2E8FE0;
  --c-blue-100: #DCEBFA;
  --c-blue-50: #EEF6FD;
  --c-green-800: #1F7A35;
  --c-green-700: #2F9A46;
  --c-green-600: #3FA34D;
  --c-green-500: #61C160;
  --c-green-300: #A6E07F;
  --c-green-100: #E6F6E4;
  --c-green-50: #F6FCF5;
  --c-ink: #1F3B5C;
  --c-gray-600: #706F72;
  --c-line: #E5EAF0;
  --c-white: #FFFFFF;
  --c-amber-bg: #FFF7E6;
  --c-amber-text: #AD4E00;
  --c-white-a08: rgb(255 255 255 / 0.08);
  --c-white-a14: rgb(255 255 255 / 0.14);
  --c-white-a30: rgb(255 255 255 / 0.3);
  --c-white-a80: rgb(255 255 255 / 0.82);

  --bg: var(--c-white);
  --bg-soft: var(--c-green-50);
  --surface: var(--c-white);
  --heading: var(--c-blue-900);
  --text: var(--c-ink);
  --text-muted: var(--c-gray-600);
  --border: var(--c-line);
  --primary: var(--c-blue-600);
  --primary-strong: var(--c-blue-800);
  --primary-soft: var(--c-blue-50);
  --accent: var(--c-green-500);
  --accent-strong: var(--c-green-700);
  --accent-soft: var(--c-green-100);
  --grad-brand: linear-gradient(135deg, var(--c-blue-400) 0%, var(--c-blue-600) 45%, var(--c-blue-800) 100%);
  --grad-button: linear-gradient(135deg, var(--c-blue-600), var(--c-blue-800));
  --grad-text: linear-gradient(90deg, var(--c-blue-800), var(--c-blue-600) 55%, var(--c-blue-400));
  --grad-leaf: linear-gradient(90deg, var(--c-green-700), var(--c-green-500));
  --shadow-sm: 0 1px 2px rgb(15 59 135 / 0.06);
  --shadow-md: 0 10px 28px rgb(15 59 135 / 0.1);
  --shadow-lg: 0 24px 48px rgb(11 43 99 / 0.28);

  --font-head: "Prompt", "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 20px;
  --container: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.35; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--c-blue-400); outline-offset: 2px; border-radius: 6px; }
.text-link { color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: box-shadow .15s, border-color .15s, background-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 52px; padding: 10px 30px; font-size: 1.05rem; }
.btn-primary { background: var(--grad-button); color: var(--c-white); box-shadow: 0 6px 16px rgb(26 93 184 / 0.28); }
.btn-primary:hover { box-shadow: 0 8px 22px rgb(26 93 184 / 0.4); }
.btn-outline { border-color: var(--c-blue-100); color: var(--primary-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-soft); }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--primary-strong); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.topbar { background: var(--c-blue-800); color: var(--c-white-a80); font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--c-white); text-decoration: none; font-weight: 600; min-height: 40px; }
.topbar-phone svg { width: 15px; height: 15px; fill: none; stroke: var(--c-green-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-phone:hover { color: var(--c-green-300); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tag { font-size: .78rem; color: var(--text-muted); }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a:not(.btn) {
  text-decoration: none; padding: 10px 14px; border-radius: var(--radius);
  font-weight: 500; font-size: .98rem; color: var(--text);
}
.main-nav a:not(.btn):hover { color: var(--primary); background: var(--primary-soft); }
.nav-cta { margin-left: 12px; }
.header-actions { display: none; gap: 8px; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 0 0 96px; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.section-head p { color: var(--text-muted); margin: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--primary); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--grad-leaf); flex: none; }
.eyebrow-on-dark { color: var(--c-green-300); }

.check-list { list-style: none; display: grid; gap: 8px; color: var(--text-muted); }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: ""; position: absolute; left: 6px; top: .42em; width: 6px; height: 11px;
  border: solid var(--accent-strong); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Hero: white, with a brand-blue block on the right */
.hero { position: relative; background: var(--bg); padding: 72px 0 128px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--primary-soft); pointer-events: none; }
.hero::before { width: 420px; height: 420px; left: -180px; bottom: -200px; }
.hero::after { width: 140px; height: 140px; left: 44%; top: 36px; background: var(--c-green-50); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.25; }
.hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; }
.hero-points { list-style: none; display: grid; gap: 10px; margin: 24px 0 32px; }
.hero-points li { position: relative; padding-left: 34px; font-weight: 500; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
}
.hero-points li::after {
  content: ""; position: absolute; left: 8px; top: .42em; width: 6px; height: 10px;
  border: solid var(--accent-strong); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative; background: var(--grad-brand); border-radius: 28px; padding: 32px 32px 0;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border-radius: 50%; background: var(--c-white-a08); pointer-events: none; }
.hero-visual::before { width: 360px; height: 360px; right: -140px; top: -150px; }
.hero-visual::after { width: 220px; height: 220px; left: -90px; bottom: -70px; }
.hero-panel { position: relative; z-index: 1; background: var(--surface); color: var(--text); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 28px rgb(11 43 99 / 0.25); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.panel-kicker { font-size: .82rem; color: var(--text-muted); margin: 0; }
.panel-title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--heading); margin: 0; }
.panel-badge { font-size: .8rem; font-weight: 600; color: var(--primary-strong); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.due-list { list-style: none; }
.due-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.due-name { font-weight: 600; color: var(--heading); }
.due-date { grid-column: 1; font-size: .9rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tag { grid-column: 2; grid-row: 1 / span 2; font-size: .82rem; font-weight: 600; padding: 2px 12px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--accent-soft); color: var(--c-green-800); }
.tag-wait { background: var(--c-amber-bg); color: var(--c-amber-text); }
.panel-foot { padding: 12px 22px; background: var(--primary-soft); }
.panel-foot p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.hero-brandline { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; min-height: 132px; }
.leaf-chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  background: var(--grad-leaf); color: var(--c-white); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  padding: 10px 22px; border-radius: 999px; box-shadow: 0 8px 18px rgb(11 43 99 / 0.3); white-space: nowrap;
}
.leaf-chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-mascot { width: 150px; height: auto; margin-bottom: -6px; flex: none; }

/* Key facts strip, overlaps the hero */
.facts { position: relative; z-index: 2; margin-top: -56px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.facts-grid > div { padding: 24px 28px; border-left: 1px solid var(--border); }
.facts-grid > div:first-child { border-left: 0; }
.facts-grid dt {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.3; width: fit-content;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facts-grid dd { color: var(--text-muted); font-size: .95rem; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-brand); opacity: 0; transition: opacity .15s; }
.card:hover { border-color: var(--c-blue-100); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.card-no { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--c-blue-400); font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.card-icon, .why-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.card-icon svg, .why-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* AI panel */
.ai-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  background: var(--grad-brand); color: var(--c-white); border-radius: 28px; padding: 56px 64px;
}
.ai-panel::before, .ai-panel::after { content: ""; position: absolute; border-radius: 50%; background: var(--c-white-a08); pointer-events: none; }
.ai-panel::before { width: 420px; height: 420px; right: -120px; top: -220px; }
.ai-panel::after { width: 260px; height: 260px; left: -110px; bottom: -150px; }
.ai-badge {
  position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-white-a14); border: 2px solid var(--c-white-a30); color: var(--c-green-300);
}
.ai-badge svg { width: 50px; height: 50px; fill: currentColor; }
.ai-text { position: relative; z-index: 1; }
.ai-text h2 { color: var(--c-white); font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
.ai-text p:last-child { color: var(--c-white-a80); font-size: 1.08rem; margin: 0; max-width: 720px; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow-sm); }
.why-icon { margin-bottom: 20px; background: var(--accent-soft); color: var(--accent-strong); }
.why-item h3 { font-size: 1.08rem; }
.why-item p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* CPD credential note under the "why" cards */
.cpd-note {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  margin-top: 24px; padding: 24px 28px; background: var(--surface);
  border: 1px solid var(--c-blue-100); border-left: 5px solid var(--primary); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.cpd-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: var(--c-white); }
.cpd-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cpd-text h3 { font-size: 1.12rem; margin-bottom: 4px; }
.cpd-text p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.cpd-badge {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; white-space: nowrap;
  color: var(--primary-strong); background: var(--primary-soft); border: 1px solid var(--c-blue-100); padding: 6px 16px; border-radius: 999px;
}
@media (max-width: 900px) {
  .cpd-note { grid-template-columns: auto 1fr; }
  .cpd-badge { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .cpd-note { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .cpd-badge { grid-column: 1; }
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 68px; right: -20px; border-top: 2px dashed var(--c-blue-100);
}
.step-no {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-brand); color: var(--c-white); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 18px;
  box-shadow: 0 6px 14px rgb(26 93 184 / 0.3);
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .section-head p { margin-top: 8px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq details { padding: 0 24px; border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--heading);
  padding: 18px 36px 18px 0; position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-muted); padding-bottom: 20px; margin: 0; }

/* Bridge: the consultant stands on the footer's top edge */
.bridge { background: var(--bg); padding-top: 96px; overflow: hidden; }
.bridge-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.bridge-text { padding-bottom: 96px; }
.bridge-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.bridge-text > p { color: var(--text-muted); font-size: 1.08rem; max-width: 540px; }
.bridge-points { margin: 20px 0 32px; color: var(--text); }
.advisor { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }
.advisor-panel {
  position: absolute; left: 50%; bottom: -150px; width: 520px; height: 520px; transform: translateX(-50%);
  border-radius: 50%; background: linear-gradient(180deg, var(--c-blue-100), var(--c-blue-50));
  box-shadow: 0 0 0 22px var(--c-blue-50);
}
.advisor-img { position: relative; height: 560px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.advisor-card {
  position: absolute; left: 0; bottom: 72px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px 12px 12px; box-shadow: var(--shadow-md);
}
.advisor-card-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.advisor-card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.advisor-card strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--heading); }
.advisor-card small { color: var(--text-muted); font-size: .85rem; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c-blue-800), var(--c-blue-900)); color: var(--c-white); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-leaf); }
.site-footer::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; bottom: -260px; border-radius: 50%; background: var(--c-white-a08); pointer-events: none; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; align-items: start; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 56px; height: 56px; }
.footer-logo span { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--c-white); }
.footer-brand p { color: var(--c-white-a80); font-size: .96rem; max-width: 420px; margin: 0; }
.footer-links { display: flex; flex-direction: column; }
.footer-links h3 { font-size: 1rem; color: var(--c-white); margin-bottom: 10px; }
.footer-links a { color: var(--c-white-a80); text-decoration: none; padding: 7px 0; }
.footer-links a:hover { color: var(--c-green-300); }
.footer-contact { text-align: right; }
.footer-call-label { color: var(--c-white-a80); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.footer-phone {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.5rem); line-height: 1.15; letter-spacing: .01em;
  color: var(--c-green-300); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.footer-phone:hover { color: var(--c-white); }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid var(--c-white-a14); padding-top: 20px; padding-bottom: 24px; }
.footer-bottom p { margin: 0; color: var(--c-white-a80); font-size: .88rem; }

/* Tablet */
@media (max-width: 1100px) {
  .main-nav a:not(.btn) { padding: 10px 10px; }
  .brand-tag { display: none; }
}
@media (max-width: 1024px) {
  .card-grid, .why-grid, .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid > div:nth-child(3) { border-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .ai-panel { padding: 48px 40px; }
}

@media (max-width: 900px) {
  .header-actions { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .hero { padding: 56px 0 112px; }
  .hero::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li::after { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-panel { grid-template-columns: 1fr; gap: 24px; }
  .ai-badge { width: 72px; height: 72px; }
  .ai-badge svg { width: 36px; height: 36px; }
  .bridge-grid { grid-template-columns: 1fr; gap: 0; }
  .bridge-text { padding-bottom: 40px; }
  .advisor { min-height: 0; }
  .advisor-img { height: 460px; }
  .advisor-panel { width: 420px; height: 420px; bottom: -120px; }
  .advisor-card { left: 50%; transform: translateX(-200px); }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .section { padding: 64px 0; }
  .section-tight { padding: 0 0 64px; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 40px 0 96px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 20px 20px 0; border-radius: 22px; }
  .hero-brandline { min-height: 112px; }
  .leaf-chip { font-size: 1rem; padding: 8px 16px; }
  .hero-mascot { width: 116px; }
  .nowrap, .hl { white-space: normal; }
  .card-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 18px 16px; }
  .facts-grid dt { font-size: 1.2rem; }
  .card { padding: 22px; }
  .ai-panel { padding: 32px 24px; border-radius: 22px; }
  .bridge { padding-top: 64px; }
  .bridge-text .btn { width: 100%; }
  .advisor-img { height: 400px; }
  .advisor-panel { width: 330px; height: 330px; bottom: -90px; box-shadow: 0 0 0 14px var(--c-blue-50); }
  .advisor-card { left: 8px; transform: none; bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .footer-contact { text-align: left; order: -1; padding-bottom: 24px; border-bottom: 1px solid var(--c-white-a14); }
  .footer-phone { font-size: clamp(2.1rem, 11vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .card::before, .faq summary::after { transition: none; }
}
