/* Project Buddyy design system
   Paper background, ink navy, brand blue from the logo, one warm accent.
   Fraunces for headings, DM Sans for text, JetBrains Mono for codes. */
:root {
  --ink: #0d2347;
  --ink-2: #24354f;
  --muted: #5b6980;
  --paper: #faf7f1;
  --paper-2: #f3eee3;
  --card: #ffffff;
  --line: #e7dfd0;
  --line-2: #d8cfbc;
  --blue: #0a7cf0;
  --blue-ink: #0762c4;
  --blue-soft: #e9f3ff;
  --accent: #ffb020;
  --accent-soft: #fff4dc;
  --green: #1a9c57;
  --red: #c0392b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 35, 71, .05), 0 12px 32px -12px rgba(13, 35, 71, .16);
  --shadow-lg: 0 2px 4px rgba(13, 35, 71, .06), 0 28px 60px -20px rgba(13, 35, 71, .28);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink-2);
  background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .3em 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
.i { flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow-light { color: #a9d0ff; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: #7a5200; margin-bottom: 10px; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover .i { transform: translateX(3px); }
.text-link .i { transition: transform .25s var(--ease); }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border: 1px solid #f3dfb0; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .94rem; color: #5a4310; }
.note .i { color: #b77a00; margin-top: 3px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 20px;
  border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem;
  text-decoration: none; line-height: 1.2; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn-primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-primary:hover { --bg: #14336a; }
.btn-accent { --bg: var(--accent); --fg: #2b1d00; --bd: var(--accent); }
.btn-accent:hover { --bg: #ffbd45; }
.btn-ghost { --bg: transparent; }
.btn-ghost:hover { --bg: var(--card); }
.btn-wa { --bg: #1fa855; --fg: #fff; --bd: #1fa855; }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .38); }
.btn-outline-light:hover { --bg: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 247, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, transform .35s var(--ease); }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(13, 35, 71, .5); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-bar { width: min(1280px, 100% - 32px); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 18px; transition: height .3s var(--ease); }
.is-stuck .nav-bar { height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 38px; height: 38px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--blue); }
.brand-sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-light { color: #fff; }
.brand-light .brand-sub { color: #9fb3d1; }
.nav-desktop { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 999px; border: 0; background: none; color: var(--ink-2); font-weight: 500; font-size: .96rem; text-decoration: none; position: relative; transition: background .2s, color .2s; }
.nav-link:hover, .nav-trigger:hover, .nav-item.is-open .nav-trigger { background: rgba(13, 35, 71, .06); color: var(--ink); }
.nav-link.is-current::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--accent); border-radius: 2px; }
.chev { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-item { position: static; }
.mega { position: absolute; left: 50%; top: calc(100% - 6px); width: min(760px, 100vw - 32px); transform: translate(-50%, 10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s, transform .3s var(--ease), visibility .22s; padding-top: 10px; }
.mega-wide { width: min(1040px, 100vw - 32px); }
.nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega-inner { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 18px; }
.mega-title { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 10px 8px; }
.mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s, transform .25s var(--ease); }
.mega-link:hover { background: var(--paper); transform: translateX(3px); }
.mega-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.mega-link:hover .mega-ic { background: var(--ink); color: #fff; }
.mega-link strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.mega-link small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.nav-phone:hover { background: rgba(13, 35, 71, .06); }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); padding: 0; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-burger span:nth-child(1) { top: 15px; } .nav-burger span:nth-child(2) { top: 21px; } .nav-burger span:nth-child(3) { top: 27px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.scroll-progress { height: 2px; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--accent)); }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--paper); display: flex; flex-direction: column; animation: slideDown .3s var(--ease); }
.mobile-nav-scroll { flex: 1; overflow-y: auto; padding: 10px 20px 20px; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group[open] .chev { transform: rotate(180deg); }
.m-links { padding: 0 2px 14px; display: grid; gap: 2px; }
.m-links a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 1rem; }
.m-links a:active { background: var(--paper-2); }
.m-title { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 12px 4px; }
.m-flat { display: block; padding: 16px 2px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-nav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.mobile-nav-foot .btn-primary { grid-column: 1 / -1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; opacity: .55; mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, #000 10%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: .35em; }
.hero h1 .swap { display: block; color: var(--blue); min-height: 1.15em; white-space: nowrap; }
.type-caret { display: inline-block; width: 3px; height: .9em; background: var(--accent); margin-left: 4px; vertical-align: -.08em; animation: blink 1s steps(2) infinite; border-radius: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg { position: absolute; left: -2%; bottom: -.22em; width: 104%; height: .42em; color: var(--accent); overflow: visible; }
.squiggle path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .93rem; color: var(--muted); }
.hero-meta li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero-meta .i { color: var(--green); }

.desk { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; margin-inline: auto; width: 100%; }
.desk-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .6s var(--ease); }
.desk-card header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.desk-card header i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.desk-card header i:first-child { background: #ff7a68; } .desk-card header i:nth-child(2) { background: var(--accent); } .desk-card header i:nth-child(3) { background: #3fca7d; }
.desk-code { left: 0; top: 4%; width: 74%; transform: rotate(-3deg); z-index: 2; background: #0f1d36; border-color: #1c2f52; }
.desk-code header { border-color: #1c2f52; color: #7f93b5; }
.desk-code pre { margin: 0; padding: 14px 16px 18px; font-family: var(--mono); font-size: clamp(.66rem, 1.3vw, .8rem); line-height: 1.7; color: #d7e3f7; min-height: 12.5em; white-space: pre; overflow: hidden; }
.desk-code .k { color: #7cc0ff; } .desk-code .s { color: #ffd27a; } .desk-code .c { color: #6f84a8; }
.desk-plan { right: 0; top: 30%; width: 58%; transform: rotate(4deg); z-index: 3; background: #0b3d7a; border-color: #1857a6; }
.desk-plan header { border-color: rgba(255, 255, 255, .16); color: #b8d6ff; }
.desk-plan svg { display: block; width: 100%; height: auto; padding: 12px; }
.desk-plan .ln { stroke: #dcebff; stroke-width: 1.6; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.2s .6s var(--ease) forwards; }
.desk-plan .ln-thin { stroke-width: .8; opacity: .7; animation-delay: 1.6s; }
.desk-doc { left: 8%; bottom: 0; width: 52%; transform: rotate(2deg); z-index: 4; padding-bottom: 14px; }
.desk-doc ul { list-style: none; margin: 12px 14px 0; padding: 0; display: grid; gap: 8px; }
.desk-doc li { display: flex; align-items: center; gap: 9px; font-size: .82rem; margin: 0; color: var(--ink-2); opacity: 0; animation: rise .5s var(--ease) forwards; }
.desk-doc li:nth-child(1) { animation-delay: 1s; } .desk-doc li:nth-child(2) { animation-delay: 1.4s; } .desk-doc li:nth-child(3) { animation-delay: 1.8s; } .desk-doc li:nth-child(4) { animation-delay: 2.2s; }
.desk-doc .i { color: var(--green); width: 16px; height: 16px; }
.desk-chip { position: absolute; right: 4%; bottom: 8%; z-index: 5; background: var(--accent); color: #2b1d00; font-weight: 700; font-size: .8rem; padding: 9px 14px; border-radius: 999px; transform: rotate(-6deg); box-shadow: var(--shadow); display: flex; align-items: center; gap: 7px; animation: float 5s ease-in-out infinite; }
.desk-led { position: absolute; right: 12%; top: 6%; z-index: 1; width: 92px; height: 92px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; transform: rotate(8deg); color: var(--ink); animation: float 6s 1s ease-in-out infinite; }
.desk-led .i { width: 40px; height: 40px; }
.desk-led::after { content: ""; position: absolute; right: 14px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: #3fca7d; box-shadow: 0 0 0 0 rgba(63, 202, 125, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 202, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 202, 125, 0); } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.desk:hover .desk-code { transform: rotate(-4deg) translate(-4px, -4px); }
.desk:hover .desk-plan { transform: rotate(5deg) translate(6px, -2px); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.marquee + .marquee { border-top: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.pill img { width: 20px; height: 20px; object-fit: contain; }
.pill-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #c9d6ea; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head p:last-child { margin: 0; font-size: 1.06rem; color: var(--muted); }
.section-ink .section-head p:last-child { color: #a9bbd6; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink-2); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .96rem; color: var(--muted); }
.card-link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink-2); }
.card-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; margin-bottom: 16px; transition: background .3s, color .3s, transform .4s var(--ease); }
.card-ic .i { width: 22px; height: 22px; }
.card-link:hover .card-ic { background: var(--ink); color: #fff; transform: rotate(-6deg); }
.card-go { position: absolute; right: 18px; top: 20px; color: var(--line-2); transition: color .3s, transform .3s var(--ease); }
.card-link:hover .card-go { color: var(--blue); transform: translate(3px, -3px); }
.mini-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-list li { margin: 0; font-size: .78rem; padding: 4px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }

.disc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.disc { grid-column: span 2; min-height: 230px; }
.disc-wide { grid-column: span 3; }
.disc-ink { background: var(--ink); border-color: var(--ink); color: #c9d6ea; }
.disc-ink h3 { color: #fff; } .disc-ink p { color: #a9bbd6; }
.disc-ink .card-ic { background: rgba(255, 255, 255, .1); color: #fff; }
.disc-blue { background: #0b3d7a; border-color: #0b3d7a; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; color: #d2e4ff; }
.disc-blue h3 { color: #fff; } .disc-blue p { color: #c0d8f8; }
.disc-blue .card-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.disc-accent { background: var(--accent-soft); border-color: #f3dfb0; }
.disc-ink .mini-list li, .disc-blue .mini-list li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #e6eefb; }
.disc-ink .card-go, .disc-blue .card-go { color: rgba(255, 255, 255, .4); }

/* ---------- AI vs mentor ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.versus-col { border-radius: 22px; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.versus-col.good { background: var(--paper); border-color: var(--paper); color: var(--ink-2); }
.versus-col.good h3 { color: var(--ink); }
.versus-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 16px; }
.versus-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.versus-col li { display: flex; gap: 11px; margin: 0; font-size: .98rem; line-height: 1.5; }
.versus-col li .i { margin-top: 3px; }
.versus-col.bad li .i { color: #ff8f7f; }
.versus-col.good li .i { color: var(--green); }
.quote-strip { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: #fff; line-height: 1.35; max-width: 30em; }
.quote-strip span { color: var(--accent); }

/* ---------- steps ---------- */
.steps-line { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps-line li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; margin: 0; transition: transform .35s var(--ease), box-shadow .35s; }
.steps-line li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps-line li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--blue-ink); background: var(--blue-soft); padding: 4px 9px; border-radius: 8px; display: inline-block; margin-bottom: 12px; }
.steps-line h3 { font-size: 1.1rem; margin-bottom: .3em; }
.steps-line p { margin: 0; font-size: .94rem; color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 34px; }
.stat { border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); }
.section-ink .stat strong { color: #fff; } .section-ink .stat span { color: #a9bbd6; }

/* ---------- plans ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pills button { border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.pills button:hover { transform: translateY(-1px); border-color: var(--ink); }
.pills button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.plan-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.plan-grid-4 .plan { padding: 24px 20px 20px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-popular { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -13px; left: 22px; background: var(--accent); color: #2b1d00; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; padding: 5px 11px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: .5em; }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin: 0 0 4px; }
.plan-amt { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.plan-custom { font-size: 1.6rem; }
.plan-from, .plan-unit { font-size: .86rem; color: var(--muted); }
.plan-note { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.plan-blurb { font-size: .95rem; color: var(--ink-2); margin: 10px 0 12px; }
.plan-best { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--blue-ink); background: var(--blue-soft); border-radius: 12px; padding: 9px 11px; margin: 0 0 14px; }
.plan-best .i { margin-top: 2px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 9px; font-size: .93rem; margin: 0; line-height: 1.45; }
.plan-list .i { color: var(--green); margin-top: 3px; }
.plan.is-hidden { display: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s; }
.faq[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px 20px; font-weight: 600; color: var(--ink); cursor: pointer; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--paper); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq[open] .faq-ic { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); }
.faq-a p:last-child { margin: 0; }
.faq[open] .faq-a { animation: rise .35s var(--ease); }
.faq-topic { font-family: var(--serif); font-size: 1.35rem; margin: 34px 0 12px; color: var(--ink); }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(22px, 3vw, 34px) 0 clamp(34px, 5vw, 60px); position: relative; background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20em; }
.page-hero-grid.has-aside { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero-aside { background: var(--ink); color: #c9d6ea; border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); }
.page-hero-aside h2, .page-hero-aside h3 { color: #fff; font-size: 1.15rem; }
.page-hero-aside .big { font-family: var(--serif); font-size: 3rem; color: #fff; line-height: 1; display: block; margin: 6px 0 8px; }
.page-hero-aside p:last-child { margin: 0; }
.page-hero-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .95rem; }
.page-hero-aside li { display: flex; gap: 9px; margin: 0; }
.page-hero-aside li .i { color: var(--accent); margin-top: 3px; }
.crumbs { margin-bottom: 20px; font-size: .84rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.answer-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px var(--radius) var(--radius) 4px; padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 30px; }
.answer-q { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 8px; }
.answer-a { margin: 0; font-size: 1.08rem; color: var(--ink); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.article-side { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 16px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.toc p { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.toc li { margin: 0; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--blue-ink); text-decoration: underline; }
.side-cta { background: var(--ink); color: #c9d6ea; border-radius: var(--radius); padding: 20px; font-size: .94rem; }
.side-cta h3 { color: #fff; font-size: 1.12rem; }
.side-cta .btn { width: 100%; margin-top: 8px; }
.prose { min-width: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 1.9em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin: .45em 0; }
.prose ol > li::marker { font-family: var(--mono); font-size: .85em; color: var(--blue-ink); }
.prose ul > li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--paper-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; position: sticky; top: 0; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #fdfbf7; }
td.code, th.code { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
.qa { display: grid; gap: 12px; counter-reset: qa; }
.qa-item { counter-increment: qa; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 16px 58px; position: relative; }
.qa-item::before { content: counter(qa); position: absolute; left: 16px; top: 17px; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-ink); font-family: var(--mono); font-size: .8rem; display: grid; place-items: center; }
.qa-item h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.qa-item p { margin: 0; }
.idea-group { margin-bottom: 28px; }
.idea-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-align: left; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
button.idea:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.idea strong { color: var(--ink); font-size: 1rem; line-height: 1.3; }
.idea small { font-family: var(--mono); font-size: .72rem; color: var(--blue-ink); }
.idea span { font-size: .9rem; color: var(--muted); }
.idea.is-hidden { display: none; }
.link-cloud, .stack-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }
.link-cloud a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.link-cloud a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 36px; font-size: .93rem; }
.author-box p { margin: 0; color: var(--muted); }
.author-name { font-weight: 700; color: var(--ink) !important; margin-bottom: 3px !important; }
.author-avatar { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.updated { font-size: .84rem; color: var(--muted); margin-top: 14px; }

.cta-band { background: var(--ink); color: #c9d6ea; border-radius: 26px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 176, 32, .16); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 46ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }

/* ---------- reviews / instagram ---------- */
.review-grid { columns: 3 300px; column-gap: 16px; }
.review { break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.review blockquote { margin: 0 0 14px; font-size: .98rem; color: var(--ink-2); }
.review figcaption { display: flex; gap: 11px; align-items: center; font-size: .86rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-size: .95rem; }
.review-av { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; }
.review .tag { margin: 0 0 12px; }
.insta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.insta > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.insta-frame { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow-lg); min-height: 420px; display: grid; place-items: center; transform: rotate(-1.5deg); transition: transform .5s var(--ease); max-width: 440px; margin-inline: auto; width: 100%; }
.insta-frame:hover { transform: rotate(0); }
.insta-frame .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.insta-fallback { text-align: center; padding: 28px; display: grid; gap: 12px; justify-items: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.contact-list li { margin: 0; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.contact-list a:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.contact-list .mega-ic { width: 42px; height: 42px; }
.contact-list small { display: block; font-size: .78rem; color: var(--muted); }
.map-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 16 / 10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { background: #0a1c3a; color: #a9bbd6; padding: clamp(40px, 6vw, 72px) 0 28px; margin-top: clamp(40px, 6vw, 80px); font-size: .94rem; }
.site-footer a { color: #d7e3f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-bottom: clamp(30px, 5vw, 52px); border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: clamp(30px, 5vw, 52px); }
.foot-cta h2 { color: #fff; margin: 0; max-width: 18em; }
.foot-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.foot-brand p { margin: 16px 0; max-width: 34ch; }
.foot-contact { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.foot-contact .i { color: var(--accent); margin-top: 4px; }
.foot-social a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.foot-col h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7f93b5; margin-bottom: 14px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-col li { margin: 0; }
.foot-map { margin-top: 36px; position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); height: 240px; background: #10274d; }
.foot-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.foot-map-link { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--ink) !important; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; display: inline-flex; gap: 7px; align-items: center; box-shadow: var(--shadow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; }
.foot-bottom p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-note { font-size: .78rem; color: #7f93b5; margin: 16px 0 0; max-width: 90ch; }

/* ---------- floating ---------- */
.wa-float { position: fixed; right: 18px; bottom: 86px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(31, 168, 85, .7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .i { width: 28px; height: 28px; }
.chat-fab { position: fixed; right: 18px; bottom: 20px; z-index: 81; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab .dot { width: 9px; height: 9px; border-radius: 50%; background: #3fca7d; animation: pulse 1.8s infinite; }
.chat-panel { position: fixed; right: 18px; bottom: 20px; z-index: 120; width: min(390px, 100vw - 24px); height: min(620px, 100dvh - 40px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(14px); } }
.chat-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head img { width: 36px; height: 36px; background: #fff; border-radius: 10px; padding: 4px; }
.chat-head strong { display: block; font-size: 1rem; }
.chat-head small { color: #a9bbd6; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fca7d; }
.chat-head button { margin-left: auto; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; animation: rise .3s var(--ease); white-space: pre-line; }
.msg-bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--ink-2); }
.msg-user { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg a { font-weight: 600; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-actions a, .msg-actions button { font-size: .82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: .5; } }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card); scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; font-size: .82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font-weight: 500; white-space: nowrap; }
.chat-chips button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 10px 16px; background: var(--paper); font-size: 16px; }
.chat-form button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }

/* ---------- modal + form ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 42, .62); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(20px, 3.5vw, 34px); animation: pop .32s var(--ease); transform-origin: center; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; z-index: 2; }
.modal-head h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); margin-bottom: .25em; padding-right: 40px; }
.modal-head p:last-child { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.modal-card.is-done .modal-head { display: none; }
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps span { flex: 1; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--muted); padding-top: 9px; border-top: 3px solid var(--line-2); transition: border-color .3s, color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps span.is-on { border-color: var(--blue); color: var(--ink); }
.steps span.is-done { border-color: var(--green); }
.step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.is-on { display: block; animation: rise .35s var(--ease); }
.field { margin-bottom: 14px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field small { display: block; font-size: .78rem; color: var(--muted); margin-top: 5px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea, .calc select, .calc input[type="number"], .search-input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--card); font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .calc select:focus, .search-input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 124, 240, .16); }
.field.has-error input, .field.has-error select { border-color: var(--red); box-shadow: 0 0 0 4px rgba(192, 57, 43, .12); }
.field-error { color: var(--red); font-size: .8rem; margin-top: 5px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field-sm { max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip-sm span { padding: 7px 12px; font-size: .84rem; }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.step-actions > :only-child { margin-left: auto; }
.step-actions-center { justify-content: center; }
.otp-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-align: center; }
.otp-lead { margin-bottom: 16px; font-size: .96rem; }
.otp-inputs { display: flex; justify-content: center; gap: 8px; }
.otp-inputs input { width: 46px; height: 56px; text-align: center; font-family: var(--mono); font-size: 1.5rem; font-weight: 500; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--paper); color: var(--ink); padding: 0; }
.otp-inputs input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 124, 240, .16); background: #fff; }
.otp-inputs.is-ok input { border-color: var(--green); background: #effaf3; }
.otp-inputs.is-bad input { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.otp-meta { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; font-weight: 500; text-align: center; }
.form-status.is-error { color: var(--red); } .form-status.is-ok { color: var(--green); }
.form-fine { font-size: .78rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.step-done { text-align: center; padding: 10px 0; }
.done-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; animation: pop .5s var(--ease); }
.done-tick .i { width: 34px; height: 34px; }
.estimate-pill { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); border: 1px solid #f3dfb0; border-radius: 14px; padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; color: #5a4310; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.calc-form { display: grid; gap: 22px; }
.calc-block { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.6vw, 26px); }
.calc-block h3 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.calc-block h3 b { font-family: var(--mono); font-size: .74rem; font-weight: 500; background: var(--blue-soft); color: var(--blue-ink); padding: 4px 8px; border-radius: 8px; }
.calc-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc-cat { position: relative; }
.calc-cat input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc-cat span { display: grid; gap: 8px; justify-items: start; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 16px; font-weight: 600; color: var(--ink); background: var(--paper); transition: all .25s var(--ease); height: 100%; }
.calc-cat span .i { width: 24px; height: 24px; color: var(--blue-ink); }
.calc-cat:hover span { border-color: var(--ink); transform: translateY(-2px); }
.calc-cat input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow); }
.calc-cat input:checked + span .i { color: var(--accent); }
.calc-cat input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-fields .full { grid-column: 1 / -1; }
.calc label.lab, .calc .lab { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.opt-list { display: grid; gap: 8px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: block; padding: 11px 14px 11px 42px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--paper); font-weight: 600; font-size: .94rem; color: var(--ink); transition: all .2s; position: relative; }
.opt span small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.opt span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; transition: all .2s; }
.opt input[type="checkbox"] + span::before { border-radius: 5px; }
.opt input:checked + span { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.opt input:checked + span::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt span:has(> i) { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.opt span i { flex: none; font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--blue-ink); font-weight: 500; }
.opt-grid { grid-template-columns: 1fr 1fr; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--ink); height: 28px; }
.range-row output { font-family: var(--mono); min-width: 4.5em; text-align: right; font-weight: 500; color: var(--ink); }
.calc-result { position: sticky; top: calc(var(--header-h) + 16px); background: var(--ink); color: #c9d6ea; border-radius: 24px; padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow-lg); }
.calc-result h2 { color: #fff; font-size: 1.1rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.calc-total { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; line-height: 1.1; margin: 0 0 4px; font-weight: 700; }
.calc-total.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); color: var(--accent); } }
.calc-sub { font-size: .86rem; color: #a9bbd6; margin-bottom: 16px; }
.calc-lines { list-style: none; padding: 14px 0; margin: 0 0 14px; border-block: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 8px; font-size: .9rem; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.calc-lines li span:last-child { font-family: var(--mono); color: #fff; white-space: nowrap; }
.calc-disclaimer { font-size: .8rem; color: #a9bbd6; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.calc-result .btn { width: 100%; margin-top: 8px; }
.calc-panel { display: none; }
.calc-panel.is-on { display: grid; gap: 22px; animation: rise .35s var(--ease); }

/* ---------- DSE tool ---------- */
.dse-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.dse-filter-grid label { font-weight: 600; font-size: .9rem; color: var(--ink); display: grid; gap: 6px; }
.dse-filter-grid input, .dse-filter-grid select { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--card); font-size: 16px; width: 100%; }
.dse-result-list, .dse-college-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 16px; }
.dse-result-card, .dse-college-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 6px 16px 16px 6px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 14px; }
.dse-result-card h3, .dse-college-card h3 { font-family: var(--sans); font-size: .98rem; font-weight: 700; margin: 3px 0 4px; letter-spacing: 0; }
.dse-result-card p, .dse-college-card p { margin: 0; font-size: .86rem; color: var(--muted); }
.dse-city { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.dse-result-score { text-align: right; flex: none; display: grid; align-content: start; }
.dse-result-score strong { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.dse-result-score span { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.dse-result-score em { font-style: normal; font-size: .76rem; font-weight: 700; margin-top: 4px; }
.dse-result-card.strong { border-left-color: var(--green); } .dse-result-card.strong em { color: var(--green); }
.dse-result-card.match { border-left-color: var(--blue); } .dse-result-card.match em { color: var(--blue-ink); }
.dse-result-card.borderline { border-left-color: var(--accent); } .dse-result-card.borderline em { color: #a36b00; }
.dse-result-card.ambitious { border-left-color: var(--red); } .dse-result-card.ambitious em { color: var(--red); }
.dse-cutoff-pill { flex: none; align-self: start; font-family: var(--mono); font-size: .78rem; background: var(--blue-soft); color: var(--blue-ink); padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.upsell { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--accent-soft); border: 1px solid #f3dfb0; border-radius: 18px; padding: 16px 20px; }
.upsell h3 { margin: 0 0 2px; font-size: 1.08rem; } .upsell p { margin: 0; font-size: .92rem; color: #5a4310; }

/* ---------- search (subject codes / resources) ---------- */
.search-bar { position: relative; margin-bottom: 14px; }
.search-bar .i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search-input { padding-left: 46px !important; border-radius: 999px !important; min-height: 54px !important; }
.search-count { font-size: .86rem; color: var(--muted); margin: 0 0 12px; font-family: var(--mono); }
.sem-block { margin-bottom: 28px; }
.sem-block h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sem-block h2 small { font-family: var(--mono); font-size: .76rem; color: var(--muted); font-weight: 400; letter-spacing: .04em; }
.badge { display: inline-block; font-family: var(--mono); font-size: .7rem; padding: 3px 8px; border-radius: 7px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge-b { background: var(--blue-soft); color: var(--blue-ink); }
.badge-a { background: var(--accent-soft); color: #7a5200; }
.prog-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.prog { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.prog:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink); color: var(--ink); }
.prog b { flex: none; min-width: 46px; text-align: center; font-family: var(--mono); font-size: .78rem; font-weight: 500; background: var(--ink); color: #fff; padding: 6px 7px; border-radius: 9px; }
.prog span { font-size: .93rem; font-weight: 500; line-height: 1.3; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.nf-code { font-family: var(--serif); font-size: clamp(6rem, 22vw, 13rem); line-height: .9; color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: .04em; }
.nf-code span { display: inline-block; animation: float 4s ease-in-out infinite; }
.nf-code span:nth-child(2) { color: var(--blue); animation-delay: .4s; transform: rotate(8deg); }
.nf-code span:nth-child(3) { animation-delay: .8s; }

/* ---------- reveal ---------- */
.snap-hint { display: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .nav-desktop, .nav-phone span { display: none; }
  .nav-burger { display: block; }
  .nav-actions { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  body { font-size: 16px; }
  .hero-grid, .page-hero-grid.has-aside, .insta, .contact-grid, .calc, .article, .cta-band, .foot-cta { grid-template-columns: 1fr; }
  .desk { max-width: 420px; margin-top: 10px; }
  .article-side { position: static; order: -1; }
  .insta > div:first-child { position: static; }
  .article-side .side-cta { display: none; }
  .calc-result { position: static; }
  .versus { grid-template-columns: 1fr; }
  .disc, .disc-wide { grid-column: span 3; }
  .dse-filter-grid { grid-template-columns: 1fr 1fr; }
  .calc-cats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .nav-actions .btn { display: none; }
  .brand-sub { display: none; }
  .disc, .disc-wide { grid-column: 1 / -1; min-height: 0; }
  .field-row, .calc-fields, .opt-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .cta-band-actions .btn, .foot-cta-actions .btn { flex: 1 1 100%; }
  .otp-inputs { gap: 6px; }
  .otp-inputs input { width: 40px; height: 52px; font-size: 1.3rem; }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: 26px 26px 0 0; max-height: 94dvh; width: 100%; animation: sheet .35s var(--ease); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .step-actions .btn { flex: 1; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .chat-fab span.lbl { display: none; }
  .chat-fab { padding: 0; width: 54px; justify-content: center; }
  .chat-fab .dot { position: absolute; right: 6px; top: 6px; }
  .qa-item { padding: 52px 16px 16px; }
  .dse-filter-grid { grid-template-columns: 1fr; }
  th, td { padding: 9px 11px; }
  .author-box { flex-direction: column; }
  .wa-float { bottom: 84px; }
  .snap-m { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 18px 16px 14px; scrollbar-width: none; columns: auto; }
  .snap-m::-webkit-scrollbar { display: none; }
  .snap-m > * { flex: 0 0 84%; scroll-snap-align: center; margin: 0; }
  .snap-m > li { flex-basis: 72%; }
  .snap-hint { display: block; }
  .section { padding: 48px 0; }
  .card { padding: 18px; }
  .desk-code pre { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .desk-doc li { opacity: 1; }
  .squiggle path, .desk-plan .ln { stroke-dashoffset: 0; }
}
@media print {
  .site-header, .site-footer, .wa-float, .chat-fab, .chat-panel, .modal, .cta-band, .article-side { display: none !important; }
  body { background: #fff; }
}
