.try-page {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: #eef2f8;
  min-height: 100vh;
}

.try-layout {
  display: grid;
  grid-template-columns: minmax(360px, 5fr) 7fr;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  height: calc(100vh - 64px);
  box-sizing: border-box;
}

.try-chat-col,
.try-paper-col {
  min-height: 0;
}

.trial-chat--page {
  position: static;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
}

.trial-chat--page .trial-chat__title {
  font-size: 1.15rem;
  margin: 0;
}

.trial-chat--page .trial-chat__body {
  padding: 1.25rem;
}

.trial-chat--page .trial-msg {
  font-size: 1rem;
}

.trial-chat--page .trial-chip {
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}

.try-paper-col {
  overflow-y: auto;
  border-radius: 20px;
  background: #e3ecf8;
  padding: 24px;
  box-sizing: border-box;
}

.try-empty {
  max-width: 560px;
  margin: 6vh auto 0;
  text-align: center;
  color: #334155;
}

.try-empty__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #162953, #1565c0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 12px 30px rgba(21, 101, 192, 0.3);
}

.try-empty__title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.try-empty__lead {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.7;
}

.try-steps {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: start;
}

.try-steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.try-steps span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1565c0;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.try-empty__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.try-empty__badges span {
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.try-empty__badges i {
  color: #0d47a1;
}

.try-toolbar {
  max-width: 820px;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.try-toolbar .trial-download {
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
}

.try-toolbar__locks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.try-lock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #94a3b8;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: start;
  cursor: pointer;
}

.try-lock span {
  flex: 1;
  color: #334155;
  font-weight: 600;
}

.try-lock:hover {
  border-color: #0d47a1;
  box-shadow: 0 4px 12px rgba(27, 219, 242, 0.12);
}

.try-sheet {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 40px 44px;
  color: #111;
  min-height: 70vh;
  box-sizing: border-box;
}

.try-sheet__title {
  border: 3px double #111;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  padding: 0.9rem;
}

.try-sheet__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #111;
  border-top: 0;
  background: #f3f4f6;
}

.try-sheet__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem;
  border-inline-start: 1px solid #111;
}

.try-sheet__cell:first-child {
  border-inline-start: 0;
}

.try-sheet__cell small {
  color: #555;
  font-size: 0.75rem;
}

.try-sheet__cell strong {
  font-size: 1.05rem;
}

.try-sheet__student {
  margin: 1.1rem 0 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid #111;
  font-weight: 600;
}

.try-q {
  padding: 1rem 0;
  border-bottom: 1px dashed #d1d5db;
  animation: trial-rise 0.4s ease-out;
}

.try-q__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.try-q__num {
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 24px;
}

.try-q__body {
  flex: 1;
  min-width: 0;
}

.try-q__type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d47a1;
  background: #e0f7fb;
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.35rem;
}

.try-q__passage {
  background: #f8fafc;
  border-inline-start: 3px solid #cbd5e1;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  color: #374151;
  line-height: 1.7;
  white-space: pre-wrap;
}

.try-q__text {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.75;
}

.try-q__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.25rem;
  margin-top: 0.6rem;
}

.try-q__choice {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 1.02rem;
}

.try-q__letter {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1.5px solid #111;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.try-q__lines {
  margin-top: 0.6rem;
  height: 3.6rem;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 1.15rem, #cbd5e1 1.15rem, #cbd5e1 1.2rem);
}

.try-q__mark {
  color: #555;
  font-size: 0.85rem;
  white-space: nowrap;
}

.try-sheet__hidden {
  position: relative;
}

.try-q--ghost {
  filter: blur(3px);
  opacity: 0.7;
}

.try-sheet__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.95));
}

.try-sheet__overlay .trial-download {
  padding: 0.6rem 1.2rem;
}

.try-skeleton {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: try-shimmer 1.4s infinite linear;
  margin: 0.9rem 0;
}

.try-skeleton--short {
  width: 60%;
}

.try-sheet--writing .try-sheet__writing-label {
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 1.5rem;
  text-align: center;
}

@keyframes try-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 991.98px) {
  .try-layout {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px;
    gap: 12px;
  }

  .try-chat-col {
    height: calc(100vh - 64px - 24px);
    min-height: 480px;
  }

  .try-paper-col {
    padding: 12px;
    overflow: visible;
  }

  .try-sheet {
    padding: 20px 16px;
    min-height: 0;
  }

  .try-q__choices,
  .try-toolbar__locks {
    grid-template-columns: 1fr;
  }

  .try-empty {
    margin-top: 1rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .try-q,
  .try-skeleton {
    animation: none;
  }
}

.try-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.try-info__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.try-info__head h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #162953;
}

.try-info__head p {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.8;
}

.try-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.try-stat {
  background: linear-gradient(135deg, #162953, #1565c0);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.2);
}

.try-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #1bdbf2;
}

.try-stat span {
  font-weight: 600;
  opacity: 0.92;
}

