/* Mr.BOB Kampung Inggris — developer theme, Turkish red & white
   Tokens → base → layout → components → pages. Mobile-first. */

:root {
  /* Turkish red + white. Single light theme (no toggle on the public site). */
  --bg: #ffffff;
  --bg-2: #fff5f5;
  --panel: #ffffff;
  --panel-2: #fdf1f1;
  --line: #f1dcdc;
  --line-2: #e4c3c4;
  --text: #1c0a0c;
  --muted: #5e4a4c;
  --dim: #9a8487;

  --brand: #e30a17;      /* Turkish red */
  --brand-2: #a8000c;
  --brand-ink: #ffffff;
  --red: #e30a17;
  --green: #1a7f37;
  --blue: #b0000d;
  --mauve: #7a0a12;
  --string: #4b2326;
  --comment: #9a8487;

  --glow: 0 0 0 1px var(--line), 0 18px 40px -24px rgb(120 0 10 / .22);
  --r: 14px;
  --r-sm: 9px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; /* labels & numbers; no code font on the customer site */
  --wrap: 1180px;
  --gutter: 16px;
  --top-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in oklab, var(--brand) 10%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, color-mix(in oklab, var(--blue) 8%, transparent), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
body::before { /* grid paper */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .28;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.c-g { color: var(--green); } .c-b { color: var(--blue); } .c-y { color: var(--brand); }
.c-r { color: var(--red); } .c-m { color: var(--mauve); } .c-s { color: var(--string); }
.c-c { color: var(--comment); font-style: italic; }
b[class^='c-'] { font-weight: 500; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 15px/1 var(--font); white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 24px -10px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn-ghost { background: var(--panel); border: 1px solid var(--line-2); }
.btn-ghost svg { color: var(--green); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
@media (hover: hover) {
  .btn-primary:hover { background: color-mix(in oklab, var(--brand) 88%, #fff); }
  .btn-ghost:hover { border-color: var(--text); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .cta-row .btn { flex: 0 0 auto; } }
.link { display: inline-flex; align-items: center; gap: .4em; font: 500 13px/1.4 var(--mono); color: var(--blue); }
@media (hover: hover) { .link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---- top bar ---- */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; background: #fff; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; font-size: 16px; }
.brand em { font: 400 11px/1.3 var(--mono); color: var(--muted); font-style: normal; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }

.burger { flex-direction: column; gap: 4px; display: flex; align-items: center; justify-content: center; }
.burger span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile nav = sheet */
.nav {
  position: fixed; inset: var(--top-h) 0 auto 0; max-height: calc(100dvh - var(--top-h));
  overflow: auto; overscroll-behavior: contain;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a, .nav-sub-btn {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 14px 4px;
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.nav a[aria-current='page'], .has-sub.on > .nav-sub-btn { color: var(--brand); }
.nav a svg { width: 13px; height: 13px; color: var(--muted); }
.nav-sub-btn i { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.nav-sub-btn[aria-expanded='true'] i { transform: rotate(-135deg); }
/* "Paket Kursus" menu: two groups (Program Camp / Program Khusus), each item = name + "mulai Rp …" */
.sub { display: none; margin: 6px 0 10px; padding: 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.nav-sub-btn[aria-expanded='true'] + .sub { display: block; }
.sub-col + .sub-col { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.sub-title { padding: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sub li a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; color: var(--text); transition: background-color .15s; }
.sub li a b { font-size: 15px; font-weight: 600; }
.sub li a span { font-size: 12.5px; color: var(--muted); }
.sub li a:hover, .sub li a[aria-current='page'] { background: var(--panel); }
.sub li a[aria-current='page'] b { color: var(--brand); }
.sub-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 11px 10px 4px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--brand); }
.sub-foot svg { width: 15px; height: 15px; }
.nav-cta { margin-top: 16px; width: 100%; min-height: 48px; }

@media (min-width: 960px) {
  .burger { display: none; }
  .nav {
    position: static; inset: auto; max-height: none; overflow: visible; background: none; border: 0; padding: 0;
    transform: none; opacity: 1; visibility: visible; transition: none;
    display: contents;
  }
  .top-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .top-in > .brand { justify-self: start; }
  .nav > ul { justify-self: center; }
  .nav-cta { justify-self: end; }
  .top-actions { display: none; }
  .nav > ul { display: flex; gap: 2px; }
  .nav > ul > li { position: relative; }
  .nav > ul > li > a, .nav-sub-btn { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
  .nav > ul > li > a:hover, .nav-sub-btn:hover, .nav a[aria-current='page'] { color: var(--text); background: var(--panel); }
  .nav-sub-btn i { width: 6px; height: 6px; margin-left: 4px; }
  .sub {
    position: absolute; top: calc(100% + 12px); left: 50%; width: 540px; margin: 0; padding: 12px;
    grid-template-columns: 1fr 1fr; gap: 0 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 48px -18px rgb(70 0 8 / .25);
    transform: translateX(-50%);
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .nav-sub-btn[aria-expanded='true'] + .sub { display: grid; animation: sub-in .18s var(--ease); }
  @keyframes sub-in { from { opacity: 0; transform: translate(-50%, -4px); } }
  .has-sub::after { content: ''; position: absolute; inset: 100% -24px -16px; }
  .sub-col + .sub-col { margin: 0; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--line); }
  .sub li a:hover { background: var(--panel-2); }
  .sub li a[aria-current='page'] { background: color-mix(in oklab, var(--brand) 7%, var(--panel)); }
  .sub-foot { grid-column: 1 / -1; margin-top: 8px; padding: 12px 10px 2px; }
  .nav-cta { margin: 0; width: auto; min-height: 40px; justify-self: end; }
}

/* ---- hero ---- */
.hero { padding: 40px 0 56px; position: relative; }
.hero-grid { display: grid; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 20px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  font: 500 12px/1.3 var(--mono); color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in oklab, var(--green) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--green) 0%, transparent); } }
.hero h1 { font-size: clamp(32px, 7.4vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.grad { background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 18px; max-width: 58ch; }
.lead { color: var(--muted); font-size: clamp(16px, 2.1vw, 18px); }
.stats { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats li { background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font: 700 20px/1.2 var(--mono); }
.stats span { font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--brand); }
.stats .stars svg { width: 16px; height: 16px; }

.hero-visual { position: relative; display: grid; }
.hero-photo { width: min(100%, 460px); justify-self: center; aspect-ratio: 1; position: relative; }
.hero-photo::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--brand) 35%, transparent), transparent 70%); filter: blur(30px); }
.hero-photo img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero-visual .hl { margin-top: 20px; position: relative; z-index: 2; }
.hero-visual-term .hl { margin-top: 0; }

.term { background: #0d1117; border: 1px solid #2a3142; border-radius: var(--r); box-shadow: 0 30px 60px -25px rgb(0 0 0 / .7); overflow: hidden; color: #e6edf3; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #161b26; border-bottom: 1px solid #2a3142; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.term-bar i:nth-child(2) { background: #ff8a91; } .term-bar i:nth-child(3) { background: #ffffff; }
.term-bar span { margin-left: 8px; font: 12px/1 var(--mono); color: #8b96a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { margin: 0; padding: 16px; font: 12px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: break-word; }
.term .c-g { color: #3fb950; } .term .c-b { color: #79c0ff; } .term .c-y { color: #ff6b73; } .term .c-r { color: #ff7b72; }
.term .c-m { color: #d2a8ff; } .term .c-s { color: #a5d6ff; } .term .c-c { color: #6e7a90; }
.tl { display: block; opacity: 0; transform: translateY(4px); animation: line .35s var(--ease) forwards; animation-delay: calc(var(--i) * 260ms + 300ms); }
@keyframes line { to { opacity: 1; transform: none; } }
.caret { display: inline-block; width: .55em; height: 1.1em; background: #e30a17; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } .term-body { font-size: 13.5px; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
  .hero-visual .hl { margin: 20px 0 0; }
}

.hero-sm .lead + .lead { margin-top: 10px; }
.levels { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.levels li { font: 700 13px/1 var(--mono); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--brand) calc(var(--i) * 14%), var(--panel)); color: var(--text); }

/* ---- sections ---- */
.sec { padding: 56px 0; counter-increment: sec; }
.sec-tight { padding: 24px 0; }
main { counter-reset: sec; }
.sec-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.sec-head .sec-file::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.sec-file { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.sec-file::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.sec-idx { display: none; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.sec h2 { font-size: clamp(26px, 5vw, 42px); font-weight: 800; }
.sec-head .lead { margin-top: 12px; }
@media (min-width: 960px) { .sec { padding: 88px 0; } .sec-tight { padding: 32px 0; } }

/* code block */
.code {
  margin: 0; padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
  font: 13px/1.75 var(--mono); overflow-x: auto; color: var(--text); white-space: pre;
}

/* problem: real member photo on top (mobile) / left (desktop), copy in a padded panel */
.problem { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); overflow: hidden; box-shadow: 0 24px 50px -36px rgb(70 0 8 / .45); }
.problem-img { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); }
.problem-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.problem-copy { padding: 24px 20px 28px; }
.problem .kicker { margin-bottom: 8px; }
.problem h2 { font-size: clamp(24px, 4.6vw, 36px); line-height: 1.15; }
.problem .lead { margin-top: 10px; }
.problem .cta-row { margin-top: 22px; }
@media (min-width: 640px) { .problem-copy { padding: 32px 36px 36px; } .problem-img { aspect-ratio: 16 / 9; } }
@media (min-width: 860px) {
  .problem { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .problem-img { aspect-ratio: auto; min-height: 340px; }
  .problem-copy { padding: 48px 48px 48px 44px; align-self: center; }
  .problem-rev .problem-img { order: 2; }
  .problem-rev .problem-copy { padding: 48px 44px 48px 48px; }
}
/* free "Teks + gambar" block without an image: centred text card */
.problem-noimg { grid-template-columns: 1fr; text-align: center; }
.problem-noimg .problem-copy { max-width: 760px; margin-inline: auto; }
.problem-noimg .cta-row { justify-content: center; }
.problem .lead + .lead { margin-top: 12px; }

/* rail (horizontal scroll) */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 360px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 1180px) { .rail { margin-inline: 0; padding-inline: 0; } }

.quote { margin: 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; }
.quote-head { display: flex; gap: 12px; align-items: center; }
.quote-head div { display: flex; flex-direction: column; gap: 2px; }
.quote-head .stars svg { width: 13px; height: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--mono); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.quote blockquote { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.quote blockquote::before { content: '"'; color: var(--brand); font: 700 22px/0 var(--mono); margin-right: 2px; }
.quote figcaption { border-top: 1px dashed var(--line); padding-top: 12px; }

/* reviews: two parts. left = Google rating (map GIF), right = review screenshots
   shown whole (never cropped) in a horizontal swipe rail with prev/next buttons */
.reviews { display: grid; gap: 20px; align-items: center; }
.reviews-feature, .shot { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -22px rgb(70 0 8 / .35); }
.reviews-feature { width: 100%; max-width: 420px; justify-self: center; }
.reviews-feature img, .shot img { display: block; width: 100%; height: auto; }
.reviews-side { min-width: 0; }
.reviews-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 340px); gap: 14px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.shot { display: block; padding: 6px 4px 2px; cursor: zoom-in; scroll-snap-align: start; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
@media (hover: hover) { .shot:hover { border-color: var(--line-2); box-shadow: 0 20px 36px -22px rgb(70 0 8 / .5); } }
.rv-nav { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.rv-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); color: var(--brand); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), opacity .2s; }
.rv-btn svg { width: 18px; height: 18px; }
.rv-prev svg { transform: scaleX(-1); }
.rv-btn:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.rv-btn:disabled { opacity: .35; cursor: default; }
@media (min-width: 860px) {
  .reviews { grid-template-columns: minmax(300px, 380px) 1fr; gap: 28px; }
  .reviews-grid { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; grid-auto-columns: 330px; scrollbar-width: none; }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .rv-nav { justify-content: flex-start; }
}

/* reasons */
.reasons { display: grid; gap: 20px; }
.reason { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.reason-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.reason-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tag { position: absolute; left: 12px; top: 12px; font: 600 12px/1 var(--mono); padding: 6px 9px; border-radius: 6px; background: var(--brand); color: #fff; backdrop-filter: blur(6px); }
.reason-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.reason-body .num { color: var(--brand); font-size: 13px; }
.reason-body h3 { font-size: 20px; }
.reason-body .sub { color: var(--text); font-weight: 600; }
.reason-body p:not(.num):not(.sub) { color: var(--muted); font-size: 15px; }
@media (hover: hover) { .reason:hover .reason-img img { transform: scale(1.04); } }
@media (min-width: 760px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .reasons { grid-template-columns: 1fr; gap: 24px; }
  .reason { grid-template-columns: 1fr 1.1fr; }
  .reason:nth-child(even) .reason-img { order: 2; }
  .reason-img { aspect-ratio: auto; min-height: 320px; }
  .reason-body { padding: 40px; justify-content: center; }
  .reason-body h3 { font-size: 26px; }
}

/* cards */
.cards3 { display: grid; gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.card .btn { margin-top: 10px; align-self: flex-start; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.unit { position: relative; transition: border-color .2s, transform .2s var(--ease); }
.unit .mono { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.unit-go { position: absolute; right: 18px; top: 18px; color: var(--muted); }
@media (hover: hover) { .unit:hover { border-color: var(--brand); transform: translateY(-2px); } }
.two-col { display: grid; gap: 16px; }
.two-col h2 { font-size: clamp(22px, 4vw, 30px); }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checks svg { color: var(--green); margin-top: 5px; }

/* logos */
/* mobile/tablet: one swipeable row with prev/next buttons; desktop: 7-column grid */
.logos {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 3.4); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.logos::-webkit-scrollbar { display: none; }
.logos li { scroll-snap-align: start; background: #fff; border-radius: var(--r-sm); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); }
.logos img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 600px) { .logos { grid-auto-columns: calc((100% - 50px) / 5.4); } }
@media (min-width: 960px) {
  .logos { margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); }
  .logos-wrap .rv-nav { display: none; }
}

.banner { margin-top: 20px; display: grid; gap: 16px; padding: 22px; border-radius: var(--r); border: 1px dashed var(--brand); background: color-mix(in oklab, var(--brand) 7%, var(--panel)); }
.banner h3 { font-size: 20px; margin: 6px 0; }
.banner p:last-child { color: var(--muted); }
.banner .mono { font-size: 13px; }
@media (min-width: 760px) { .banner { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }

/* tutors */
.tutors { grid-auto-columns: min(70%, 260px); }
.tutor { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.tutor img { border-radius: var(--r); border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; transition: transform .25s var(--ease); }
.tutor-name { font-size: 15px; font-weight: 600; }
@media (hover: hover) { .tutor:hover img { transform: translateY(-4px); } }
@media (min-width: 1180px) { .tutors { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* pricing */
.tabs {
  margin-inline: auto;
  display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; width: 100%;
}
@media (min-width: 600px) { .tabs { width: fit-content; } .tabs button { flex: none; padding: 10px 16px; }
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; padding: 10px 12px; border-radius: 9px; font: 600 14px/1 var(--mono); color: var(--muted); transition: background-color .2s, color .2s; }
.tabs button[aria-selected='true'] { background: var(--brand); color: var(--brand-ink); }
.plans { display: grid; gap: 12px; grid-template-columns: 1fr; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'key key' 'name price' 'desc price' 'btn btn'; column-gap: 12px; row-gap: 4px; transition: border-color .2s, transform .2s var(--ease); }
.plan-key { grid-area: key; font-size: 11.5px; color: var(--dim); margin-bottom: 6px; }
.plan h3 { grid-area: name; font-size: 22px; font-weight: 800; }
.plan-desc { grid-area: desc; color: var(--muted); font-size: 14px; }
.plan-price { grid-area: price; align-self: center; text-align: right; display: flex; flex-direction: column; }
.plan-price span { font: 700 18px/1.2 var(--mono); color: var(--brand); white-space: nowrap; }
.plan-price s { font: 13px var(--mono); color: var(--dim); }
.plan .btn { grid-area: btn; margin-top: 14px; width: 100%; }
@media (hover: hover) { .plan:hover { border-color: var(--brand); transform: translateY(-2px); } }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .plan { grid-template-columns: 1fr; grid-template-areas: 'key' 'name' 'desc' 'price' 'btn'; padding: 22px; }
  .plan-price { text-align: left; margin-top: 18px; }
  .plan-price span { font-size: 22px; }
}
.plans-3 { margin-bottom: 20px; }
.plan-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font: 12px/1.6 var(--mono); color: var(--dim); }
.price-extra { margin-top: 28px; display: grid; gap: 16px; }
.facilities { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.facilities h3 { font-size: 22px; margin: 6px 0 14px; }
.facilities .mono { font-size: 13px; }
.fac-list { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.fac-list li { color: var(--text); font-size: 15px; }
.price-cta { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.price-cta h3 { font-size: 22px; margin-top: 6px; }
.price-cta .cta-row { margin-top: 18px; }
@media (min-width: 860px) { .price-extra { grid-template-columns: 1fr 1fr; align-items: stretch; } .price-cta { display: flex; flex-direction: column; justify-content: center; } }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); }
.perks svg { color: var(--green); margin-top: 4px; }
.perks div { display: flex; flex-direction: column; }
.perks span { color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .perks { grid-template-columns: repeat(3, 1fr); } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { font-size: 13px; padding-top: 2px; }
.faq summary i { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); position: relative; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: currentColor; translate: -50% -50%; transition: rotate .2s; }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq-a { padding: 0 18px 18px 50px; color: var(--muted); }

/* band */
.band { text-align: center; padding: 40px 20px; border-radius: calc(var(--r) + 6px); background: radial-gradient(600px 240px at 50% 0%, color-mix(in oklab, var(--brand) 16%, transparent), transparent), var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.band h2 { font-size: clamp(26px, 5vw, 42px); }
.band .lead { margin-top: 12px; max-width: 62ch; }
.band .cta-row { justify-content: center; }
.band > .btn { margin-top: 24px; }
.pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills li { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.pills svg { color: var(--green); }
@media (min-width: 760px) { .band { padding: 64px 40px; } }

.about-code { font-size: 13px; }
@media (min-width: 760px) { .about-code { font-size: 15px; padding: 28px 32px; } }

/* iframe */
.frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.frame .term-bar { background: var(--panel); border-color: var(--line); }
.frame iframe { display: block; width: 100%; height: min(80dvh, 900px); border: 0; background: #fff; }

/* footer */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 32px; }
.foot-grid p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 48ch; }
.foot h4 { font-size: 13px; color: var(--brand); margin-bottom: 12px; font-weight: 500; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-list a { display: inline-flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--muted); font-size: 15px; }
.foot-list a svg { color: var(--green); width: 18px; height: 18px; }
.foot-list a span { display: flex; flex-direction: column; line-height: 1.3; color: var(--text); font-family: var(--mono); }
.foot-list small { font-family: var(--font); color: var(--dim); font-size: 12px; }
@media (hover: hover) { .foot-list a:hover { color: var(--text); } }
.foot-bar { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 12px; color: var(--dim); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } .foot { padding-bottom: 40px; } }

/* mobile dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.dock.show { transform: none; }
@media (min-width: 860px) { .dock { display: none; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 900px); max-height: 92dvh; overflow: visible; }
.lightbox::backdrop { background: rgb(5 7 10 / .85); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88dvh; width: auto; margin-inline: auto; border-radius: var(--r); background: #fff; }
.lb-close { position: absolute; top: -48px; right: 0; color: #fff; background: #161b26; border-color: #2a3142; }
.lightbox[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .tl { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- about ---- */
.about-photo { border-radius: calc(var(--r) + 6px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--glow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-sm .hero-copy .lead + .lead { margin-top: 10px; }
.office { display: grid; gap: 16px; }
.office-info { display: grid; gap: 16px; align-content: start; }
.office-addr { color: var(--text) !important; font-size: 16px !important; }
.hours { list-style: none; padding: 0; margin: 4px 0 0; display: grid; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hours li:last-child { border-bottom: 0; color: var(--red); }
.hours b { font-size: 13px; font-weight: 500; color: var(--muted); }
.office-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (min-width: 860px) { .office { grid-template-columns: 1fr 1.3fr; } }

/* ---- blog ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font: 500 12.5px/1 var(--mono); color: var(--muted); white-space: nowrap; transition: border-color .2s, color .2s; }
.chip small { color: var(--dim); font-size: 11px; }
.chip.on, .chip:hover { border-color: var(--brand); color: var(--brand); }
.blog-hero h1 { font-size: clamp(30px, 6vw, 52px); }
.blog-search { margin-top: 24px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); max-width: 640px; }
.blog-search:focus-within { border-color: var(--brand); }
.blog-search .mono { font-size: 13px; flex: none; }
.blog-search input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--text); font: 16px var(--mono); }
.cat-bar { margin-top: 16px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.post-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
@media (hover: hover) { .post-card:hover { border-color: var(--line-2); transform: translateY(-2px); } .post-card:hover h3 a { color: var(--brand); } }
.post-thumb { aspect-ratio: 16 / 9; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .mono { font-size: 32px; color: var(--dim); text-transform: uppercase; }
.post-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { font-size: 18px; line-height: 1.3; }
.post-card h3 a { transition: color .2s; }
.post-excerpt { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--dim); }
.post-meta .chip { padding: 4px 8px; font-size: 11.5px; }
.pager { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 14px; }
.pg { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.pg.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }
.pg-gap { align-self: center; color: var(--dim); padding: 0 2px; }
.search-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); font-family: var(--mono); }

.post-head { padding-top: 40px; padding-bottom: 28px; }
.post-head h1 { max-width: 22ch; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand); }
.post-head h1 { font-size: clamp(28px, 5.4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.post-head .post-meta { margin-top: 16px; }
.post-head .post-meta span + span::before { content: '·'; margin-right: 14px; color: var(--line-2); }
.post-cats { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-grid-2 { display: grid; gap: 32px; }
@media (min-width: 1000px) { .post-grid-2 { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } .post-side { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; } }
.post-side { display: grid; gap: 16px; align-content: start; }
.toc ol { margin: 6px 0 0; padding-left: 28px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); max-height: 50vh; overflow: auto; }
.toc a:hover { color: var(--brand); }
.side-cta h3 { font-size: 18px; }
.side-cta .btn { width: 100%; margin-top: 4px; }
.post-nav { display: grid; gap: 12px; margin-top: 48px; }
.post-nav .card { gap: 6px; }
.post-nav b { font-size: 15px; line-height: 1.4; }
.post-nav .next { text-align: right; }
@media (min-width: 760px) { .post-nav { grid-template-columns: 1fr 1fr; } }

.prose { font-size: 17px; line-height: 1.8; color: var(--text); min-width: 0; overflow-wrap: break-word; }
.prose :is(p, ul, ol, figure, blockquote, pre, .table-wrap, iframe, h2, h3, h4) { margin: 0 0 1.1em; }
.prose :is(h2, h3, h4) { margin-bottom: .6em; }
.prose h2 { font-size: clamp(22px, 3.6vw, 28px); margin-top: 1.8em !important; scroll-margin-top: calc(var(--top-h) + 16px); }
.prose h2::before { content: '## '; font-family: var(--mono); color: var(--brand); font-size: .7em; font-weight: 500; }
.prose h3 { font-size: 20px; margin-top: 1.5em !important; }
.prose h4 { font-size: 17px; margin-top: 1.3em; }
.prose p, .prose li { color: color-mix(in oklab, var(--text) 86%, var(--muted)); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); margin-inline: auto; height: auto; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { text-align: center; font-size: 13px; color: var(--dim); margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--panel); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); }
.prose code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.prose pre { padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow-x: auto; }
.prose hr { border: 0; border-top: 1px dashed var(--line-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--panel-2); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose > div:not([class]) { padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }

/* ---- highlight card (replaces the old terminal) ---- */
.hl { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r); box-shadow: var(--glow); padding: 20px 22px; }
.hl-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.hl-list { list-style: none; margin: 0; padding: 0; }
.hl-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hl-list li:last-child { border-bottom: 0; }
.hl-list svg { color: var(--brand); flex: none; }
.hl-list span { color: var(--muted); }
.hl-list b { margin-left: auto; text-align: right; font-weight: 700; }
.hl-list .stars { color: var(--brand); letter-spacing: 1px; }
.hl-foot { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--brand); font-weight: 600; font-size: 14px; text-align: center; }
.about-stats { margin: 0; }
.about-stats .stars { font-size: 18px; letter-spacing: 1px; }
@media (max-width: 859px) { .problem-copy { text-align: center; } .problem-copy .cta-row { justify-content: center; } }

/* ==== Responsive scale: mobile (<640) → tablet (640–959) → desktop (≥960) ==== */
:root { --gutter: 16px; }
.hero { padding: 32px 0 48px; }
.hero h1 { font-size: clamp(30px, 3.2vw + 14px, 52px); line-height: 1.08; letter-spacing: -.03em; }
.hero-sm h1 { font-size: clamp(28px, 2.2vw + 16px, 44px); line-height: 1.12; }
.eyebrow { margin-bottom: 16px; }
.hero .lead { margin-top: 16px; max-width: 56ch; }
.lead { font-size: 16px; line-height: 1.7; }
.cta-row { margin-top: 24px; }
.stats { margin-top: 28px; }
.sec { padding: 48px 0; }
.sec-tight { padding: 20px 0; }
.sec-head { margin-bottom: 28px; }
.sec h2 { font-size: clamp(24px, 1.8vw + 17px, 38px); line-height: 1.15; }
.sec-head .lead { margin-top: 10px; }
.band { padding: 36px 20px; }
.band h2 { font-size: clamp(24px, 1.8vw + 17px, 38px); }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero { padding: 48px 0 64px; }
  .lead { font-size: 17px; }
  .sec { padding: 64px 0; }
  .sec-tight { padding: 24px 0; }
  /* tablet: photo and highlight card side by side under the copy */
  .hero-visual:has(.hl):not(.hero-visual-term) { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
  .hero-visual:has(.hl):not(.hero-visual-term) .hl { margin-top: 0; }
  .band { padding: 52px 32px; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { gap: 48px; }
  .hero-visual:has(.hl):not(.hero-visual-term) { grid-template-columns: 1fr; gap: 0; }
  .hero-visual:has(.hl):not(.hero-visual-term) .hl { margin-top: 20px; }
  .lead { font-size: 18px; }
  .sec { padding: 80px 0; }
  .sec-tight { padding: 32px 0; }
  .sec-head { margin-bottom: 40px; }
  .band { padding: 64px 40px; }
}

/* ---- sales notification (bottom-left, never over the mobile CTA dock) ---- */
.sn {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 12px; width: min(340px, calc(100vw - 32px));
  padding: 12px 36px 12px 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgb(70 0 8 / .3);
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.sn.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.sn-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in oklab, var(--brand) 10%, var(--panel)); color: var(--brand); }
.sn[data-kind='order'] .sn-ico { background: color-mix(in oklab, var(--green) 12%, var(--panel)); color: var(--green); }
.sn-ico svg { width: 18px; height: 18px; }
.sn-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sn-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-text { font-size: 13px; color: var(--muted); }
.sn-meta { margin-top: 2px; font-size: 11.5px; color: var(--dim); }
.sn-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--dim); }
.sn-x:hover { background: var(--panel-2); color: var(--text); }
@media (max-width: 859px) {
  .sn { left: 12px; width: min(320px, calc(100vw - 24px)); }
  body.dock-on .sn { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .sn, .sn.show { transform: none; } }

/* ---- Hero balance (wide desktop): smaller photo with the compact highlight card
        stacked below it (never over it), so both columns have similar height ---- */
@media (min-width: 1100px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { align-items: center; }
  .hero-visual:has(.hl):not(.hero-visual-term) { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .hero-visual:has(.hl):not(.hero-visual-term) .hero-photo { width: min(100%, 320px); margin: 0; }
  .hero-visual:has(.hl):not(.hero-visual-term) .hl {
    width: 100%; max-width: 440px; margin: 0; padding: 14px 18px;
    box-shadow: 0 24px 48px -20px rgb(70 0 8 / .25);
  }
  .hero-visual:has(.hl):not(.hero-visual-term) .hl-title { font-size: 15px; margin-bottom: 4px; }
  .hero-visual:has(.hl):not(.hero-visual-term) .hl-list li { padding: 7px 0; font-size: 13.5px; gap: 8px; white-space: nowrap; }
  .hero-visual:has(.hl):not(.hero-visual-term) .hl-list svg { width: 14px; height: 14px; }
  .hero-visual:has(.hl):not(.hero-visual-term) .hl-foot { display: none; }
}
