/* ============================================================
   High Horizon Languages — design system
   Ink-forward, flat colour. One cobalt accent, brass as a whisper.
   Pretendard typography. (ported from Claude Design → Django)
   ============================================================ */

:root {
  /* paper / ink */
  --paper:      #F4F4F0;   /* warm gallery off-white */
  --paper-2:    #EDEDE7;   /* faint cream surface    */
  --tint-blue:  #EAEEF7;   /* cool accent surface    */
  --surface:    #FFFFFF;
  --ink:        #16181C;   /* near-black             */
  --ink-2:      #2A2D33;
  --body:       #51555D;
  --muted:      #8A8F98;
  --line:       #E4E3DC;
  --line-2:     #ECEBE5;

  /* accent — cobalt (the one colour that does the talking) */
  --blue:       #2B4FA6;
  --blue-deep:  #1F3C82;
  --blue-tint:  #E8EDF7;

  /* whisper — muted brass, hairlines & marks only */
  --gold:       #8A6E36;
  --gold-deep:  #6B5326;
  --gold-tint:  #F0ECDF;

  --radius:     16px;
  --radius-sm:  11px;
  --maxw:       1180px;

  --shadow-xs:  0 1px 2px rgba(22,24,28,.05);
  --shadow:     0 1px 2px rgba(22,24,28,.05), 0 18px 40px -28px rgba(22,24,28,.30);
  --shadow-lg:  0 1px 2px rgba(22,24,28,.05), 0 30px 60px -34px rgba(22,24,28,.40);

  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.68,0,1);

  /* legacy aliases (kept so older rules/markup resolve sanely) */
  --white:  #FFFFFF;
  --slate:  #EDEDE7;
  --navy:   #16181C;
  --navy-2: #2A2D33;
  --gold-2: #A07E3E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--body);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-inline-size: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.container.narrow { max-inline-size: 800px; }
.center { text-align: center; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.03em; margin: 0; }

/* ---------- shared bits ---------- */
.eyebrow, .section-eyebrow {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted); text-transform: none;
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px;
}
.eyebrow::before, .section-eyebrow::before {
  content: ""; inline-size: 18px; block-size: 1.5px; background: var(--gold); border-radius: 2px;
}
.eyebrow.center, .section-eyebrow.center { justify-content: center; }
.eyebrow.on-dark, .section-eyebrow.gold { color: #9aa0ab; }
.eyebrow.on-dark::before, .section-eyebrow.gold::before { background: var(--gold); }

.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; margin: 0 0 18px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.03em;
}
.section-title .accent { color: var(--blue); }
.lede { color: var(--body); font-size: 1.12rem; max-inline-size: 56ch; margin: 0; }
.lede.center { margin-inline: auto; text-align: center; margin-block-end: 0; }

