/* ==========================================================================
   Smart Trader Academy — stylesheet
   Dark theme, Tamil-first, no framework.
   ========================================================================== */

:root {
  --bg:            #060a12;
  --bg-2:          #0b1120;
  --bg-3:          #0f172a;
  --card:          #111a2b;
  --card-2:        #141e31;
  --line:          #1e2b40;
  --line-soft:     #263449;

  --green:         #22c55e;
  --green-bright:  #4ade80;
  --green-dark:    #16a34a;
  --blue:          #3b82f6;
  --orange:        #f59e0b;
  --purple:        #a855f7;
  --wa:            #25d366;

  --text:          #ecf3f8;
  --muted:         #9fb0c3;
  --muted-2:       #7c8ea4;

  --radius:        14px;
  --radius-lg:     18px;
  --max:           1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: "Inter", "Noto Sans Tamil", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ta {
  font-family: "Noto Sans Tamil", "Inter", sans-serif;
  line-height: 1.9;
}

h1, h2, h3, h4 { color: #fff; margin: 0 0 .6rem; line-height: 1.3; }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 10, 18, .92);
  backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand-icon { width: 34px; height: 34px; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-line1 {
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.brand-line1 b { color: var(--green-bright); font-weight: 800; }
.brand-line2 {
  color: var(--muted-2);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav > a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav > a:hover,
.nav > a.active { color: var(--green-bright); border-bottom-color: var(--green); }

.btn-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #04220f !important;
  font-weight: 700;
  font-size: .88rem;
  padding: 9px 18px;
  border-radius: 999px;
  border-bottom: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(34, 197, 94, .28);
}
.btn-demo-pill:hover {
  filter: brightness(1.08);
  color: #04220f !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, .38);
}

/* The short label only appears on narrow phones — see the 430px query. */
.cta-mini { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 40px;
  padding: 11px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px;
  background: var(--green-bright);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 78% 32%, rgba(34, 197, 94, .13), transparent 68%),
    linear-gradient(180deg, #060a12 0%, #08101d 60%, #0a1424 100%);
  padding: clamp(46px, 7vw, 86px) 0 clamp(52px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  inset: auto -10% -55% 40%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, .16), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 1; }

.pill {
  display: inline-block;
  font-size: .8rem;
  color: var(--green-bright);
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.hero-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.15rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.1;
  text-transform: uppercase;
}
.hero-title .green { color: var(--green-bright); }

.hero-sub {
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  color: #dbe6ef;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 30px;
}
.hero-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: #c8d6e3;
}
.tick {
  display: grid; place-items: center;
  width: 19px; height: 19px;
  flex: none;
  border-radius: 5px;
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(34, 197, 94, .45);
  color: var(--green-bright);
  font-size: .68rem;
  font-weight: 700;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 28px; }

.hero-contact { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #cfdce8;
  font-size: .9rem;
}
.hero-contact a:hover { color: var(--green-bright); }
.mini-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  color: var(--green-bright);
}

/* The chart artwork now sits behind the registration card as decoration. */
.hero-art-bg {
  position: absolute;
  top: 50%;
  right: 0;
  width: 44%;
  max-width: 470px;
  transform: translateY(-50%);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
.chart-svg { width: 100%; height: auto; }

/* ============ Registration form ============ */
.reg-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(168deg, rgba(34, 197, 94, .1), rgba(17, 26, 43, .96));
  border: 1px solid rgba(34, 197, 94, .4);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  scroll-margin-top: 92px;
}

.reg-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.reg-title .green { color: var(--green-bright); }

.reg-sub {
  color: var(--muted);
  font-size: .87rem;
  margin-bottom: 20px;
}

.reg-form { display: flex; flex-direction: column; gap: 13px; }

.reg-field { display: flex; flex-direction: column; gap: 6px; }

.reg-label {
  color: #d7e3ee;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.req { color: var(--green-bright); }

.reg-form input[type="text"],
.reg-form input[type="tel"],
.reg-form select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
}
.reg-form input::placeholder { color: var(--muted-2); }
.reg-form input:focus,
.reg-form select:focus { border-color: var(--green); outline: none; }

/* Native arrow removed so the control matches the dark theme on every browser. */
.reg-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-bright) 50%),
                    linear-gradient(135deg, var(--green-bright) 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 13px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.reg-form select option { background: var(--bg-3); color: var(--text); }

.reg-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 2px;
  color: var(--muted);
  font-size: .82rem;
  cursor: pointer;
}
.reg-consent input {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 4px;
  accent-color: var(--green);
  cursor: pointer;
}

