/* AIVidyalay website. Fixed light design with navy sections. Mobile first. */

/* Inter (SIL Open Font License 1.1, see /fonts/OFL.txt). ₹ is in the latin-ext files. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand colours from the product guide cover and the promo video */
  --navy: #0B1F3B;
  --navy-2: #16305A;
  --navy-3: #081729;
  --blue: #1A56DB;
  --blue-dark: #1442A8;
  --blue-light: #7EA6F5;
  --soft: #DCE5F3;
  --muted-on-navy: #B4C3D9;
  --ink: #14243D;
  --text: #2B3A52;
  --muted: #4E5D74;
  --line: #D9E1EC;
  --bg: #FFFFFF;
  --bg-light: #F3F6FB;
  --app-red: #DC3545;
  --app-red-text: #B42332;
  --focus: #F5B700;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 59, .06), 0 8px 24px rgba(11, 31, 59, .08);
  --topbar-h: 64px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
strong { font-weight: 600; }

/* Icons: Lucide strokes by default */
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Keyboard focus, visible everywhere */
/* Blue ring on light backgrounds, amber ring on navy: both at least 3:1 against their background */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.section--navy :focus-visible { outline-color: var(--focus); }
.wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 7px var(--focus); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 44px; min-width: 64px; padding: 8px 14px; font-size: .95rem; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn__icon { width: 20px; height: 20px; }
.btn__wa { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* WhatsApp glyph is a filled shape */
.btn__wa, .wa-float svg { fill: currentColor; stroke: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--topbar-h); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__demo { display: none; }

.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--navy); }
.logo__text {
  position: relative; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1; padding-bottom: 8px;
}
.logo__text::after { /* short blue underline bar from the guide cover */
  content: ""; position: absolute; left: 1px; bottom: 0; width: 34px; height: 4px; border-radius: 2px; background: var(--blue);
}
.logo:hover { color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--light { background: var(--bg-light); }
.section--navy { background: var(--navy); color: var(--soft); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 36px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.section--navy .lead { color: var(--soft); }
.muted { color: var(--muted); font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; background: linear-gradient(165deg, var(--navy) 0%, #0E2548 60%, var(--navy-2) 100%); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--soft); max-width: 36em; margin-bottom: 28px; }
.hero__small { margin: 18px 0 0; color: var(--muted-on-navy); font-size: 1rem; }
.hero__visual { display: none; padding: 0 5%; }

/* Laptop frame drawn with CSS */
.laptop { max-width: 640px; margin: 0 auto; }
.laptop__screen {
  background: #1c2433; border-radius: 14px 14px 0 0; padding: 12px 12px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.laptop__screen img { border-radius: 4px; background: #fff; }
.laptop__base {
  height: 16px; margin: 0 -6%; border-radius: 0 0 14px 14px;
  background: linear-gradient(#c9d2df, #9aa6b8);
}

/* ---------- Video ---------- */
.video__grid { display: grid; gap: 32px; align-items: center; }
.video__frame { width: 100%; }
.video__player { width: 100%; aspect-ratio: 9 / 16; background: var(--navy); border-radius: 12px; }
.ticks { list-style: none; display: grid; gap: 14px; margin-bottom: 20px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; color: var(--ink); }
.ticks svg { color: var(--blue); margin-top: 2px; }

/* ---------- Cards ---------- */
.cards { list-style: none; display: grid; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.section--light .card { border-color: #E1E8F2; }
.card p { margin: 0; }
.card h3 { margin-bottom: .45em; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: #E8EFFC; color: var(--blue);
}
.card__icon--alert { background: #E4E9F1; color: var(--navy); }
.card__shot { width: 100%; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; background: #fff; }
.h-icon { display: inline-block; vertical-align: -4px; width: 22px; height: 22px; margin-right: 8px; color: var(--blue); }
.card--phone { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.closing-q { margin: 36px auto 0; max-width: 720px; text-align: center; font-size: 1.2rem; font-weight: 600; color: var(--ink); }

/* Phone frame drawn with CSS */
.phone {
  border: 8px solid var(--navy); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow);
}
.phone--sm { border-width: 6px; border-radius: 18px; max-height: 240px; }
.phone img { width: 100%; }

/* ---------- How it works ---------- */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: none; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 24px 24px; box-shadow: var(--shadow);
}
.step p { margin: 0; }
.step__num {
  position: absolute; top: 20px; right: 20px;
  font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--blue);
}
.step__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 14px;
  background: var(--blue); color: #fff;
}

/* ---------- AI features ---------- */
.feature {
  display: grid; gap: 28px; align-items: start;
  background: #fff; border: 1px solid #E1E8F2; border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow);
}
.feature + .feature { margin-top: 28px; }
.feature h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.eyebrow { margin: 0 0 8px; font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #E8EFFC; color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 1rem; font-weight: 600; }
.feature__media { display: grid; gap: 18px; min-width: 0; }
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 6px 20px rgba(11, 31, 59, .08); }
.shot figcaption { margin-top: 8px; font-size: 1rem; color: var(--muted); }

/* ---------- Turnover ---------- */
.example {
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--blue);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.example__label {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.example__text { margin: 0; font-size: 1.15rem; color: var(--ink); }

.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.calc h3 { font-size: 1.3rem; }
.calc__fields { display: grid; gap: 18px; margin-bottom: 24px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  border: 2px solid #B9C5D6; border-radius: 10px; background: #fff;
}
.field input:focus-visible { border-color: var(--blue); outline: 3px solid var(--blue); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--app-red); background: #FFF7F8; }
.field__err { margin: 6px 0 0; color: var(--app-red-text); font-size: 1rem; }
.calc__results { background: var(--bg-light); border-radius: 12px; padding: 18px 20px; }
.calc__ok { display: grid; gap: 14px; }
.result__label { margin: 0; font-weight: 600; color: var(--muted); }
.result__value { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; }
.result__words { font-size: 1.05rem; font-weight: 600; color: var(--blue); white-space: nowrap; }
.calc__invalid { margin: 0; font-weight: 600; color: var(--app-red-text); }
.calc__note { margin: 16px 0 0; font-size: 1rem; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* ---------- About ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about__photo { width: 180px; border-radius: 16px; box-shadow: var(--shadow); }
.about__name { font-weight: 600; color: var(--blue); margin-top: -.3em; }

/* ---------- CTA and footer ---------- */
.cta { text-align: center; }
.cta__inner .lead { max-width: 640px; margin: 0 auto 28px; }
.footer { padding: 48px 0 96px; border-top: 1px solid rgba(255, 255, 255, .12); background: var(--navy-3); }
.footer__grid { display: grid; gap: 24px; }
.logo--footer { color: #fff; margin: 0 0 10px; }
.footer__tag { color: var(--muted-on-navy); max-width: 32em; margin: 0; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; }
.footer__bottom { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__privacy { color: var(--muted-on-navy); font-size: 1rem; max-width: 60em; }
.footer__copy { color: var(--muted-on-navy); margin: 0; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(11, 31, 59, .35);
  border: 2px solid #fff;
}
.wa-float:hover { background: var(--blue-dark); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Scroll fade-in (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .anim .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ================= Tablet: 640px and up ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .cards--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .calc__fields { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .calc__ok { grid-template-columns: 1fr 1fr; }
  .field label { min-height: 3.2em; display: flex; align-items: flex-end; }
  .about { grid-template-columns: 200px 1fr; }
  .about__photo { width: 200px; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: start; }
  .card--phone { grid-column: 1 / -1; grid-template-columns: 140px 1fr; }
}

/* ================= 768px and up ================= */
@media (min-width: 768px) {
  .topbar__demo { display: inline-flex; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 72px; }
  .hero__visual { display: block; }
  .video__grid { grid-template-columns: minmax(260px, 320px) 1fr; gap: 48px; }
  .video__frame {
    border: 10px solid var(--navy); border-radius: 36px; padding: 0; overflow: hidden;
    box-shadow: 0 20px 50px rgba(11, 31, 59, .25); background: var(--navy);
  }
  .video__player { border-radius: 0; }
  .feature { padding: 32px; }
  .wa-float { right: 24px; bottom: 24px; width: 60px; height: 60px; }
  .footer { padding-bottom: 48px; }
}

/* ================= Desktop: 1024px and up ================= */
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .cards--3, .steps { grid-template-columns: repeat(3, 1fr); }
  .card--phone { grid-column: auto; grid-template-columns: 110px 1fr; }
  .feature { grid-template-columns: 1fr 1.25fr; gap: 40px; padding: 40px; }
  .feature--flip .feature__text { order: 2; }
  .feature--flip .feature__media { order: 1; }
  .video__grid { grid-template-columns: 320px 1fr; gap: 72px; max-width: 980px; }
}

@media (min-width: 1440px) {
  .section { padding: 96px 0; }
}

/* Phone in landscape: keep the hero compact */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 32px 0; }
  .video__player { max-height: 80vh; width: auto; margin: 0 auto; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; padding: 64px 0; }
.notfound .btn-row { margin-top: 24px; }

/* Screenshots open full size in a new tab, so they can be zoomed on a phone */
.zoom { display: block; border-radius: 10px; cursor: zoom-in; }
.zoom:hover img { box-shadow: 0 0 0 3px var(--blue-light); }

/* Counsellor's note, shown large so it is readable on phones */
.quote {
  margin: 12px 0 0; padding: 14px 18px;
  background: #fff; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 8px rgba(11, 31, 59, .06);
}
.quote p { margin: 0; font-size: 1.1rem; font-style: italic; line-height: 1.5; color: var(--ink); }
