/* DPSP Cosmetology School — design system (Brandbook: #f7e4e0 / #c8eff4 / #f3dab1 / #000 / #fff, Suisse Intl) */

@font-face {
  font-family: "Suisse Intl";
  src: url("/static/fonts/SuisseIntl-Regular.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --pink: #f7e4e0;
  --pink-deep: #eccfc8;
  --blue: #c8eff4;
  --sand: #f3dab1;
  --ink: #141414;
  --gray: #6f6f6f;
  --line: #eee6e2;
  --bg: #fdfbfa;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 10px 40px rgba(20, 20, 20, .06);
  --tr: .22s ease;
}

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

body {
  font-family: "Suisse Intl", Inter, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 740px; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 250, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo img { height: 26px; width: auto; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .sub {
  font-size: 10.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gray);
  border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.3;
}
.nav { display: flex; gap: 10px; align-items: center; }
.nav a { text-decoration: none; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; transition: background var(--tr); }
.nav a:hover { background: var(--pink); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 15.5px; text-decoration: none;
  padding: 14px 30px; border-radius: 999px; min-height: 48px;
  transition: transform var(--tr), background var(--tr), box-shadow var(--tr);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20,20,20,.18); }
.btn:active { transform: scale(.98); }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.secondary:hover { background: var(--pink); border-color: var(--pink-deep); box-shadow: none; }
.btn.pink { background: var(--pink); color: var(--ink); }
.btn.pink:hover { background: var(--pink-deep); box-shadow: none; }
.btn.small { padding: 9px 18px; min-height: 38px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* ── hero ── */
.hero { padding: 92px 0 74px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 130%; z-index: -1;
  background:
    radial-gradient(42% 55% at 18% 30%, var(--blue) 0%, transparent 70%),
    radial-gradient(48% 60% at 82% 25%, var(--pink) 0%, transparent 72%),
    radial-gradient(40% 50% at 55% 80%, var(--sand) 0%, transparent 70%);
  opacity: .5; filter: blur(40px);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; font-weight: 600; letter-spacing: -.5px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--gray); max-width: 560px; margin: 22px auto 36px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── cards ── */
.section { padding: 66px 0; }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; margin-bottom: 34px; letter-spacing: -.3px; }
.course-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.course-card .body { padding: 42px 44px; display: flex; flex-direction: column; }
.course-card .visual {
  background: linear-gradient(135deg, var(--pink) 0%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center; min-height: 300px;
  position: relative;
}
.course-card .visual img { height: 84px; opacity: .85; }
.badge {
  display: inline-block; background: var(--pink); border-radius: 999px;
  font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; margin-bottom: 18px; width: fit-content;
}
.course-card h3 { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.course-card ul { list-style: none; margin: 18px 0 26px; }
.course-card li { padding-left: 26px; position: relative; margin-bottom: 9px; color: #333; font-size: 15px; }
.course-card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(.8);
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.feature .ic {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.feature:nth-child(1) .ic { background: var(--pink); }
.feature:nth-child(2) .ic { background: var(--blue); }
.feature:nth-child(3) .ic { background: var(--sand); }
.feature h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--gray); }

/* ── forms ── */
.auth-wrap { max-width: 430px; margin: 60px auto; padding: 0 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 36px; box-shadow: var(--shadow);
}
.card h1 { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; color: var(--gray); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg); transition: border-color var(--tr);
  min-height: 48px;
}
.field input:focus { border-color: var(--ink); outline: none; }
.error {
  background: #fdecec; color: #9b1c1c; border-radius: var(--radius-s);
  padding: 12px 16px; font-size: 14px; margin-bottom: 18px;
}
.notice {
  background: var(--blue); border-radius: var(--radius-s);
  padding: 12px 16px; font-size: 14px; margin-bottom: 18px;
}
.form-foot { margin-top: 18px; font-size: 14px; color: var(--gray); text-align: center; }

/* ── popup ── */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(20,20,20,.45); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.popup {
  background: #fff; border-radius: var(--radius); max-width: 440px; width: 100%;
  padding: 40px 36px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup .mark {
  width: 62px; height: 62px; border-radius: 50%; background: var(--pink);
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.popup h2 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.popup p { color: var(--gray); font-size: 15px; margin-bottom: 24px; }

/* ── course list ── */
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0 30px; }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--pink-deep), var(--pink)); border-radius: 999px; transition: width .4s ease; }
.lesson-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lesson-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 16px 20px; text-decoration: none; transition: border-color var(--tr), transform var(--tr);
}
.lesson-item:hover:not(.locked) { border-color: var(--pink-deep); transform: translateX(3px); }
.lesson-item.locked { opacity: .45; cursor: not-allowed; }
.lesson-item .no {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink); font-size: 14.5px; font-weight: 600;
}
.lesson-item.done .no { background: var(--ink); color: #fff; }
.lesson-item.locked .no { background: var(--line); }
.lesson-item .t { font-size: 15.5px; }
.lesson-item .state { margin-left: auto; font-size: 15px; color: var(--ink); flex-shrink: 0; }
.lesson-item .thumb {
  width: 72px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--line);
}
.lesson-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-item .thumb.gray img { filter: grayscale(1) opacity(.6); }
.test-item {
  border: none; background: linear-gradient(90deg, var(--sand), var(--pink));
  font-weight: 600;
}
.test-item.passed { background: var(--blue); }