.try-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.try-feature {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.try-feature i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1565c0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.try-feature h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #162953;
}

.try-feature p {
  color: #64748b;
  margin: 0;
  line-height: 1.75;
}

.try-compare-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.try-compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.try-compare th,
.try-compare td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid #eef2f7;
}

.try-compare th:first-child,
.try-compare td:first-child {
  text-align: start;
  font-weight: 600;
  color: #1e293b;
}

.try-compare thead th {
  font-weight: 800;
  color: #162953;
  background: #f8fafc;
}

.try-compare th small {
  display: block;
  font-weight: 600;
  color: inherit;
  opacity: 0.9;
}

.try-compare thead th.is-featured {
  background: #1565c0;
  color: #fff;
}

.try-compare td.is-featured {
  background: #eff6ff;
  font-weight: 700;
  color: #0d47a1;
}

.try-compare .fa-check {
  color: #16a34a;
}

.try-compare .fa-times,
.try-compare .fa-minus {
  color: #cbd5e1;
}

.try-cta-band {
  max-width: 1200px;
  margin: 48px auto;
  border-radius: 24px;
  padding: 44px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #162953, #1565c0);
  box-sizing: border-box;
}

.try-cta-band h2 {
  font-weight: 800;
  font-size: 1.7rem;
}

.try-cta-band p {
  opacity: 0.9;
  font-size: 1.05rem;
}

.try-cta-band__button {
  display: inline-block;
  margin-top: 10px;
  background: #1bdbf2;
  color: #162953;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.8rem 2.2rem;
  text-decoration: none;
}

.try-cta-band__button:hover {
  background: #fff;
  color: #162953;
}

@media (max-width: 991.98px) {
  .try-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .try-features {
    grid-template-columns: 1fr;
  }

  .try-info {
    padding: 32px 12px 0;
  }

  .try-cta-band {
    margin: 32px 12px;
  }
}

.trial-chat--page .trial-chat__title,
.try-cta-band h2 {
  color: #fff;
}

.try-ad {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.try-ad__status {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.try-ad__spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #162953, #1565c0);
  color: #1bdbf2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  animation: try-bob 1.6s ease-in-out infinite;
}

@keyframes try-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.try-ad__stage {
  font-weight: 800;
  font-size: 1.15rem;
  color: #162953;
  min-height: 1.8em;
}

.try-ad__bar {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 12px 0 10px;
}

.try-ad__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1565c0, #1bdbf2);
  transition: width 0.5s linear;
}

.try-ad__hint {
  color: #64748b;
  font-size: 0.92rem;
}

.try-ad__slides {
  display: grid;
  position: relative;
  min-height: 360px;
}

.try-ad__slide {
  grid-area: 1 / 1;
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  padding: 26px 28px;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.try-ad__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.try-ad__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: #1565c0;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.try-ad__slide h3 {
  margin: 12px 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #162953;
}

.try-ad__price {
  color: #64748b;
  margin-bottom: 8px;
}

.try-ad__price strong {
  font-size: 1.8rem;
  color: #1565c0;
}

.try-ad__slide ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.try-ad__slide li {
  font-size: 1.02rem;
  color: #1e293b;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.try-ad__slide li i {
  color: #16a34a;
}