.surface-cream, .section-slate { background: var(--paper-2); }
.surface-sky   { background: var(--surface); }
.surface-ink, .section-dark { background: var(--ink); color: #C9CCD2; }
.surface-ink .section-title, .section-dark .section-title { color: #fff; }
.surface-ink .lede, .section-dark .lede { color: #A4A8B0; }

.rule { block-size: 1px; border: 0; background: var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 0.96rem;
  font-family: inherit; text-decoration: none; border: 1px solid transparent; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap; line-height: 1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
}
.btn-sm { padding: 10px 17px; font-size: 0.88rem; border-radius: 9px; }
.btn-gold, .btn-primary { background: var(--ink); color: #fff; }          /* primary / package / dark */
.btn-gold:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-blue { background: var(--blue); color: #fff; }                        /* single / booking */
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================================
   NAV  (marketing — landing & legal)
   ============================================================ */
.nav {
  position: sticky; inset-block-start: 0; z-index: 60;
  background: rgba(244,244,240,0.78); backdrop-filter: blur(16px) saturate(1.3);
  border-block-end: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; block-size: 76px; }
.nav-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand img { block-size: 42px; inline-size: auto; display: block; }
.nav-brand-text { display: flex; flex-direction: column; gap: 3px; }
.nav-brand-text b { font-size: 0.82rem; letter-spacing: 0.18em; color: var(--ink); font-weight: 700; line-height: 1; }
.nav-brand-text span { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--muted); line-height: 1; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 0.92rem; position: relative; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 940px) { .nav-links { display: none; } .nav-inner { gap: 16px; } }
@media (max-width: 560px) { .nav-brand-text { display: none; } }

/* ============================================================
   APP HEADER  (booking/dashboard/etc.)
   ============================================================ */
.appbar {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(244,244,240,0.82); backdrop-filter: blur(16px) saturate(1.3);
  border-block-end: 1px solid var(--line);
}
.appbar-inner { display: flex; align-items: center; gap: 16px; block-size: 68px; }
.appbar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.appbar-brand img { block-size: 38px; inline-size: auto; display: block; }
.appbar-brand-text { display: flex; flex-direction: column; gap: 2px; }
.appbar-brand-text b { font-size: 0.76rem; letter-spacing: 0.16em; color: var(--ink); font-weight: 700; line-height: 1; }
.appbar-brand-text span { font-size: 0.64rem; letter-spacing: 0.1em; color: var(--muted); line-height: 1; text-transform: uppercase; }
.appbar-nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.appbar-nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .92rem; }
.appbar-nav a:hover { color: var(--ink); }
.appbar-logout { display: inline; margin: 0; }
.appbar-logout button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.appbar-logout button:hover { color: var(--ink); }
.btn { white-space: nowrap; }
@media (max-width: 620px) {
  .appbar-inner { block-size: auto; padding-block: 10px; flex-wrap: wrap; gap: 8px 12px; }
  .appbar-brand-text { display: none; }
  .appbar-nav { gap: 10px 12px; flex-wrap: wrap; }
  .appbar-nav .lang-switcher { gap: 0; }
  .appbar-nav .lang-flag { font-size: .68rem; padding: 4px 6px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 128px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-crest { position: relative; display: grid; place-items: center; }
.hero-crest img { inline-size: min(100%, 430px); filter: drop-shadow(0 30px 50px rgba(22,24,28,.12)); }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.3rem); line-height: 1.03; margin: 0 0 24px; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); }
.hero-title em { font-style: normal; color: var(--blue); }
.hero-title .gold { color: var(--ink); }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--body); max-inline-size: 48ch; margin: 0 0 36px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust, .trust-anchors { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.hero-trust li, .trust-anchors li { font-size: 0.86rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before, .trust-anchors li::before { content: ""; inline-size: 5px; block-size: 5px; border-radius: 50%; background: var(--gold); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-crest { order: -1; }
  .hero-crest img { inline-size: min(64%, 280px); }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust, .trust-anchors { justify-content: center; }
}

/* ============================================================
   PATH CHOOSER — the two enrolment models
   ============================================================ */
.chooser-head { text-align: center; max-inline-size: 740px; margin-inline: auto; }

.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block-start: 52px; align-items: stretch; }
.path-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 32px 30px; cursor: pointer; text-align: start;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  display: flex; flex-direction: column; gap: 14px;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path-card.is-active { box-shadow: var(--shadow); }
.path-card.is-active.sub  { border-color: var(--ink); }
.path-card.is-active.single { border-color: var(--blue); }
.path-card .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-icon {
  inline-size: 44px; block-size: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 0.92rem; font-weight: 800; letter-spacing: -0.02em;
}
.path-card.sub .pc-icon { background: var(--ink); color: #fff; }
.path-card.single .pc-icon { background: var(--blue-tint); color: var(--blue); }
.pc-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 8px; color: var(--muted); background: var(--paper-2); }
.path-card h3 { font-size: 1.5rem; margin: 2px 0 0; font-weight: 700; }
.path-card .pc-tag { font-size: 0.95rem; color: var(--muted); margin: 0; font-weight: 600; }
.path-card .pc-desc { margin: 0; color: var(--body); font-size: 0.98rem; }
.pc-points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 11px; }
.pc-points li { position: relative; padding-inline-start: 26px; color: var(--body); font-size: 0.96rem; }
.pc-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 8px;
  inline-size: 13px; block-size: 8px; border-inline-start: 1.5px solid; border-block-end: 1.5px solid;
  transform: rotate(-45deg); border-radius: 1px;
}
.path-card.sub .pc-points li::before { border-color: var(--gold); }
.path-card.single .pc-points li::before { border-color: var(--blue); }
.pc-foot { margin-block-start: auto; display: flex; align-items: baseline; gap: 8px; padding-block-start: 16px; border-block-start: 1px solid var(--line-2); }
.pc-foot .pc-price { font-size: 1.7rem; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.pc-foot .pc-unit { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.pc-select {
  margin-block-start: 4px; inline-size: 100%; padding: 13px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; font-family: inherit; font-weight: 700; font-size: 0.93rem; color: var(--ink);
  cursor: pointer; transition: all .18s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.path-card.sub .pc-select.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.path-card.single .pc-select.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pc-corner {
  position: absolute; inset-block-start: 22px; inset-inline-end: 24px;
  color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.pc-corner::before { content: ""; inline-size: 5px; block-size: 5px; border-radius: 50%; background: var(--gold); }
.pc-corner.gold { color: var(--gold-deep); }

/* detail panel that swaps on selection */
.path-detail {
  margin-block-start: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.path-detail[hidden] { display: none; }
.pd-head { display: flex; align-items: center; gap: 16px; padding: 26px 34px; border-block-end: 1px solid var(--line); flex-wrap: wrap; }
.pd-head .pd-kicker { font-size: .72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.pd-head h3 { margin: 4px 0 0; font-size: 1.4rem; white-space: nowrap; font-weight: 700; }
.pd-head .pd-switch { margin-inline-start: auto; }
.pd-body { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; }
.pd-col { padding: 32px 34px; }
.pd-col + .pd-col { border-inline-start: 1px solid var(--line); background: #FCFCFB; }
.pd-col h4 { font-weight: 700; font-size: 0.76rem; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 22px; }

/* segment switch */
.pd-switch { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: 10px; gap: 3px; }
.pd-switch button {
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .88rem;
  color: var(--muted); padding: 9px 18px; border-radius: 8px; cursor: pointer; transition: all .18s;
}
.pd-switch button.on-sub { background: var(--ink); color: #fff; }
.pd-switch button.on-single { background: var(--blue); color: #fff; }

/* steps inside detail */
.flow { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 20px; }
.flow li { position: relative; padding-inline-start: 44px; }
.flow li::before {
  counter-increment: f; content: counter(f, decimal-leading-zero);
  position: absolute; inset-inline-start: 0; inset-block-start: -1px;
  inline-size: 30px; block-size: 30px; display: grid; place-items: center;
  font-weight: 700; font-size: 0.78rem; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.path-detail.single .flow li::before { color: var(--blue); border-color: var(--blue-tint); background: var(--blue-tint); }
.flow li b { display: block; color: var(--ink); font-size: 1rem; font-weight: 700; }
.flow li span { color: var(--muted); font-size: 0.91rem; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 15px; inset-block-start: 32px; block-size: calc(100% - 12px); inline-size: 1px; background: var(--line);
}

/* plan rows (package) */
.plan { display: grid; gap: 10px; }
.plan-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .18s, background .18s; cursor: pointer; background: var(--surface);
}
.plan-row:hover { border-color: var(--ink); }
.plan-row.featured { border-color: var(--ink); background: var(--surface); box-shadow: var(--shadow-xs); }
.plan-row .pr-name { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.plan-row .pr-freq { font-size: 0.83rem; color: var(--muted); display: block; font-weight: 500; margin-block-start: 2px; }
.plan-row .pr-price { margin-inline-start: auto; text-align: end; }
.plan-row .pr-price b { font-size: 1.2rem; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.plan-row .pr-price small { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.plan-pill { font-size: 0.66rem; font-weight: 700; background: var(--gold-tint); color: var(--gold-deep); padding: 3px 9px; border-radius: 6px; letter-spacing: 0.02em; }

/* mini booking preview (single) */
.minibook { display: grid; gap: 16px; }
.mb-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mb-day {
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 4px 9px; text-align: center; cursor: pointer;
  background: var(--surface); transition: all .16s; font-family: inherit;
}
.mb-day small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; }
.mb-day b { font-size: 1.15rem; color: var(--ink); font-weight: 700; }
.mb-day:hover { border-color: var(--ink); }
.mb-day.on { background: var(--blue); border-color: var(--blue); }
.mb-day.on small, .mb-day.on b { color: #fff; }
.mb-day .dot { inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--blue); margin: 5px auto 0; }
.mb-day.on .dot { background: rgba(255,255,255,.7); }
.mb-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-slot {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 0.88rem;
  color: var(--ink); cursor: pointer; transition: all .16s; background: var(--surface); display: inline-flex; gap: 8px; align-items: center;
}
.mb-slot .mb-type { font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.mb-slot .one { background: var(--blue-tint); color: var(--blue); }
.mb-slot .grp { background: var(--gold-tint); color: var(--gold-deep); }
.mb-slot:hover { border-color: var(--ink); }
.mb-slot.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mb-slot.on .mb-type { background: rgba(255,255,255,.16); color: #fff; }
.mb-confirm { background: var(--paper-2); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 13px; }
.mb-confirm .tick { inline-size: 26px; block-size: 26px; border-radius: 7px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; font-size: 0.8rem; }
.mb-confirm p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.mb-confirm b { color: var(--ink); font-weight: 700; }

@media (max-width: 820px) {
  .path-cards { grid-template-columns: 1fr; }
  .pd-body { grid-template-columns: 1fr; }
  .pd-col + .pd-col { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .pd-head h3 { white-space: normal; }
}

/* ============================================================
   WHY / feature cards
   ============================================================ */
.feature-grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-block-start: 52px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 38px 34px; transition: background .2s; }
.feature:hover { background: #FCFCFB; }
.feature .f-icon {
  inline-size: 40px; block-size: 40px; border-radius: 10px; display: grid; place-items: center; margin-block-end: 24px;
  font-weight: 800; font-size: 0.82rem; letter-spacing: -0.01em;
  background: var(--paper-2); color: var(--ink);
}
.feature:nth-child(2) .f-icon { background: var(--blue-tint); color: var(--blue); }
.feature h3 { font-size: 1.22rem; margin: 0 0 10px; font-weight: 700; }
.feature p { margin: 0; font-size: 0.97rem; }

/* generic card grid (legacy / reusable) */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-block-start: 52px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { inline-size: 40px; block-size: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-weight: 800; margin-block-end: 18px; }
.card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--body); }

/* ============================================================
   PROGRESS timeline (dark)
   ============================================================ */
.timeline { list-style: none; counter-reset: t; padding: 0; margin: 54px auto 0; max-inline-size: 760px; }
.timeline li {
  position: relative; padding-inline-start: 60px; padding-block-end: 38px;
  border-inline-start: 1px solid rgba(255,255,255,.12); margin-inline-start: 16px;
}
.timeline li:last-child { border-color: transparent; padding-block-end: 0; }
.timeline li::before {
  counter-increment: t; content: counter(t, decimal-leading-zero);
  position: absolute; inset-inline-start: -16px; inset-block-start: -3px;
  inline-size: 32px; block-size: 32px; border-radius: 9px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.78rem; border: 1px solid rgba(255,255,255,.16);
}
.timeline h3 { color: #fff; margin: 0 0 5px; font-size: 1.14rem; font-weight: 700; }
.timeline p { margin: 0; color: #A4A8B0; }
.note { color: #74787f; font-size: 0.88rem; margin-block-start: 28px; }
.section:not(.surface-ink):not(.section-dark) .note { color: var(--muted); }

/* ============================================================
   FACULTY
   ============================================================ */
.faculty-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-block-start: 52px; }
.cred, .cred-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cred:hover, .cred-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cred .cred-role { font-size: .72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 8px; font-weight: 700; }
.cred.blue .cred-role { color: var(--blue); }
.cred h3, .cred-card h3 { font-size: 1.28rem; margin: 0 0 18px; font-weight: 700; }
.cred-line { margin: 0 0 10px; padding-inline-start: 20px; position: relative; color: var(--body); font-size: 0.95rem; }
.cred-line::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 11px; inline-size: 9px; block-size: 1.5px; background: var(--gold); }
.cred.blue .cred-line::before { background: var(--blue); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta, .cta-banner { text-align: center; position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(72px, 10vw, 110px); }
.cta h2, .cta-banner h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); margin: 0 0 14px; font-weight: 700; letter-spacing: -0.035em; }
.cta p, .cta-banner p { color: #A4A8B0; margin: 0 auto 32px; max-inline-size: 48ch; font-size: 1.06rem; }
.cta .cta-row, .cta-banner .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-gold, .cta-banner .btn-gold { background: #fff; color: var(--ink); }
.cta .btn-gold:hover, .cta-banner .btn-gold:hover { background: #fff; }

/* ============================================================
   FAQ
   ============================================================ */
.faq details, details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin-block-end: 10px; transition: border-color .18s;
}
.faq details[open], details[open] { border-color: var(--ink); }
.faq summary, details summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 1rem; }
.faq summary::-webkit-details-marker, details summary::-webkit-details-marker { display: none; }
.faq summary::after, details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after, details[open] summary::after { content: "–"; color: var(--ink); }
.faq details p, details p { margin: 14px 0 0; color: var(--body); font-size: 0.96rem; }
.faq details p a, details p a { color: var(--blue); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #A4A8B0; padding-block: 60px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img, .footer-logo { block-size: 42px; inline-size: auto; }
.footer-brand b { letter-spacing: 0.16em; color: #fff; font-weight: 700; display: block; font-size: .82rem; }
.footer-brand span { letter-spacing: 0.1em; color: #74787f; font-size: .68rem; text-transform: uppercase; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: #A4A8B0; text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.footer-legal a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 0.82rem; color: #62666d; flex-basis: 100%; }

/* ============================================================
   AUTH / login screen
   ============================================================ */
.auth-screen {
  min-block-size: 100vh; display: grid; place-items: center; padding: 32px 20px;
  background: var(--paper);
}
.auth-card {
  inline-size: 100%; max-inline-size: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(32px, 5vw, 44px) clamp(26px, 5vw, 40px);
  text-align: center;
}
.auth-logo img { block-size: 64px; inline-size: auto; margin: 0 auto 20px; display: block; filter: drop-shadow(0 16px 30px rgba(22,24,28,.12)); }
.auth-title { font-size: 1.45rem; color: var(--ink); margin: 0 0 8px; font-weight: 700; letter-spacing: -0.03em; }
.auth-sub { color: var(--muted); margin: 0 0 28px; font-size: .95rem; line-height: 1.55; }
.btn-google {
  inline-size: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 18px; border-radius: 10px; cursor: pointer;
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line);
  transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-google:hover { box-shadow: var(--shadow); border-color: var(--ink); transform: translateY(-1px); }
.btn-google svg { block-size: 20px; inline-size: 20px; flex: none; }
.auth-fineprint { margin: 24px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.7; }
.auth-fineprint a { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth-fineprint a:hover { text-decoration: underline; }
.auth-lang { margin-block-start: 24px; padding-block-start: 18px; border-block-start: 1px solid var(--line); display: flex; justify-content: center; }

/* ============================================================
   APP SCREENS (dashboard / booking lists / payments / consent)
   ============================================================ */
.auth, .dash {
  max-inline-size: 760px; margin-inline: auto; padding-block: clamp(48px, 9vw, 88px); padding-inline: 32px;
}
.auth h1, .dash h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.035em; }
.dash h2 { color: var(--ink); margin-block-start: 40px; font-size: 1.3rem; }
.auth .btn, .logout-form { margin-block-start: 22px; }
.muted { color: var(--muted); }
.links { margin-block-start: 28px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.links a:hover { text-decoration: underline; }

/* messages */
.messages { list-style: none; padding: 0; margin: 16px auto; max-inline-size: var(--maxw); padding-inline: 32px; }
.msg { padding: 12px 16px; border-radius: 10px; margin-block-end: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.msg.success { border-inline-start: 4px solid #2f8f5b; }
.msg.error { border-inline-start: 4px solid #c0392b; }

/* announcements: site-wide notice banner + list page */
.announcements { margin: 0; }
.announce { border-block-end: 1px solid var(--line); }
.announce-inner { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding-block: 10px; }
.announce-title { font-weight: 700; color: var(--ink); }
.announce-body { color: var(--body); }
.announce-more { margin-inline-start: auto; color: var(--blue-deep); font-size: 13px; white-space: nowrap; }
.announce.announce-info { background: var(--blue-tint); border-inline-start: 4px solid var(--blue); }
.announce.announce-warning { background: var(--gold-tint); border-inline-start: 4px solid var(--gold); }
.announce.announce-critical { background: #fbeae8; border-inline-start: 4px solid #c0392b; }

.announce-page { padding-block: 48px; }
.announce-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-block: 14px; background: var(--surface); }
.announce-card.announce-info { border-inline-start: 4px solid var(--blue); }
.announce-card.announce-warning { border-inline-start: 4px solid var(--gold); }
.announce-card.announce-critical { border-inline-start: 4px solid #c0392b; }
.announce-card-head { display: flex; gap: 10px; align-items: center; }
.announce-card-body { color: var(--body); margin-block: 8px 4px; }
.announce-tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.announce-tag-info { background: var(--blue-tint); color: var(--blue-deep); }
.announce-tag-warning { background: var(--gold-tint); color: var(--gold-deep); }
.announce-tag-critical { background: #fbeae8; color: #c0392b; }
.announce-meta { color: var(--muted); font-size: 13px; }
.announce-empty { color: var(--muted); }

/* forms */
.slot-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin-block: 20px; }
.slot-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .9rem; }
.slot-form input, .slot-form select, .request-form textarea {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
.report-form { display: flex; flex-direction: column; gap: 14px; max-inline-size: 520px; margin-block: 18px; }
.report-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .9rem; }
.report-form select, .report-form textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.band-row { display: flex; gap: 12px; flex-wrap: wrap; }
.band-row label { flex: 1; min-inline-size: 90px; }

/* lists */
.slot-list, .req-list { list-style: none; padding: 0; }
.slot-list li, .req-list li {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; margin-block-end: 10px;
  background: var(--surface); display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.tag { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink); }
.slot { justify-content: space-between; gap: 16px; }
.slot-main { display: flex; flex-direction: column; gap: 5px; }
.slot-time { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.slot-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.slot-teacher { font-weight: 600; color: var(--body); }
.slot-action { margin-inline-start: auto; }
.actions, .request-form, .inline-form { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  .container { padding-inline: 22px; }
  .nav-inner { block-size: auto; padding-block: 12px; flex-wrap: wrap; }
  .nav-actions { flex-wrap: wrap; }
}

/* ==========================================================================
   Calendar booking (browse_slots) — month calendar + day time chips
   ========================================================================== */
.booking-page { max-inline-size: 1040px; margin-inline: auto; padding-block: clamp(40px, 7vw, 80px); padding-inline: 32px; }
.booking-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.035em; }
.booking-count {
  display: inline-block; margin-block-start: 8px; padding: 6px 14px; border-radius: 8px;
  background: var(--blue-tint); border: 1px solid var(--blue-tint); color: var(--blue-deep); font-weight: 700; font-size: .9rem;
}

.booking-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px; margin-block-start: 26px; align-items: start;
}

/* ---- Calendar ---- */
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 14px; }
.cal-title { font-weight: 800; color: var(--ink); font-size: 1.1rem; letter-spacing: -0.02em; }
.cal-nav {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 40px; block-size: 40px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 800; border: 1px solid var(--line); background: var(--surface);
}
.cal-nav:hover { border-color: var(--ink); }
.cal-nav-off { color: var(--line); border-color: var(--line); pointer-events: none; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays { margin-block-end: 6px; }
.cal-weekday { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding-block: 4px; }

.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-block-size: 46px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; border: 1px solid transparent;
}
.cal-num { font-size: .95rem; line-height: 1; }
.cal-day.out-month { color: var(--line); }
.cal-day.is-past { color: var(--muted); opacity: .55; }
.cal-day.has-slots {
  background: var(--surface); border-color: var(--line); cursor: pointer; color: var(--ink);
}
.cal-day.has-slots:hover { border-color: var(--blue); }
.cal-dot { inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--blue); }
.cal-day.is-selected {
  background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-xs);
}
.cal-day.is-selected .cal-dot { background: rgba(255,255,255,.8); }

/* ---- Day panel (time chips) ---- */
.day-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.day-title { margin: 0 0 16px; color: var(--ink); font-size: 1.25rem; font-weight: 700; }
.time-group { margin-block-end: 18px; }
.time-group-label { margin: 0 0 10px; font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.chip-row { display: flex; flex-direction: column; gap: 10px; }
.slot-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
}
.slot-chip.is-group { border-inline-start: 3px solid var(--gold); }
.chip-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-time { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.chip-teacher { font-weight: 600; color: var(--body); }
.chip-action { margin-inline-start: auto; }
.chip-action .btn { min-block-size: 40px; }

.day-empty { text-align: center; padding-block: 24px; }
.day-empty-title { font-weight: 800; color: var(--ink); font-size: 1.1rem; margin: 0 0 6px; }
.day-empty .btn { margin-block-start: 14px; }

/* ---- Preferred-time request ---- */
.time-request { margin-block-start: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.time-request h2 { margin: 0 0 8px; color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.time-request-form { display: flex; flex-direction: column; gap: 14px; max-inline-size: 520px; margin-block-start: 14px; }
.time-request-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .9rem; }
.time-request-form input, .time-request-form textarea {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
.time-request-form .btn { align-self: flex-start; }

@media (max-width: 860px) {
  .booking-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cal-grid { gap: 4px; }
  .cal-day { min-block-size: 42px; }
  .slot-chip { flex-direction: column; align-items: stretch; }
  .chip-action { margin-inline-start: 0; }
  .chip-action, .chip-action .btn { inline-size: 100%; }
  .time-request-form .btn { align-self: stretch; inline-size: 100%; }
}

/* ============================================================
   CONSENT
   ============================================================ */
.consent-form { display: grid; gap: 18px; margin-block-start: 28px; }
.consent-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.consent-item input[type="checkbox"] { margin-block-start: 3px; inline-size: 18px; block-size: 18px; accent-color: var(--blue); flex: none; }
.consent-item span { color: var(--ink); font-weight: 600; font-size: .96rem; line-height: 1.5; }
.consent-item a { color: var(--blue); font-weight: 700; text-decoration: none; }
.consent-item a:hover { text-decoration: underline; }
.consent-item small { display: block; font-weight: 500; margin-block-start: 4px; }
.consent-disclosure { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: var(--paper-2); }
.consent-disclosure p { margin: 0 0 14px; font-size: .92rem; }
.disclosure-table { inline-size: 100%; border-collapse: collapse; margin-block: 8px 14px; font-size: .88rem; }
.disclosure-table th, .disclosure-table td { text-align: start; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
.disclosure-table th { background: var(--surface); color: var(--ink); font-weight: 700; white-space: nowrap; inline-size: 34%; }
.disclosure-table td { color: var(--body); background: var(--surface); }

/* ============================================================
   LEGAL (terms / privacy / refund)
   ============================================================ */
.legal-meta { margin-block-end: 32px; }
.legal-meta h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--ink); font-weight: 800; letter-spacing: -0.035em; margin: 0 0 10px; }
.legal-body { color: var(--body); }
.legal-body h2 { margin-block: 34px 12px; font-size: 1.18rem; color: var(--ink); font-weight: 700; }
.legal-body h3 { margin-block: 22px 8px; font-size: 1.02rem; color: var(--ink); }
.legal-body p, .legal-body li { font-size: .96rem; line-height: 1.75; }
.legal-body ol, .legal-body ul { padding-inline-start: 22px; }
.legal-body li { margin-block-end: 8px; }
.legal-body a { color: var(--blue); font-weight: 600; text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--ink); }
.legal-body table { inline-size: 100%; border-collapse: collapse; margin-block: 10px 20px; font-size: 0.9rem; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; vertical-align: top; }
.legal-body thead th { background: var(--paper-2); color: var(--ink); font-weight: 700; }
.legal-body tbody th { background: var(--surface); color: var(--ink); font-weight: 700; white-space: nowrap; }
.legal-body td { color: var(--body); }
.legal-footer-links { margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid var(--line); font-size: .9rem; }
.legal-footer-links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.legal-footer-links a:hover { text-decoration: underline; }

/* ============================================================
   Language switcher (compact flags)
   ============================================================ */
.lang-switcher { display: inline-flex; gap: 4px; align-items: center; }
.lang-flag {
  border: 1px solid transparent; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1;
  color: var(--muted); padding: 5px 8px; border-radius: 7px;
  transition: color .15s, background .15s, border-color .15s;
}
.lang-flag:hover { color: var(--ink); background: var(--paper-2); }
.lang-flag.is-active { color: var(--ink); border-color: var(--line); background: var(--surface); }

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
