:root {
  --ink: #1c2421;
  --muted: #66706b;
  --paper: #f2efe9;
  --card: #fffdfa;
  --line: #d9d7d0;
  --lime: #c7ef5a;
  --forest: #263e34;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
html:not(.show-login) [data-login] { display: none !important; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img { display: block; width: 82px; height: auto; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(28,36,33,.13); }
.button:focus-visible { outline: 3px solid rgba(73,109,93,.3); outline-offset: 3px; }
.button-small { min-width: 98px; padding: 11px 22px; background: rgba(255,255,255,.3); }
.button-primary { padding: 16px 20px 16px 25px; gap: 24px; color: white; background: var(--ink); }
.button-primary span { font-size: 20px; }
.hero {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  padding: 54px 0 84px;
}
.hero-copy { padding-bottom: 22px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #82aa19; box-shadow: 0 0 0 4px rgba(130,170,25,.13); }
h1 {
  margin: 0;
  font: 800 clamp(58px, 7.5vw, 104px)/.91 "Manrope", sans-serif;
  letter-spacing: -.075em;
}
h1 em { color: #567565; font-style: normal; }
.intro { max-width: 490px; margin: 32px 0 30px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.hero-actions p { max-width: 130px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.preview-wrap { position: relative; padding: 46px 20px; }
.shape { position: absolute; border-radius: 48% 52% 48% 52%; transform: rotate(8deg); }
.shape-one { inset: 0 5% 0 0; background: var(--forest); }
.shape-two { width: 180px; height: 180px; right: -15px; top: 0; background: var(--lime); transform: rotate(22deg); }
.schedule-card {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(28,36,33,.12);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 28px 60px rgba(9,25,18,.22);
  transform: rotate(-2deg);
}
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.card-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.card-top h2 { margin: 3px 0 0; font: 800 30px/1.2 "Manrope", sans-serif; letter-spacing: -.04em; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--forest); font-size: 12px; font-weight: 700; }
.date-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.date-row span { display: grid; place-items: center; gap: 5px; padding: 10px 3px; border-radius: 13px; font-size: 15px; font-weight: 600; }
.date-row small { color: #89908c; font-size: 9px; letter-spacing: .1em; }
.date-row .active { background: var(--lime); }
.date-row .active small { color: var(--ink); }
.class-list { display: grid; }
.class-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 15px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.class-item:last-child { border: 0; padding-bottom: 3px; }
.class-item time { font-weight: 700; font-size: 15px; }
.class-item time small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.class-item div { display: grid; gap: 4px; }
.class-item strong { font-size: 14px; }
.class-item div span { color: var(--muted); font-size: 11px; }
.class-item button, .status { min-width: 66px; padding: 8px 11px; border-radius: 100px; font: 600 11px "DM Sans", sans-serif; text-align: center; }
.class-item button { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.class-item button:hover { background: var(--ink); color: white; }
.status { background: #e8f4c8; color: #476313; }
.class-item.muted { opacity: .65; }
footer { min-height: 76px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(28,36,33,.14); color: var(--muted); font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a:hover, .text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.legal-shell { width: min(760px, calc(100% - 48px)); margin: 0 auto; }
.legal-header { height: 104px; display: flex; align-items: center; justify-content: space-between; }
.back-link { color: var(--muted); font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--ink); }
.legal-page { padding: 70px 0 110px; }
.legal-page .eyebrow { margin-bottom: 20px; }
.legal-page h1 { font-size: clamp(46px, 8vw, 72px); line-height: 1; }
.legal-updated { margin: 20px 0 48px; color: var(--muted); font-size: 14px; }
.legal-content { color: #3f4844; font-size: 16px; line-height: 1.72; }
.legal-content h2 { margin: 44px 0 12px; color: var(--ink); font: 800 23px/1.25 "Manrope", sans-serif; letter-spacing: -.03em; }
.legal-content p { margin: 0 0 17px; }
.legal-content ul { margin: 0 0 20px; padding-left: 22px; }
.legal-content li { margin: 7px 0; padding-left: 4px; }
.legal-content a { color: #426353; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice-card { margin: 32px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.45); }
.notice-card p:last-child { margin-bottom: 0; }
.legal-footer { min-height: 76px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 50px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions { justify-content: center; }
  .intro { margin-left: auto; margin-right: auto; }
  .preview-wrap { width: min(620px, 100%); margin: 15px auto 0; }
}
@media (max-width: 520px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  .site-header { height: 80px; }
  .hero { padding: 34px 0 64px; min-height: 0; }
  h1 { font-size: clamp(52px, 17vw, 76px); }
  .intro { margin-top: 24px; font-size: 17px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions p { max-width: none; }
  .preview-wrap { padding: 27px 8px; }
  .shape-two { width: 110px; height: 110px; right: -4px; }
  .schedule-card { padding: 19px; border-radius: 19px; }
  .class-item { grid-template-columns: 48px 1fr auto; gap: 8px; }
  .class-item button, .status { min-width: 57px; padding: 7px; }
  footer { flex-direction: column; justify-content: center; gap: 5px; }
  footer p { margin: 0; }
  .footer-links { gap: 18px; }
  .legal-shell { width: min(100% - 28px, 760px); }
  .legal-header { height: 80px; }
  .legal-page { padding: 45px 0 80px; }
  .legal-updated { margin-bottom: 38px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise .65s ease-out both; }
  .preview-wrap { animation: rise .7s .1s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