.try-ad__numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.try-ad__numbers div {
  background: linear-gradient(135deg, #162953, #1565c0);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  color: #fff;
}

.try-ad__numbers strong {
  display: block;
  font-size: 1.5rem;
  color: #1bdbf2;
}

.try-ad__numbers span {
  font-size: 0.82rem;
}

.try-ad__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.try-ad__primary,
.try-ad__ghost {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 800;
  text-decoration: none;
}

.try-ad__primary {
  background: linear-gradient(135deg, #162953, #1565c0);
  color: #fff;
}

.try-ad__primary:hover {
  color: #1bdbf2;
}

.try-ad__ghost {
  background: #fff;
  color: #1565c0;
  border: 1.5px solid #1565c0;
}

@media (max-width: 991.98px) {
  .try-ad__slides {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .try-ad__spinner {
    animation: none;
  }
}

.try-ad__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.try-ad__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 0.3s, background 0.3s;
}

.try-ad__dots span.is-active {
  width: 22px;
  background: #1565c0;
}

.try-compare {
  min-width: 680px;
}

/* Keep long lesson names and paper content inside their grid columns. */
.try-chat-col,
.try-paper-col,
.try-q__body {
  min-width: 0;
}

.trial-chat--page .trial-chat__header,
.trial-chat--page .trial-chat__input,
.trial-chat--page .trial-chat__body > * {
  flex-shrink: 0;
}

.trial-chat--page .trial-chat__body {
  min-height: 0;
  overscroll-behavior-y: contain;
}

.trial-chat--page .trial-chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .try-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .try-chat-col {
    height: calc(100svh - 88px);
    height: calc(100dvh - 88px);
    min-height: 320px;
    max-height: 760px;
  }

  .trial-chat--page {
    inset: auto;
    max-width: 100%;
    border-radius: 16px;
  }

  .try-compare th:first-child,
  .try-compare td:first-child {
    position: sticky;
    inset-inline-start: 0;
    background: #fff;
    box-shadow: 0 0 5px rgb(15 23 42 / 8%);
    width: 140px;
    min-width: 140px;
    z-index: 1;
  }

  .try-compare th,
  .try-compare td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .try-layout {
    padding: 8px;
    gap: 16px;
  }

  .try-chat-col {
    height: calc(100svh - 88px);
    height: calc(100dvh - 88px);
  }

  .trial-chat--page .trial-chat__header {
    padding: 12px;
    gap: 10px;
  }

  .trial-chat--page .trial-chat__title {
    font-size: 1rem;
  }

  .trial-chat--page .trial-chat__subtitle {
    font-size: 0.72rem;
  }

  .trial-chat--page .trial-chat__body {
    padding: 12px;
  }

  .trial-chat--page .trial-msg {
    max-width: 94%;
    font-size: 0.9rem;
    padding: 9px 12px;
  }

  .trial-chat--page .trial-chip {
    font-size: 0.85rem;
    padding: 9px 12px;
    min-height: 44px;
  }

  .trial-chat--page .trial-chat__input {
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .trial-chat--page .trial-chat__field {
    min-width: 0;
    font-size: 16px;
  }

  .try-paper-col {
    padding: 12px;
    border-radius: 16px;
    overflow-wrap: anywhere;
  }

  .try-empty__icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .try-empty__title,
  .try-info__head h2,
  .try-cta-band h2 {
    font-size: 1.35rem;
    line-height: 1.7;
  }

  .try-empty__lead,
  .try-info__head p {
    font-size: 0.9rem;
  }

  .try-steps li {
    padding: 12px;
    font-size: 0.85rem;
  }

  .try-sheet {
    padding: 16px 10px;
  }

  .try-sheet__title {
    font-size: 1.1rem;
    padding: 10px;
  }

  .try-sheet__cell {
    padding: 6px 4px;
  }

  .try-sheet__cell strong {
    font-size: 0.8rem;
  }

  .try-stats {
    gap: 10px;
  }

  .try-stat {
    padding: 16px 10px;
    font-size: 0.8rem;
  }

  .try-stat strong {
    font-size: 1.6rem;
  }

  .try-ad__status,
  .try-ad__slide {
    padding: 16px;
  }

  .try-ad__slide h3 {
    font-size: 1.2rem;
  }

  .try-ad__actions {
    flex-direction: column;
    text-align: center;
  }

  .try-ad__numbers {
    gap: 6px;
  }

  .try-ad__numbers > div {
    padding: 10px 6px;
  }

  .try-cta-band {
    padding: 24px 16px;
  }
}

/* Leave the preparation panel visible beneath the sticky navigation. */
.try-paper-col {
  scroll-margin-top: 88px;
}

/* Show every plan on narrow screens without horizontal scrolling. */
@media (max-width: 767.98px) {
  .try-compare-wrap {
    overflow: visible;
    border-radius: 14px;
  }

  .try-compare,
  .try-compare thead,
  .try-compare tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .try-compare tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .try-compare thead {
    position: sticky;
    top: 76px;
    z-index: 2;
    background: #f8fafc;
    box-shadow: 0 3px 8px rgb(15 23 42 / 8%);
  }

  .try-compare thead th:first-child {
    display: none;
  }

  .try-compare th,
  .try-compare td {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px 5px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    border-inline-start: 1px solid #eef2f7;
  }

  .try-compare thead th {
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .try-compare th small {
    font-size: 0.65rem;
    line-height: 1.6;
  }

  .try-compare tbody td:first-child {
    grid-column: 1 / -1;
    position: static;
    width: auto;
    min-width: 0;
    padding: 10px 12px;
    background: #f1f5f9;
    box-shadow: none;
    font-size: 0.85rem;
    text-align: center;
    border-inline-start: 0;
  }

  .try-compare tbody td:last-child {
    background: #eff6ff;
    color: #0d47a1;
    font-weight: 700;
  }
}

/* Availability stays readable even when the external icon font cannot load. */
.try-compare .fas {
  font-family: sans-serif;
  font-style: normal;
  font-size: 1rem;
}

.try-compare .fa-check::before {
  content: "✓";
}

.try-compare .fa-times::before {
  content: "×";
}

.try-sheet {
  position: relative;
  isolation: isolate;
}

.try-sheet__watermarks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
}

.try-sheet__watermarks span {
  transform: rotate(-28deg);
  color: rgb(21 101 192 / 12%);
  font: 800 clamp(28px, 4vw, 56px) / 1.3 Arial, sans-serif;
  white-space: nowrap;
  direction: ltr;
}
