/* ClassLead marketing site. Teal ink on paper white, with a marker-yellow highlight:
   the look of a front-desk timetable someone has marked up, made calm. */

:root {
  --ink: #0d2a28;
  --ink-soft: #3d5654;
  --muted: #6b7f7d;
  --line: #dfe6e5;
  --paper: #fcfdfc;
  --tint: #f1f6f5;
  --teal: #0f766e;
  --teal-deep: #0b4f4a;
  --marker: #ffe45c;
  --red: #c4302b;
  --radius: 10px;
  --shadow: 0 18px 40px -18px rgba(13, 42, 40, 0.35), 0 2px 6px rgba(13, 42, 40, 0.08);
  --display: "Chiron Hei HK", "Noto Sans HK", "PingFang HK", sans-serif;
  --body: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --max: 1140px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.nb { white-space: nowrap; }
.mark { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding: 0 0.08em; }
.eyebrow-time { font-family: var(--display); font-weight: 700; color: var(--teal); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(252, 253, 252, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--teal); display: grid; place-items: center; }
.brand-mark span { width: 12px; height: 3px; background: var(--marker); border-radius: 2px; box-shadow: 0 6px 0 var(--paper), 0 -6px 0 var(--paper); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 10px 14px; border-radius: 8px; font-size: 0.97rem; white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .btn { margin-left: 8px; }
.nav .lang { border: 1px solid var(--line); padding: 6px 12px; font-size: 0.88rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); font-size: 1.2rem; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.wa-icon { width: 20px; height: 20px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-top: 20px; }
.hero .cta-row { margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

.stage { position: relative; margin-top: 56px; padding-bottom: 40px; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.browser-bar { display: flex; gap: 6px; align-items: center; height: 34px; padding: 0 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d4d2; }
.browser-bar b { margin-left: 12px; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.stage .browser { width: 86%; margin-left: auto; }
.phone { position: absolute; left: 0; bottom: 0; width: clamp(150px, 24%, 260px); aspect-ratio: 9 / 18.5; border-radius: 30px; border: 8px solid var(--ink); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stamp { position: absolute; right: 3%; bottom: 8px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; padding: 10px 16px; font-size: 0.92rem; box-shadow: 4px 4px 0 var(--marker); }
.stamp strong { font-family: var(--display); }

@media (max-width: 640px) {
  .stage .browser { width: 100%; }
  .phone { position: relative; width: 62%; margin: -60px auto 0; }
  .stamp { position: static; display: inline-block; margin-top: 16px; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }
.band { background: var(--tint); border-block: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #e6efee; }
.band-ink h2 { color: #fff; }
.band-ink .lead, .band-ink .muted { color: #b8cac8; }

/* Today list: the status quo */
.today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.today > div { padding: 22px 22px 6px 0; border-bottom: 1px solid var(--line); }
.today > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.today h3 { font-size: 1.05rem; }
.today p { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 760px) {
  .today { grid-template-columns: 1fr; }
  .today > div + div { padding-left: 0; border-left: 0; }
}

/* Receipt tape: one leave request, step by step */
.tape-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.tape { position: relative; background: #fff; padding: 28px 28px 30px; border: 1px solid var(--line); box-shadow: var(--shadow);
  --zig: radial-gradient(circle at 8px 0, transparent 7px, #fff 7.5px);
}
.tape::before, .tape::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 8px 10px, var(--tint) 6px, transparent 6.5px) repeat-x; background-size: 16px 10px; }
.tape::before { top: -1px; }
.tape::after { bottom: -1px; transform: scaleY(-1); }
.tape-title { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.tape ol { list-style: none; margin: 0; padding: 0; }
.tape li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.tape li:last-child { border-bottom: 0; }
.tape time { font-family: var(--display); font-weight: 800; color: var(--teal); font-size: 1.05rem; }
.tape li p { font-size: 0.98rem; }
.tape li p strong { color: var(--ink); }
.tape-total { margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; font-weight: 700; }
@media (max-width: 860px) { .tape-layout { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 8vw, 104px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { margin-top: 14px; color: var(--ink-soft); }
.feature-copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding-left: 22px; margin-top: 8px; }
.feature-copy li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 3px; background: var(--teal); border-radius: 2px; }
.kicker { font-size: 0.92rem; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot-crop { aspect-ratio: 16 / 10; }
.shot-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

/* Local facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts div { border-top: 2px solid var(--marker); padding-top: 14px; }
.facts strong { display: block; font-family: var(--display); font-size: 1.15rem; color: #fff; }
.facts p { margin-top: 6px; font-size: 0.95rem; color: #b8cac8; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Pilot / CTA band */
.cta-band { text-align: left; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.cta-band .cta-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .cta-row { justify-content: flex-start; } }

/* Module index (features page) */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-hero .lead { margin-top: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; }
.toc a:hover { border-color: var(--ink); }
.module { scroll-margin-top: 88px; }

/* Grid of small blocks */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.grid-3 > div { border-top: 1px solid var(--line); padding-top: 18px; }
.grid-3 p { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.soon { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--ink); background: var(--marker); border-radius: 4px; padding: 1px 7px; margin-left: 6px; vertical-align: 0.15em; }

/* Pricing */
.toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px; margin-top: 28px; }
.toggle button { border: 0; background: none; font: inherit; font-weight: 700; padding: 8px 18px; min-height: 40px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--line); }
.plan { padding: 30px 24px 32px; display: flex; flex-direction: column; background: #fff; position: relative; }
.plan.recommended { background: var(--tint); position: relative; }
.plan .tag { position: absolute; top: 14px; right: 18px; font-size: 0.8rem; font-weight: 700; background: var(--marker); padding: 2px 9px; border-radius: 4px; margin-bottom: 10px; }
.plan h3 { font-size: 1.35rem; }
.plan .for { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.price { margin-top: 20px; font-family: var(--display); }
.price b { font-size: 2.6rem; font-weight: 800; }
.price span { color: var(--muted); font-size: 1rem; }
.price-note { font-size: 0.88rem; color: var(--muted); min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.plan li { padding: 8px 0 8px 24px; position: relative; border-top: 1px dashed var(--line); font-size: 0.97rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .btn { justify-content: center; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

.notes { margin-top: 28px; display: grid; gap: 8px; font-size: 0.93rem; color: var(--ink-soft); max-width: 52em; }

/* FAQ */
.faq { max-width: 50em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--teal); transition: transform 180ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p + p { margin-top: 10px; }
.faq h2 { margin: 48px 0 8px; font-size: 1.35rem; }
.faq h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* One authored moment: content rises in once as it scrolls into view. Visible by default; JS opts in. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease-out, transform 520ms ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
