/* Linguo Pro Solutions — design tokens & shared components (from design-handoff/README.md) */
:root {
  --ink: #0E1A33; --navy-800: #16264A; --navy-700: #263A66; --navy-600: #3A5080;
  --blue: #1B3F9A; --blue-700: #0E2A70; --blue-50: #E9EEFB;
  --yellow: #F6CB45; --yellow-500: #EDBB24; --gold: #D9AE2C; --yellow-50: #FDF1C9; --yellow-ink: #5C4500;
  --paper: #FBFAF6; --sand: #F2EFE6; --sand-2: #F6F4EE; --line: #E7E4DA; --line-strong: #D9D5C8;
  --muted: #4A5878; --body: #3C4865; --subtle: #6B7690; --on-dark: #C3CBE0; --on-dark-2: #9FB0D6;
  --green-50: #E2F2EA; --green: #14583A; --red-50: #FDE4E1; --red: #8A1F12;
  --serif: 'DM Serif Display', Georgia, serif; --sans: Manrope, system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad-x: clamp(16px, 4vw, 40px); --sec-y: clamp(56px, 8vw, 112px);
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; }
.section { padding: var(--sec-y) var(--pad-x); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--blue); text-transform: uppercase; }
.on-dark .eyebrow, .eyebrow.y { color: var(--yellow); }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.03; letter-spacing: -0.01em; margin: 14px 0 0; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; margin: 14px 0 0; text-wrap: balance; }
.h2.sm { font-size: clamp(30px, 3.6vw, 44px); }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); }
em.blue { color: var(--blue); } em.yel { color: var(--yellow); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.sm { height: 44px; padding: 0 18px; font-size: 14px; font-weight: 800; }
.btn.block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-blue { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue.on, .btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--yellow-500); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--yellow); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-800); color: #fff; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-white:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { border: none; background: none; color: var(--blue); font-weight: 700; cursor: pointer; padding: 10px 4px; font-size: 14px; }

.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on.blue { background: var(--blue); border-color: var(--blue); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; display: inline-block; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.input { height: 50px; border-radius: 12px; border: 1.5px solid var(--line-strong); padding: 0 14px; font-size: 16px; background: #fff; color: var(--ink); outline-color: var(--blue); width: 100%; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input.paper { background: var(--paper); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.alert.err { background: var(--red-50); color: var(--red); }
.alert.ok { background: var(--green-50); color: var(--green); }
.alert.info { background: var(--yellow-50); color: var(--yellow-ink); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(14,26,51,0.28); }
.thumb { aspect-ratio: 16/9; background: repeating-linear-gradient(135deg, #EEF1F8 0 10px, #E5E9F3 10px 20px); position: relative; display: flex; align-items: center; justify-content: center; }
.cover { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; text-align: left; }
.cover-ring { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 26px solid; opacity: .35; }
.cover-exam { position: absolute; left: 20px; top: 16px; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.cover-title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.08; max-width: 85%; position: relative; }
.cover-brand { font-size: 9.5px; letter-spacing: .28em; font-weight: 700; opacity: .7; margin-top: 10px; }
.thumb .ph { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.thumb .exam { position: absolute; left: 14px; top: 14px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; }
.course-card .body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0; color: var(--ink); }
.course-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; flex: 1; }
.course-card .meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.course-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #EEEBE2; padding-top: 16px; gap: 10px; }
.price { font-size: 22px; font-weight: 800; }
.grid-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: 22px; color: var(--muted); font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,250,246,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 1240px; margin: 0 auto; padding: 12px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-mark { width: 52px; height: 52px; overflow: hidden; position: relative; flex-shrink: 0; border-radius: 50%; background: #fff; }
.logo-mark img { position: absolute; width: 100px; height: 100px; left: -24px; top: -11px; max-width: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: 0.16em; color: var(--blue); }
.wordmark small { font-size: 9.5px; letter-spacing: 0.32em; font-weight: 700; color: var(--muted); margin-top: 4px; }
.on-dark .wordmark b { color: #fff; } .on-dark .wordmark small { color: var(--yellow); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); white-space: nowrap; }
.hdr-link { white-space: nowrap; }
@media (max-width: 1180px) { .nav { gap: 18px; font-size: 14px; } }
@media (max-width: 1060px) { .nav a:nth-child(4) { display: none; } }
.nav a:hover { color: var(--blue); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-link { font-size: 15px; font-weight: 600; color: var(--ink); padding: 10px 6px; background: none; border: none; cursor: pointer; }
.cart-pill { position: relative; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.cart-pill .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--pad-x) 20px; display: flex; flex-direction: column; font-size: 18px; font-weight: 700; }
.mobile-nav a, .mobile-nav button.m { color: var(--ink); padding: 14px 0; border: none; border-bottom: 1px solid #EEEBE2; background: none; text-align: left; font: inherit; cursor: pointer; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
@media (max-width: 959px) { .nav, .desk-only { display: none !important; } .burger { display: flex; } }
@media (min-width: 960px) { .mobile-nav, .mob-only { display: none !important; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 6vw, 80px) var(--pad-x) 32px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 36px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer .col b { color: #fff; font-weight: 800; margin-bottom: 4px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid var(--navy-700); margin-top: 48px; padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Cart drawer & toast */
.scrim { position: fixed; inset: 0; background: rgba(14,26,51,0.45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 61; display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3); }
.drawer .hd { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer .hd span { font-family: var(--serif); font-size: 28px; }
.drawer .list { flex: 1; overflow: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.drawer .ft { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.x-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 20px; cursor: pointer; color: var(--ink); }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cart-item .tag { width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 90; box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4); max-width: calc(100% - 32px); text-align: center; }

.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { padding: 80px 0; display: flex; justify-content: center; }
