/* ============================================================
   Thank You page (/thank-you/) — page-scoped styles.
   Extends tokens from main.css (.yatharth-page-wrapper scope).

   This is the Google Ads conversion destination. Deliberately lean:
   no hero image, no carousels, no heavy decoration — the page must
   paint fast so the conversion pixel fires reliably.

   Mobile-first: base styles are 375px-ready, min-width enhances.
   ============================================================ */

/* --- CONFIRMATION HERO --- */
.ty-hero {
  padding: var(--s-5) 20px var(--s-5);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 140, 43, 0.09), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(231, 29, 57, 0.06), transparent 60%),
    #ffffff;
  text-align: center;
}

.ty-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.ty-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C8102E;
  background: rgba(231, 29, 57, 0.07);
  padding: 7px 14px;
  border-radius: 30px;
  margin: 0 0 var(--s-3);
}

/* Animated tick medallion — pure CSS, no image request. */
.ty-tick {
  width: 68px;
  height: 68px;
  margin: 0 auto var(--s-3);
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C2B 0%, #e71d39 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(231, 29, 57, 0.26);
}

.ty-tick svg {
  width: 34px;
  height: 34px;
  fill: #FFFFFF;
}

.ty-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 var(--s-2);
}

.ty-hero h1 span { color: #e71d39; }

.ty-hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 auto var(--s-2);
  max-width: 56ch;
}

.ty-hero-sub-hi {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 auto var(--s-3);
  max-width: 52ch;
}

/* --- BUTTONS --- */
.ty-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: var(--s-3);
}

.ty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ty-btn:active { transform: scale(0.97); }

.ty-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.ty-btn-wa {
  background: #15803D;
  color: #FFFFFF;
  border: 2px solid #15803D;
}

.ty-btn-wa:hover,
.ty-btn-wa:focus-visible { background: #116531; border-color: #116531; }

.ty-btn-call {
  background: #FFFFFF;
  color: #e71d39;
  border: 2px solid #e71d39;
}

.ty-btn-call:hover,
.ty-btn-call:focus-visible { background: #fff0f1; }

.ty-btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
  border: 2px solid var(--hairline);
}

.ty-btn-ghost:hover,
.ty-btn-ghost:focus-visible { background: #faf8f7; border-color: #ded8d3; }

/* On a 375px screen the three buttons stack full-width — thumb-friendly. */
@media (max-width: 479px) {
  .ty-cta-row { flex-direction: column; }
  .ty-cta-row .ty-btn { width: 100%; }
}

/* --- GENERIC SECTION SHELL --- */
.ty-section {
  padding: var(--s-6) 20px;
}

.ty-section-alt {
  background: #FBF9F8;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.ty-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* --- WHAT HAPPENS NEXT --- */
.ty-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

@media (min-width: 820px) {
  .ty-steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
}

.ty-step {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: var(--s-3);
  box-shadow: var(--e-1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

@media (min-width: 820px) {
  .ty-step { flex-direction: column; gap: 12px; }
}

.ty-step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C2B 0%, #e71d39 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ty-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 6px;
}

.ty-step p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.ty-steps-note {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: var(--s-3) auto 0;
  max-width: 62ch;
}

.ty-steps-note strong { color: var(--ink); }

/* --- KEEP EXPLORING (course links) --- */
.ty-intro {
  text-align: center;
  max-width: 68ch;
}

.ty-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 620px) {
  .ty-links { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .ty-links { grid-template-columns: repeat(3, 1fr); }
}

.ty-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  box-shadow: var(--e-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ty-link-card:hover,
.ty-link-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--e-2);
  border-color: rgba(231, 29, 57, 0.28);
}

.ty-link-card .ty-link-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}

.ty-link-card .ty-link-title svg {
  width: 16px;
  height: 16px;
  fill: #e71d39;
  flex-shrink: 0;
}

.ty-link-card .ty-link-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- WHATSAPP BAND --- */
.ty-wa-band {
  padding: 0 20px var(--s-6);
}

.ty-wa-inner {
  max-width: 1080px;
  margin: 0 auto;
  background:
    linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30)),
    linear-gradient(135deg, #FF515A 0%, #FF8C2B 100%);
  border-radius: 16px;
  padding: var(--s-4) var(--s-3);
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 81, 90, 0.2);
}

.ty-wa-inner h2 {
  font-family: var(--font-display);
  color: #FFFFFF;
  font-size: clamp(1.35rem, 4.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 12px;
}

.ty-wa-inner p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 auto var(--s-3);
  max-width: 52ch;
}

.ty-wa-inner .ty-cta-row { margin-top: 0; }

.ty-wa-inner .ty-btn-wa {
  background: #FFFFFF;
  color: #15803D;
  border-color: #FFFFFF;
}

.ty-wa-inner .ty-btn-wa:hover,
.ty-wa-inner .ty-btn-wa:focus-visible {
  background: #f2fbf5;
  border-color: #f2fbf5;
}

.ty-wa-inner .ty-btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.75);
}

.ty-wa-inner .ty-btn-ghost:hover,
.ty-wa-inner .ty-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #FFFFFF;
}

.ty-wa-note {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  margin: var(--s-2) auto 0;
}

/* --- STUDENT PORTAL STRIP --- */
.ty-portal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 var(--s-2);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ty-portal a {
  color: #e71d39;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ty-portal a:hover,
.ty-portal a:focus-visible { color: #c8102e; }

@media (prefers-reduced-motion: reduce) {
  .ty-btn,
  .ty-link-card { transition: none; }
  .ty-link-card:hover,
  .ty-link-card:focus-visible { transform: none; }
}