.reg-form button[type="submit"] { margin-top: 5px; }
.reg-form.is-busy button[type="submit"] { opacity: .65; cursor: progress; }

/* Wins over the .demo-card p size when the form sits inside the demo card. */
.reg-form .form-hint { font-size: .78rem; margin: 0; }

.reg-note {
  margin: 0;
  color: var(--muted-2);
  font-size: .74rem;
  text-align: center;
}

.reg-form-compact { gap: 10px; }
.reg-form-compact .reg-label { font-size: .72rem; }
.reg-form-compact input,
.reg-form-compact select { padding: 9px 12px; font-size: .85rem; }
.reg-form-compact .btn { padding: 11px 16px; font-size: .86rem; }

/* The old thank-you popup lived here. It is now a full page instead — see the
   THANK-YOU PAGE section at the bottom of this file. */

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #04220f;
  box-shadow: 0 8px 22px rgba(34, 197, 94, .22);
}
.btn-green:hover { filter: brightness(1.08); color: #04220f; }

.btn-ghost {
  background: transparent;
  color: #e6eef5;
  border-color: var(--line-soft);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); }

.btn-block { width: 100%; }

/* ============ Sections ============ */
.section { padding: clamp(52px, 7vw, 86px) 0; }
.section-why { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 42px; }
.kicker {
  margin: 0 0 10px;
  color: var(--green-bright);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section-head h2 { margin-bottom: 14px; }
.rule {
  display: block;
  width: 64px; height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
}

/* ============ Courses ============ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  --accent: var(--green);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}

.c-green  { --accent: var(--green); }
.c-blue   { --accent: var(--blue); }
.c-orange { --accent: var(--orange); }
.c-purple { --accent: var(--purple); }

.course-icon {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #06121b;
}
.c-purple .course-icon,
.c-blue .course-icon { color: #fff; }

.course-card h3 {
  text-align: center;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.course-ta {
  text-align: center;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.course-list {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 20px;
  flex: 1;
}
.course-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: .86rem;
  color: #c2d1e0;
}
.course-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  display: grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: .6rem;
  font-weight: 700;
}

.course-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #06121b;
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 16px;
  border-radius: 9px;
  transition: filter .16s ease;
}
.c-purple .course-btn,
.c-blue .course-btn { color: #fff; }
.course-btn:hover { filter: brightness(1.1); color: #06121b; }
.c-purple .course-btn:hover,
.c-blue .course-btn:hover { color: #fff; }

.course-note {
  margin: 34px 0 0;
  text-align: center;
  color: var(--green-bright);
  font-size: .95rem;
  font-weight: 500;
}

/* ============ Why us ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 22px 26px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.why-tile:hover { transform: translateY(-4px); border-color: rgba(34, 197, 94, .55); }

.why-icon { color: var(--green-bright); margin-bottom: 16px; }
.why-tile h3 {
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.why-tile h3.ta { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.why-tile p { font-size: .85rem; margin: 0; color: var(--muted); }

/* ============ Stats band ============ */
.stats-band {
  background:
    radial-gradient(600px 200px at 15% 50%, rgba(34, 197, 94, .12), transparent 70%),
    radial-gradient(600px 200px at 88% 50%, rgba(239, 68, 68, .09), transparent 70%),
    var(--bg-3);
  border-block: 1px solid var(--line);
  padding: 34px 0;
}

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

.stat { display: flex; align-items: center; gap: 14px; justify-content: center; }
.stat-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(34, 197, 94, .14);
  color: var(--green-bright);
}
.stat-text { display: flex; flex-direction: column; line-height: 1.35; }
.stat-text strong { color: var(--green-bright); font-size: 1.5rem; font-weight: 700; }
.stat-text small { color: var(--muted); font-size: .82rem; }

