@font-face {
  font-family: "SIM Text";
  src: url("fonts/body.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "SIM Display";
  src: url("fonts/display.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --iris: #6946c6;
  --iris-dark: #5435a8;
  --lavender: #ae98e7;
  --periwinkle: #c8dafa;
  --canvas: #f7f4fc;
  --ink: #2d2347;
  --muted: #675d7c;
  --line: #ddd5eb;
  --pale: #ede7fa;
  --good: #21664c;
  --danger: #a11d33;
  --warning: #8a5a00;
  --shadow: 0 8px 32px #44316b08;
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "SIM Text", system-ui, sans-serif;
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--iris-dark);
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--iris-dark);
  outline-offset: 4px;
}
h1,
h2,
h3 {
  font-family: "SIM Display", "SIM Text", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(27px, 3.5vw, 40px);
  font-weight: 700;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 19px;
}
p {
  margin: 0 0 14px;
}
small,
.small {
  font-size: 13px;
}
strong {
  font-weight: 700;
}
svg.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Anti-robot field: outside the viewport, absent from the accessibility tree (aria-hidden). */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  background: white;
  padding: 10px 18px;
  border-radius: 20px;
}
.skip-link:focus {
  transform: none;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.11em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--iris-dark);
  margin-bottom: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  background: var(--iris);
  color: white;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  background: var(--iris-dark);
  color: white;
}
.button.secondary {
  background: white;
  border-color: var(--iris);
  color: var(--iris-dark);
}
.button.secondary:hover {
  background: var(--pale);
}
.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.button.ghost:hover {
  background: white;
}
.button.danger {
  background: white;
  color: var(--danger);
  border-color: var(--danger);
}
.button.small {
  padding: 8px 15px;
  min-height: 44px;
  font-size: 14px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--iris-dark);
  padding: 10px 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.actions.end {
  justify-content: flex-end;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand strong {
  font-family: "SIM Display", sans-serif;
  font-size: 33px;
  letter-spacing: -0.06em;
  line-height: 1;
}
.brand small {
  font-size: 9px;
  display: block;
  letter-spacing: 0.01em;
  margin-top: 4px;
  color: var(--muted);
}
.brand-dots {
  display: block;
  position: relative;
  width: 33px;
  height: 36px;
  flex: 0 0 33px;
}
.brand-dots i {
  position: absolute;
  background: var(--iris);
  border-radius: 50%;
  width: 13px;
  height: 13px;
  left: 0;
  top: 13px;
}
.brand-dots i:nth-child(2) {
  width: 16px;
  height: 16px;
  left: 16px;
  top: 0;
  background: var(--lavender);
}
.brand-dots i:nth-child(3) {
  width: 11px;
  height: 11px;
  left: 22px;
  top: 21px;
  background: var(--periwinkle);
}
.brand-dots i:nth-child(4) {
  width: 9px;
  height: 9px;
  left: 9px;
  top: 29px;
}
.site-header {
  max-width: 1260px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header nav > a:not(.button) {
  text-decoration: none;
  font-weight: 550;
}
.demo-strip {
  font-size: 12px;
  line-height: 1.4;
  background: #eee8f9;
  color: var(--iris-dark);
  text-align: center;
  padding: 9px 20px;
  position: relative;
  z-index: 4;
}
.landing {
  max-width: 1196px;
  margin: 16px auto 72px;
  padding: 0 32px;
}
.landing-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 55px 0 65px;
}
.landing h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  max-width: 660px;
  line-height: 1.04;
}
.landing h1 em {
  font-style: normal;
  color: var(--iris);
}
.landing-hero p {
  font-size: 18px;
  max-width: 570px;
  color: var(--muted);
}
.landing-hero .actions {
  margin: 27px 0 16px;
}
.hero-note {
  font-size: 13px !important;
}
.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 335px;
  display: flex;
  align-items: center;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 80% 30%, #e0e8ff 0, transparent 65%),
    linear-gradient(130deg, #e3d7fa, #d4e0fc 70%, #f1e8fa);
  box-shadow: 0 28px 70px #6946c615;
}
.visual-card:before {
  content: "";
  position: absolute;
  inset: -30% -30% 35% 30%;
  border-radius: 45%;
  background: linear-gradient(45deg, #c5c5f2aa, #eee5fa55);
  transform: rotate(-20deg);
}
.mini-lesson {
  z-index: 1;
  width: 100%;
  background: #ffffffdf;
  border: 1px solid white;
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.mini-lesson h3 {
  font-size: 29px;
  max-width: 260px;
}
.mini-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.mini-question {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  margin-top: 10px;
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--iris-dark);
  background: var(--pale);
}
.pill.good {
  background: #e9f3ed;
  color: var(--good);
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.feature .icon {
  color: var(--iris);
  margin-bottom: 20px;
}
.feature p {
  font-size: 14px;
  color: var(--muted);
}
.section-heading {
  margin: 45px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.section-heading h2 {
  margin-bottom: 6px;
}
.section-heading p {
  color: var(--muted);
  margin: 0;
}
.footer {
  font-size: 12px;
  color: var(--muted);
  padding: 30px 0;
  margin-top: 45px;
  border-top: 1px solid var(--line);
}
.auth-container {
  max-width: 500px;
  margin: 45px auto 70px;
  padding: 0 20px;
}
.auth-card {
  background: white;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #8c7fa3;
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 13px;
  min-height: 46px;
}
.form-field textarea {
  min-height: 110px;
  resize: vertical;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px;
}
.check-label input {
  margin-top: 5px;
  accent-color: var(--iris);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.error,
.notice {
  padding: 14px 17px;
  border-radius: 14px;
  border: 1px solid #d9cceb;
  background: #f1ecfa;
  margin: 16px 0;
  font-size: 14px;
}
.error {
  background: #fcf0f2;
  border-color: #d49ba7;
  color: var(--danger);
}
.notice.warning {
  background: #fff7e6;
  border-color: #d8bf82;
  color: #725000;
}
.notice.success {
  background: #edf6f0;
  border-color: #b6d2c0;
  color: var(--good);
}
.notice p:last-child {
  margin: 0;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  background: linear-gradient(170deg, #f3eefb, #f8f6fc);
  border-right: 1px solid #e8e1f3;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 3;
}
.sidebar .brand {
  padding: 0 10px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 500;
  min-height: 48px;
}
.nav-link:hover {
  background: #ece5f8;
}
.nav-link.active {
  background: var(--iris);
  color: white;
  box-shadow: 0 5px 14px #6946c614;
}
.sidebar .bottom-nav {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.app-content {
  background: linear-gradient(180deg, #fcfbff, white 550px);
  min-width: 0;
  padding: 32px 44px 25px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
  gap: 15px;
}
.topbar .account {
  display: flex;
  gap: 8px;
  align-items: center;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--iris-dark);
  font-weight: 700;
}
.page-heading {
  margin-bottom: 28px;
}
.page-heading h1 {
  margin-bottom: 8px;
}
.page-heading p {
  color: var(--muted);
  max-width: 720px;
}
.dashboard-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  padding: 31px 34px;
  background:
    radial-gradient(ellipse at 70% 10%, #dbe4fc, transparent 65%),
    linear-gradient(130deg, #eee5fc, #d8e0fb 75%, #efe6fc);
  min-height: 258px;
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}
.dashboard-hero:before {
  content: "";
  position: absolute;
  inset: -25% -15% 40% 49%;
  border-radius: 50%;
  background: linear-gradient(40deg, #bcbbed66, #f0e6fb88);
  transform: rotate(15deg);
  z-index: -1;
}
.dashboard-hero:after {
  content: "";
  position: absolute;
  inset: 36% -10% -50% 55%;
  background: linear-gradient(90deg, #b8c9f888, #ece7fb);
  border-radius: 50%;
  transform: rotate(-27deg);
  z-index: -1;
}
.dashboard-hero .hero-copy {
  max-width: 65%;
  position: relative;
  z-index: 1;
}
.dashboard-hero h2 {
  font-size: clamp(28px, 3vw, 37px);
  max-width: 530px;
  margin-bottom: 13px;
}
.dashboard-hero p {
  font-size: 14px;
  color: var(--muted);
  max-width: 490px;
}
.dashboard-hero .button {
  margin-top: 5px;
}
.lesson-art {
  position: absolute;
  right: 45px;
  top: 45px;
  width: 135px;
  height: 165px;
  transform: rotate(-11deg);
  border-radius: 20px;
  background: #ffffffef;
  box-shadow: 0 18px 30px #5d43a815;
  padding: 23px;
}
.lesson-art i {
  display: block;
  height: 7px;
  background: #dfd5f5;
  border-radius: 5px;
  margin-bottom: 10px;
}
.lesson-art i:nth-child(2) {
  width: 80%;
}
.lesson-art i:nth-child(3) {
  width: 60%;
}
.lesson-art strong {
  display: block;
  font-size: 65px;
  line-height: 1;
  font-family: "SIM Display", sans-serif;
  color: var(--iris);
  text-align: right;
  margin-top: 13px;
}
.priority-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 34px;
}
.priority-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px 19px;
  background: white;
}
.priority-card .number {
  font-weight: 700;
  color: var(--iris);
  font-size: 13px;
  padding-top: 2px;
}
.priority-card p {
  margin: 0;
  font-size: 14px;
}
.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 30px;
}
.domain-card {
  padding: 20px 17px 19px;
  border: 1px solid #e7e0f2;
  border-radius: 19px;
  background: white;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.domain-card h3 {
  font-family: "SIM Text";
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0;
  min-height: 40px;
}
.domain-card .icon {
  color: var(--iris-dark);
  margin-bottom: 3px;
}
.domain-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.progress-track {
  height: 7px;
  border-radius: 99px;
  background: #eee8f8;
  overflow: hidden;
}
.progress-track span {
  height: 100%;
  display: block;
  background: var(--iris);
  border-radius: 99px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: white;
}
.stat strong {
  display: block;
  font-size: 29px;
  color: var(--iris);
  font-family: "SIM Display";
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.panel h2 {
  font-size: 22px;
}
.panel p:last-child {
  margin-bottom: 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.catalog-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.catalog-card h3 {
  font-size: 23px;
  margin: 0;
}
.catalog-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.catalog-card .actions {
  margin-top: auto;
  padding-top: 7px;
}
.catalog-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--iris-dark);
}
.filterbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filterbar input,
.filterbar select {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #8c7fa3;
  background: white;
  color: var(--ink);
}
.filterbar input {
  flex: 1;
  min-width: 170px;
}
.empty {
  padding: 36px 28px;
  text-align: center;
  border: 1px dashed #baadd2;
  border-radius: 22px;
  background: #fcfbfe;
}
.empty p {
  max-width: 650px;
  margin: 0 auto 16px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 15px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  font-weight: 650;
  background: var(--canvas);
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history-item:last-child {
  border: 0;
}
.history-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}
.history-item strong {
  font-size: 15px;
}
.week-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.week-day {
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfbff;
}
.week-day strong {
  display: block;
  font-size: 13px;
}
.week-day p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
.reading {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.7;
}
.reading h2,
.reading h3 {
  margin-top: 27px;
}
.reading table {
  font-size: 15px;
}
.lesson-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.lesson-link p {
  margin: 0;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 25px auto;
}
.price-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 31px;
  display: flex;
  flex-direction: column;
}
.price-card.premium {
  border: 2px solid var(--iris);
  background: linear-gradient(165deg, #f9f6fe, white 42%);
}
.price {
  font-family: "SIM Display";
  font-size: 46px;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 15px 0 5px;
}
.price small {
  font-family: "SIM Text";
  font-size: 16px;
  letter-spacing: 0;
}
.price-card ul {
  padding: 0;
  list-style: none;
  margin: 24px 0;
  flex: 1;
}
.price-card li {
  position: relative;
  padding-left: 23px;
  margin-bottom: 13px;
  font-size: 14px;
}
.price-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--iris);
  font-weight: 700;
}
.mobile-nav {
  display: none;
}
.question-shell {
  min-height: 100vh;
  background: var(--canvas);
}
.question-header {
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(22px, calc((100vw - 1100px) / 2));
  position: relative;
}
.question-header .brand small {
  display: none;
}
.question-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}
.timer {
  font-variant-numeric: tabular-nums;
  background: var(--pale);
  border-radius: 99px;
  padding: 9px 15px;
  font-weight: 700;
  min-width: 90px;
  text-align: center;
}
.question-content {
  max-width: 1040px;
  margin: auto;
  padding: 32px 24px 65px;
}
.question-content .eyebrow {
  margin-bottom: 8px;
}
.question-content h1 {
  font-size: 26px;
}
.question-top {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.save-status {
  font-size: 13px;
  color: var(--muted);
}
.save-status.saved {
  color: var(--good);
}
.save-status.pending {
  color: var(--warning);
}
.question-progress {
  margin-bottom: 27px;
}
.question-card {
  background: white;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.prompt {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 820px;
}
.prompt p:last-child {
  margin-bottom: 0;
}
.reading-block {
  background: #faf8fd;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
  margin-bottom: 25px;
  max-height: 430px;
  overflow-y: auto;
  line-height: 1.7;
}
.choices {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border: 1px solid #978ba9;
  border-radius: 14px;
  min-height: 58px;
  cursor: pointer;
  line-height: 1.45;
}
.choice:hover {
  background: #faf8ff;
}
.choice:has(input:checked) {
  border: 2px solid var(--iris);
  padding: 14px 17px;
  background: #f1ecfb;
}
.choice input {
  accent-color: var(--iris);
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}
.choice .letter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.choice.correct {
  border: 2px solid var(--good);
  background: #f0f8f2;
  padding: 14px 17px;
}
.choice.incorrect {
  border: 2px solid var(--danger);
  background: #fdf4f5;
  padding: 14px 17px;
}
.choice .answer-state {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  min-width: 65px;
}
.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
}
.question-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 18px;
  font-size: 13px;
}
.correction {
  margin-top: 25px;
  background: #f8f5fd;
  border: 1px solid #d8cceb;
  border-radius: 20px;
  padding: 26px;
}
.correction h2 {
  font-size: 22px;
}
.correction h3 {
  font-size: 17px;
  margin-top: 23px;
}
.correction ol {
  padding-left: 23px;
}
.correction li {
  padding: 9px 0;
  font-size: 14px;
}
.palette {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.palette button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #9f91b6;
  background: white;
  color: var(--ink);
  border-radius: 10px;
  font-size: 12px;
}
.palette button.answered {
  background: var(--pale);
  border-color: var(--iris);
}
.palette button.current {
  background: var(--iris);
  color: white;
}
.palette button.flagged:after {
  content: " ⚑";
}
.exam-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 15px;
}
.result-head {
  text-align: center;
  padding: 35px 20px;
}
.result-head .result-number {
  font-size: 66px;
  font-family: "SIM Display";
  color: var(--iris);
  letter-spacing: -0.06em;
  margin: 10px 0;
}
.result-head .result-number small {
  font-size: 25px;
  color: var(--muted);
}
.protected-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 12px;
}
.protected-image-link {
  display: inline-block;
}
.skeleton {
  border-radius: 20px;
  background: linear-gradient(90deg, #ede8f6, #f8f5fc, #ede8f6);
  height: 160px;
}
.boot {
  display: flex;
  min-height: 70vh;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.boot p {
  margin: 0;
}
.alert-box {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: 90vw;
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 14px;
  box-shadow: 0 5px 25px #0002;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  max-width: 540px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: white;
  box-shadow: 0 20px 80px #2d234733;
}
dialog::backdrop {
  background: #2d234755;
}
dialog h2 {
  font-size: 24px;
}
.status-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.method-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
details > summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 0;
}
details p {
  margin-top: 10px;
}
button.nav-link {
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
}
.wide-button {
  width: 100%;
}
@media (min-width: 1450px) {
  .app-content {
    padding-left: 60px;
    padding-right: 60px;
  }
  .dashboard-hero {
    min-height: 280px;
  }
  .lesson-art {
    right: 75px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 12px;
  }
  .app-content {
    padding: 28px 27px;
  }
  .nav-link {
    padding: 12px 11px;
    font-size: 13px;
    gap: 9px;
  }
  .sidebar .brand {
    gap: 7px;
  }
  .brand strong {
    font-size: 30px;
  }
  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .domain-card h3 {
    min-height: 0;
  }
  .lesson-art {
    right: 25px;
    width: 110px;
    height: 140px;
    padding: 19px;
    top: 55px;
  }
  .lesson-art strong {
    font-size: 54px;
  }
  .dashboard-hero .hero-copy {
    max-width: 67%;
  }
  .week-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  .site-header {
    padding: 21px 20px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav > a:not(.button) {
    display: none;
  }
  .site-header .button {
    padding: 10px 15px;
    font-size: 13px;
  }
  .landing {
    padding: 0 20px;
    margin-top: 0;
  }
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0 35px;
  }
  .landing h1 {
    font-size: 43px;
  }
  .landing-hero p {
    font-size: 16px;
  }
  .visual-card {
    min-height: 275px;
    padding: 22px;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-top: 32px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 19px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
    background: #faf8fd;
  }
  .sidebar .brand {
    padding: 0;
  }
  .sidebar nav {
    display: none;
  }
  .sidebar .bottom-nav {
    display: none;
  }
  .app-content {
    padding: 22px 20px 100px;
  }
  .topbar {
    margin-bottom: 24px;
  }
  .topbar > span:first-child {
    display: none;
  }
  .topbar .account {
    margin-left: auto;
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .dashboard-hero {
    min-height: 270px;
    padding: 25px 22px;
    border-radius: 20px;
  }
  .dashboard-hero .hero-copy {
    max-width: 78%;
  }
  .dashboard-hero h2 {
    font-size: 29px;
    max-width: 300px;
  }
  .dashboard-hero .eyebrow {
    font-size: 10px;
  }
  .dashboard-hero p {
    font-size: 12px;
    max-width: 230px;
  }
  .dashboard-hero .button {
    font-size: 13px;
    padding: 11px 16px;
  }
  .lesson-art {
    right: 12px;
    top: 55px;
    width: 71px;
    height: 95px;
    padding: 13px;
    border-radius: 13px;
    opacity: 0.9;
    z-index: 0;
  }
  .lesson-art i {
    height: 4px;
    margin-bottom: 6px;
  }
  .lesson-art strong {
    font-size: 35px;
    margin-top: 7px;
  }
  .priority-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }
  .domain-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .domain-card {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 6px 13px;
    padding: 17px 18px;
  }
  .domain-card > .icon {
    grid-row: 1/4;
    margin-top: 3px;
  }
  .domain-card h3 {
    font-size: 14px;
  }
  .domain-card .progress-track {
    grid-column: 2;
    margin-top: 2px;
    max-width: 100%;
  }
  .domain-card p {
    grid-column: 2;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 11px;
  }
  .panel {
    padding: 21px;
  }
  .panel h2 {
    font-size: 21px;
  }
  .week-list {
    grid-template-columns: 1fr 1fr;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
  .price-card {
    padding: 27px;
  }
  .filterbar {
    gap: 10px;
  }
  .filterbar input,
  .filterbar select {
    width: 100%;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fffffff5;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    z-index: 10;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
  }
  .mobile-nav a.active {
    color: var(--iris-dark);
    background: var(--pale);
    font-weight: 650;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-menu .nav-link {
    border: 1px solid var(--line);
    font-size: 16px;
    padding: 17px;
  }
  .question-header {
    padding: 15px 20px;
  }
  .question-header .brand strong {
    font-size: 26px;
  }
  .question-header .brand-dots {
    transform: scale(0.8);
    width: 26px;
    flex-basis: 26px;
  }
  .question-meta {
    gap: 10px;
    font-size: 12px;
  }
  .question-meta .text-button {
    font-size: 12px;
  }
  .timer {
    padding: 8px 10px;
    min-width: 75px;
  }
  .question-content {
    padding: 22px 16px 35px;
  }
  .question-content h1 {
    font-size: 22px;
  }
  .question-card {
    padding: 23px 18px;
    border-radius: 20px;
  }
  .prompt {
    font-size: 18px;
  }
  .choice {
    padding: 15px 12px;
    gap: 10px;
    font-size: 15px;
  }
  .choice:has(input:checked),
  .choice.correct,
  .choice.incorrect {
    padding: 14px 11px;
  }
  .choice .answer-state {
    min-width: 0;
    font-size: 10px;
  }
  .choice .letter {
    display: none;
  }
  .question-actions {
    gap: 10px;
  }
  .question-actions .button {
    font-size: 13px;
    padding: 10px 15px;
  }
  .question-top {
    gap: 8px;
    align-items: flex-start;
  }
  .question-top .save-status {
    font-size: 11px;
    max-width: 160px;
    text-align: right;
  }
  .question-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .correction {
    padding: 22px 17px;
  }
  .reading-block {
    padding: 17px;
    max-height: none;
  }
  .auth-container {
    margin-top: 25px;
  }
  .auth-card {
    padding: 25px;
  }
  .result-head .result-number {
    font-size: 54px;
  }
  .history-item {
    align-items: flex-start;
  }
  .history-item .button {
    padding: 9px 13px;
    font-size: 12px;
  }
  .footer {
    font-size: 11px;
  }
  .price {
    font-size: 42px;
  }
}
@media (max-width: 360px) {
  .landing h1 {
    font-size: 37px;
  }
  .site-header {
    padding: 17px 15px;
  }
  .app-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .dashboard-hero {
    padding: 23px 18px;
  }
  .dashboard-hero .hero-copy {
    max-width: 85%;
  }
  .dashboard-hero h2 {
    font-size: 26px;
  }
  .lesson-art {
    right: 7px;
    opacity: 0.5;
  }
  .brand small {
    font-size: 8px;
  }
  .question-header {
    padding: 13px;
  }
  .question-actions .button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .stat strong {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[hidden] {
  display: none !important;
}
.prompt,
.reading,
.correction,
.catalog-card {
  overflow-wrap: anywhere;
}
.choice.correct:has(input:checked) {
  border-color: var(--good);
  background: #f0f8f2;
}
.choice.incorrect:has(input:checked) {
  border-color: var(--danger);
  background: #fdf4f5;
}
.palette button {
  min-width: 44px;
  min-height: 44px;
}
@media print {
  .sidebar,
  .mobile-nav,
  .actions,
  .question-header,
  .demo-strip {
    display: none;
  }
  .app-shell {
    display: block;
  }
  .app-content {
    padding: 0;
  }
  .panel,
  .question-card {
    box-shadow: none;
    break-inside: avoid;
  }
  body {
    background: white;
  }
}

/* 0.2.0 — inscription prénom/nom, code de confirmation, estimation sur 400 */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:560px){.form-row{grid-template-columns:1fr}}
.verify-box{margin:18px 0}
.verify-box .form-field{max-width:260px}
.verify-box input{letter-spacing:.35em;font-size:1.25rem;text-align:center}
.estimate{font-size:1.2rem;margin:16px 0 8px}

/* 0.3.1 — catalogue grouped by domain, free before Premium, combinable filters */
.catalog-filters {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #8c7fa3;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover {
  background: var(--pale);
}
.chip[aria-pressed="true"] {
  background: var(--iris-dark);
  border-color: var(--iris-dark);
  color: white;
}
.chip:focus-visible,
.link-button:focus-visible,
.card-link:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 2px;
}
.chip-count {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--iris-dark);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.chip[aria-pressed="true"] .chip-count {
  background: #ffffff2e;
  color: white;
}
.segmented {
  flex-wrap: nowrap;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
}
.segmented .chip {
  border-color: transparent;
  background: transparent;
  min-height: 40px;
}
.segmented .chip[aria-pressed="true"] {
  background: var(--iris-dark);
}
.filter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.search-field {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}
.search-field .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding-left: 44px;
  border-radius: 999px;
  min-height: 46px;
}
.catalog-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
}
.catalog-status p {
  margin: 0;
}
.link-button {
  border: 0;
  background: none;
  padding: 6px 2px;
  color: var(--iris-dark);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.catalog-upsell {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--pale), #eef3fd);
  color: var(--ink);
}
.catalog-upsell > .icon {
  flex: none;
  color: var(--iris-dark);
}
.catalog-upsell p {
  margin: 0;
  flex: 1;
  font-size: 15px;
}
.catalog-section {
  margin-top: 40px;
  scroll-margin-top: 20px;
}
.catalog-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 26px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.catalog-title .icon {
  color: var(--iris-dark);
}
.catalog-title small {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.catalog-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 22px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.catalog-sub .part-cta {
  margin-left: auto;
  min-height: 40px;
}
.catalog-part + .catalog-part {
  margin-top: 6px;
}
.catalog-section .catalog-grid,
.catalog-list > .catalog-section .catalog-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}
.catalog-card {
  transition: border-color 0.15s, box-shadow 0.15s;
}
.catalog-card:hover {
  border-color: var(--lavender);
  box-shadow: var(--shadow);
}
.catalog-card h3 {
  font-size: 21px;
  line-height: 1.25;
}
.card-meta {
  color: var(--ink) !important;
  font-weight: 600;
}
.pill .icon {
  width: 13px;
  height: 13px;
}
.pill-lock {
  background: #f1eef6;
  color: var(--muted);
}
.catalog-card.is-locked {
  background: #fcfbfe;
  border-style: dashed;
}
.catalog-card.is-locked h3 {
  color: #4a3f62;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--iris-dark);
  font-weight: 650;
  text-decoration: none;
}
.card-link:hover {
  text-decoration: underline;
}
.card-link .icon {
  width: 18px;
  height: 18px;
}
#catalog-none {
  margin-top: 26px;
}
@media (max-width: 700px) {
  .catalog-filters {
    padding: 14px;
    margin-left: -2px;
    margin-right: -2px;
  }
  /* one swipeable line of subjects instead of three wrapped lines */
  .chip-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -14px;
    padding: 2px 14px;
    scroll-padding: 0 14px;
  }
  .chip-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .chip-scroll::-webkit-scrollbar {
    display: none;
  }
  .segmented {
    width: 100%;
  }
  .segmented .chip {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
  }
  .catalog-title {
    font-size: 22px;
  }
  .catalog-title small {
    margin-left: 0;
    flex-basis: 100%;
  }
  .catalog-sub .part-cta {
    margin-left: 0;
  }
  .catalog-upsell {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .catalog-upsell p {
    flex: 1 1 calc(100% - 40px);
  }
  .catalog-upsell .button {
    width: 100%;
  }
  .catalog-section .catalog-grid {
    grid-template-columns: 1fr;
  }
}
