@font-face {
  font-family: Vazirmatn;
  src: url("../landing/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: #17362d;
  background: #f5f7f1;
  color-scheme: light;
  line-height: 1.65;
  --emerald: #123f34;
  --ink: #17362d;
  --muted: #4a6257;
  --line: #cddbd1;
  --paper: #fff;
  --blue: #224f73;
  --frame: min(1050px, calc(100% - 44px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
input, button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2 { font-weight: 850; line-height: 1.33; }
h1 { font-size: clamp(1.9rem, 3.9vw, 3rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible { outline: 3px solid #3475a8; outline-offset: 3px; }
h1:focus { outline: none; }

.mast {
  min-height: 67px;
  padding-inline: max(22px, calc((100% - 1050px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-block-end: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 8px; align-items: center; font-size: 1.28rem; font-weight: 900; white-space: nowrap; }
.brand span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 34px;
  border-radius: 6px 6px 12px 6px;
  color: white;
  background: var(--emerald);
}
.site-link { font-weight: 650; color: var(--muted); }
.site-link:hover, .quiet:hover { text-decoration: underline; text-underline-offset: .25em; }
.noscript { width: var(--frame); margin: 30px auto; }

.entry {
  width: var(--frame);
  margin: clamp(20px, 5vw, 70px) auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper);
}
.entry-art {
  background: var(--emerald);
  color: #f5f9ef;
  padding: clamp(26px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 505px;
}
.entry-art p { color: #c9ded1; font-weight: 650; }
.entry-art > strong { margin-block: 10px 24px; font-size: clamp(1.8rem, 3.5vw, 3.05rem); line-height: 1.32; }
.entry-note {
  align-self: flex-end;
  display: grid;
  justify-items: center;
  border: 1px solid #d5dfcc;
  border-inline-start: 5px solid #819d82;
  border-radius: 4px 7px 7px 4px;
  color: var(--emerald);
  background: repeating-linear-gradient(#f6f7e9 0 23px, #dce5d2 23px 24px);
  padding: 10px 18px;
  transform: rotate(-6deg);
}
.entry-note b { font-size: clamp(1.4rem, 2.8vw, 2rem); direction: ltr; }
.entry-note span { font-size: .86rem; font-weight: 720; }
.entry-body {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 62px);
  min-width: 0;
}
.step > p:not(.note) { margin-block: 10px 18px; color: var(--muted); }
.step > .quiet:first-child { margin-block-end: 10px; }
form { display: grid; gap: 9px; }
label { font-weight: 720; }
input:not([type="radio"]), select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #aebfb4;
  border-radius: 10px;
  padding: 8px 12px;
  background: white;
  font-size: 1rem;
}
#phone, #code { text-align: center; letter-spacing: .13em; font-size: 1.15rem; }
.primary {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: white;
  background: var(--emerald);
  font-weight: 800;
  text-align: center;
}
.primary:hover { background: #1c5848; }
.note { margin-block-start: 14px; color: var(--muted); font-size: .94rem; }
.quiet { color: var(--blue); background: transparent; padding: 3px 0; border: 0; font-weight: 710; }
.message { color: #7d332c; font-size: .94rem; }
.message:empty { margin-block-start: -8px; }
.demo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  padding: 8px 12px;
  margin-block: 14px;
  background: #e8f1e8;
  border-radius: 8px;
  color: var(--emerald);
}
.demo-code b { font-size: 1.45rem; letter-spacing: .18em; }
fieldset { min-inline-size: 0; margin: 9px 0; padding: 0; border: 0; }
.grade-options, .gender-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice {
  position: relative;
  display: grid;
  place-items: center;
  padding: 6px 3px;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}
.choice input { position: absolute; inset-inline-start: 10px; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { background: #e5f1e8; border-color: var(--emerald); color: var(--emerald); box-shadow: inset 0 0 0 1px var(--emerald); }
.choice:has(input:focus-visible) { outline: 3px solid #3475a8; outline-offset: 3px; }

.lead { color: var(--muted); margin-block: 6px 14px; }
.profile, .module {
  max-width: 650px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.profile .primary { margin-block-start: 6px; }
#profile-message { color: var(--muted); }
.exit { margin-block-start: 12px; color: #7d332c; }
.module { margin-block-start: 14px; }
.module p { color: var(--muted); margin-block: 4px 11px; }
.module details { padding-block: 10px; }
.module details + details { border-block-start: 1px solid var(--line); }
.module summary { cursor: pointer; font-weight: 730; }
.video-list { margin-block: 12px; }
.video-list li { padding-block: 7px; border-block-end: 1px solid var(--line); }
.video-list span { color: var(--muted); margin-inline-start: 8px; }
.dock {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(530px, calc(100% - 22px));
  padding: 5px;
  gap: 3px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 22px #193b261b;
}
.dock button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 5px 2px;
  min-height: 55px;
  line-height: 1.3;
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 780;
}
.dock button span { line-height: 1; font-size: 1.27rem; }
.dock button:hover { background: #f0f5ef; }
.dock button[aria-current] { color: var(--emerald); background: #e5f0e5; }

@media (max-width: 680px) {
  :root { --frame: calc(100% - 28px); }
  .mast { min-height: 56px; padding-inline: 14px; }
  .site-link { font-size: .87rem; }
  .entry { grid-template-columns: minmax(0, 1fr); margin-block: 14px; border-radius: 17px; }
  .entry-art { min-height: auto; padding: 15px 19px; }
  .entry-art p { font-size: .88rem; }
  .entry-art > strong { margin-block: 2px 0; font-size: 1.25rem; }
  .entry-art br, .entry-note { display: none; }
  .entry-body { padding: 19px 16px 21px; }
  .student { margin-block-start: 14px; }
}
