/* Ad landing page (/free-ielts-mock-test) and the product screenshots tour (homepage too) */

/* ---------- screenshot frames (shared) ---------- */
.pt-frame { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(20, 21, 31, .08);
  box-shadow: 0 30px 60px -24px rgba(40, 34, 120, .35), 0 12px 24px -12px rgba(20, 21, 31, .18); }
.pt-frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f2f7; border-bottom: 1px solid #e5e7ef; }
.pt-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d4d7e2; }
.pt-frame-bar span:nth-child(1) { background: #ff6b6b; } .pt-frame-bar span:nth-child(2) { background: #ffc145; } .pt-frame-bar span:nth-child(3) { background: #3ecf8e; }
.pt-frame-bar em { margin: 0 auto; font-style: normal; font-size: 11.5px; color: var(--ink-faint); background: #fff; border-radius: 6px; padding: 2px 14px; transform: translateX(-22px); }
.pt-frame img { display: block; width: 100%; height: auto; }
.pt-phone { margin: 0; width: 230px; border-radius: 34px; padding: 10px; background: #14151f; box-shadow: 0 30px 60px -20px rgba(20, 21, 31, .5); }
.pt-phone img { display: block; width: 100%; height: auto; border-radius: 26px; }

/* ---------- tabbed tour (shared) ---------- */
.pt-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.pt-tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font: inherit; font-weight: 600; font-size: 14.5px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.pt-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.pt-tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.pt-panel[data-hidden] { display: none; }
.pt-panel { animation: ptIn .35s ease; }
@keyframes ptIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pt-caption { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.pt-caption h3 { margin: 0 0 4px; font-size: 20px; }
.pt-caption p { margin: 0; color: var(--ink-soft); }
.pt-tour .pt-frame { max-width: 980px; margin: 0 auto; }
.no-js .pt-panel[data-hidden] { display: block; margin-top: 28px; }

/* Homepage block */
.home-tour { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, #f3f2ff 0%, #ffffff 100%); padding: 56px 24px 64px; margin-bottom: 8px; }
.home-tour .home-section-head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.home-tour .home-tour-cta { text-align: center; margin: 26px 0 0; }
.home-tour .home-tour-cta .lede { display: block; margin-top: 8px; }

/* ---------- landing page ---------- */
body.lp-page { overflow-x: hidden; background: #fff; }
body.lp-page main.page { max-width: none; padding: 0; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp-topbar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #eceef6; box-shadow: 0 6px 20px -14px rgba(20, 21, 31, .25); }
.lp-topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lp-login { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.lp-login:hover { color: var(--primary); }
.lp-top-cta { padding: 9px 18px; }

.lp-eyebrow { display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.lp-hero { position: relative; overflow: hidden; padding: 56px 0 110px;
  background: radial-gradient(700px 420px at 92% 8%, rgba(124, 58, 237, .28), transparent 65%),
              radial-gradient(620px 420px at 70% 100%, rgba(14, 165, 233, .22), transparent 65%),
              radial-gradient(520px 360px at 0% 20%, rgba(79, 70, 229, .14), transparent 65%),
              linear-gradient(160deg, #eef0ff 0%, #f6f3ff 45%, #ecf8fd 100%); }
.lp-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(79, 70, 229, .16) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.lp-hero > .lp-wrap { position: relative; }
.lp-hero-inner { position: relative; }
.lp-slide { min-height: 470px; }
.lp-slide { display: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.lp-slide.is-active { display: grid; animation: lpIn .55s ease; }
@keyframes lpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lp-slide h1, .lp-slide .lp-h1 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; color: var(--ink); }
.lp-lede { font-size: 18.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 26px; max-width: 520px; }
.lp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.btn.lp-btn-main { font-size: 17px; padding: 15px 26px; border-radius: 12px; box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .7);
  background: linear-gradient(135deg, #4f46e5, #7c3aed); border: 0; }
.btn.lp-btn-main:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(79, 70, 229, .8); }
.lp-btn-ghost { font-weight: 600; color: var(--primary); text-decoration: none; }
.lp-btn-ghost:hover { text-decoration: underline; }
.lp-mini { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.lp-slide-shot { position: relative; }
.lp-hero-frame { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.lp-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff;
  font-weight: 700; font-size: 14px; color: var(--ink); box-shadow: 0 14px 30px -12px rgba(20, 21, 31, .35); border: 1px solid var(--border); white-space: nowrap; }
.lp-float b { font-size: 18px; }
.lp-float-1 { left: -26px; bottom: 34px; animation: lpBob 5s ease-in-out infinite; }
.lp-float-2 { right: -10px; top: -18px; animation: lpBob 5s ease-in-out 1.2s infinite; }
@keyframes lpBob { 50% { transform: translateY(-8px); } }
.lp-dots { display: flex; gap: 8px; margin-top: 18px; }
.lp-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: #c9cbe0; cursor: pointer; transition: all .25s; }
.lp-dots button.is-active { width: 30px; background: var(--primary); }

.lp-stats { position: relative; z-index: 2; margin-top: -72px; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-stat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e8e9f4; border-radius: 16px; padding: 18px 18px;
  box-shadow: 0 18px 40px -22px rgba(40, 34, 120, .35); }
.lp-stat i { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-style: normal; font-size: 22px;
  background: linear-gradient(135deg, #eef0fe, #e6f6fb); }
.lp-stat strong { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.01em;
  background: linear-gradient(90deg, #4338ca, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stat span { display: block; color: var(--ink-soft); font-size: 13.5px; line-height: 1.35; }
.lp-section { padding: 80px 0; }
.lp-alt { background: #f7f7fc; }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.lp-head h2, .lp-mobile h2, .lp-final h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 12px; }
.lp-head p { color: var(--ink-soft); font-size: 17.5px; margin: 0; }

.lp-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.lp-plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.lp-plan li { position: relative; padding: 7px 0 7px 30px; color: var(--ink-soft); }
.lp-plan li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.lp-plan-name { margin: 0; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.lp-plan-price { margin: 6px 0 18px; font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.lp-plan-price small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.lp-plan-pro { border: 2px solid var(--primary); box-shadow: 0 24px 50px -24px rgba(79, 70, 229, .45); }
.lp-ribbon { position: absolute; top: -13px; right: 24px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.lp-block { display: block; text-align: center; width: 100%; box-sizing: border-box; }

.lp-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; margin: 0 0 88px; }
.lp-feature:last-child { margin-bottom: 0; }
.lp-flip .lp-feature-copy { order: 2; }
.lp-tag { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 99px; margin-bottom: 12px; }
.lp-feature h3 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.lp-feature p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
.lp-ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.lp-ticks li { position: relative; padding: 6px 0 6px 30px; }
.lp-ticks li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.lp-feature-shot { position: relative; }
.lp-inset { position: absolute; right: -18px; bottom: -40px; width: 42%; margin: 0; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 24px 40px -18px rgba(20, 21, 31, .45); }
.lp-inset img { display: block; width: 100%; height: auto; }

.lp-mobile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-mobile p { color: var(--ink-soft); font-size: 17px; }
.lp-phones { display: flex; justify-content: center; gap: 22px; }
.lp-phones .pt-phone:nth-child(2) { transform: translateY(40px); }

.lp-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.lp-track { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.lp-track span { font-size: 34px; }
.lp-track h3 { margin: 10px 0 8px; font-size: 21px; }
.lp-track p { color: var(--ink-soft); margin: 0; }

.lp-steps { list-style: none; padding: 0; margin: 0 auto 36px; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.lp-steps li { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; text-align: center; }
.lp-steps b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 19px; }
.lp-steps h3 { margin: 14px 0 6px; font-size: 19px; }
.lp-steps p { margin: 0; color: var(--ink-soft); }
.lp-center { text-align: center; margin: 0; }

.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-tcard { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: 0 18px 40px -26px rgba(40, 34, 120, .35); display: flex; flex-direction: column; gap: 14px; }
.lp-tcard-top { display: flex; align-items: center; gap: 14px; }
.lp-tphoto { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px #c7d2fe; }
.lp-tinitials { display: grid; place-items: center; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-weight: 800; font-size: 21px; }
.lp-twho { flex: 1; min-width: 0; }
.lp-twho strong { display: block; font-size: 17px; }
.lp-twho span { display: block; color: var(--ink-soft); font-size: 14px; }
.lp-twho .lp-tmonth { font-size: 12.5px; color: var(--ink-faint); }
.lp-tband { flex: 0 0 auto; text-align: center; background: linear-gradient(135deg, #059669, #047857); color: #fff; border-radius: 14px; padding: 6px 12px; }
.lp-tband small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.lp-tband b { font-size: 26px; line-height: 1; }
.lp-tsubs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lp-tsubs span { background: #f5f6fb; border-radius: 10px; padding: 7px 4px; text-align: center; }
.lp-tsubs small { display: block; font-size: 11px; color: var(--ink-faint); }
.lp-tsubs b { font-size: 16px; }
.lp-tcard blockquote { margin: 0; color: var(--ink-soft); font-style: italic; line-height: 1.55; }
.lp-tachv { margin: auto 0 0; font-size: 14px; font-weight: 600; color: var(--success-dark, #047857); }

.lp-curswitch { display: inline-flex; margin-top: 22px; padding: 4px; border-radius: 999px; background: #eef0f8; border: 1px solid #e2e5ee; }
.lp-curswitch button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink-soft); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.lp-curswitch button[aria-pressed="true"] { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px -2px rgba(20, 21, 31, .2); }

body.lp-page .footer-full { margin-top: 0; }

.lp-faq { max-width: 820px; }
.lp-q { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; margin: 0 0 12px; }
.lp-q summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--primary); }
.lp-q[open] summary::after { content: '–'; }
.lp-q p { margin: 0 0 18px; color: var(--ink-soft); }

.lp-final { background: linear-gradient(120deg, #4338ca, #6d28d9 60%, #0e7490); color: #fff; text-align: center; padding: 72px 0; }
.lp-final h2 { color: #fff; }
.lp-final p { color: #e0e7ff; font-size: 17px; margin: 0 0 26px; }
.btn.lp-btn-white { background: #fff; color: var(--primary-dark); font-size: 17px; padding: 15px 28px; border-radius: 12px; border: 0; font-weight: 700; }
.btn.lp-btn-white:hover { background: #eef0fe; }

.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
  box-shadow: 0 -8px 24px -12px rgba(20, 21, 31, .3); display: none; }
.lp-sticky .btn { padding: 13px; }

@media (max-width: 960px) {
  .lp-slide, .lp-feature, .lp-mobile { grid-template-columns: 1fr; gap: 30px; }
  .lp-flip .lp-feature-copy { order: 0; }
  .lp-hero { padding: 32px 0 90px; }
  .lp-hero-inner { min-height: 0; }
  .lp-hero-frame { transform: none; }
  .lp-float-1 { left: 8px; bottom: -14px; } .lp-float-2 { right: 8px; top: -14px; }
  .lp-stats { margin-top: -56px; }
  .lp-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-stat { padding: 14px; gap: 10px; } .lp-stat i { width: 38px; height: 38px; font-size: 18px; } .lp-stat strong { font-size: 21px; } .lp-stat span { font-size: 12.5px; }
  .lp-offer, .lp-tracks, .lp-steps, .lp-quotes { grid-template-columns: 1fr; }
  .lp-section { padding: 56px 0; }
  .lp-feature { margin-bottom: 64px; }
  .lp-inset { position: static; width: 70%; margin: -40px 0 0 auto; }
  .lp-slide { min-height: 0; }
  .lp-dots { justify-content: center; margin-top: 30px; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-login { display: none; }
  .lp-lede { font-size: 17px; }
  .lp-float { font-size: 12.5px; padding: 8px 10px; }
  .pt-phone { width: 46%; padding: 6px; border-radius: 24px; } .pt-phone img { border-radius: 19px; }
  .lp-phones { gap: 12px; }
  .lp-sticky:not([hidden]) { display: block; }
  body.lp-page footer { padding-bottom: 80px; }
  .pt-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
  .pt-tabs button { flex: 0 0 auto; font-size: 13.5px; padding: 8px 13px; }
  .home-tour { padding: 40px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-slide.is-active, .pt-panel { animation: none; }
  .lp-float { animation: none; }
}
