/* FutureGuide AI — landing page */

:root {
  /* FutureGuide CI — Autumn Leaf / Blue Spruce / Ivory / Earth */
  --bg: #FEFAF2;          /* warm white (hero) */
  --bg-tint: #FDF6E9;
  --card: #FFFFFF;
  /* every card on the site uses these (same as the FAQ cards) */
  --card-bg: #FFFBF5;
  --card-line: #FBF2E6;
  --card-shadow: 0 12px 32px rgba(196, 150, 96, .10);
  --surface: #FFFFFF;
  --cream: #F7F0DD;
  --sand: #EFD9B4;
  --line: #F3E7D3;
  --ink: #3A2711;
  --ink-2: #755B35;
  --ink-3: #978363;
  --orange: #E97D24;
  --orange-d: #DF691F;    /* Autumn Leaf */
  --orange-dd: #C85A16;
  --orange-soft: #FCE7CC;
  --amber: #F39716;
  --yellow: #F4A231;
  --teal: #0D8575;
  --teal-d: #116E63;      /* Blue Spruce */
  --teal-dd: #084E51;
  --teal-soft: #DDEEE9;
  --green-soft: #EEECE0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(117, 91, 53, .10);
  --shadow-sm: 0 3px 12px rgba(117, 91, 53, .08);
  /* type scale — base 16px, ~1.25 ratio (Material 3 / EC component-library guidance) */
  --fs-12: .75rem;      /* chips, tiny meta */
  --fs-13: .8125rem;    /* captions, meta, badges */
  --fs-14: .875rem;     /* small text, breadcrumbs, footer */
  --fs-15: .9375rem;    /* card descriptions, nav, UI labels */
  --fs-16: 1rem;        /* body */
  --fs-17: 1.0625rem;   /* lead paragraph, article body */
  --fs-18: 1.125rem;    /* card titles */
  --fs-20: 1.25rem;     /* small headings */
  --fs-24: 1.5rem;      /* article h2 */
  --fs-h2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);        /* section titles 24 → 30px */
  --fs-h1: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);      /* page titles, CTA 28 → 36px */
  --fs-display: clamp(2rem, 1.3rem + 2.4vw, 2.75rem);    /* hero 32 → 44px */
  --font: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
  --font-hand: 'Itim', 'Prompt', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* below the hero: white → warm → cream, flowing down toward the bottom-right */
  background: linear-gradient(155deg,
    #FFFFFF 0%, #FFFFFF 40%,   /* 1 white */
    #FFFCF8 52%,               /* 2 */
    #FFF9F2 63%,               /* 3 */
    #FEF6EC 74%,               /* 4 warm */
    #FDF3E6 86%,               /* 5 */
    #FBF1E2 100%);             /* 6 light cream */
  color: var(--ink);
  font-family: var(--font);
  font-size: 100%;  /* 16px, but follows the reader's browser setting */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; font-weight: 700; text-wrap: balance; }
.nw { white-space: nowrap; }
p { text-wrap: pretty; }
.lead, .section-head p, .cta-copy p { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--font); white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--orange-d); color: #fff; box-shadow: 0 6px 16px rgba(223, 105, 31, .30); }
.btn-primary:hover { background: var(--orange-dd); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border: 1.5px solid var(--ink-2); color: var(--ink); }
.btn-outline:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 22px; font-size: var(--fs-15); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: var(--fs-16); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(117, 91, 53, .06); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: auto; height: 42px; }
.brand-word { width: auto; height: 22px; }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { position: relative; white-space: nowrap; font-size: var(--fs-15); font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2.5px; border-radius: 2px; background: var(--orange);
}
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 10px; }
.mobile-menu {
  display: grid; gap: 4px; padding: 8px 16px 20px;
  border-top: 1px solid var(--line); background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }

