/* Extracted unchanged from the prototype site/index.html. */
/* Layout: dark neo brutalist landing. One 76rem column; chunky bordered stickers and cards with hard
   offset shadows; the mascot stands on a gold block in the hero. Dark theme only, by choice. */
:root {
  color-scheme: dark;
  --night: #0D0D0D;      /* page */
  --coal: #151415;       /* cards */
  --coal-2: #1E1D1E;     /* raised */
  --edge: #333333;       /* quiet borders */
  --bone: #F9F6E0;       /* hard shadows and bold outlines, never text */
  --sun: #FFDE69;        /* highlight */
  --gold: #F4C644;       /* primary action, mascot trim */
  --amber: #E8A21A;      /* mascot eyes, numbers */
  --blush: #F6A9B2;      /* mascot cheeks, one sticker only */
  --white: #FFFFFF;
  --mute: #A3A3A3;
  --ok: #5BD38D;
  --no: #FF7A6B;
  --display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --body: 'DM Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --b: 2px;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.logo .mark { width: 34px; height: 34px; flex: none; }
@media (max-width: 900px) { .logo .mark { width: 30px; height: 30px; } }
::selection { background: #F4C644; color: #0D0D0D; text-shadow: none; }
::-moz-selection { background: #F4C644; color: #0D0D0D; text-shadow: none; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--white); font-family: var(--body); font-size: 17px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--gold); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 76rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: chunky, press down on click */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: var(--b) solid var(--bone); border-radius: 12px; font-family: var(--body); font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; color: var(--white); background: var(--coal); box-shadow: 4px 4px 0 var(--bone); transition: transform .12s, box-shadow .12s, background .15s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--bone); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--bone); }
.btn.gold { background: var(--gold); color: #0D0D0D; border-color: #0D0D0D; box-shadow: 4px 4px 0 var(--bone); }
.btn.gold:hover { background: var(--sun); }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: .95rem; box-shadow: 3px 3px 0 var(--bone); }
.btn svg { width: 18px; height: 18px; }

/* Announcement */
.bar { background: var(--gold); color: #0D0D0D; font-weight: 700; font-size: .95rem; }
.bar .wrap { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 9px; text-align: center; }
.bar a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(13,13,13,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: var(--b) solid var(--edge); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.logo span { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; background: var(--gold); color: #0D0D0D; padding: 4px 8px; border-radius: 6px; border: var(--b) solid #0D0D0D; transform: rotate(-3deg); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; color: var(--mute); transition: color .15s, background .15s; }
.nav a:hover { color: var(--white); background: var(--coal-2); }
.login { text-decoration: none; font-weight: 700; padding: 8px 6px; }
.login:hover { color: var(--gold); }
.menu-btn { display: none; width: 44px; height: 44px; border: var(--b) solid var(--edge); background: var(--coal); color: var(--white); border-radius: 10px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.sheet { border-top: var(--b) solid var(--edge); background: var(--night); }
.sheet .wrap { display: grid; gap: 4px; padding-block: 10px 16px; }
.sheet a { text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: 12px 4px; border-bottom: 1px solid var(--edge); }

/* Hero */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; }
.mark { position: relative; white-space: nowrap; color: var(--gold); }
.mark svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: .32em; overflow: visible; }
.mark path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1s .5s cubic-bezier(.2,0,0,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--mute); max-width: 32rem; margin-top: 22px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.stage { position: relative; aspect-ratio: 1 / 1.08; max-width: 34rem; width: 100%; justify-self: center; }
.block { position: absolute; inset: 9% 4% 2% 10%; background: var(--gold); border: 3px solid #0D0D0D; border-radius: 28px; box-shadow: 10px 10px 0 var(--bone); overflow: hidden; }
.block svg.clouds { position: absolute; inset: 0; width: 100%; height: 100%; }
.mascot { position: absolute; left: 50%; bottom: 3%; width: 62%; transform: translateX(-46%); filter: drop-shadow(0 18px 18px rgba(0,0,0,.35)); }
.sticker { position: absolute; font-family: var(--mono); font-weight: 700; font-size: .85rem; background: var(--night); color: var(--white); border: var(--b) solid var(--bone); border-radius: 12px; padding: 10px 14px; box-shadow: 4px 4px 0 var(--bone); line-height: 1.25; }
.sticker b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.s1 { left: 0; top: 18%; transform: rotate(-5deg); }
.s2 { right: 0; top: 4%; transform: rotate(4deg); background: var(--blush); color: #0D0D0D; border-color: #0D0D0D; }
.s2 b { color: #0D0D0D; }

/* Section heads */
.sec { padding-block: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* Subjects */
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.subj { text-align: left; border: var(--b) solid var(--bone); border-radius: 20px; background: var(--coal); color: var(--white); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 16px; box-shadow: 6px 6px 0 var(--gold); transition: transform .15s, box-shadow .15s; font: inherit; }
.subj:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold); }
.subj:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--gold); }
.art { aspect-ratio: 16 / 10; border-radius: 12px; border: var(--b) solid #0D0D0D; display: grid; place-items: center; overflow: hidden; }
.art svg { width: 70%; height: 70%; }
.art.a1 { background: var(--gold); } .art.a2 { background: var(--bone); } .art.a3 { background: var(--blush); }
.subj .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 8px 8px; }
.subj .t { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.subj small { display: block; color: var(--mute); font-size: .95rem; margin-top: 4px; font-family: var(--body); }
.go { width: 44px; height: 44px; border-radius: 50%; border: var(--b) solid var(--bone); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.go svg { width: 18px; height: 18px; }
.subj:hover .go { background: var(--gold); color: #0D0D0D; border-color: #0D0D0D; }

/* Try a question */
.tryzone { background: var(--coal); border-block: var(--b) solid var(--edge); }
.tabs { display: inline-flex; border: var(--b) solid var(--bone); border-radius: 12px; overflow: hidden; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 18px; background: transparent; color: var(--white); border: 0; cursor: pointer; min-height: 44px; }
.tabs button + button { border-left: var(--b) solid var(--bone); }
.tabs button[aria-pressed="true"] { background: var(--gold); color: #0D0D0D; }
.qcard { max-width: 48rem; margin: 0 auto; background: var(--night); border: var(--b) solid var(--bone); border-radius: 20px; padding: 28px; box-shadow: 8px 8px 0 var(--gold); }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; background: var(--coal-2); border: 1px solid var(--edge); color: var(--mute); }
.stem { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 600; line-height: 1.35; }
.opts { display: grid; gap: 12px; margin-top: 22px; }
.opt { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 1.08rem; color: var(--white); background: var(--coal); border: var(--b) solid var(--edge); border-radius: 14px; padding: 12px 16px; cursor: pointer; min-height: 60px; transition: border-color .15s, transform .12s, box-shadow .12s; }
.opt:hover:not([disabled]) { border-color: var(--bone); box-shadow: 3px 3px 0 var(--bone); transform: translate(-1px, -1px); }
.opt .L { width: 40px; height: 40px; border-radius: 50%; border: var(--b) solid var(--edge); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; }
.opt .tick { opacity: 0; }
.opt.right { border-color: var(--ok); background: rgba(91,211,141,.1); }
.opt.right .L { background: var(--ok); border-color: var(--ok); color: #0D0D0D; }
.opt.right .tick { opacity: 1; color: var(--ok); }
.opt.wrong { border-color: var(--no); background: rgba(255,122,107,.1); }
.opt.wrong .L { background: var(--no); border-color: var(--no); color: #0D0D0D; }
.opt.wrong .tick { opacity: 1; color: var(--no); }
.opt[disabled] { cursor: default; }
.feedback { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: var(--b) solid var(--edge); background: var(--coal); animation: pop .35s cubic-bezier(.2,0,0,1) both; }
.feedback img { width: 56px; height: 56px; border-radius: 50%; border: var(--b) solid var(--gold); background: var(--gold); object-fit: cover; }
.feedback b { font-family: var(--display); font-size: 1.2rem; }
.feedback.ok b { color: var(--ok); } .feedback.no b { color: var(--no); }
.feedback p { color: var(--mute); margin-top: 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.qfoot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* Packages */
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; max-width: 56rem; margin-inline: auto; }
.pack { position: relative; display: flex; flex-direction: column; gap: 18px; border: var(--b) solid var(--edge); border-radius: 20px; background: var(--coal); padding: 28px; }
.pack.hot { border-color: var(--bone); box-shadow: 8px 8px 0 var(--gold); }
.pack .flag { position: absolute; top: -16px; right: 20px; font-family: var(--mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; background: var(--gold); color: #0D0D0D; border: var(--b) solid #0D0D0D; border-radius: 8px; padding: 5px 10px; transform: rotate(3deg); }
.pack h3 { font-size: 1.5rem; font-weight: 800; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--mono); font-size: .85rem; color: var(--mute); letter-spacing: 0; margin-right: 6px; vertical-align: .9em; }
.pack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pack li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.pack li svg { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.pack .btn { margin-top: auto; }
.save { align-self: flex-start; font-family: var(--mono); font-size: .8rem; font-weight: 700; color: #0D0D0D; background: var(--blush); border-radius: 8px; padding: 4px 10px; }
.paynote { display: flex; align-items: center; gap: 10px; color: var(--mute); margin-top: 20px; font-size: .95rem; }
.paynote svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52rem; margin-inline: auto; }
#faq .sec-head { justify-content: center; text-align: center; }
.faq details { border: var(--b) solid var(--edge); border-radius: 16px; background: var(--coal); transition: border-color .15s; }
.faq details[open] { border-color: var(--bone); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1.12rem; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; flex: none; border-radius: 50%; border: var(--b) solid var(--edge); display: grid; place-items: center; transition: transform .25s, background .15s; }
.faq summary i svg { width: 14px; height: 14px; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--gold); color: #0D0D0D; border-color: #0D0D0D; }
.faq .ans { padding: 0 22px 20px; color: var(--mute); max-width: 44rem; overflow: hidden; }
.faq details.closing summary i { transform: none; background: transparent; color: var(--white); border-color: var(--edge); }
.faq details.closing { border-color: var(--edge); }

/* Final call */
.final .box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; background: var(--gold); color: #0D0D0D; border: 3px solid #0D0D0D; border-radius: 28px; padding: 40px 44px; box-shadow: 10px 10px 0 var(--bone); overflow: hidden; }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.final .btn { background: #0D0D0D; color: var(--white); border-color: #0D0D0D; box-shadow: 4px 4px 0 var(--bone); }
.final .head { width: 120px; height: 120px; border-radius: 50%; border: 3px solid #0D0D0D; background: var(--sun); }

/* Footer */
.foot { padding-top: 40px; color: var(--mute); font-size: .95rem; overflow: hidden; }
.foot .foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: var(--b) solid var(--edge); padding-top: 28px; }
.foot b { color: var(--white); font-family: var(--display); font-size: 1.25rem; }
.foot .contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--gold); }

.legal { display: grid; gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--edge); font-size: .95rem; }
/* Giant outlined wordmark; a spotlight follows the pointer and lights the letters under it */
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 60%; }
@property --mr { syntax: '<length>'; inherits: true; initial-value: 0px; }
.wordmark { position: relative; margin-top: 24px; height: 0.78em; font-family: 'Archivo Black', 'Arial Black', Arial, sans-serif; font-weight: 400; font-size: min(17vw, 15rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; user-select: none; --mr: 0px; transition: --mr .45s cubic-bezier(.2,0,0,1); cursor: default; }
.wordmark span { position: absolute; left: 0; right: 0; top: 0; text-align: center; }
.wm-base { color: transparent; -webkit-text-stroke: 1.5px rgba(244,198,68,.32); }
.wm-glow { color: rgba(244,198,68,.14); -webkit-text-stroke: 2px var(--gold); text-shadow: 0 0 40px rgba(244,198,68,.35);
  -webkit-mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), #000 0%, #000 35%, transparent 100%);
          mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), #000 0%, #000 35%, transparent 100%); }
.wordmark.lit { --mr: 220px; }
@media (hover: none) {
  .wordmark { --mr: 160px; animation: sweep 7s ease-in-out infinite alternate; }
  @keyframes sweep { from { --mx: 5%; } to { --mx: 95%; } }
}

/* Consultation form */
.packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Floating helper */
.helper { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 68px; height: 68px; border-radius: 50%; border: 3px solid #0D0D0D; background: var(--gold); box-shadow: 4px 4px 0 var(--bone); overflow: hidden; transition: transform .15s; }
.helper:hover { transform: translate(-2px, -2px) rotate(-6deg); }
.helper img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 26rem; }
  .subjects, .packs { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
  .packs { gap: 28px; }
}
@media (max-width: 820px) {
  .final .box { grid-template-columns: minmax(0, 1fr); padding: 32px 26px; }
  .final .head { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-block: 32px 48px; }
  .sec { padding-block: 52px; }
  .cta .btn { flex: 1 1 100%; }
  .qcard { padding: 20px; box-shadow: 5px 5px 0 var(--gold); }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 10px 8px; }
  .pack { padding: 24px; }
  .helper { width: 58px; height: 58px; }
  .s1 { top: 10%; }
  .s2 { right: 4%; }
  .bar { font-size: .85rem; }
  .bar .wrap { gap: 8px; padding-block: 7px; }
  .subj { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; box-shadow: 4px 4px 0 var(--gold); }
  .subj:hover { box-shadow: 5px 5px 0 var(--gold); }
  .art { aspect-ratio: 1; width: 84px; flex: none; border-radius: 10px; }
  .art svg { width: 78%; height: 78%; }
  .subj .row { flex: 1; min-width: 0; padding: 0 4px 0 0; }
  .subj .t { font-size: 1.4rem; }
  .subjects { gap: 14px; }
  .stage { max-width: 22rem; }
}
/* ChuoLink AI chat */
.helper { padding: 0; cursor: pointer; overflow: visible; }
.helper img { border-radius: 50%; }
.helper .ping { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) rotate(-3deg); white-space: nowrap; font-family: var(--mono); font-weight: 700; font-size: .8rem; background: var(--night); color: var(--white); border: var(--b) solid var(--bone); border-radius: 10px; padding: 6px 10px; box-shadow: 3px 3px 0 var(--bone); }
.helper .ping { opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; transform: translate(6px, -50%) rotate(-3deg); }
.helper:hover .ping, .helper:focus-visible .ping { opacity: 1; transform: translate(0, -50%) rotate(-3deg); }
.helper[aria-expanded="true"] .ping { display: none; }
.ask { position: fixed; z-index: 26; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); width: min(24rem, calc(100vw - 36px)); height: min(34rem, calc(100vh - 140px)); display: flex; flex-direction: column; background: var(--night); border: var(--b) solid var(--bone); border-radius: 20px; box-shadow: 8px 8px 0 var(--gold); overflow: hidden; animation: pop .25s cubic-bezier(.2,0,0,1) both; }
.ask-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 12px 14px; background: var(--gold); color: #0D0D0D; border-bottom: var(--b) solid #0D0D0D; }
.ask-top img { width: 44px; height: 44px; border-radius: 50%; border: var(--b) solid #0D0D0D; background: var(--night); }
.ask-top b { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }
.ask-top span { font-size: .8rem; font-weight: 500; }
.x { width: 40px; height: 40px; border-radius: 10px; border: var(--b) solid #0D0D0D; background: transparent; color: #0D0D0D; cursor: pointer; display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; }
.ask-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .96rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--coal-2); border: 1px solid var(--edge); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--gold); color: #0D0D0D; font-weight: 500; border-bottom-right-radius: 4px; }
.msg.wait { color: var(--mute); }
.msg a { color: var(--gold); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { font: inherit; font-size: .88rem; font-weight: 600; color: var(--white); background: transparent; border: var(--b) solid var(--edge); border-radius: 999px; padding: 7px 12px; cursor: pointer; min-height: 38px; }
.quick button:hover { border-color: var(--gold); color: var(--gold); }
.ask-form { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; padding: 12px; border-top: var(--b) solid var(--edge); }
.ask-form input { font: inherit; font-size: 16px; color: var(--white); background: var(--coal); border: var(--b) solid var(--edge); border-radius: 12px; padding: 0 14px; min-height: 48px; min-width: 0; }
.ask-form input:focus { outline: none; border-color: var(--gold); }
.send { border: var(--b) solid #0D0D0D; background: var(--gold); color: #0D0D0D; border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.send svg { width: 20px; height: 20px; }
.send[disabled] { opacity: .5; cursor: default; }
.hide-sm { display: inline; }

/* Header and hero across widths */
@media (max-width: 640px) {
  .nav, .login { display: none; }
  .menu-btn { display: grid; }
  .top .wrap { gap: 12px; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .top .btn { display: none; }
  .logo b { font-size: 1.4rem; }
  .ask { right: 12px; left: 12px; width: auto; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); height: min(32rem, calc(100vh - 120px)); }
  .helper .ping { display: none; }
}

/* Flat outlines everywhere: no offset shadows except the final call card */
.btn, .btn:hover, .btn:active, .final .btn, .sticker, .block, .subj, .subj:hover, .subj:active,
.qcard, .pack.hot, .opt:hover:not([disabled]), .ask, .helper, .helper .ping { box-shadow: none !important; }
.btn:hover, .subj:hover, .opt:hover:not([disabled]), .helper:hover { transform: none; }
.btn:hover { border-color: var(--gold); }
.btn.gold:hover { border-color: #0D0D0D; }
.btn:active, .subj:active { transform: scale(.98); }
.subj:hover { border-color: var(--gold); }
.qcard, .pack.hot, .ask { border-color: var(--gold); }
.helper:hover { transform: scale(1.05); }

/* AI mascot: dark coin with a gold rim; the face changes with its mood */
.helper { background: var(--night); border: var(--b) solid var(--gold); }
.hi { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 8px 8px 4px; }
.hi img { width: 112px; }
.hi p { color: var(--mute); max-width: 26ch; }
.ask-log .quick { justify-content: center; }
/* Centred layout: section heads, notes and stacked columns sit on the page's centre line */
.sec-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sec-head > div:first-child { display: flex; flex-direction: column; align-items: center; }
.paynote { justify-content: center; text-align: center; }
.qfoot { justify-content: center; }
@media (max-width: 1000px) {
  .hero .wrap { justify-items: center; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .subjects, .packs { margin-inline: auto; width: 100%; }
  .final .box { text-align: center; justify-items: center; box-shadow: 0 8px 0 var(--bone); }
  .foot .foot-top { flex-direction: column; justify-content: center; text-align: center; }
  .foot .contacts { justify-content: center; }
  .legal { text-align: center; justify-items: center; }
}
@media (max-width: 520px) {
  .paynote { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
/* Free consultation pop up: appears once after some time on the page */
.cpop-scrim { position: fixed; inset: 0; z-index: 90; background: transparent; pointer-events: none; display: grid; place-items: center; padding: 20px; }
.cpop-scrim > .cpop { pointer-events: auto; }
.cpop-scrim[hidden] { display: none; }
@keyframes cfade { from { opacity: 0; } }
.cpop { position: relative; width: min(60rem, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--coal); border: 3px solid var(--bone); border-radius: 26px; box-shadow: 10px 10px 0 var(--gold), 0 30px 80px rgba(0,0,0,.6); animation: crise .35s cubic-bezier(.2,0,0,1) both; }
@keyframes crise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.cpop-art { position: relative; background: var(--gold); display: grid; place-items: end center; overflow: hidden; border-right: 3px solid var(--bone); }
.cpop-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; left: 50%; top: 44%; transform: translate(-50%, -50%); background: rgba(255,255,255,.32); border: 3px solid #0D0D0D; }
.cpop-art::after { content: ""; position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%; right: -10%; top: -8%; border: 3px solid rgba(13,13,13,.25); }
.cpop-art img { position: relative; width: 82%; max-width: 330px; height: auto; margin-top: 28px; }
.cpop-art .tag { position: absolute; left: 18px; top: 18px; background: #0D0D0D; color: var(--gold); font-family: 'Space Mono', ui-monospace, monospace; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 7px 10px; border-radius: 8px; transform: rotate(-2deg); }
.cpop-body { padding: 40px 40px 34px; }
.cpop form > div { display: grid; gap: 16px; }
.cpop-x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: var(--b) solid var(--edge); background: var(--coal-2); color: var(--white); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.cpop-x:hover { border-color: var(--gold); }
.cpop-x svg { width: 18px; height: 18px; }
.cpop h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); padding-right: 44px; }
.cpop .lede { color: var(--mute); margin: -6px 0 4px; }
.cpop .f { display: grid; gap: 7px; }
.cpop .f > span:first-child { font-weight: 700; font-size: .92rem; }
.cpop .f i { color: var(--gold); font-style: normal; }
.cpop input[type=text], .cpop input[type=tel] { font: inherit; font-size: 16px; color: var(--white); background: var(--night); border: var(--b) solid var(--edge); border-radius: 12px; min-height: 52px; padding: 0 14px; width: 100%; }
.cpop input:focus { outline: none; border-color: var(--gold); }
.cpop .tel { display: grid; grid-template-columns: auto minmax(0, 1fr); border: var(--b) solid var(--edge); border-radius: 12px; background: var(--night); overflow: hidden; }
.cpop .tel:focus-within { border-color: var(--gold); }
.cpop .tel .cc { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-right: var(--b) solid var(--edge); font-weight: 700; color: var(--white); }
.cpop .tel input { border: 0; border-radius: 0; letter-spacing: .04em; }
.cpop .tzflag { width: 26px; height: 17px; display: block; }
.cpop .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cpop .chips label { position: relative; cursor: pointer; }
.cpop .chips input { position: absolute; opacity: 0; }
.cpop .chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: var(--b) solid var(--edge); font-weight: 700; font-size: .92rem; color: var(--mute); }
.cpop .chips input:checked + span { background: var(--gold); color: #0D0D0D; border-color: var(--bone); }
.cpop .chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.cpop .agree { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .92rem; color: var(--mute); cursor: pointer; }
.cpop .agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.cpop .err { color: var(--no); font-size: .92rem; margin: -4px 0 0; }
.cpop .err[hidden] { display: none; }
.cpop .cpgo { justify-self: end; min-width: 11rem; }
.cpop .done { display: grid; gap: 14px; justify-items: start; padding-top: 30px; }
.cpop .done[hidden], .cpop form[hidden] { display: none; }
.cpop .done b { font-family: var(--display); font-size: 1.8rem; color: var(--white); line-height: 1.1; }
.cpop .done p { color: var(--mute); margin: 0; }
@media (max-width: 760px) {
  .cpop-scrim { place-items: end center; padding: 0; }
  .cpop { grid-template-columns: minmax(0, 1fr); border-radius: 24px 24px 0 0; max-height: 92vh; box-shadow: 0 -18px 60px rgba(0,0,0,.65); border-bottom: 0; }
  .cpop-art { height: 150px; border-right: 0; border-bottom: 3px solid var(--bone); }
  .cpop-art img { width: 132px; margin-top: 0; }
  .cpop-art::before { width: 170px; top: 62%; }
  .cpop-body { padding: 24px 20px 28px; }
  .cpop .cpgo { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .cpop, .cpop-scrim { animation: none; } }
