/*
 * Mobile and tablet study-layout proof for index.html only.
 * Desktop intentionally keeps the established site presentation.
 */

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] {
  --home-study-blue: #155eef;
  --home-study-navy: #12304d;
  --home-study-sky: #eaf3ff;
  --home-study-mint: #dff7ee;
  --home-study-amber: #fff0b8;
  --home-study-coral: #ffe5dc;
  --home-study-line: rgba(18, 48, 77, 0.13);
  background:
    radial-gradient(circle at 8% 4%, rgba(244, 196, 48, 0.2), transparent 17rem),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 45%, #fffaf1 100%);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .page-shell {
  --home-study-layout: touch;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] :where(.hero, .content-section, .routine-strip article) {
  border-color: var(--home-study-line);
  box-shadow: 0 14px 36px rgba(18, 48, 77, 0.09);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] :where(.button, .mode-card a) {
  min-block-size: 48px;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] :where(.button, .mode-card a):focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.3);
  outline-offset: 3px;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero {
  background:
    radial-gradient(circle at 94% 6%, rgba(244, 196, 48, 0.3), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 243, 255, 0.94));
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero::before {
  width: 10rem;
  height: 10rem;
  inset: auto auto -5.5rem -3.5rem;
  opacity: 0.7;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero-panel {
  background:
    radial-gradient(circle at top right, rgba(244, 196, 48, 0.42), transparent 9rem),
    linear-gradient(150deg, #14334f, #155eef);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .verb-stack strong {
  border-radius: 14px;
  letter-spacing: -0.025em;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .content-section {
  background: rgba(255, 255, 255, 0.9);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .section-heading h2 {
  color: var(--home-study-navy);
  line-height: 1.04;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .section-heading p:not(.eyebrow) {
  line-height: 1.58;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article {
  border-color: rgba(21, 94, 239, 0.15);
  background: linear-gradient(135deg, #ffffff, var(--home-study-sky));
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article:nth-child(2) {
  background: linear-gradient(135deg, #ffffff, var(--home-study-mint));
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article:nth-child(3) {
  background: linear-gradient(135deg, #ffffff, var(--home-study-amber));
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .feature-card {
  border-color: rgba(18, 48, 77, 0.11);
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 48, 77, 0.07);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .feature-card::after {
  width: 5.5rem;
  height: 5.5rem;
  opacity: 0.7;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n + 1) {
  border-top: 4px solid #155eef;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n + 2) {
  border-top: 4px solid #0f9f83;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n + 3) {
  border-top: 4px solid #e8aa14;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n) {
  border-top: 4px solid #e36d4d;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n + 2) .mode-icon {
  background: var(--home-study-mint);
  box-shadow: 0 10px 22px rgba(15, 159, 131, 0.14);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n + 3) .mode-icon {
  background: var(--home-study-amber);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n) .mode-icon {
  background: var(--home-study-coral);
  box-shadow: 0 10px 22px rgba(227, 109, 77, 0.14);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-card a {
  position: relative;
  z-index: 1;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(21, 94, 239, 0.16);
  border-radius: 14px;
  background: var(--home-study-sky);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-card a::after {
  margin-left: auto;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section {
  background:
    radial-gradient(circle at 100% 0, rgba(21, 94, 239, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.92);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .routine-strip article:nth-child(2) span {
  background: #0f9f83;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .routine-strip article:nth-child(3) span {
  color: #12304d;
  background: #f4c430;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .page-shell {
  width: min(100% - 0.75rem, var(--content-max));
  padding-top: 0.65rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero h1 {
  max-width: none;
  font-size: clamp(2.05rem, 10.3vw, 2.75rem);
  line-height: 0.99;
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-lead {
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.55;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .button {
  width: 100%;
  min-height: 50px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-panel {
  min-height: 0;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 18px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-panel span {
  padding: 0.35rem 0.62rem;
  font-size: 0.8rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .verb-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .verb-stack strong {
  padding: 0.6rem 0.35rem;
  font-size: clamp(1rem, 5vw, 1.3rem);
  line-height: 1.05;
  text-align: center;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.48;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .content-section {
  margin-top: 0.8rem;
  padding: 1rem;
  border-radius: 22px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .section-heading h2 {
  font-size: clamp(1.7rem, 8vw, 2.15rem);
  letter-spacing: -0.04em;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .section-heading p:not(.eyebrow) {
  margin-bottom: 0;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .intro-route,
html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] :where(.feature-grid, .two-col-grid) {
  grid-template-columns: 1fr;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .intro-route {
  gap: 1rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder {
  gap: 0.55rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder article {
  min-height: 0;
  padding: 0.82rem 0.85rem 0.82rem 1.35rem;
  border-radius: 16px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder article::before {
  inset-block: 0.75rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .feature-number {
  margin-bottom: 0.45rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .feature-grid {
  gap: 0.7rem;
  margin-top: 1rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.28rem 0.8rem;
  min-height: 0;
  padding: 0.9rem;
  border-radius: 18px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-icon {
  grid-row: 1 / span 2;
  min-width: 2.65rem;
  min-height: 2.65rem;
  margin: 0;
  border-radius: 13px;
  font-size: 0.82rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card h3 {
  align-self: end;
  margin: 0;
  font-size: 1.22rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card p {
  grid-column: 2;
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  hyphens: auto;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card a {
  grid-column: 1 / -1;
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.18rem 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 18px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip span {
  grid-row: 1 / span 2;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip strong {
  margin-top: 0;
  font-size: 1.15rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip p {
  margin: 0;
  font-size: 0.9rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .page-shell {
  width: min(100% - 1.5rem, 980px);
  padding-top: 0.9rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(235px, 0.75fr);
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 26px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .hero h1 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 6.5vw, 4.1rem);
  line-height: 0.98;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .hero-panel {
  min-height: 19rem;
  padding: 1.15rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .hero-panel strong {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .content-section {
  margin-top: 1rem;
  padding: 1.3rem;
  border-radius: 24px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .intro-route {
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .form-ladder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .form-ladder article {
  min-height: 9.5rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] #practica .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .mode-card {
  min-height: 15rem;
  padding: 1rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .two-col-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (orientation: landscape) and (min-width: 680px) {
  html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  }

  html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero h1 {
    font-size: clamp(2.3rem, 5.6vw, 3.3rem);
  }

  html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-panel {
    align-content: space-between;
  }

  html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card p {
    min-height: 2.9rem;
  }
}

/* App-style third concept: stronger scenes and operable swipe decks. */
.app-deck-pagination {
  display: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] {
  background:
    radial-gradient(circle at 4% 18%, rgba(21, 101, 245, 0.08), transparent 16rem),
    radial-gradient(circle at 96% 72%, rgba(45, 212, 191, 0.1), transparent 18rem),
    #edf3f9;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero {
  isolation: isolate;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero-panel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 40px rgba(3, 17, 38, 0.2);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] #practica,
:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .materials-section {
  border: 1px solid rgba(16, 42, 67, 0.06);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 52px rgba(16, 42, 67, 0.08);
  backdrop-filter: blur(18px);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .materials-section {
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.16), transparent 15rem),
    rgba(247, 255, 252, 0.9);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section {
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 128, 102, 0.22), transparent 16rem),
    radial-gradient(circle at 4% 92%, rgba(45, 212, 191, 0.18), transparent 18rem),
    linear-gradient(145deg, #071d3d, #0b3974);
  box-shadow: 0 24px 58px rgba(7, 29, 61, 0.22);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section .eyebrow {
  color: #72ead8;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section .section-heading h2 {
  color: #fff;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-card a:active {
  transform: scale(0.985);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .app-snap-deck:focus-visible {
  outline: 3px solid rgba(21, 101, 245, 0.28);
  outline-offset: 5px;
  border-radius: 24px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero {
  overflow: visible;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero h1 {
  max-width: 14ch;
  font-size: clamp(2.05rem, 9.5vw, 2.68rem);
  line-height: 1;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-panel {
  transform: translateY(1rem);
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .intro-route {
  padding-top: 1.8rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] #practica,
html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .grammar-section,
html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .materials-section {
  margin: 1.4rem 0.65rem 0;
  padding: 1.25rem 0.85rem 1rem;
  border-radius: 34px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .grammar-section {
  padding-bottom: 1.15rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] :where(#practica, .grammar-section, .materials-section) .feature-grid {
  margin-right: -0.85rem;
  padding-right: 0.85rem;
  padding-bottom: 0.35rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card {
  flex-basis: min(80vw, 18.7rem);
  min-height: 16.8rem;
  border: 1px solid rgba(16, 42, 67, 0.055);
  box-shadow: 0 14px 36px rgba(7, 29, 61, 0.14);
  scroll-snap-stop: always;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .app-deck-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.15rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .app-deck-pagination button {
  position: relative;
  width: 36px;
  min-width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .app-deck-pagination button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9db0c2;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, background 180ms ease;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .app-deck-pagination button.is-active::before {
  width: 24px;
  background: var(--home-app-blue);
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .grammar-section .app-deck-pagination button::before {
  background: rgba(255, 255, 255, 0.35);
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .grammar-section .app-deck-pagination button.is-active::before {
  background: var(--home-app-yellow);
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .materials-section .app-deck-pagination button.is-active::before {
  background: #0ea58c;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  margin-top: 1.4rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] #practica,
html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .grammar-section,
html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .materials-section {
  margin-top: 1.35rem;
  padding: 1.45rem;
  border-radius: 32px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .grammar-section .mode-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(3, 17, 38, 0.24);
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  margin-top: 1.35rem;
}

@media (prefers-reduced-motion: reduce) {
  :where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
    body[data-page="home"][data-mobile-study="true"] .mode-card,
  :where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
    body[data-page="home"][data-mobile-study="true"] .app-deck-pagination button::before {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
    body[data-page="home"][data-mobile-study="true"] .hero,
  :where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
    body[data-page="home"][data-mobile-study="true"] .content-section,
  :where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
    body[data-page="home"][data-mobile-study="true"] .routine-strip {
    animation: home-study-reveal 420ms both;
  }

  :where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
    body[data-page="home"][data-mobile-study="true"] .content-section:nth-of-type(2) {
    animation-delay: 70ms;
  }

  :where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
    body[data-page="home"][data-mobile-study="true"] .content-section:nth-of-type(3) {
    animation-delay: 120ms;
  }
}

@keyframes home-study-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* App-style second concept: intentionally replaces the responsive-web look. */
.home-app-dock {
  display: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] {
  --home-app-bg: #edf2f8;
  --home-app-surface: #ffffff;
  --home-app-ink: #102a43;
  --home-app-muted: #60758a;
  --home-app-blue: #1565f5;
  --home-app-navy: #071d3d;
  --home-app-aqua: #2dd4bf;
  --home-app-yellow: #ffd447;
  --home-app-coral: #ff8066;
  padding-bottom: 0;
  color: var(--home-app-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.1), transparent 18rem),
    var(--home-app-bg);
  font-family: "Trebuchet MS", "Aptos", sans-serif;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] :where(h1, h2, h3, strong, .button) {
  font-family: inherit;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .site-header {
  border: 0;
  color: #fff;
  background: rgba(7, 29, 61, 0.96);
  box-shadow: 0 8px 28px rgba(7, 29, 61, 0.2);
  backdrop-filter: blur(20px);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .navbar {
  width: calc(100% - 1.25rem);
  min-height: 3.8rem;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .navbar-brand {
  color: #fff;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .navbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .navbar-toggle {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .navbar-toggle span {
  background: #fff;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .navbar-panel {
  color: var(--home-app-ink);
  font-family: inherit;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .home-app-dock {
  z-index: 48;
  border: 1px solid rgba(16, 42, 67, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 50px rgba(7, 29, 61, 0.2);
  backdrop-filter: blur(20px);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .home-app-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  color: #74879a;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .home-app-dock a[aria-current="page"] {
  color: var(--home-app-blue);
  background: #eaf2ff;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .home-app-dock svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .page-shell {
  --home-study-layout: app;
  max-width: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.35), transparent 14rem),
    radial-gradient(circle at 10% 90%, rgba(21, 101, 245, 0.8), transparent 18rem),
    linear-gradient(145deg, #071d3d 0%, #0a3978 58%, #1565f5 100%);
  box-shadow: 0 24px 55px rgba(7, 29, 61, 0.28);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero::before {
  display: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero .eyebrow {
  color: #8be8dc;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero h1 {
  color: #fff;
  text-wrap: balance;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero-lead {
  color: rgba(255, 255, 255, 0.78);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .button-primary {
  color: var(--home-app-navy);
  background: var(--home-app-yellow);
  box-shadow: 0 12px 28px rgba(255, 212, 71, 0.2);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero-panel {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero-panel span {
  color: var(--home-app-navy);
  background: var(--home-app-yellow);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .hero-panel p {
  color: rgba(255, 255, 255, 0.76);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .content-section {
  border: 0;
  background: transparent;
  box-shadow: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .section-heading h2 {
  color: var(--home-app-ink);
  text-wrap: balance;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .section-heading p:not(.eyebrow) {
  color: var(--home-app-muted);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .eyebrow {
  color: var(--home-app-blue);
  font-size: 0.72rem;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article,
:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .feature-card {
  border: 0;
  background: var(--home-app-surface);
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.1);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article:nth-child(1),
:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article:nth-child(2),
:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article:nth-child(3) {
  background: var(--home-app-surface);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .form-ladder article::before {
  display: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .feature-number {
  color: #fff;
  background: var(--home-app-blue);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .feature-card::after {
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  background: rgba(21, 101, 245, 0.07);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(n) {
  border-top: 0;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-icon {
  color: var(--home-app-navy);
  background: #dbeafe;
  box-shadow: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n + 2) .mode-icon {
  background: #ccfbf1;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n + 3) .mode-icon {
  background: #fef3c7;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-grid .mode-card:nth-child(4n) .mode-icon {
  background: #ffddd5;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-card p {
  color: var(--home-app-muted);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .mode-card a {
  border: 0;
  color: #fff;
  background: var(--home-app-blue);
  box-shadow: 0 10px 22px rgba(21, 101, 245, 0.18);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section,
:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .materials-section {
  background: transparent;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .routine-strip {
  border: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.26), transparent 12rem),
    linear-gradient(135deg, #071d3d, #0b438f);
  box-shadow: 0 18px 40px rgba(7, 29, 61, 0.22);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .routine-strip article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .routine-strip p {
  color: rgba(255, 255, 255, 0.72);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .site-footer {
  border: 0;
  color: var(--home-app-muted);
  background: transparent;
  box-shadow: none;
  font-family: inherit;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .home-app-dock {
  position: fixed;
  right: 0.55rem;
  bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  left: 0.55rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.38rem;
  border-radius: 24px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .home-app-dock a {
  flex-direction: column;
  gap: 0.25rem;
  border-radius: 18px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .home-app-dock span {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .page-shell {
  width: 100%;
  padding: 0 0 1.25rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero {
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 0;
  padding: 1.45rem 1rem 1.25rem;
  border-radius: 0 0 36px 36px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero h1 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 10.6vw, 2.85rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-lead {
  font-size: 0.98rem;
  line-height: 1.55;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .button {
  min-width: 0;
  min-height: 52px;
  padding-inline: 0.75rem;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.15;
  text-align: center;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-panel {
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: 22px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .verb-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .verb-stack strong {
  padding: 0.65rem 0.3rem;
  border-radius: 14px;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
  text-align: center;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .content-section {
  margin-top: 0;
  padding: 1.45rem 1rem 0;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .section-heading h2 {
  font-size: clamp(1.7rem, 7.8vw, 2.15rem);
  line-height: 1.04;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .intro-route {
  display: block;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder {
  position: relative;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.05rem;
  padding-left: 0.2rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 1.55rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--home-app-blue), var(--home-app-aqua), var(--home-app-yellow));
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder article {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.12rem 0.75rem;
  min-height: 0;
  padding: 0.9rem;
  border-radius: 22px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .feature-number {
  z-index: 1;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder article:nth-child(2) .feature-number {
  background: #0ea58c;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder article:nth-child(3) .feature-number {
  color: var(--home-app-navy);
  background: var(--home-app-yellow);
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder h3,
html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder p {
  grid-column: 2;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .form-ladder h3 {
  font-size: 1.16rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] :where(.feature-grid, .two-col-grid) {
  display: flex;
  grid-template-columns: none;
  gap: 0.85rem;
  margin-right: -1rem;
  padding: 0.2rem 1rem 1rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] :where(.feature-grid, .two-col-grid)::-webkit-scrollbar {
  display: none;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card {
  display: flex;
  flex: 0 0 min(82vw, 19rem);
  min-height: 17.5rem;
  padding: 1.05rem;
  border-radius: 26px;
  scroll-snap-align: start;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-icon {
  grid-row: auto;
  width: 3.15rem;
  min-width: 3.15rem;
  min-height: 3.15rem;
  margin-bottom: 1.15rem;
  border-radius: 17px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card h3 {
  align-self: auto;
  font-size: 1.35rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card p {
  grid-column: auto;
  font-size: 0.95rem;
  line-height: 1.55;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card a {
  grid-column: auto;
  min-height: 50px;
  margin-top: auto;
  border-radius: 16px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 1.45rem 1rem 0;
  padding: 0.85rem;
  border-radius: 28px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.75rem;
  padding: 0.75rem;
  border-radius: 18px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip span {
  grid-row: 1 / span 2;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip strong {
  margin: 0;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip p {
  margin: 0;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .site-footer {
  margin-top: 1.8rem;
  padding: 1rem 1rem 0.5rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] {
  padding-left: 6.2rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .site-header {
  width: calc(100% + 6.2rem);
  margin-left: -6.2rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .home-app-dock {
  position: fixed;
  top: 5rem;
  bottom: 0.85rem;
  left: 0.7rem;
  display: flex;
  width: 5rem;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 26px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .home-app-dock a {
  min-height: 4.3rem;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 20px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .home-app-dock a:last-child {
  margin-top: auto;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .home-app-dock span {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .page-shell {
  width: min(100% - 1.5rem, 1080px);
  padding: 1rem 0 2rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 1.1rem;
  padding: 1.6rem;
  border-radius: 32px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 6.2vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .hero-panel {
  min-height: 20rem;
  border-radius: 24px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .content-section {
  margin-top: 0;
  padding: 1.7rem 0.2rem 0;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .intro-route {
  display: block;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .form-ladder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .form-ladder article {
  min-height: 10rem;
  padding: 1rem;
  border-radius: 24px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .feature-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .feature-grid,
html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] #practica .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .grammar-section .feature-grid,
html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .two-col-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .mode-card {
  min-height: 16.5rem;
  padding: 1.05rem;
  border-radius: 26px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.7rem 0.2rem 0;
  padding: 0.9rem;
  border-radius: 30px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .routine-strip article {
  border-radius: 22px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .site-footer {
  width: calc(100% - 1.5rem);
  margin: 1.5rem auto 0;
}

@media (orientation: landscape) and (min-width: 680px) {
  html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .feature-grid {
    display: flex;
    grid-template-columns: none;
  }

  html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card {
    flex-basis: min(42vw, 20rem);
  }
}

/* App3 final cascade: this block must remain after the preserved app2 rules. */
:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] {
  background:
    radial-gradient(circle at 4% 18%, rgba(21, 101, 245, 0.08), transparent 16rem),
    radial-gradient(circle at 96% 72%, rgba(45, 212, 191, 0.1), transparent 18rem),
    #edf3f9;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] #practica,
:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .materials-section {
  border: 1px solid rgba(16, 42, 67, 0.06);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 52px rgba(16, 42, 67, 0.08);
  backdrop-filter: blur(18px);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .materials-section {
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.16), transparent 15rem),
    rgba(247, 255, 252, 0.94);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section {
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 128, 102, 0.22), transparent 16rem),
    radial-gradient(circle at 4% 92%, rgba(45, 212, 191, 0.18), transparent 18rem),
    linear-gradient(145deg, #071d3d, #0b3974);
  box-shadow: 0 24px 58px rgba(7, 29, 61, 0.22);
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section .eyebrow {
  color: #72ead8;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section .section-heading h2 {
  color: #fff;
}

:where(html[data-ivt-device="mobile"], html[data-ivt-device="tablet"])
  body[data-page="home"][data-mobile-study="true"] .grammar-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero {
  overflow: visible;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero h1 {
  max-width: 14ch;
  font-size: clamp(2.05rem, 9.5vw, 2.68rem);
  line-height: 1;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .hero-panel {
  transform: translateY(1rem);
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .intro-route {
  padding-top: 1.8rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] #practica,
html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .grammar-section,
html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .materials-section {
  margin: 1.4rem 0.65rem 0;
  padding: 1.25rem 0.85rem 1rem;
  border-radius: 34px;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .grammar-section {
  padding-bottom: 1.15rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] :where(#practica, .grammar-section, .materials-section) .feature-grid {
  margin-right: -0.85rem;
  padding-right: 0.85rem;
  padding-bottom: 0.35rem;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .mode-card {
  flex-basis: min(80vw, 18.7rem);
  min-height: 16.8rem;
  border: 1px solid rgba(16, 42, 67, 0.055);
  box-shadow: 0 14px 36px rgba(7, 29, 61, 0.14);
  scroll-snap-stop: always;
}

html[data-ivt-device="mobile"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  margin-top: 1.4rem;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] #practica,
html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .grammar-section,
html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .materials-section {
  margin-top: 1.35rem;
  padding: 1.45rem;
  border-radius: 32px;
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .grammar-section .mode-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(3, 17, 38, 0.24);
}

html[data-ivt-device="tablet"] body[data-page="home"][data-mobile-study="true"] .routine-strip {
  margin-top: 1.35rem;
}