/* ── lesson page ── */
.lesson-body { padding: 40px 0 80px; }
.lesson-body h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; line-height: 1.2; margin: 10px 0 30px; }
.lesson-body .crumbs { font-size: 13.5px; color: var(--gray); }
.lesson-body .crumbs a { color: var(--gray); }
.lesson-content p { margin-bottom: 16px; font-size: 16.5px; line-height: 1.75; }
.lesson-content h3 {
  font-size: 20px; font-weight: 600; letter-spacing: -.2px;
  margin: 34px 0 14px; padding-left: 14px; border-left: 4px solid var(--pink-deep);
}
.lesson-content ul { margin: 0 0 18px 4px; list-style: none; }
.lesson-content li { margin: 0 0 10px 0; padding-left: 26px; position: relative; font-size: 16.5px; line-height: 1.7; }
.lesson-content li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink-deep);
}
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--radius-s); padding: 16px 18px; margin: 18px 0;
  font-size: 15.5px; line-height: 1.6;
}
.callout .ci { font-size: 17px; flex-shrink: 0; line-height: 1.4; }
.callout.warn { background: var(--sand); }
.callout.ok { background: var(--blue); }
.callout.ok .ci { font-weight: 700; }
.callout.no { background: var(--pink); }
.callout.no .ci { font-weight: 700; }
.lesson-content img {
  border-radius: var(--radius); margin: 26px auto; box-shadow: var(--shadow);
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.lesson-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; flex-wrap: wrap; }

/* ── test ── */
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 16px; }
.q-card .qt { font-weight: 600; font-size: 16.5px; margin-bottom: 16px; }
.q-card .num { color: var(--gray); font-size: 13px; margin-bottom: 6px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--radius-s); cursor: pointer; transition: background var(--tr); }
.opt:hover { background: var(--pink); }
.opt input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; }
.opt span { font-size: 15.5px; }
.result-hero { text-align: center; padding: 70px 0; }
.score-ring {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 600;
}
.score-ring.pass { background: var(--blue); }
.score-ring.fail { background: var(--pink); }

/* ── watermark & protection ── */
.watermark {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around;
  opacity: .055; transform: rotate(-24deg) scale(1.3); user-select: none;
}
.watermark span { font-size: 15px; white-space: nowrap; padding: 46px 38px; }
.protected, .protected * { user-select: none !important; -webkit-user-select: none !important; }
body.blurred .page-root { filter: blur(14px); transition: filter .15s; }

/* ── admin ── */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.admin-table th { background: var(--ink); color: #fff; text-align: left; padding: 12px 14px; font-weight: 500; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg); }
.pill { display: inline-block; border-radius: 999px; font-size: 12px; padding: 4px 12px; }
.pill.on { background: var(--blue); }
.pill.off { background: var(--pink); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type="date"] { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; font-family: inherit; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; }
.site-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--gray); }

/* ── responsive ── */
@media (max-width: 860px) {
  .course-card { grid-template-columns: 1fr; }
  .course-card .visual { min-height: 180px; order: -1; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .card { padding: 30px 22px; }
  .nav a.hide-m { display: none; }
}

@media (max-width: 560px) {
  .site-header .inner { height: 58px; gap: 8px; }
  .logo img { height: 21px; }
  .logo .sub { font-size: 8.5px; letter-spacing: 1.6px; padding-left: 9px; }
  .logo { gap: 9px; }
  .nav { gap: 4px; flex-shrink: 0; }
  .nav a { font-size: 13.5px; padding: 8px 12px; white-space: nowrap; }
  .btn.small { padding: 8px 14px; }
  .lesson-item .thumb { width: 58px; height: 44px; }
  .lesson-item { padding: 12px 14px; gap: 12px; }
  .lesson-item .t { font-size: 14px; }
}

@media print { body { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