/* ============ About + demo ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}
.about-copy .kicker,
.about-copy h2 { text-align: left; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy .lead { color: #dbe6ef; font-weight: 500; }

.tick-list { margin-top: 22px; }
.tick-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: #cfdce8;
  font-size: .95rem;
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 4px;
  display: grid; place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .16);
  border: 1px solid var(--green);
  color: var(--green-bright);
  font-size: .66rem;
  font-weight: 700;
}

.demo-card {
  background: linear-gradient(165deg, rgba(34, 197, 94, .1), rgba(17, 26, 43, .9));
  border: 1px solid rgba(34, 197, 94, .4);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  scroll-margin-top: 90px;
}
.demo-icon { color: var(--green-bright); margin-bottom: 14px; }
.demo-card h3 { color: var(--green-bright); font-size: 1.35rem; margin-bottom: 12px; }
.demo-card p { color: #cfdce8; font-size: .95rem; }
.demo-en { color: var(--muted); font-size: .88rem !important; }
.demo-alt { margin: 14px 0 0; font-size: .86rem; text-align: center; color: var(--muted); }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  transition: transform .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--green); color: #fff; }
.contact-static:hover { transform: none; border-color: var(--line); }

.contact-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(34, 197, 94, .14);
  color: var(--green-bright);
}
.contact-label {
  color: var(--green-bright);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-card strong { font-size: 1rem; font-weight: 600; line-height: 1.55; word-break: break-word; }
.contact-sub { color: var(--muted-2); font-size: .85rem; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: 54px;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1.1fr 1.1fr;
  gap: 36px;
  padding-bottom: 34px;
}

.footer-col h4 {
  color: var(--green-bright);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 16px;
}

.footer-blurb { margin: 16px 0 18px; color: var(--muted); font-size: .88rem; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.socials a:hover { background: var(--green); border-color: var(--green); color: #04220f; }

.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--green-bright); }

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.footer-contact a { color: var(--muted); word-break: break-word; }
.footer-contact a:hover { color: var(--green-bright); }
.fc-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  color: var(--green-bright);
}

/* Enquiry form */
.enquiry { display: flex; flex-direction: column; gap: 10px; }
.enquiry input,
.enquiry textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  resize: vertical;
}
.enquiry input::placeholder,
.enquiry textarea::placeholder { color: var(--muted-2); }
.enquiry input:focus,
.enquiry textarea:focus { border-color: var(--green); outline: none; }
.enquiry .btn { padding: 12px 16px; font-size: .88rem; }

.form-hint { margin: 2px 0 0; font-size: .78rem; min-height: 1.2em; }
.form-hint.error { color: #fca5a5; }
.form-hint.ok { color: var(--green-bright); }

.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0 0 4px;
  font-size: .79rem;
  color: var(--muted-2);
  line-height: 1.75;
  max-width: 96ch;
}
.disclaimer .ta { display: block; margin-top: 5px; }

.footer-bottom { border-top: 1px solid var(--line); margin-top: 22px; padding: 18px 0; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { margin: 0; font-size: .8rem; color: var(--muted-2); }

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #04220f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #04220f; filter: brightness(1.1); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .course-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art-bg { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: -22px;
    right: -22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 22px 18px;
    background: #08101d;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .45);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav > a:hover,
  .nav > a.active { border-bottom-color: var(--line); }
  /* The logo, the button and the burger all have to share one phone-width row,
     so everything gives up a little. */
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-icon { width: 29px; height: 29px; }
  .brand-line1 { font-size: .9rem; }
  .brand-line2 { font-size: .58rem; letter-spacing: .22em; }
  .header-cta { gap: 8px; }
  .btn-demo-pill { font-size: .78rem; padding: 8px 13px; }
}

@media (max-width: 620px) {
  .course-grid,
  .why-grid,
  .stats-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-actions .btn,
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-chips { gap: 10px 18px; }
  .stat { justify-content: flex-start; }
  .to-top { right: 14px; bottom: 14px; }
}

/* Narrow phones: the logo, the CTA and the burger stop fitting side by side
   with the full label, so drop the word "Class". */
@media (max-width: 430px) {
  .cta-full { display: none; }
  .cta-mini { display: inline; }
  .btn-demo-pill { padding: 8px 12px; }
}

/* Very small phones (iPhone SE and similar). Claw back the last few pixels so
   the burger is not pushed off the right edge. */
