/* ishtil.uz: the app's palette (Samarkand tilework: lapis, turquoise, saffron) and type
   (Onest, Unbounded for numbers). Mobile first; light and dark. */

@font-face {
  font-family: 'Onest';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/onest-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/onest-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/onest-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/onest-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/unbounded-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/unbounded-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1;
}

:root {
  --lapis: #1f4ba5;
  --lapis-deep: #173a82;
  --turquoise: #0e8476;
  --saffron: #f0b43c;
  --saffron-text: #9a6500;
  --paper: #ffffff;
  --sand: #f4f6fa;
  --ink: #101828;
  --hint: #5b6577;
  --line: #e3e7ee;
  --card: #ffffff;
  --on-lapis: #ffffff;
  --font:
    'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple SD Gothic Neo',
    'Noto Sans KR', sans-serif;
  --font-num: 'Unbounded', 'Onest', sans-serif;
  --word: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Onest', sans-serif;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --lapis: #6f9bf2;
    --lapis-deep: #2a5ccc;
    --turquoise: #3cc2b1;
    --saffron-text: #f0b43c;
    --paper: #0d1320;
    --sand: #141c2c;
    --ink: #eef1f7;
    --hint: #a3adbf;
    --line: #26314a;
    --card: #182236;
    --on-lapis: #0d1320;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
}
a {
  color: var(--lapis);
}
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* header */
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
}
.top-nav {
  display: none;
  gap: 20px;
  margin-left: auto;
}
.top-nav a {
  color: var(--hint);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.langs {
  display: flex;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.langs a,
.langs span {
  min-width: 44px;
  min-height: 40px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  color: var(--hint);
}
.langs span {
  background: var(--lapis);
  color: var(--on-lapis);
}
@media (min-width: 760px) {
  .top-nav {
    display: flex;
  }
  .langs {
    margin-left: 8px;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* hero */
.hero {
  display: grid;
  gap: 32px;
  padding: 24px 0 48px;
}
.hero h1 {
  font-size: clamp(30px, 7vw, 52px);
  max-width: 16ch;
}
.lead {
  margin: 16px 0 24px;
  font-size: 18px;
  color: var(--hint);
  max-width: 58ch;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--lapis);
  color: var(--on-lapis);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.cta:hover {
  background: var(--lapis-deep);
  color: #fff;
}
.cta-note {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--hint);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    padding: 56px 0 80px;
  }
}

/* word cards: the one bold thing. Tap and hear the course voice. Both cards share one grid
   and one structure (tag, word, reading, meaning, example bubble); only the accent differs. */
.hero-cards {
  display: grid;
  gap: 16px;
  align-content: center;
}
.word {
  --accent: var(--lapis);
  --tint: color-mix(in srgb, var(--lapis) 9%, var(--card));
  display: grid;
  gap: 2px;
  padding: 20px 20px 18px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgba(23, 58, 130, 0.35);
}
.word[data-track='germany'] {
  --accent: var(--saffron-text);
  --tint: color-mix(in srgb, var(--saffron) 16%, var(--card));
}
.word-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.word-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.word-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--accent);
  cursor: pointer;
}
.word-text {
  margin: 0;
  font: 600 clamp(32px, 8vw, 42px) / 1.15 var(--word);
}
.word-roman {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.word-ipa {
  margin-left: 6px;
  font-weight: 400;
  color: var(--hint);
}
.word-gloss {
  margin: 0 0 14px;
  color: var(--hint);
}
/* the example sentence reads like a chat message */
.word-example {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 16px;
  border: 0;
  border-radius: 20px 20px 20px 6px;
  background: var(--tint);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.word-example svg {
  flex: none;
  color: var(--accent);
}
.is-playing {
  outline: 3px solid var(--turquoise);
  outline-offset: 2px;
}
.demo-note {
  margin: 2px 4px 0;
  font-size: 14px;
  color: var(--hint);
}

/* sections */
.band {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.band h2 {
  font-size: clamp(24px, 5vw, 34px);
  margin-bottom: 20px;
}
.exams {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .exams {
    grid-template-columns: 1fr 1fr;
  }
}
.exam {
  padding: 18px;
  border-radius: 16px;
  background: var(--sand);
}
.exam h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.exam dl,
.inside,
.plans {
  margin: 0;
}
.exam dl div,
.plans div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.exam dl div:last-child,
.plans div:last-child {
  border-bottom: 0;
}
.exam dt,
.plans dt {
  font-weight: 600;
}
.exam dd,
.plans dd {
  margin: 0;
  color: var(--hint);
  text-align: right;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 64ch;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lapis);
  color: var(--on-lapis);
  font: 600 18px var(--font-num);
}

.inside {
  display: grid;
  gap: 0 32px;
}
@media (min-width: 760px) {
  .inside {
    grid-template-columns: 1fr 1fr;
  }
}
.inside div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.inside dt {
  font-weight: 600;
}
.inside dd {
  margin: 2px 0 0;
  color: var(--hint);
}

.prices {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .prices {
    grid-template-columns: 1fr 1.3fr;
  }
}
.price {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.price.paid {
  border: 2px solid var(--lapis);
}
.price h3 {
  font-size: 18px;
  color: var(--hint);
  margin-bottom: 6px;
}
.amount,
.plans dd {
  font-family: var(--font-num);
}
.amount {
  margin: 0 0 8px;
  font-size: 28px;
}
.plans dd {
  color: var(--ink);
  font-size: 16px;
}
.price ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.price li {
  padding: 6px 0 6px 26px;
  position: relative;
}
.price li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--turquoise);
  border-bottom: 2.5px solid var(--turquoise);
  transform: rotate(-45deg);
}
.price-note {
  margin: 16px 0 0;
  color: var(--hint);
  font-size: 15px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  margin-left: auto;
  padding-left: 16px;
  color: var(--lapis);
  font-size: 22px;
}
.faq details[open] summary::after {
  content: '−';
}
.faq p {
  margin: 0 0 16px;
  color: var(--hint);
  max-width: 68ch;
}

.final {
  text-align: center;
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}
.final h2 {
  font-size: clamp(24px, 5vw, 34px);
  margin: 12px auto 24px;
  max-width: 20ch;
}

/* footer */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--hint);
  font-size: 15px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.foot a {
  color: var(--hint);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot p {
  margin: 0;
}

/* social icons: circular outlined buttons (Instagram in the header, both in the footer) */
.socials {
  display: flex;
  gap: 10px;
  margin: 0 0 8px;
}
.social {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
}
.foot .social {
  display: grid;
  color: var(--ink);
}
.social:hover {
  border-color: var(--lapis);
  color: var(--lapis);
}
.social svg {
  width: 20px;
  height: 20px;
}

/* legal pages */
.legal {
  max-width: 720px;
  padding-top: 16px;
  padding-bottom: 48px;
}
.legal h1 {
  font-size: clamp(28px, 6vw, 40px);
}
.legal h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}
.legal p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.legal .updated {
  color: var(--hint);
  font-size: 15px;
  margin-top: 8px;
}

/* phones: the Telegram button stays reachable once the hero and final buttons are off screen */
.sticky-cta {
  display: none;
}
@media (max-width: 759px) {
  .cta {
    width: 100%;
    justify-content: center;
  }
  .final .cta {
    width: auto;
  }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 10px max(16px, env(safe-area-inset-right, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 200ms ease-out;
  }
  .sticky-cta.show {
    transform: none;
  }
  .foot {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 759px) and (prefers-reduced-motion: reduce) {
  .sticky-cta {
    transition: none;
  }
}