/* ── Hero ── */
.hero { position: relative; isolation: isolate; padding: 40px 0 48px; overflow: hidden; background: linear-gradient(var(--bg) 55%, #FFFFFF); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 85% 30%, #FDF1DE 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid #F9CB8B; background: var(--surface);
  color: var(--orange-d); font-size: var(--fs-14); font-weight: 500;
}
.hero h1 { margin-top: 20px; font-size: var(--fs-display); line-height: 1.3; letter-spacing: -.01em; }
.accent {
  color: var(--orange-d);
  background: linear-gradient(90deg, var(--orange-d), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .nw:last-child {
  display: block; color: var(--orange-d);
  background: linear-gradient(90deg, var(--orange-d), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.eyebrow-en { font-size: var(--fs-12); font-weight: 600; letter-spacing: .06em; }
.hero-sub { margin-top: 14px; font-size: var(--fs-20); font-weight: 600; color: var(--ink); }
.lead { margin-top: 10px; max-width: 32em; font-size: var(--fs-17); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-audience { margin-top: 18px; font-size: var(--fs-14); font-weight: 500; color: var(--ink-2); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero-badges li {
  padding: 3px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-d);
  font-size: var(--fs-13); font-weight: 600; white-space: nowrap;
}

.hero-copy { position: relative; z-index: 1; }
.hero-art {
  position: absolute; top: 0; right: -36px; bottom: 0; z-index: 0; aspect-ratio: 16 / 9;
}
.hero-frame { position: relative; width: 100%; height: 100%; container-type: inline-size; }
.hero-scene {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 46%), linear-gradient(to bottom, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 4%, #000 46%), linear-gradient(to bottom, #000 86%, transparent);
  mask-composite: intersect;
}
.hero-bubble {
  position: absolute; right: 50%; top: 10%; padding: .5em .9em; border-radius: 16px; white-space: nowrap;
  background: var(--surface); border: 1.5px solid #C9A27A; box-shadow: 0 8px 18px rgba(71, 53, 32, .12);
  font-family: var(--font-hand); font-size: clamp(12px, 1.6cqw, 18px); line-height: 1.35; color: #473520; transform: rotate(-3deg);
}
.hero-bubble::after {
  content: ''; position: absolute; right: 14%; bottom: -8px; width: 14px; height: 14px;
  background: var(--surface); border-right: 1.5px solid #C9A27A; border-bottom: 1.5px solid #C9A27A; transform: rotate(45deg);
}
.hero-signs li {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: 12%;
  display: flex; align-items: center; justify-content: center; transform: rotate(var(--r));
  font-family: Prompt, sans-serif; font-weight: 600; font-size: 2.1cqw; line-height: 1.15; text-align: center; color: #473520; white-space: nowrap;
}
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ── Sections ── */
/* one vertical rhythm: 48px + 48px = 96px between every section (32 + 32 = 64px on mobile) */
.section, .section-tight { padding: 48px 0; }
#problem { padding-bottom: 28px; }
#journey { padding-top: 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 8px; color: var(--ink-2); }
.section-head .eyebrow { margin-bottom: 12px; }
.support-note { max-width: 44em; margin: 16px auto 0; text-align: center; font-size: var(--fs-14); color: var(--ink-3); }

.icon-blob {
  flex-shrink: 0; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
}
.icon-blob svg { width: 44px; height: 44px; }
.tint-teal { background: radial-gradient(circle at 35% 30%, #F4FBF8, #CFE8E0); box-shadow: 0 8px 20px rgba(13, 133, 117, .12); }
.tint-orange { background: radial-gradient(circle at 35% 30%, #FFF8EE, #FBDDBA); box-shadow: 0 8px 20px rgba(233, 125, 36, .14); }

/* ── Journey ── */
.journey-panel { position: relative; overflow: hidden; padding-top: 32px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, #FFFCF6, #FEF6EA); }
.journey-head { margin-bottom: 20px; padding: 0 20px; }
.journey-map { position: relative; }
.journey-map::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(254, 250, 242, .5), rgba(254, 250, 242, 0) 26%);
}
.journey-art { display: block; width: 100%; height: auto; }
.journey-figure { position: relative; }
.journey-goal {
  position: absolute; z-index: 2; left: 81.7%; top: 52.5%; width: 17.2%; height: 23.7%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.journey-goal b { font-size: var(--fs-16); line-height: 1.3; }
.journey-goal span { margin-top: 2px; font-size: var(--fs-14); color: var(--ink-2); }
.journey-stops { position: absolute; inset: 0; z-index: 2; counter-reset: stop; }
.journey-stops li {
  position: absolute; left: var(--x); top: calc(var(--y) + 7%); transform: translateX(-50%);
  width: 18%; text-align: center; counter-increment: stop;
}
.journey-stops b { display: block; font-size: var(--fs-15); line-height: 1.3; }
.journey-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px; border-top: 1px solid var(--line); }
.step-number { display: block; font-size: var(--fs-14); font-weight: 700; letter-spacing: .04em; color: var(--orange-d); }
.journey-steps h3 { margin-top: 2px; font-size: var(--fs-16); }
.journey-steps p { margin-top: 6px; font-size: var(--fs-14); color: var(--ink-2); }
/* ── Results ── */
.dashboard {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden;
  border: 1px solid #EFE2CF; border-radius: 24px; background: var(--surface);
  box-shadow: 0 24px 50px rgba(117, 91, 53, .14);
}
.dash-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: #FBF6EC; border-right: 1px solid #F1E6D3; }
.dash-side .mini-brand { margin: 0 6px 12px; }
.dash-menu { display: grid; gap: 4px; }
.dash-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 7px 10px; border: 0; border-radius: 10px;
  background: none; font: 500 .8125rem/1.3 var(--font); color: var(--ink-2); text-align: left; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.dash-menu button:hover { background: #F5ECDC; color: var(--ink); }
.dash-menu svg { width: 15px; height: 15px; flex-shrink: 0; }
.dash-menu .is-active, .dash-menu .is-active:hover { background: var(--orange-soft); color: var(--orange-d); font-weight: 600; }
.dash-panels { min-width: 0; padding: 16px 18px; }
.dash-panel[hidden] { display: none; }
.dash-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.dash-panel-head h3 { font-size: var(--fs-16); }
.dash-shot { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dash-note { margin-top: 10px; font-size: var(--fs-13); color: var(--ink-3); }
.result-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.result-note { padding: 20px 22px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); }
.result-note h3 { font-size: var(--fs-16); }
.result-note p { margin-top: 4px; font-size: var(--fs-15); color: var(--ink-2); }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ── Schools ── */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.benefit-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 28px 22px; border-radius: 24px; background: var(--card-bg);  /* solid off-white cream */
  border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
}
.benefit-card h3 { font-size: var(--fs-18); }
.benefit-card p { margin-top: 4px; color: var(--ink-2); font-size: var(--fs-15); }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.faq details { border-radius: 18px; background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); }  /* solid off-white cream, same as other cards */
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-d);
  font-size: 1.2rem; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }
.faq details p a { color: var(--orange-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Final CTA ── */
.cta-banner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 420px; overflow: hidden;
  border-radius: 28px; background: linear-gradient(110deg, #FBF4E4, #FFFBE6 55%, #F1F4E4);
  border: 1px solid var(--line);
}
.cta-copy { position: relative; z-index: 1; padding: 56px 0 56px 52px; }
.cta-copy h2 { font-size: var(--fs-h1); }
.cta-copy p { margin: 10px 0 26px; color: var(--ink-2); }
.cta-art { position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 16 / 9; }
.cta-scene {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24%); mask-image: linear-gradient(to right, transparent, #000 24%);
}

/* ── Footer ── */
.site-footer { padding: 36px 0 28px; border-top: 1px solid var(--line); margin-top: 48px; }
.footer-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.footer-nav a { font-size: var(--fs-14); color: var(--ink-2); }
.footer-nav a:hover { color: var(--ink); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; transition: background-color .2s; }
.socials a:hover { background: var(--orange); }
.socials svg { width: 18px; height: 18px; }
.footer-desc { margin-top: 18px; max-width: 44em; font-size: var(--fs-14); color: var(--ink-2); }
.copyright { margin-top: 10px; font-size: var(--fs-13); color: var(--ink-3); }


/* ── Pricing ── */
.pricing-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: -20px 0 28px; font-size: var(--fs-15); font-weight: 500; color: var(--ink-2); }
.pricing-benefits li::before { content: '✓'; margin-right: 6px; font-weight: 700; color: var(--teal-d); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; padding-top: 14px; }
/* 4 แพ็กเกจจาก ERP (main.js) */
.pricing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pricing-grid.cols-4 .plan { padding: 26px 22px 28px; }
@media (max-width: 1180px) { .pricing-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 32px; border-radius: 28px;
  background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
}
.plan-featured {
  background: var(--card-bg); border: 2px solid var(--orange);
  box-shadow: 0 22px 50px rgba(223, 105, 31, .16); transform: translateY(-10px);
}
.plan-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 18px; border-radius: 999px; background: var(--orange-d); color: #fff;
  font-size: var(--fs-13); font-weight: 600; box-shadow: 0 6px 14px rgba(223, 105, 31, .3);
}
.plan-head { display: flex; align-items: center; gap: 14px; }
.plan-icon { width: 58px; height: 58px; }
.plan-icon svg { width: 34px; height: 34px; }
.plan-head h3 { font-size: var(--fs-18); }
.plan-head p { font-size: var(--fs-14); color: var(--ink-2); line-height: 1.5; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 24px 0 20px; }
.plan-price .amount { font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.plan-featured .plan-price .amount { color: var(--orange-d); }
.plan-price .unit { color: var(--ink-3); font-weight: 500; }
.plan-price .per { flex-basis: 100%; font-size: var(--fs-13); color: var(--ink-3); }
.plan-price .save { flex-basis: 100%; font-size: var(--fs-13); font-weight: 600; color: var(--teal-d); }

/* pay-once / yearly switch */
.billing-toggle {
  display: flex; width: fit-content; margin: -8px auto 28px; padding: 4px; gap: 4px;
  border-radius: 999px; background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
}
.billing-toggle[hidden] { display: none; }
.billing-toggle button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 22px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 var(--fs-15) var(--font); color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s;
}
.billing-toggle button:hover { color: var(--ink); }
.billing-toggle button[aria-pressed="true"] { background: var(--orange-d); color: #fff; box-shadow: 0 6px 14px rgba(223, 105, 31, .25); }
.billing-save { white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-d); font-size: var(--fs-12); font-weight: 600; }
.plan > .btn { width: 100%; }
.plan-features { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px dashed #EEDCC3; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-15); line-height: 1.55; color: var(--ink); }
.plan-features svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.ic-check { fill: var(--teal); }
.plan-featured .ic-check { fill: var(--orange-d); }
.plan-features li.is-locked { color: var(--ink-3); }
.plan-features li.locked-summary { display: none; color: var(--ink-3); }
.plan-features .ic-lock { color: #C9B79A; }
.org-plan {
  display: flex; align-items: center; gap: 20px; margin-top: 32px; padding: 22px 28px; border-radius: 28px;
  background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
}
.org-plan .plan-icon { flex-shrink: 0; }
.org-plan-text { flex: 1; min-width: 0; }
.org-plan-text h3 { font-size: var(--fs-18); }
.org-plan-text p { margin-top: 2px; font-size: var(--fs-15); color: var(--ink-2); }
.org-plan .btn { flex-shrink: 0; }

/* ── Blog: shared pieces ── */
.chip {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 3px 12px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; line-height: 1.6;
}
.chip-orange { background: #FCE7CC; color: #C85A16; }
.chip-teal { background: #DDEEE9; color: #116E63; }
.chip-sand { background: #F4EAD5; color: #755B35; }

.cover { position: relative; overflow: hidden; border-radius: 18px; }
.cover-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.cover img:not(.cover-scene) {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: auto; height: 86%; max-width: none; object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(71, 53, 32, .16));
}
.cover-peach { background: radial-gradient(120% 100% at 80% 0%, #FFF8EE, #FBE0BE); color: #EFC48F; }
.cover-mint { background: radial-gradient(120% 100% at 80% 0%, #F5FBF8, #D2EAE2); color: #8EC6B6; }
.cover-sand { background: radial-gradient(120% 100% at 80% 0%, #FFFBF2, #F1E3C5); color: #D8C293; }
.cover-photo { aspect-ratio: 16 / 9; background: var(--card-line); }
.cover.cover-photo img {
  position: static; display: block; width: 100%; height: 100%;
  transform: none; filter: none; object-fit: cover;
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.post-card, .post-featured {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover, .post-featured:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(196, 150, 96, .16); }
.post-card[hidden], .post-featured[hidden] { display: none; }
.post-card .cover { margin: 10px 10px 0; aspect-ratio: 16 / 10; }
.post-card .cover-photo { aspect-ratio: 16 / 9; }
.post-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 22px 22px; }
.post-card h2, .post-card h3 { font-size: var(--fs-18); line-height: 1.45; }
.post-card h2 a::after, .post-card h3 a::after, .post-featured h2 a::after { content: ''; position: absolute; inset: 0; }
.post-card a:hover, .post-featured h2 a:hover { color: var(--orange-d); }
.post-excerpt {
  color: var(--ink-2); font-size: var(--fs-15);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#blog .post-excerpt { display: block; overflow: visible; }  /* landing cards show the whole description */
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: var(--fs-13); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; display: inline-block; }

/* ── Blog index ── */
.page-hero { padding: 28px 0 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-14); color: var(--ink-3); }
.breadcrumb a:hover { color: var(--orange-d); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; margin-top: 18px; }
.page-hero h1 { margin-top: 16px; font-size: var(--fs-h1); }
.page-hero .lead { max-width: 36em; }
.page-hero-mascot { width: 220px; filter: drop-shadow(0 10px 18px rgba(71, 53, 32, .16)); animation: bob 5s ease-in-out infinite; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filter-btn {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid #F3E2CB; background: var(--card-bg); color: var(--ink-2); font: 500 var(--fs-15) var(--font);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--ink); }
.filter-btn.is-active { background: var(--orange-d); border-color: var(--orange-d); color: #fff; }
.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 24px; }
.post-featured .cover { margin: 12px; min-height: 320px; }
.post-featured .cover-photo { min-height: 0; align-self: center; }
.post-featured .post-body { justify-content: center; gap: 14px; padding: 32px 36px 32px 20px; }
.post-featured h2 { font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); line-height: 1.4; }
.post-featured .post-excerpt { -webkit-line-clamp: 3; font-size: var(--fs-16); }
.post-featured .post-meta { margin-top: 0; }
.post-featured .btn { position: relative; z-index: 1; align-self: flex-start; margin-top: 6px; }
.filter-empty { text-align: center; color: var(--ink-3); padding: 32px 0; }

/* ── Article ── */
.article-head { max-width: 860px; text-align: center; padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.article-head .breadcrumb { justify-content: center; }
.article-head .chip { align-self: center; }
.article-head h1 { font-size: var(--fs-h1); line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; color: var(--ink-3); font-size: var(--fs-14); }
.author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; }
.author img { width: 22px; height: auto; }
.article-cover { max-width: 1040px; margin: 0 auto; aspect-ratio: 21 / 8; border-radius: 28px; }
.article-cover img { height: 90%; }
.article-cover.cover-photo { max-width: 880px; aspect-ratio: 16 / 9; }
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start;
  max-width: 1080px; margin: 48px auto 0;
}
.article-aside { grid-column: 2; grid-row: 1; position: sticky; top: 96px; display: grid; gap: 16px; }
.prose { grid-column: 1; grid-row: 1; font-size: var(--fs-17); line-height: 1.9; color: #4A3622; }
.prose > :first-child { margin-top: 0; }
.prose .lead-p { font-size: var(--fs-18); color: var(--ink); margin-bottom: 24px; }
.prose h2 { font-size: var(--fs-24); margin: 44px 0 14px; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { font-size: var(--fs-20); margin: 28px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--orange-d); font-weight: 700; }
.prose strong { color: var(--ink); }
.callout {
  margin: 26px 0; padding: 18px 22px; border-radius: 18px;
  background: var(--card-bg); border: 1px solid var(--card-line); border-left: 4px solid var(--orange);
}
.callout-teal { border-left-color: var(--teal); }
.callout b { display: block; color: var(--ink); margin-bottom: 4px; }
.callout p { margin: 0; }
.summary-box { padding: 22px 24px; border-radius: 20px; background: #EEF6F2; border: 1px solid #DCEDE6; }
.summary-box p { margin: 0; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: 18px; border: 1px solid #F3E7D3; background: var(--card-bg); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-15); line-height: 1.6; }
.prose table.table-fit { min-width: 0; }
.dialogue { margin: 0 0 24px; padding: 18px 20px; border-radius: 18px; background: var(--card-bg); border: 1px solid #F3E7D3; }
.dialogue .dialogue-line { margin: 0 0 10px; }
.dialogue .dialogue-line:last-child { margin-bottom: 0; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #F3E7D3; }
.prose thead th { background: #FDF3E4; color: var(--ink); }
.prose tbody th { color: var(--ink); white-space: nowrap; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.inline-cta {
  display: flex; align-items: center; gap: 20px; margin: 36px 0; padding: 20px 24px;
  border-radius: 24px; background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
}
.inline-cta img { width: 96px; flex-shrink: 0; }
.inline-cta b { display: block; font-size: var(--fs-18); color: var(--ink); }
.inline-cta p { margin: 2px 0 12px; font-size: var(--fs-15); color: var(--ink-2); }
.toc { padding: 18px 20px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); }
.toc summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '›'; color: var(--ink-3); transform: rotate(90deg); transition: transform .2s; }
.toc:not([open]) summary::after { transform: rotate(0); }
.toc ol { margin-top: 12px; display: grid; gap: 4px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: var(--fs-14); line-height: 1.5; color: var(--ink-2); }
.toc a::before { content: counter(toc); color: var(--orange-d); font-weight: 700; }
.toc a:hover { background: #FDF3E4; color: var(--ink); }
.aside-cta {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 20px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
}
.aside-cta img { width: 110px; margin-top: -6px; }
.aside-cta p { font-size: var(--fs-14); color: var(--ink-2); margin-bottom: 8px; }
.aside-cta .btn { width: 100%; }
.related { padding-top: 64px; }

/* ════════ Responsive ════════ */
/* the seven nav links and the CTA need about 1220px */
@media (max-width: 1240px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: block; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; min-height: 0; }
  .cta-copy { padding: 44px 44px 0; }
  .cta-art { position: relative; inset: auto; width: 100%; margin-top: 8px; }
  .cta-scene { -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
  .hero-art {
    position: relative; inset: auto; margin: 8px calc(50% - 50vw) -48px;
  }
  .hero-scene { -webkit-mask-image: none; mask-image: none; }
  .hero-bubble { top: 9%; }
  .benefit-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .dash-side { padding: 12px; background: #FBF6EC; border-right: 0; border-bottom: 1px solid #F1E6D3; }
  .dash-side .mini-brand { display: none; }
  .dash-menu { display: flex; flex-wrap: wrap; }
  .dash-menu button { width: auto; }
  .journey-stops li { width: 18%; top: calc(var(--y) + 6%); }
  .journey-stops b { font-size: var(--fs-13); }
  .journey-steps { grid-template-columns: repeat(2, 1fr); }
  .result-notes { grid-template-columns: 1fr; gap: 12px; }
  .journey-goal b { font-size: var(--fs-14); }
  .journey-goal span { font-size: var(--fs-13); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .cover { min-height: 0; aspect-ratio: 16 / 9; margin-bottom: 0; }
  .post-featured .post-body { padding: 20px 24px 26px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
  .article-aside, .prose { grid-column: auto; grid-row: auto; }
  .article-aside { position: static; }
  .aside-cta { display: none; }
  .pricing-grid, .pricing-grid.cols-4 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 32px; }
  .org-plan { flex-wrap: wrap; gap: 16px; max-width: 480px; margin: 32px auto 0; padding: 22px; }
  .org-plan-text { display: contents; }
  .org-plan-text h3 { flex: 1; min-width: 0; }
  .org-plan-text p, .org-plan .btn { flex-basis: 100%; }
  .org-plan-text p { margin-top: -4px; }
  .plan-features li.is-locked { display: none; }
  .plan-features li.locked-summary { display: flex; }
  .plan-featured { transform: none; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-row { height: 64px; }
  .section, .section-tight { padding: 32px 0; }
  .section-head { margin-bottom: 28px; }
  .hero { padding: 28px 0 32px; }
  .eyebrow-en { padding: 5px 12px; font-size: .6875rem; letter-spacing: .01em; text-wrap: balance; }
  .journey-head { padding: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; }

  /* journey → vertical */
  .journey-panel { padding: 32px 20px 20px; }
  .journey-art { border-radius: 14px; }
  .journey-stops { display: none; }
  .journey-steps { grid-template-columns: 1fr; gap: 16px; padding: 18px 0 4px; border-top: 0; }
  .journey-goal b { font-size: .6875rem; }
  .journey-goal span { display: none; }
  .br-desk { display: none; }

  .dash-panels { padding: 12px; }
  .center-cta .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.4; padding: 10px 20px; }

  .benefit-grid, .benefit-grid.cols-4 { grid-template-columns: 1fr; gap: 12px; }
  .pricing-benefits { flex-direction: column; align-items: center; margin-top: -12px; }
  .benefit-card { flex-direction: row; text-align: left; padding: 16px 18px; }
  .benefit-card .icon-blob { width: 56px; height: 56px; }
  .benefit-card .icon-blob svg { width: 32px; height: 32px; }

  .cta-copy { padding: 32px 22px 0; }
  .cta-copy .btn { width: 100%; }
  
  .footer-row { gap: 20px; }
  .footer-nav { margin-left: 0; gap: 14px 20px; }

  .post-grid, .post-grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .page-hero-grid { grid-template-columns: 1fr 96px; gap: 12px; }
  .page-hero-mascot { width: 96px; align-self: start; margin-top: 40px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin: 22px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
  .article-cover { aspect-ratio: 16 / 10; border-radius: 22px; }
  .prose { font-size: var(--fs-16); line-height: 1.85; }
  .prose h2 { font-size: var(--fs-20); margin-top: 36px; }
  .inline-cta { flex-direction: column; text-align: center; padding: 22px 18px; }
  .inline-cta img { width: 80px; }
  .billing-toggle button { padding: 0 14px; gap: 6px; font-size: var(--fs-14); }
  .billing-save { padding: 2px 8px; }
}

@media (max-width: 360px) {
  .header-row { gap: 12px; }
  .brand-word { height: 19px; }
  .cta-copy h2 { font-size: var(--fs-24); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.plans-status { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 0; text-align: center; font-size: var(--fs-15); color: var(--ink-2); }
