/* One SEO Maker: the only stylesheet (public site + admin). Values follow the Design canvas. */

:root {
  --ink: #0B1B33;
  --muted: #4A5868;
  --line: #DDE3E8;
  --line-2: #C9D3DC;
  --line-soft: #EEF2F5;
  --soft: #F2F5F9;
  --soft-2: #F7F9FA;
  --white: #FFFFFF;
  --green: #0B8A80;
  --green-dark: #06655F;
  --green-soft: #E2F6F2;
  --green-line: #C7E6DB;
  --mint: #8FE3C0;
  --yellow: #FFE27A;
  --cream: #FFF8D6;
  --cream-line: #F0DE8A;
  --navy-2: #13284A;
  --navy-3: #233D57;
  --navy-line: #27445F;
  --navy-text: #CFE0EC;
  --navy-muted: #A9B8C6;
  --link-blue: #1A3FB0;
  --danger: #B4232A;
  --orange: #D9480F;
  --amber: #E0A800;

  --font-display: 'Kanit', 'Sarabun', 'Noto Sans Thai', sans-serif;
  --font-body: 'Sarabun', 'Noto Sans Thai', sans-serif;
  /* IBM Plex Mono has no Thai glyphs; Sarabun covers "ชม.", "ปี", "บาท" next to numbers. */
  --font-mono: 'IBM Plex Mono', 'Sarabun', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  /* Brand gradient from the logo: mint → teal → blue → violet */
  --mint-2: #3EE6A0;
  --teal: #19B8C4;
  --blue: #4C7CF0;
  --violet: #6B5BE3;
  --grad: linear-gradient(100deg, #2FD9A6 0%, #19B8C4 35%, #4C7CF0 70%, #6B5BE3 100%);
  --grad-soft: linear-gradient(135deg, rgba(47,217,166,.16), rgba(76,124,240,.14) 60%, rgba(107,91,227,.12));
  --paper: #F7F9FB;
  --font-hand: 'Caveat', 'Kanit', cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-wide: 1280px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: var(--max-wide); }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); }