@media (max-width: 360px) {
  .header-inner { padding-left: 14px; padding-right: 14px; }
  .brand-line1 { font-size: .82rem; }
  .btn-demo-pill { font-size: .74rem; padding: 7px 11px; }
}

/* ==========================================================================
   THANK-YOU PAGE (thank-you.html)
   A separate page rather than a popup, so the visitor lands on a real URL that
   can be bookmarked, shared, and counted as a conversion in analytics.
   Everything below is prefixed .ty- and is used on that page only.
   ========================================================================== */

.ty-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 46px 20px 60px;
}

.ty-inner { width: 100%; max-width: 760px; }

/* ---------- Confirmation ---------- */

.ty-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.ty-tick {
  flex: none;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
}

.ty-title {
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
}

.ty-sub { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- WhatsApp community card ---------- */

.ty-wa {
  background: linear-gradient(160deg, #0e2f1c, #0a2416);
  border: 1px solid #1d7a44;
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  text-align: center;
  margin-bottom: 44px;
}

.ty-wa-kicker {
  color: var(--green-bright);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.ty-wa-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ty-wa-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--wa);
  color: #04220f;
  border-radius: 50%;
}

.ty-wa-title {
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  margin: 0;
}
.ty-wa-title em { color: var(--green-bright); font-style: normal; }

.ty-wa-text {
  color: #c8e6d4;
  font-size: .94rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 18px;
}

.ty-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
}
.ty-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #2c8a52;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .8rem;
  color: #d3f0de;
}
.ty-chips svg { color: var(--green-bright); flex: none; }

.ty-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  background: linear-gradient(135deg, #34d76f, #4ade80);
  color: #04220f !important;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 17px 20px;
  border-radius: 12px;
  border-bottom: none !important;
  box-shadow: 0 6px 22px rgba(34, 197, 94, .3);
}
.ty-wa-btn:hover {
  filter: brightness(1.07);
  color: #04220f !important;
  box-shadow: 0 8px 26px rgba(34, 197, 94, .4);
}

.ty-wa-note {
  color: #7fc79b;
  font-size: .8rem;
  margin: 12px 0 0;
}

/* ---------- What happens next ---------- */

.ty-steps-head {
  text-align: center;
  color: var(--muted-2);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  margin: 0 0 20px;
}

.ty-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ty-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.ty-steps h3 { font-size: 1rem; font-weight: 700; margin: 0 0 5px; }
.ty-steps p  { color: var(--muted); font-size: .89rem; line-height: 1.65; margin: 0; }

.ty-num {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  font-weight: 700;
  color: var(--green-bright);
}
/* The first step is the one that actually happens next, so it gets the accent. */
.ty-num-1 {
  border-color: rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .12);
  color: var(--orange);
}

.ty-remind {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(34, 197, 94, .07);
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: var(--radius);
  padding: 17px 19px;
  font-size: .89rem;
  line-height: 1.7;
  color: #cfe3d8;
  margin: 0 0 34px;
}
.ty-remind svg { color: var(--green); flex: none; margin-top: 2px; }
.ty-remind strong { color: var(--text); }

/* ---------- Footer row ---------- */

.ty-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ty-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text) !important;
  border-bottom-color: var(--line-soft) !important;
}
.ty-home:hover { background: var(--card-2); border-color: var(--green); color: var(--text) !important; }

.ty-ask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .89rem;
  margin: 0;
}
.ty-ask svg { color: var(--green); flex: none; }

@media (max-width: 560px) {
  .ty-wrap { padding: 32px 16px 48px; }
  /* The heading wraps to two or three lines on a phone. Centring the tick
     against that block leaves it drifting beside the middle line, so pin it to
     the top instead. */
  .ty-head { gap: 14px; align-items: flex-start; }
  .ty-tick { width: 50px; height: 50px; margin-top: 3px; }
  .ty-tick svg { width: 27px; height: 27px; }
  .ty-wa { padding: 22px 17px 18px; }

  /* Stack the icon above the heading so the Tamil does not squeeze into a
     narrow column beside it. */
  .ty-wa-head { flex-direction: column; gap: 10px; }
  .ty-wa-title { text-align: center; }

  .ty-steps li { padding: 15px 16px; gap: 13px; }
  .ty-num { width: 34px; height: 34px; font-size: .9rem; }
  .ty-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .ty-home { justify-content: center; }
  .ty-ask { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
