:root {
  --bg: #efe7db;
  --bg-soft: #f6f1e9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #f7f1e8;
  --border: rgba(58, 47, 39, 0.12);
  --border-strong: rgba(58, 47, 39, 0.2);
  --text: #2f2825;
  --muted: #625751;
  --muted-2: #81746d;
  --accent: #8f341f;
  --accent-dark: #6f2614;
  --accent-soft: rgba(143, 52, 31, 0.1);
  --shadow: 0 20px 60px -32px rgba(42, 28, 20, 0.26);
  --shadow-soft: 0 14px 30px -20px rgba(42, 28, 20, 0.24);
  --shadow-thumb: 0 10px 18px -14px rgba(42, 28, 20, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(143, 52, 31, 0.12), transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(64, 84, 114, 0.08), transparent 45%),
    linear-gradient(180deg, #f2eadf 0%, #efe7db 50%, #ece3d7 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 75%, white 25%);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.section {
  padding: 2.75rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.8rem 0 0;
  background: linear-gradient(180deg, rgba(239, 231, 219, 0.95), rgba(239, 231, 219, 0.78) 78%, rgba(239, 231, 219, 0));
  backdrop-filter: saturate(140%) blur(8px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(250, 245, 238, 0.8);
  box-shadow: 0 10px 24px -22px rgba(42, 28, 20, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  box-shadow: 0 6px 14px -9px rgba(0, 0, 0, 0.35);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background-color 140ms ease, transform 140ms ease;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.header-link:active {
  transform: translateY(0) scale(0.98);
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lang-btn.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(58, 47, 39, 0.07);
}

.hero {
  padding-top: 1.2rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  padding: 1.15rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 8%, rgba(143, 52, 31, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 242, 234, 0.72));
  box-shadow: var(--shadow-soft);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero-tagline {
  margin: 0.55rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 38ch;
  font-size: 1.05rem;
}

.cta-row {
  margin-top: 1.1rem;
}

.appstore-link {
  display: inline-block;
  border-radius: 0.85rem;
  line-height: 0;
}

.appstore-link--block {
  width: fit-content;
}

.appstore-badge {
  width: auto;
  height: 3.125rem;
  max-width: 100%;
  display: block;
}

.hero-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
}

.hero-points li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 68%, white 32%);
  box-shadow: 0 0 0 4px rgba(143, 52, 31, 0.12);
  flex: 0 0 auto;
}

.hero-visual {
  display: block;
  align-self: stretch;
}

.hero-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.hero-frame--ipad {
  width: 100%;
}

.hero-frame img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.section-subtitle {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.feature-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 243, 236, 0.72));
  box-shadow: 0 10px 28px -22px rgba(42, 28, 20, 0.25);
}

.feature-card h3 {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(58, 47, 39, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feature-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screenshot-grid {
  display: none;
}

.screenshots-nav {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.carousel-nav {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px -16px rgba(42, 28, 20, 0.35);
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.92);
}

.carousel-nav:active {
  transform: scale(0.97);
}

.carousel-counter {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.screenshot-carousel {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scroll-padding-inline: 0.1rem;
  padding-block: 0.45rem;
  touch-action: pan-x;
  height: 12.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screenshot-carousel::-webkit-scrollbar {
  display: none;
}

.shot-card {
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: zoom-in;
  scroll-snap-align: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
  appearance: none;
  -webkit-appearance: none;
  text-align: inherit;
}

.shot-card:hover {
  transform: translateY(-1px);
}

.shot-card--phone {
  width: 7.3rem;
  height: 11.6rem;
}

.shot-card--tablet-portrait {
  width: 8.7rem;
  height: 11.6rem;
}

.shot-card--tablet-landscape {
  width: 13.9rem;
  height: 11.6rem;
}

.shot-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: var(--shadow-thumb);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 12, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  width: min(100% - 1rem, 68rem);
  max-height: calc(100dvh - 1rem);
  padding: 0.75rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(31, 27, 24, 0.9);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.75);
  display: grid;
  gap: 0.6rem;
}

.lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-media {
  min-height: 16rem;
  max-height: calc(100dvh - 8rem);
  display: grid;
  place-items: center;
  padding: 0.6rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.lightbox-media img {
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.8rem;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.lightbox-footer .carousel-nav {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lightbox-footer .carousel-counter {
  color: rgba(255, 255, 255, 0.84);
  min-width: 4.5rem;
  text-align: center;
}

.teacher-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 80% 10%, rgba(143, 52, 31, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 36px -30px rgba(42, 28, 20, 0.28);
}

.teacher-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.teacher-copy p:not(.section-kicker) {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.teacher-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.teacher-list li {
  padding: 0.8rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(58, 47, 39, 0.08);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pricing-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background:
    radial-gradient(circle at 12% 10%, rgba(143, 52, 31, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.pricing-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.pricing-subtitle {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.price-block {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.price-note {
  margin: 0;
  color: var(--muted);
}

.faq-shell {
  display: grid;
  gap: 0.75rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  overflow: clip;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 2.75rem 0.9rem 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 0.9rem 0.95rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.25rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 28px -24px rgba(42, 28, 20, 0.25);
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
}

.footer-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

@media (max-width: 419px) {
  .header-link {
    padding-inline: 0.65rem;
    font-size: 0.83rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .appstore-link {
    width: 100%;
    max-width: 12rem;
  }

  .appstore-badge {
    width: 100%;
    height: auto;
  }

  .nav-bar {
    padding-inline: 0.55rem;
  }
}

@media (min-width: 680px) {
  .section {
    padding: 3.4rem 0;
  }

  .hero-copy,
  .teacher-panel,
  .pricing-card {
    padding: 1.35rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-carousel {
    gap: 0.9rem;
    height: 13.95rem;
  }

  .shot-card--phone {
    width: 8.1rem;
    height: 13rem;
  }

  .shot-card--tablet-portrait {
    width: 9.6rem;
    height: 13rem;
  }

  .shot-card--tablet-landscape {
    width: 15.5rem;
    height: 13rem;
  }

  .pricing-card {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .teacher-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 4.2rem 0;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
  }

  .hero-copy {
    padding: 1.65rem;
  }

  .hero-visual {
    height: 100%;
  }

  .hero-frame--ipad {
    width: 100%;
  }

  .hero-grid {
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
  }

  .hero-frame img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .screenshot-carousel {
    gap: 1rem;
    height: 15.75rem;
  }

  .shot-card--phone {
    width: 9.25rem;
    height: 14.75rem;
  }

  .shot-card--tablet-portrait {
    width: 10.9rem;
    height: 14.75rem;
  }

  .shot-card--tablet-landscape {
    width: 17.6rem;
    height: 14.75rem;
  }

  .faq-shell {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
    gap: 1.25rem;
  }

  .faq-shell .section-heading {
    position: sticky;
    top: 5.6rem;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