.measure { max-width: 40em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--ink); text-align: center;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 17px; }
.btn--md { min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 16px; }
.btn--white { background: var(--white); color: var(--green-dark); font-weight: 700; }
.btn--white:hover { color: var(--ink); }
.btn--ghost-light { border-color: #8FD3B8; color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); font-weight: 700; }
.btn--yellow:hover { background: #FFD84A; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }

.badge {
  align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.5; background: var(--green-soft); color: var(--green-dark);
}
.badge--muted { background: var(--soft); color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--green-dark);
}
.ico-check { color: var(--green); flex: none; stroke-width: 2.4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header__inner {
  max-width: var(--max-wide); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
/* The global img rule sets height:auto, so the logo needs an explicit height or it shows at 255×300. */
.brand__logo { flex: none; display: block; height: 36px; width: auto; max-width: none; }
.site-footer .brand__logo, .admin-side .brand__logo { height: 32px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand--light .brand__name { color: var(--white); font-size: 18px; }
.site-nav { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.site-nav__list a { color: var(--ink); text-decoration: none; }
.site-nav__list a:hover, .site-nav__list a.is-active { color: var(--green); }
.site-nav__list a.is-active { font-weight: 600; }
.site-nav__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 900px) {
  .site-header__inner { padding: 8px 16px; min-height: 60px; }
  .brand__name { font-size: 17px; }
  .site-header .brand__logo { height: 32px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; font-size: 17px; }
  .site-nav__list a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
  .site-nav__actions .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 56px 0 88px; }
.section--soft { background: var(--soft); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #F3F6F8; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head__main { max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.section-head__aside { max-width: 380px; color: var(--muted); font-size: 15px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--green); letter-spacing: 0.02em; }
.eyebrow--mint { color: var(--mint); }
.section-title { font-size: 40px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.section--dark .link-arrow { color: var(--mint); }

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero__inner { padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-weight: 700; font-size: 56px; line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; }
.hl { background: linear-gradient(transparent 60%, var(--yellow) 60%); white-space: nowrap; }
/* Kanit is wide: start the second half on its own line so the phrase never splits after "กับ". */
.hero__title-rest { display: block; }
.hero__lead { font-size: 19px; line-height: 1.75; color: var(--muted); max-width: 34em; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.price-row__price { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.1; color: var(--green); }
.price-row__note { color: var(--muted); }
.check-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.check-inline li { display: flex; align-items: center; gap: 8px; }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.hero__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }

.photo-ph {
  border-radius: 24px; background: repeating-linear-gradient(135deg, #E4EAEF 0 14px, #DAE2E8 14px 28px);
  display: flex; padding: 20px;
}
.photo-ph--square { aspect-ratio: 1 / 1; align-items: flex-start; justify-content: flex-end; }
.photo-ph--portrait { flex: 1 1 340px; min-width: 0; aspect-ratio: 4 / 5; align-items: flex-end; }
.ph-label { font-size: 13px; line-height: 1.5; color: var(--muted); background: var(--white); padding: 4px 10px; border-radius: 8px; align-self: flex-start; }
.ph-label--dark { color: var(--navy-muted); background: var(--navy-2); align-self: center; }

.serp-card {
  position: relative; margin-top: -150px; width: 92%;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 44px rgba(15,30,46,.14); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px;
}
.serp-card__search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.serp-card__search svg { color: var(--muted); }
.serp-card__result { display: flex; flex-direction: column; gap: 4px; }
.serp-card__url { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.serp-card__fav { width: 22px; height: 22px; border-radius: 999px; background: var(--green-soft); border: 1px solid var(--green-line); flex: none; }
.serp-card__domain { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.serp-card__badge { margin-left: auto; flex: none; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.serp-card__title { font-size: 19px; color: var(--link-blue); font-weight: 500; line-height: 1.45; }
.serp-card__desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.serp-card__desc b { color: var(--ink); }

@media (max-width: 760px) {
  .hero__inner { padding-top: 28px; padding-bottom: 32px; gap: 32px; }
  .hero__text { gap: 16px; }
  .hero__title { font-size: 31px; line-height: 1.3; letter-spacing: -0.01em; }
  .hero__lead { font-size: 15px; }
  .price-row__price { font-size: 32px; }
  .hero .btn-row .btn { width: 100%; }
  .serp-card { margin-top: -90px; width: 96%; }
  .serp-card__title { font-size: 16px; }
}

/* ---------- Stats strip ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px 0; }
.stat { flex: 1 1 200px; padding: 4px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-family: var(--font-mono); font-weight: 600; font-size: 34px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; color: var(--muted); }
@media (max-width: 520px) { .stat { flex-basis: 50%; padding: 4px 14px; } .stat__num { font-size: 26px; } .stat__label { font-size: 13px; } }

/* ---------- Course picker (home) ---------- */
.course-picker { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.module-list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.module-btn {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; text-align: left;
  padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.module-btn:hover { border-color: var(--line-2); }
.module-btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.module-btn__num {
  flex: none; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; background: var(--soft); color: var(--ink);
}
.module-btn[aria-selected="true"] .module-btn__num { background: var(--yellow); }
.module-btn__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.module-btn__en { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.4; }
.module-btn__th, .module-btn__count { font-size: 14px; line-height: 1.5; color: var(--muted); }
.module-btn__count { flex: none; font-size: 13px; white-space: nowrap; }
.module-btn[aria-selected="true"] .module-btn__th, .module-btn[aria-selected="true"] .module-btn__count { color: var(--navy-text); }
.module-panel {
  flex: 999 1 540px; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 22px; background: var(--white);
}
.module-panel__head { display: flex; flex-direction: column; gap: 8px; }
.module-panel__label { font-size: 14px; font-weight: 600; color: var(--green); }
.module-panel__title { font-size: 28px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
html:not(.js) .module-panel[hidden] { display: flex !important; }
html:not(.js) .module-list { display: none; }

.lesson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-list a { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 4px; text-decoration: none; color: var(--ink); }
.lesson-list a:hover .lesson-list__title { color: var(--green); }
.lesson-list__num { flex: none; width: 72px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-list__title { flex: 1; min-width: 0; font-weight: 500; }
.lesson-list__time { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.lesson-list a.is-done .lesson-list__num::after { content: " ✓"; color: var(--green); font-weight: 700; }
.play-dot { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }

@media (max-width: 760px) {
  .module-panel { padding: 20px; }
  .module-panel__title { font-size: 22px; }
  .lesson-list a { gap: 12px; }
  .lesson-list__num { width: 58px; font-size: 13px; }
  .lesson-list__time { display: none; }
}

/* ---------- Results (dark) ---------- */
.results-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.results-grid__small { flex: 1 1 480px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.case-card {
  flex: 1 1 230px; min-width: 0; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 20px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.case-card--feature { flex: 1 1 480px; padding: 28px; gap: 16px; }
.case-card p { color: var(--navy-muted); font-size: 15px; }
.case-card--feature p { font-size: 16px; max-width: 36em; }
.case-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--navy-muted); }
.tag-dark { padding: 3px 10px; border-radius: 999px; background: var(--navy-3); color: var(--navy-text); font-weight: 600; }
.case-card__metric-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.case-card__metric { font-family: var(--font-mono); font-weight: 600; font-size: 34px; line-height: 1.15; color: var(--white); }
.case-card__metric--lg { font-size: 48px; line-height: 1.1; }
.case-card__unit { font-size: 18px; color: var(--navy-text); }
.case-card__chart { margin-top: auto; border-radius: 12px; border: 1px solid var(--navy-line); }
.chart-ph {
  margin-top: auto; aspect-ratio: 1024 / 427; border-radius: 12px; border: 1px solid var(--navy-line);
  background-color: #12263A;
  background-image: linear-gradient(#1E3650 1px, transparent 1px), linear-gradient(90deg, #1E3650 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%; display: flex; align-items: center; justify-content: center; padding: 12px;
}

/* ---------- Reviews ---------- */
.reviews-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.reviews-grid__small { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.review {
  flex: 1 1 240px; min-width: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.review blockquote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.review--feature { flex: 1 1 440px; border-radius: 20px; padding: 36px; gap: 20px; }
.review__headline { font-family: var(--font-display); font-size: 30px; line-height: 1.4; font-weight: 600; text-wrap: balance; }
.review__headline--sm { font-size: 22px; }
.review__quote { margin: 0; font-weight: 500; line-height: 1.6; }
.review__by { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review__who { display: flex; flex-direction: column; line-height: 1.4; }
.review__who span { font-size: 14px; color: var(--muted); }
.review__who--sm { font-size: 14px; line-height: 1.35; }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--soft);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.avatar--lg { width: 48px; height: 48px; background: var(--green-soft); color: var(--green-dark); font-family: var(--font-display); font-size: 18px; }
.avatar--sm { width: 28px; height: 28px; background: var(--green-soft); color: var(--green-dark); font-size: 13px; }
.review-wall { columns: 2 420px; column-gap: 20px; }
.review--full { break-inside: avoid; margin-bottom: 20px; padding: 28px; border-radius: 20px; }
@media (max-width: 760px) { .review--feature { padding: 24px; } .review__headline { font-size: 22px; } }

/* ---------- Services (home cards) ---------- */
.svc-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.svc-card {
  flex: 1 1 300px; min-width: 0; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white);
}
.svc-card:hover { color: var(--ink); border-color: var(--line-2); box-shadow: 0 10px 30px rgba(15,30,46,.06); }
.svc-card--featured { border: 2px solid var(--green); }
.svc-card__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.svc-card__price { font-family: var(--font-mono); font-size: 30px; font-weight: 600; }
.svc-card__price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.svc-card__desc { color: var(--muted); font-size: 15px; }
.svc-card__more { margin-top: auto; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about__photo { flex: 1 1 340px; min-width: 0; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.about__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__fullname { font-size: 22px; color: var(--muted); font-weight: 500; }
.about__role { font-size: 15px; font-weight: 600; }
.about__talks { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.about__talks-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.talk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 32px; border-top: 1px solid var(--line); }
.talk-list li { flex: 1 1 280px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.talk-list__title { font-weight: 500; }
.talk-list__host { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 40px; }
.faq__head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq__list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--green); color: var(--white); }
.cta-band__inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band__text { max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.cta-band h2 { font-size: 34px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.cta-band p { color: #DDF3EA; }
@media (max-width: 760px) { .cta-band h2 { font-size: 26px; } .cta-band .btn { width: 100%; } }

.site-footer { background: var(--ink); color: var(--navy-text); }
.site-footer__inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer__brand { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand p { font-size: 15px; color: var(--navy-muted); max-width: 26em; }
.site-footer__nav { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--navy-muted); }
.site-footer__nav b { color: var(--white); }
.site-footer a { color: var(--navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom { border-top: 1px solid var(--navy-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--navy-muted); }
.site-footer--compact { color: var(--navy-muted); }
.site-footer__row { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .has-mobile-bar { padding-bottom: 92px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--white);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,30,46,.08);
  }
  .mobile-bar--lesson { flex-direction: column; padding-top: 10px; }
  .has-mobile-bar:has(.mobile-bar--lesson) { padding-bottom: 130px; }
  .mobile-bar__btn { flex: 1; min-height: 50px; border-radius: 12px; }
  .mobile-bar__btn--wide { flex: 1.3; }
  .mobile-bar__row { display: flex; gap: 10px; }
  .mobile-bar__help { text-align: center; font-size: 14px; font-weight: 600; text-decoration: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.page-hero__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.page-title { font-weight: 700; font-size: 48px; line-height: 1.25; text-wrap: balance; }
.page-hero__lead { font-size: 18px; color: var(--muted); max-width: 36em; }
.page-hero--error .page-hero__inner { padding-top: 96px; padding-bottom: 120px; }
@media (max-width: 760px) { .page-title { font-size: 32px; } .page-hero__lead { font-size: 16px; } .page-hero__inner { padding-top: 24px; padding-bottom: 36px; } }

.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.breadcrumb li { display: flex; gap: 10px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current] { color: var(--ink); }

.chooser {
  flex: 1 1 320px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px;
}
.chooser__title { font-family: var(--font-display); font-size: 17px; }
.chooser__row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.chooser__row b { white-space: nowrap; }

/* ---------- Courses page ---------- */
.course-progress {
  flex: 0 1 340px; min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.module-stack { display: flex; flex-direction: column; gap: 28px; }
.module-block { border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 90px; }
.module-block__head { display: flex; gap: 18px; align-items: flex-start; }
.module-block__head > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.module-btn__num--static { background: var(--yellow); }
@media (max-width: 760px) { .module-block { padding: 20px; } .module-block__head .module-btn__num { display: none; } }

.progress-text { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__bar { height: 8px; width: 0; background: var(--green); border-radius: 999px; transition: width .3s; }

/* ---------- Lesson page ---------- */
.lesson-top { padding-top: 18px; }
.lesson-layout { padding-top: 24px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.toc { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.toc__head { padding: 20px 20px 16px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.toc__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.toc__module { padding: 20px 20px 6px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.toc__module-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--green); }
.toc__module-num--muted { color: var(--muted); }
.toc__lessons { list-style: none; margin: 0; padding: 0 0 8px; }
.toc__lessons a { display: flex; align-items: center; gap: 12px; padding: 9px 20px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.5; }
.toc__lessons a:hover { background: var(--soft-2); color: var(--ink); }
.toc__lessons a.is-current { background: var(--green-soft); font-weight: 600; }
.toc__lesson-title { flex: 1; min-width: 0; }
.status {
  flex: none; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.status__check { display: none; stroke-width: 3.2; }
.status__dot { display: none; width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.status--current { border-color: var(--green); }
.status--current .status__dot { display: block; }
.status.is-done { background: var(--green); border-color: var(--green); }
.status.is-done .status__check { display: block; }
.status.is-done .status__dot { display: none; }
.toc__others { border-top: 1px solid var(--line); }
.toc__others a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.toc__others a:hover { background: var(--soft-2); color: var(--ink); }
.toc__others svg { color: var(--muted); }
.toc__other-name { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; }
.toc__other-count { font-size: 13px; color: var(--muted); }

.lesson-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lesson-head { display: flex; flex-direction: column; gap: 12px; }
.lesson-head__kicker { font-size: 14px; font-weight: 600; color: var(--green); }
.lesson-head__title { font-size: 44px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.lesson-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.lesson-head__by { display: flex; align-items: center; gap: 8px; }

/* Lite YouTube: thumbnail + play button; the player loads only after a click */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: var(--ink); color: var(--white); text-decoration: none; cursor: pointer;
}
.yt__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,30,46,.05) 40%, rgba(15,30,46,.75)); }
.yt__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 999px; background: var(--green); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .15s, background .15s;
}
.yt:hover .yt__play, .yt:focus-visible .yt__play { transform: translate(-50%, -50%) scale(1.06); background: var(--green-dark); }
.yt__caption { position: absolute; left: 28px; right: 28px; bottom: 22px; z-index: 1; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; color: var(--white); }
.yt__brand { color: var(--navy-muted); }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; display: block; background: #000; }
@media (max-width: 760px) {
  .yt, .yt-frame { border-radius: 0; margin: 0 calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); }
  .yt__play { width: 64px; height: 64px; }
  .yt__caption { display: none; }
}

.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.btn--done { min-height: 48px; border-radius: 12px; }
.checkbox { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.btn--done__on { display: none; }
.btn--done[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.btn--done[aria-pressed="true"] .checkbox { border-color: var(--green); background: var(--green); color: var(--white); }
.btn--done[aria-pressed="true"] .btn--done__on { display: inline; }
.btn--done[aria-pressed="true"] .btn--done__off { display: none; }
.checkbox svg { stroke-width: 3; }

.tabs__list { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab {
  min-height: 48px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--muted); font-weight: 600; cursor: pointer;
}
.tab[aria-selected="true"] { border-bottom-color: var(--green); color: var(--ink); }
.tab-panel + .tab-panel { margin-top: 40px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel__title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.js .tab-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.prose { max-width: 760px; font-size: 17px; line-height: 1.85; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 28px; line-height: 1.35; font-weight: 700; margin-top: 34px; }
.prose h3 { font-size: 22px; line-height: 1.4; font-weight: 700; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose code { font-family: var(--font-mono); font-size: .85em; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.prose table code { background: none; padding: 0; font-size: 14px; }
.prose blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--line-2); color: var(--muted); }
.prose img { border-radius: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table, .prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose th { background: var(--soft); text-align: left; padding: 12px 16px; font-weight: 600; }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.callout { background: var(--cream); border: 1px solid var(--cream-line); border-radius: 16px; padding: 22px 24px; }
.prose .callout h3 { margin: 0 0 10px; font-size: 19px; }
.prose .callout ul { font-size: 16px; margin: 0; }

.transcript { max-width: 760px; border-top: 1px solid var(--line); }
.transcript__row { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.transcript__time { flex: none; min-width: 52px; font-family: var(--font-mono); font-size: 14px; color: var(--green); padding-top: 2px; }
.file-list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.file-row__type { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.file-row__name { flex: 1; min-width: 180px; display: flex; flex-direction: column; line-height: 1.45; }
.file-row__name span { font-size: 14px; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.pager__link { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.pager__link:hover { border-color: var(--line-2); color: var(--ink); }
.pager__link--next { align-items: flex-end; text-align: right; }
.pager__label { font-size: 14px; color: var(--muted); }
.pager__title { font-weight: 600; }

.cta-box { background: var(--ink); color: var(--white); border-radius: 20px; padding: 28px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-box__text { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.cta-box__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.4; }
.cta-box__sub { color: var(--navy-muted); font-size: 15px; }


@media (max-width: 900px) {
  .lesson-layout { gap: 28px; }
  .toc { order: 2; }
}
@media (max-width: 760px) {
  .lesson-head__title { font-size: 27px; line-height: 1.3; }
  .prose { font-size: 16px; line-height: 1.8; }
  .prose h2 { font-size: 22px; }
  .lesson-actions { display: none; }
  .cta-box { padding: 22px; }
  .cta-box .btn { width: 100%; }
}

/* ---------- Service options + booking ---------- */
.section--services { padding: 72px 0 88px; }
.svc-cards { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.svc-option {
  flex: 1 1 250px; min-width: 0; border: 2px solid var(--line); border-radius: 20px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px; background: var(--white); scroll-margin-top: 90px;
}
.svc-option.is-selected { border-color: var(--green); }
.svc-option__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.svc-option__picked { display: none; }
.svc-option.is-selected .svc-option__picked { display: inline-block; }
.svc-option__name { font-weight: 700; font-size: 21px; line-height: 1.4; min-height: 58px; }
.svc-option__price { display: flex; flex-direction: column; }
.svc-option__amount { font-family: var(--font-mono); font-size: 34px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.feature-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list .ico-check { margin-top: 3px; }
.svc-option__cta { margin-top: auto; min-height: 48px; border-radius: 12px; border-color: var(--line-2); }
.svc-option__cta-on { display: none; }
.svc-option.is-selected .svc-option__cta { background: var(--green); border-color: var(--green); color: var(--white); }
.svc-option.is-selected .svc-option__cta-on { display: inline; }
.svc-option.is-selected .svc-option__cta-off { display: none; }

.book { background: var(--soft); border-top: 1px solid var(--line); padding: 88px 0; scroll-margin-top: 70px; }
.book__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.book__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li > span:last-child { display: flex; flex-direction: column; }
.steps b { font-weight: 600; }
.steps .muted { font-size: 15px; }
.steps__num { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.book__direct { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contact-lines--hero { font-size: 15px; color: var(--muted); }
.book-card { flex: 999 1 560px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
@media (max-width: 760px) { .book { padding: 56px 0; } .book-card { padding: 20px; border-radius: 18px; } }

.book-form { display: flex; flex-direction: column; gap: 20px; }
.chips-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chips-field legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--white); font-size: 15px; font-weight: 600; cursor: pointer;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field--sm { flex-basis: 160px; }
/* In a vertical stack (admin cards) the flex-basis would become a 220px height: keep fields their natural height */
.card > .field, .card > form > .field, .login__card > .field { flex: none; }
.field label { font-size: 15px; font-weight: 600; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.field input.mono { font-family: var(--font-mono); font-size: 15px; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green-soft); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 14px; }
.form-alert { background: #FDECEC; border: 1px solid #F3C2C4; color: #7A1A1F; border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.form-alert ul { margin: 6px 0 0; padding-left: 20px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.btn--submit { min-height: 52px; border-radius: 12px; font-size: 17px; font-weight: 700; width: 100%; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.book-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.book-done__icon { width: 56px; height: 56px; border-radius: 999px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.book-done__icon svg { stroke-width: 2.6; }
.book-done__title { font-size: 28px; font-weight: 700; }

/* ---------- Events ---------- */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.event { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event__img { width: 200px; height: auto; border-radius: 12px; }
.event__body { display: flex; flex-direction: column; gap: 2px; }
.event__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }

/* =================================================================
   Admin
   ================================================================= */
.admin-body { background: var(--soft); font-size: 15px; line-height: 1.6; }
.admin { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.admin-side { flex: 1 1 240px; max-width: 100%; background: var(--ink); color: var(--navy-text); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.admin-side__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--navy-text); text-decoration: none; }
.admin-side__brand b { font-family: var(--font-display); color: var(--white); font-size: 16px; display: block; line-height: 1.3; }
.admin-side__brand small { font-size: 12px; color: var(--navy-muted); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav__label { padding: 0 12px 6px; font-size: 12px; color: var(--navy-muted); letter-spacing: .04em; }
.admin-nav a, .admin-nav button {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--navy-text); text-decoration: none; background: transparent; border: 0; width: 100%; cursor: pointer; text-align: left;
}
.admin-nav a:hover, .admin-nav button:hover { background: var(--navy-2); color: var(--white); }
.admin-nav a.is-active { background: var(--navy-3); color: var(--white); font-weight: 600; }
.admin-nav__text { flex: 1; }
.admin-nav__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.admin-side__user { margin-top: auto; padding: 12px; border-top: 1px solid var(--navy-line); font-size: 13px; color: var(--navy-muted); overflow-wrap: anywhere; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 900px) {
  .admin-side { flex-basis: 100%; padding: 12px; gap: 10px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav a, .admin-nav button { width: auto; }
  .admin-nav__label, .admin-side__user { display: none; }
  .admin-main { padding: 20px 16px 40px; }
}
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.admin-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.admin-head h1 { font-size: 30px; font-weight: 700; }
.admin-crumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.admin-crumb a { color: var(--muted); text-decoration: none; }
.flash { background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-dark); border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.flash--error { background: #FDECEC; border-color: #F3C2C4; color: #7A1A1F; }

.stat-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.stat-card { flex: 1 1 200px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-card__label { font-size: 14px; color: var(--muted); }
.stat-card__num { font-family: var(--font-mono); font-size: 32px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-card__note { font-size: 13px; color: var(--muted); }
.stat-card__note--up { color: var(--green-dark); font-weight: 600; }

.panel-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.panel { flex: 999 1 600px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel--side { flex: 1 1 300px; }
.panel--pad { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel h2 { font-size: 18px; font-weight: 700; }
.panel__head a { font-weight: 600; text-decoration: none; font-size: 14px; }
.panel__empty { padding: 20px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; color: var(--muted); background: var(--soft-2); padding: 10px 12px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 12px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.data-table th:first-child, .data-table td:first-child { padding-left: 20px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 20px; }
.data-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cell-stack { display: flex; flex-direction: column; line-height: 1.4; }
.cell-stack span { color: var(--muted); font-size: 13px; }
.cell-path { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status-pill--new { background: var(--yellow); color: #3D3000; }
.status-pill--contacted { background: #DCE7F5; color: #1C3A66; }
.status-pill--scheduled { background: var(--green-soft); color: var(--green-dark); }
.status-pill--won { background: var(--ink); color: var(--white); }
.status-pill--lost { background: #E6EBEF; color: #33414F; }
.status-pill--published { background: var(--green-soft); color: var(--green-dark); }
.status-pill--draft { background: #FFF3C4; color: #6B5300; }

.todo { display: flex; flex-direction: column; }
.todo a { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.todo a:hover b { color: var(--green); }
.todo__dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 999px; background: var(--amber); }
.todo__dot--high { background: var(--orange); }
.todo span span { font-size: 13px; color: var(--muted); }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.bar-row__label { display: flex; justify-content: space-between; font-size: 14px; }
.bar { height: 10px; border-radius: 999px; background: #E6EBEF; overflow: hidden; }
.bar__fill { height: 10px; border-radius: 999px; background: var(--ink); }
.bar--sm, .bar--sm .bar__fill { height: 6px; }
.bar--sm .bar__fill { background: var(--green); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.filter-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-tabs small { font-family: var(--font-mono); color: inherit; opacity: .7; }

.lead-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 20px; }
.lead-card:target { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.lead-card__top { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-start; justify-content: space-between; }
.lead-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lead-card__who b { font-size: 17px; }
.lead-card__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.lead-card__meta a { overflow-wrap: anywhere; }
.lead-card details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--green); }
.lead-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 14px; }
.lead-card dt { color: var(--muted); }
.lead-card dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form select, .inline-form input, .inline-form textarea { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); }
.inline-form textarea { padding: 8px 10px; min-height: 60px; flex: 1 1 300px; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.notes { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notes li { background: var(--soft-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.notes small { display: block; color: var(--muted); font-size: 12px; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; }

/* Lesson editor */
.editor { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.editor__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.editor__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.card--flush { padding: 0; gap: 0; overflow: hidden; }
.card h2, .card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.card__head { padding: 16px 24px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--white); }
.slug-input span { display: flex; align-items: center; padding: 0 12px; background: var(--soft); color: var(--muted); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; border-right: 1px solid var(--line-2); }
.slug-input input { border: 0 !important; border-radius: 0 !important; font-family: var(--font-mono); font-size: 14px; outline: none !important; }
.field__hint { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft-2); }
.toolbar button { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.toolbar button:hover { background: var(--line); }
.code-area { width: 100%; border: 0; padding: 18px 24px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; min-height: 280px; resize: vertical; outline: none; }
.field textarea.code-area--boxed { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; }
.serp-preview { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.serp-preview__label { font-size: 12px; color: var(--muted); }
.serp-preview__site { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 4px; }
.serp-preview__site i { width: 20px; height: 20px; border-radius: 999px; background: var(--ink); flex: none; }
.serp-preview__site span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.serp-preview__site b { color: var(--ink); font-weight: 400; }
.serp-preview__site small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-preview__title { font-size: 18px; color: var(--link-blue); line-height: 1.4; padding-top: 4px; }
.serp-preview__desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.counter-head { display: flex; justify-content: space-between; gap: 8px; }
.counter { font-family: var(--font-mono); font-size: 13px; color: var(--green); }
.counter.is-over { color: var(--orange); }
.meter { height: 5px; border-radius: 999px; background: #E6EBEF; overflow: hidden; }
.meter__fill { height: 5px; border-radius: 999px; background: var(--green); width: 0; }
.meter__fill.is-over { background: var(--orange); }
.checks { display: flex; flex-direction: column; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.check__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 999px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.check__icon svg { stroke-width: 3.2; }
.check--bad .check__icon { background: var(--orange); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { font-family: var(--font-mono); font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--soft); }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login__card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.login__card h1 { font-size: 26px; font-weight: 700; }

/* =================================================================
   Minimal Interactive Motion (OneSEOMaker brand direction)
   Swiss/editorial grid · brand gradient only on accents · subtle reveals
   ================================================================= */

/* Buttons: gradient pill (public pages only; admin keeps its buttons) */
body:not(.admin-body) .btn { border-radius: 999px; padding-inline: 22px; font-family: var(--font-display); font-weight: 500; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s; }
body:not(.admin-body) .btn--lg { padding-inline: 30px; }
body:not(.admin-body) .btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -10px rgba(76,124,240,.7); }
body:not(.admin-body) .btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(76,124,240,.8); }
body:not(.admin-body) .btn--outline { border-color: var(--line-2); }
.btn--navy { background: var(--ink); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn__arrow { display: inline-block; transition: transform .2s var(--ease-out); }
.btn:hover .btn__arrow, .link-arrow:hover .btn__arrow { transform: translateX(4px); }
.link-arrow { color: var(--green-dark); font-family: var(--font-display); font-weight: 500; }

/* Header */
.site-header { background: rgba(247,249,251,.88); border-bottom-color: transparent; }
.site-header__inner { padding-block: 16px; }
.brand__name { font-weight: 600; letter-spacing: -0.02em; font-size: 22px; }
.site-nav__list a { position: relative; padding-block: 6px; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { transform: scaleX(1); }
.site-nav__list a.is-active, .site-nav__list a:hover { color: var(--ink); }

/* Shared section language: number + rule + small caps label */
.h-section { padding: 104px 0; }
.h-num { font-family: var(--font-display); font-size: 13px; color: var(--muted); letter-spacing: .08em; margin-bottom: 14px; }
.h-num--light { color: rgba(255,255,255,.55); }
.h-label { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.h-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.22; font-weight: 600; letter-spacing: -0.01em; }
.h-title--light { color: #fff; }
.h-lead { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 34em; }
.h-lead--light { color: rgba(255,255,255,.72); }
.h-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.h-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hand { font-family: var(--font-hand); font-size: 30px; line-height: 1.05; color: var(--muted); transform: rotate(-8deg); }
.hand--light { color: rgba(255,255,255,.7); }

/* Image placeholder (until the owner supplies the photo) */
.ph { display: grid; place-items: center; padding: 20px; text-align: center; background: var(--grad-soft), repeating-linear-gradient(135deg, #E8EEF4 0 14px, #E1E8EF 14px 28px); color: var(--muted); font-size: 13px; border-radius: 20px; }
.ph span { background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 8px; }

/* 01 · Hero */
.h-hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.h-hero__grid { display: grid; gap: 48px; align-items: center; }
.h-hero__text { position: relative; padding-left: 28px; border-left: 1px solid var(--line); }
.h-hero__title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.h-hero__lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 32em; }
.h-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.play-link { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.play-link b { display: block; font-family: var(--font-display); font-weight: 500; }
.play-link small { display: block; color: var(--muted); font-size: 13px; }
.play-link__btn { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 20px -8px rgba(11,27,51,.35); color: var(--ink); transition: transform .2s var(--ease-out); }
.play-link:hover { color: var(--ink); }
.play-link:hover .play-link__btn { transform: scale(1.08); }
.h-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.h-stats div { display: flex; flex-direction: column-reverse; padding: 16px 16px 0 0; }
.h-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.h-stats dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.h-stats dt { font-size: 13px; color: var(--muted); }
.h-hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.logo-shape { position: absolute; width: 78%; max-width: 440px; left: 4%; top: 2%; opacity: .9; filter: blur(.2px); animation: float 9s ease-in-out infinite; }
.h-hero__img { position: relative; width: 100%; max-width: 560px; aspect-ratio: 5 / 4; }
.hand--hero { position: absolute; right: 4%; top: 0; }
.float-chip { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: rgba(255,255,255,.92); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(11,27,51,.35); backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite; }
.float-chip small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.float-chip b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-chip__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.float-chip--a { right: 0; top: 22%; }
.float-chip--b { left: 0; bottom: 10%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (min-width: 960px) {
  .h-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .h-hero__visual { min-height: 540px; }
}
@media (max-width: 640px) {
  .h-hero__text { padding-left: 16px; }
  .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .float-chip { padding: 10px 12px; }
  .float-chip b { font-size: 18px; }
  .hand--hero { font-size: 24px; }
}

/* 02 · Course */
.h-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .h-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.h-split__text { padding-left: 28px; border-left: 1px solid var(--line); }
.h-course { background: #fff; }
.feature-rows { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.feature-rows li { display: flex; gap: 16px; align-items: flex-start; }
.feature-rows b { display: block; font-family: var(--font-display); font-weight: 500; }
.feature-rows small { display: block; color: var(--muted); font-size: 14px; }
.feature-rows__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border: 1px solid var(--green-line); }
.video-card { position: relative; display: block; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 3; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(11,27,51,.5); }
.video-card img, .video-card .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.video-card:hover img { transform: scale(1.03); }
.video-card__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s var(--ease-out); }
.video-card__play svg { margin-left: 4px; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card__caption { position: absolute; left: 20px; right: 20px; bottom: 16px; color: #fff; font-family: var(--font-display); font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* 03 · Testimonials */
.carousel-nav { display: flex; gap: 10px; }
.round-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; transition: transform .2s var(--ease-out), background-color .2s, color .2s; }
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn--light { background: #fff; color: var(--ink); border-color: transparent; }
.round-btn--light:hover { background: var(--grad); color: #fff; transform: translateX(3px); }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 20px; margin-bottom: 24px; scrollbar-width: thin; }
@media (min-width: 960px) { .review-track { grid-auto-columns: calc((100% - 36px) / 3); } }
.review-card { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: 0 10px 30px -22px rgba(11,27,51,.35); transition: transform .25s var(--ease-out), box-shadow .25s; }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11,27,51,.45); }
.review-card blockquote { margin: 0; display: grid; gap: 8px; }
.review-card__mark { font-family: Georgia, serif; font-size: 44px; line-height: .6; height: 22px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review-card__headline { font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.5; }
.review-card__body { color: var(--muted); font-size: 14px; }
.review-card__by { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review-card__by b { display: block; font-family: var(--font-display); font-weight: 500; }
.review-card__by small { display: block; color: var(--muted); font-size: 12px; }
.review-card__avatar { flex: none; width: 40px; height: 40px; border-radius: 999px; object-fit: cover; display: grid; place-items: center; background: var(--grad-soft), var(--soft); font-family: var(--font-display); font-weight: 600; }

/* 04 · Teaching & consulting (dark, gradient mesh used here only) */
.h-dark { position: relative; overflow: hidden; background: #0A1830; color: #fff; padding: 104px 0; }
.h-dark__mesh { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 85% 10%, rgba(47,217,166,.22), transparent 70%),
  radial-gradient(50% 60% at 15% 100%, rgba(107,91,227,.28), transparent 70%),
  radial-gradient(40% 40% at 60% 55%, rgba(25,184,196,.14), transparent 70%); }
.h-dark__inner { position: relative; }
.h-dark .h-num + .h-label { margin-top: 0; }
.offer-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: transform .25s var(--ease-out), border-color .25s; }
.offer-card:hover { transform: translateY(-3px); border-color: rgba(143,227,192,.45); }
.offer-card__body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 80px; }
.offer-card__icon { color: var(--mint); }
.offer-card h3 { font-size: 24px; font-weight: 600; }
.offer-card p { color: rgba(255,255,255,.72); font-size: 15px; }
.offer-card ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: rgba(255,255,255,.85); }
.offer-card li { display: flex; gap: 10px; align-items: flex-start; }
.offer-card li svg { flex: none; margin-top: 3px; color: var(--mint); }
.offer-card .round-btn { position: absolute; right: 24px; bottom: 24px; }
.offer-card__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; min-height: 100%; }
.offer-card .ph { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
.offer-card .ph span { background: rgba(10,24,48,.7); }
@media (max-width: 640px) { .offer-card { grid-template-columns: 1fr; } .offer-card__img { aspect-ratio: 16 / 10; } }
.result-strip { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid rgba(255,255,255,.14); }
.result-strip li { padding: 20px 16px 0 0; display: grid; gap: 2px; }
.result-strip b { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.result-strip b small { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.7); }
.result-strip span { font-size: 13px; color: rgba(255,255,255,.6); }

/* 05 · Contact */

/* Subtle scroll reveal (JS adds .is-in; without JS everything is visible) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .logo-shape, .float-chip { animation: none; }
  .review-track { scroll-behavior: auto; }
}
@media (max-width: 760px) { .h-section, .h-dark { padding: 72px 0; } }

/* Teacher cut-out in the hero (real photo from the current site) */
img.h-hero__img { width: auto; max-width: min(360px, 80%); height: auto; aspect-ratio: auto; align-self: end; filter: drop-shadow(0 24px 40px rgba(11,27,51,.18)); }

/* Teaching & Consulting: wave background image (supplied by the owner) under the mesh glow */
.h-dark { background: #04142B url('../img/home/teach-bg.webp') center / cover no-repeat; }
.h-dark__mesh { background: linear-gradient(180deg, rgba(4,20,43,.55) 0%, rgba(4,20,43,.15) 45%, rgba(4,20,43,.6) 100%); }

/* Offer cards: frosted glass over the wave background, text only, whole card is the link */
.offer-card { grid-template-columns: 1fr; position: relative; background: rgba(8,22,46,.55); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.offer-card__body { padding: 32px; }
.offer-card__link { color: inherit; text-decoration: none; }
.offer-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.offer-card__link:focus-visible { outline: none; }
.offer-card:has(.offer-card__link:focus-visible) { outline: 2px solid var(--mint); outline-offset: 3px; }

/* Header wordmark (new OneSEOMaker logo) */
.brand__wordmark { display: block; height: 34px; width: auto; max-width: none; }
@media (max-width: 960px) { .site-header .brand__wordmark { height: 28px; } }

/* Content width lines up with the header: logo on the left edge, "เริ่มเรียนฟรี" on the right */
body:not(.admin-body) .container { max-width: var(--max-wide); }
@media (max-width: 900px) { .site-header__inner { padding-inline: var(--gutter); } }

/* ▼ ปรับตำแหน่ง/ขนาดรูปคนใน hero (จอคอม) ที่นี่ที่เดียว
   --hero-photo-x     ตำแหน่งแนวนอน: จุดกึ่งกลางรูปอยู่ที่กี่ % ของพื้นที่ฝั่งขวา (น้อย = ไปทางซ้าย, มาก = ไปทางขวา)
   --hero-photo-size  ความสูงรูปเทียบกับความสูง hero
   --hero-photo-max   ความสูงสูงสุด (กันรูปใหญ่เกินบนจอสูง ๆ)
   --hero-photo-down  เลื่อนรูปลง (0px = ขอบล่างรูปชนขอบล่าง hero; ค่ามากขึ้น = จมลงไปมากขึ้น) */
.h-hero {
  --hero-photo-x: 56;
  --hero-photo-size: 74%;
  --hero-photo-max: 720px;
  --hero-photo-down: 14px;
}

/* Hero, full screen: text sits in the page grid on the left; the photo column runs to the right edge
   of the window. Background = misty rock + glass play mark (owner's image), fading in from the left.
   Photo = teacher at a laptop (transparent 1200×800 cut-out) standing on the rock. */
.h-hero { padding: 0; isolation: isolate; }
.h-hero__visual { overflow: visible; }
.h-hero__visual::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: url('../img/home/hero-bg.webp') 72% 100% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
  mask-image: linear-gradient(to right, transparent 0, #000 30%);
}
img.h-hero__img { position: relative; display: block; height: auto; filter: drop-shadow(0 24px 40px rgba(11,27,51,.22)); }

@media (min-width: 960px) {
  body:not(.admin-body) .h-hero__grid.container {
    max-width: none; margin: 0; min-height: calc(100svh - 77px);
    padding: 0 0 0 max(var(--gutter), calc((100% - var(--max-wide)) / 2 + var(--gutter)));
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 32px; align-items: stretch;
  }
  .h-hero__text { align-self: center; margin: 56px 0; }
  .h-hero__visual { min-height: 640px; display: block; }
  .h-hero__visual::before { left: -18%; }
  img.h-hero__img { position: absolute; bottom: 0; left: 60%; transform: translateX(-50%); width: auto; height: min(var(--hero-photo-size), var(--hero-photo-max)); max-width: none; }
  .hand--hero { right: 7%; top: 9%; font-size: 34px; }
  .float-chip--a { left: 6%; right: auto; top: 26%; }
  .float-chip--b { left: auto; right: 6%; bottom: 16%; top: auto; }
}
@media (max-width: 959px) {
  .h-hero__text { margin: 40px 0 8px; }
  .h-hero__visual { min-height: 420px; display: grid; place-items: end center; margin-inline: calc(var(--gutter) * -1); }
  .h-hero__visual::before { background-image: url('../img/home/hero-bg-sm.webp'); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
  img.h-hero__img { width: 112%; max-width: 640px; margin-right: -12%; justify-self: end; }
  .hand--hero { right: var(--gutter); }
  .float-chip--a { left: var(--gutter); right: auto; top: 6%; }
  .float-chip--b { left: var(--gutter); right: auto; bottom: auto; top: 30%; }
}
@media (min-width: 960px) and (max-width: 1199px) { .hand--hero { display: none; } }
/* Wide screens: the photo column runs past the page grid to the window edge. Keep the teacher,
   the +400% card and the handwriting inside the grid so the hero stays balanced. */
@media (min-width: 960px) {
  .h-hero__visual { --bleed: max(0px, (100vw - var(--max-wide)) / 2); }
  img.h-hero__img { left: calc((100% - var(--bleed)) * var(--hero-photo-x) / 100); }
  .float-chip--b { right: calc(var(--bleed) + 2%); }
  .hand--hero { right: calc(var(--bleed) + 4%); }
}
/* The photo is cut flat at the bottom: sit that edge exactly on the hero's bottom line, no shadow under it */
img.h-hero__img { filter: none; margin-bottom: -1px; }
@media (min-width: 960px) { img.h-hero__img { bottom: calc(-1px - var(--hero-photo-down)); margin-bottom: 0; } }
/* Photo on top: when --hero-photo-down pushes it below the hero, it overlaps section 02 instead of
   being cut off (only sideways overflow is clipped, so the page never scrolls horizontally). */
.h-hero { z-index: 2; overflow: visible; overflow-x: clip; }

/* Course preview video (28 s, made from the course data and site images; source in tools/course-preview) */
.video-card--preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card--preview .video-card__caption {
  display: inline-flex; align-items: center; gap: 8px; left: 16px; right: auto; bottom: 16px; padding: 8px 14px;
  border-radius: 999px; background: rgba(11,27,51,.72); backdrop-filter: blur(8px); text-shadow: none; font-size: 14px;
  transition: background .2s;
}
.video-card--preview:hover .video-card__caption { background: var(--ink); }
.video-card--preview .video-card__caption svg { transition: transform .2s var(--ease-out); }
.video-card--preview:hover .video-card__caption svg { transform: translateX(3px); }

/* Reviewer photos (from the current site) on /testimonials/ */
.avatar--photo { width: 56px; height: 56px; object-fit: cover; padding: 2px; background: var(--grad); }

/* Service lineup: 6 options in a 3-column grid; a quoted price ("ประเมินตามขอบเขตงาน") is text, not a number */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.svc-option__amount--text { font-family: var(--font-display); font-size: 24px; line-height: 1.4; }

/* .field's 220px flex-basis is for side-by-side rows; a field standing alone in the column form keeps its natural height */
.book-form > .field { flex: none; }

/* Starting price + contracting company (monthly SEO care → MoodMango) */
.svc-option__from { font-size: 14px; color: var(--muted); }
.svc-provider { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.svc-provider a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--green-dark); }
.svc-option .svc-provider { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); }

/* Booking: one focused column — intro on top, the form (with the chosen service's details) below */
.book__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1040px; margin-inline: auto; }
.book__intro { flex: none; gap: 12px; }
.book__intro .section-title { margin: 0; }
.book__direct { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

/* Booking form: chosen service panel, laid out like the "Audit เว็บไซต์ฟรี" mockup */
.svc-detail {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px;
  border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(47,217,166,.14), transparent 70%),
    radial-gradient(50% 60% at 100% 20%, rgba(76,124,240,.12), transparent 70%),
    #F6F8FB;
}
.svc-detail[hidden] { display: none; }
.svc-detail__main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-detail__badge {
  align-self: flex-start; padding: 6px 16px; border-radius: 999px; background: rgba(47,217,166,.18);
  color: #0B7F6E; font: 600 14px/1.2 var(--font-display); letter-spacing: .06em;
}
.svc-detail__title { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.svc-detail__title .grad-text { background: linear-gradient(100deg, #19C59A, #2FD9A6 60%, #19B8C4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-detail__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.svc-detail__amount { font: 700 30px/1.2 var(--font-display); }
.svc-detail__unit { font-size: 14px; color: var(--muted); }
.svc-detail__summary { margin: 0; font-size: 17px; color: var(--muted); }
.svc-detail .svc-provider { margin: 0; }

.svc-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.svc-steps__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 14px 16px 14px 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(11,27,51,.04), 0 10px 30px -18px rgba(11,27,51,.25);
}
.svc-steps__num {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, #19C3B4, #4C7CF0 70%, #6B5BE3); color: #fff; font: 600 20px/1 var(--font-display);
  box-shadow: 0 8px 18px -8px rgba(76,124,240,.6);
}
.svc-steps__text { display: flex; flex-direction: column; min-width: 0; }
.svc-steps__text b { font: 600 18px/1.4 var(--font-display); color: var(--ink); }
.svc-steps__text span { font-size: 15px; color: var(--muted); }
.svc-steps__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, #EEF3FF, #E6EEFB); color: #3F6FE0; }

/* Packages inside a service (รับให้คำปรึกษา SEO: รายครั้ง / รายเดือน) */
.pkg-field { border: 0; margin: 6px 0 0; padding: 0; }
.pkg-field legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pkg { position: relative; display: block; cursor: pointer; }
.pkg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pkg__body { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.pkg__name { font: 600 17px/1.4 var(--font-display); }
.pkg__price { font-size: 14px; color: var(--muted); }
.pkg__price b { font: 700 22px/1.3 var(--font-display); }
.pkg__note { font-size: 14px; color: var(--muted); }
.pkg input:checked + .pkg__body { border-color: #4C7CF0; box-shadow: 0 10px 24px -16px rgba(76,124,240,.8); }
.pkg input:focus-visible + .pkg__body { outline: 3px solid var(--green); outline-offset: 2px; }

/* Decorative browser + checklist + cursor (right side when the panel is wide enough) */
.svc-detail__art { display: none; }
/* the form card is the size container: a box cannot size its own columns from a query on itself */
.book-card, .mm-wrap { container: bookcard / inline-size; }
@container bookcard (min-width: 860px) {
  .svc-detail { grid-template-columns: minmax(0, 1fr) 250px; }
  .svc-detail__art { display: block; position: relative; min-height: 360px; }
}
.svc-art__blob { position: absolute; inset: 8% -30% 0 -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(25,184,196,.22), rgba(76,124,240,.10) 60%, transparent); z-index: -1; }
.svc-art__browser {
  position: absolute; left: 0; right: 10px; top: 40px; height: 270px; padding: 16px; border-radius: 20px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 30px 60px -30px rgba(11,27,51,.3);
  backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 10px; transform: rotate(-3deg);
}
.svc-art__dots { display: flex; gap: 6px; } .svc-art__dots i { width: 9px; height: 9px; border-radius: 99px; background: #F25F5C; }
.svc-art__dots i:nth-child(2) { background: #F7B32B; } .svc-art__dots i:nth-child(3) { background: #2FD9A6; }
.svc-art__bar { height: 14px; border-radius: 99px; background: #E8EDF4; }
.svc-art__media { width: 60%; height: 78px; border-radius: 12px; background: #DCE6FA; display: grid; place-items: center; }
.svc-art__media svg { width: 54px; fill: #A9C0F2; }
.svc-art__line { height: 9px; border-radius: 99px; background: #E3E9F2; } .svc-art__line--accent { width: 55%; background: #A9C0F2; } .svc-art__line--short { width: 60%; }
.svc-art__checklist {
  position: absolute; right: -6px; bottom: 18px; width: 150px; padding: 14px; border-radius: 16px; background: #fff;
  box-shadow: 0 24px 50px -24px rgba(11,27,51,.35); display: grid; gap: 10px; transform: rotate(-4deg);
}
.svc-art__check { display: flex; align-items: center; gap: 8px; }
.svc-art__check i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #2FD9A6, #19B8C4); color: #fff; }
.svc-art__check b { flex: 1; height: 8px; border-radius: 99px; background: #E3E9F2; }
.svc-art__cursor { position: absolute; right: -2px; bottom: -2px; width: 34px; fill: #3B4A66; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 6px 10px rgba(11,27,51,.3)); }

@media (max-width: 560px) {
  .svc-detail { padding: 20px 16px; border-radius: 20px; }
  .svc-steps__item { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 12px 14px; }
  .svc-steps__num { width: 40px; height: 40px; font-size: 17px; }
  .svc-steps__icon { display: none; }
  .svc-steps__text b { font-size: 16px; }
}
/* Package lines on a service card */
.pkg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pkg-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 15px; }
.pkg-list span { white-space: nowrap; font-weight: 600; }

/* Page hero with the home-page background (misty rock + glass play mark), fading in from the left */
.page-hero--art { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.page-hero--art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('../img/home/hero-bg.webp') right bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 10%, #000 55%);
  mask-image: linear-gradient(to right, transparent 10%, #000 55%);
}
.page-hero--art .page-hero__inner { min-height: 440px; align-items: center; }
/* Text-only heroes (courses, reviews, case studies, contact): same background, shorter band */
.page-hero--slim .page-hero__inner { min-height: 320px; }
.page-hero--slim .page-hero__text { flex: 0 1 620px; }
@media (max-width: 959px) {
  /* Phones: text on top, the mountains get their own band underneath instead of sitting behind the text */
  .page-hero--art.page-hero--slim::before { top: auto; height: 190px; background-position: center bottom; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
  .page-hero--art.page-hero--slim .page-hero__inner { padding-bottom: 150px; }
}
.page-hero--art .chooser { background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 50px -30px rgba(11,27,51,.45); }
@media (max-width: 959px) {
  .page-hero--art::before { background-image: url('../img/home/hero-bg-sm.webp'); -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 70%); mask-image: linear-gradient(to bottom, transparent 20%, #000 70%); }
  .page-hero--art .page-hero__inner { min-height: 0; }
}
.field-row__hint { margin: -10px 0 0; }

.svc-steps__text span a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Monthly SEO care panel: MoodMango CI (mango orange) + mascot น้องแมงโก้ */
.svc-detail--mm {
  --mm-orange: #E76003; --mm-red: #F94B25; --mm-yellow: #FFC21A; --mm-cream: #FFE98A;
  border-color: #F5DCC0;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(255,233,138,.55), transparent 70%),
    radial-gradient(50% 60% at 100% 25%, rgba(249,75,37,.12), transparent 70%),
    #FFF9F1;
}
.svc-detail--mm .svc-detail__badge { background: rgba(231,96,3,.12); color: #B84A00; }
.svc-detail--mm .grad-text,
.svc-detail--mm .svc-detail__title .grad-text { background: linear-gradient(100deg, var(--mm-yellow), var(--mm-orange) 50%, var(--mm-red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-detail--mm .svc-provider a { color: var(--mm-orange); }
.svc-detail--mm .svc-steps__num { background: linear-gradient(135deg, var(--mm-yellow), var(--mm-orange) 60%, var(--mm-red)); box-shadow: 0 8px 18px -8px rgba(231,96,3,.65); }
.svc-detail--mm .svc-steps__icon { background: linear-gradient(160deg, #FFF4E0, #FFE9CC); color: var(--mm-orange); }
.svc-detail--mm .svc-steps__item { box-shadow: 0 1px 2px rgba(120,60,0,.05), 0 10px 30px -18px rgba(150,70,0,.3); }
.svc-detail--mm .svc-steps__text span a { color: var(--mm-orange); }
.svc-detail--mm .svc-art__blob { background: radial-gradient(closest-side, rgba(255,194,26,.35), rgba(249,75,37,.12) 60%, transparent); }

.mm-mascot { position: absolute; display: block; aspect-ratio: 1; animation: mm-float 4s ease-in-out infinite; }
.mm-mascot img, .mm-mascot svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.mm-mascot.is-lottie img { display: none; }
@keyframes mm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mm-mascot { animation: none; } }

/* Mobile: the mascot sits in the top-right corner beside the title */
.svc-detail__art--mango { display: block; position: absolute; top: 4px; right: 4px; width: 96px; height: 96px; pointer-events: none; z-index: 0; }
.svc-detail__art--mango .mm-mascot { inset: 0; }
.svc-detail--mm .svc-detail__main { position: relative; z-index: 1; }
.svc-detail--mm .svc-detail__badge { margin: 0 96px 26px 0; }
@container bookcard (min-width: 860px) {
  .svc-detail__art--mango { position: relative; top: auto; right: auto; width: auto; height: auto; min-height: 360px; }
  .svc-detail__art--mango .mm-mascot { inset: 10px -24px auto -24px; }
  .svc-detail--mm .svc-detail__badge { margin: 0; }
}

/* Home section 05: รู้จัก MoodMango (reuses the service-panel layout in MoodMango colours) */
.h-mm { background: #fff; }
.h-mm .svc-detail, .mm-card { padding: clamp(24px, 4vw, 44px); border-radius: 28px; }
.h-mm .svc-detail__summary { max-width: 62ch; }
.h-mm .svc-steps__text b { font-family: var(--font-display); }
.mm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.mm-btn { background: linear-gradient(100deg, #FF8A1F, #E76003 55%, #F94B25); color: #fff; border: 0; gap: 8px; box-shadow: 0 12px 24px -14px rgba(231,96,3,.9); }
.mm-btn:hover { color: #fff; filter: brightness(1.05); }
.mm-link { font-weight: 600; color: #B84A00; }
.mm-link:hover { color: #E76003; }
@container bookcard (min-width: 860px) {
  .h-mm .svc-detail, .mm-card { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; }
}
.mm-company { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1px solid #F5DCC0; display: grid; gap: 6px; font-size: 14px; }
.mm-company div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 12px; }
.mm-company dt { color: var(--muted); }
.mm-company dd { margin: 0; color: var(--ink); }
.mm-company dd span { color: var(--muted); }
@media (max-width: 560px) { .mm-company div { grid-template-columns: minmax(0, 1fr); } .mm-company div + div { margin-top: 4px; } }
.site-footer__company { margin: 0 0 14px; font-size: 13px; color: var(--navy-muted); }
.site-footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Client logo strip (home, under "สอน และ ที่ปรึกษา SEO") ---------- */
.client-strip { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.client-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.client-strip__title { margin: 0; font-size: 15px; color: rgba(255,255,255,.72); }
.client-strip__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.client-strip__track { display: flex; width: max-content; animation: client-scroll 48s linear infinite; }
.client-strip__viewport:hover .client-strip__track { animation-play-state: paused; }
.client-strip__list { list-style: none; margin: 0; padding: 0 14px 0 0; display: flex; gap: 14px; }
.client-strip__list li { flex: none; width: 168px; aspect-ratio: 8 / 5; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.client-strip__list img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes client-scroll { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .client-strip__list li { width: 128px; border-radius: 10px; } .client-strip__list { gap: 10px; padding-right: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .client-strip__viewport { -webkit-mask-image: none; mask-image: none; }
  .client-strip__track { animation: none; width: auto; }
  .client-strip__list { flex-wrap: wrap; padding: 0; }
  .client-strip__list[aria-hidden] { display: none; }
}
.mm-card .svc-detail__summary { margin-top: -6px; color: var(--muted); }
.mm-company__lines span { display: block; }
.mm-company a { color: #B84A00; }
.site-footer__lines { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__lines a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Booking form wording per service type (website builds vs everything else) */
.book-form[data-mode="web"] .for-default, .book-form:not([data-mode="web"]) .for-web { display: none; }

/* ---------- Case studies (/case-study/, copied from moodmango.com) ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.cs-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.cs-card:hover { border-color: rgba(76,124,240,.4); box-shadow: 0 18px 40px -28px rgba(11,27,51,.45); transform: translateY(-2px); }
.cs-card__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.cs-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.cs-card__date { font-size: 13px; color: var(--muted); }
.cs-card__title { margin: 0; font-size: 20px; line-height: 1.45; }
.cs-card__title a { color: var(--ink); text-decoration: none; }
.cs-card__title a::after { content: ""; position: absolute; inset: 0; }
.cs-card__excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.cs-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-dark); }
.cs-source { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.cs-source a { display: inline-flex; align-items: center; gap: 4px; }
.cs-article { padding-top: 40px; }
.cs-article__grid { display: grid; gap: 32px; margin-top: 12px; }
.cs-article__img { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 20px; box-shadow: 0 24px 48px -32px rgba(11,27,51,.5); }
@media (min-width: 960px) {
  .cs-article__grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .cs-article__side { position: sticky; top: 96px; order: 2; }
}
@media (max-width: 959px) { .cs-article__side { order: -1; } }
.cs-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 20px; background: radial-gradient(60% 80% at 0% 0%, rgba(47,217,166,.16), transparent 70%), var(--soft); border: 1px solid var(--line); }
.cs-cta b { font-family: var(--font-display); font-size: 20px; }
.cs-cta p { margin: 4px 0 0; color: var(--muted); }
.cs-more { margin-top: 48px; }
.cs-more__title { font-size: 22px; margin: 0 0 12px; }
.cs-more__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-more__list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.cs-more__list a:hover { border-color: var(--green); background: var(--green-soft); }

/* Admin: /admin/seo/ (Title + Meta Description of every page) */
.seo-row { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.seo-row:first-of-type { border-top: 0; padding-top: 6px; }
.seo-row__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 4px; }
.seo-row__links { color: var(--muted); }
.seo-row textarea { resize: vertical; }

/* Admin: /admin/security/ (two-step login) */
.security-setup { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .security-setup { grid-template-columns: 240px minmax(0, 1fr); } }
.security-setup__qr svg { display: block; width: 100%; max-width: 240px; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.security-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.security-key { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 15px; letter-spacing: .05em; word-break: break-all; user-select: all; }
.security-form { display: grid; gap: 6px; margin-top: 8px; }
.security-form__row { display: flex; flex-wrap: wrap; gap: 8px; }
.security-form__row input { flex: 0 1 200px; min-width: 0; font-size: 18px; letter-spacing: .15em; }
.security-actions { display: grid; gap: 16px; margin-top: 12px; }
.backup-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 12px 0 0; padding-left: 20px; font-size: 17px; }

/* Lesson summary: table of contents built from the h2/h3 headings (toc() in helpers.php) */
.summary-toc { margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.summary-toc__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.summary-toc__list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.6; }
.summary-toc__item--h3 { margin-left: 18px; list-style-type: circle; }
.summary-toc__list a { color: var(--ink); text-decoration: none; }
.summary-toc__list a:hover { color: var(--green-dark); text-decoration: underline; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }

/* Admin: media library */
.media-upload { display: grid; gap: 14px; }
.media-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line-2, var(--line)); border-radius: 16px; text-align: center; cursor: pointer; color: var(--ink); }
.media-drop:hover { border-color: var(--green); background: var(--green-soft); }
.media-drop input[type=file] { max-width: 100%; margin-top: 6px; font-size: 14px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.media-card { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.media-card__img { display: block; aspect-ratio: 4 / 3; background: repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.media-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-card figcaption { display: grid; gap: 8px; padding: 10px 12px 12px; }
.media-card__url { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.media-card__alt { display: flex; gap: 6px; }
.media-card__alt input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.media-card__delete { border: 0; background: none; padding: 0; color: var(--orange, #c2410c); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }

/* Admin: Tiptap editor (lesson summary) + media picker */
.tt { border-top: 1px solid var(--line); }
.tt-toolbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.tt-group { display: inline-flex; gap: 2px; padding-right: 10px; border-right: 1px solid var(--line); }
.tt-group:last-child { border-right: 0; }
.tt-btn { min-width: 34px; height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); font: 600 13px/1 var(--font-body); cursor: pointer; }
.tt-btn:hover { background: var(--soft); }
.tt-btn.is-active { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.tt-btn:disabled { opacity: .35; cursor: default; }
.tt-tablebar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.tt-tablebar[hidden] { display: none; }
.tt-editor .tt-content { min-height: 360px; max-width: none; padding: 20px 24px; outline: none; font-size: 16px; }
.tt-editor .tt-content:focus-visible { box-shadow: inset 0 0 0 2px var(--green-soft); }
.tt-content img { max-width: 100%; height: auto; }
.tt-content img.ProseMirror-selectednode { outline: 3px solid var(--green); }
.tt-content table { border-collapse: collapse; width: 100%; }
.tt-content th, .tt-content td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.tt-content .selectedCell { background: var(--green-soft); }
.tt-content p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: var(--muted); float: left; height: 0; pointer-events: none; }
.tt-source { width: 100%; min-height: 360px; }
.prose th > p, .prose td > p { margin: 0; }
.tt-media { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(11,27,51,.6); }
.tt-media::backdrop { background: rgba(11,27,51,.45); }
.tt-media__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.tt-media__upload { display: block; margin: 14px 18px 0; padding: 14px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; }
.tt-media__status { margin: 8px 18px 0; min-height: 1em; font-size: 14px; color: var(--muted); }
.tt-media__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 14px 18px 18px; }
.tt-media__item { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; font-size: 12px; color: var(--muted); }
.tt-media__item:hover { border-color: var(--green); }
.tt-media__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--soft); border-radius: 6px; }
.tt-media__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Lesson summary: first 5 lines, then "อ่านต่อ" (collapsed only by JS, so the full text is always in the HTML) */
.read-more__body { position: relative; }
.read-more.is-collapsed .read-more__body { max-height: 9.25em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.read-more.is-collapsed .read-more__body > :first-child { margin-top: 0; }
.read-more__toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--green-dark); font: 600 15px/1.2 var(--font-body); cursor: pointer; }
.read-more__toggle:hover { border-color: var(--green); background: var(--green-soft); }
.read-more__toggle svg { transform: rotate(90deg); transition: transform .2s; }
.read-more__toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
.read-more__toggle[hidden] { display: none; }
.prose .read-more__body > * + * { margin-top: 22px; }

/* Admin: lesson files box */
.lesson-files__list { display: grid; gap: 8px; }
.lesson-files__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.lesson-files__edit { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.lesson-files__edit input[name=label] { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.lesson-files__edit input[name=sort] { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.lesson-files__check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lesson-files__add { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
