:root {
  --paper: #f3f6fb;
  --paper-deep: #e8eef8;
  --rule: #d0dced;
  --ink: #0f1c45;
  --ink2: #3a4a72;
  --red: #d93a3a;
  --green: #1e8c5a;
  --white: #ffffff;
  --line: rgba(15, 28, 69, 0.14);
  --margin-x: clamp(10px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  color: var(--ink);
  font:
    400 17px/1.7 "Hind",
    "Noto Sans Devanagari",
    "Noto Sans",
    system-ui,
    sans-serif;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(201, 216, 240, 0.7), transparent 60%),
    radial-gradient(900px 480px at 92% 8%, rgba(217, 58, 58, 0.08), transparent 55%),
    linear-gradient(180deg, #eef3fa 0%, var(--paper) 28%, var(--paper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--margin-x);
  width: 2px;
  background: var(--red);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 34px,
    rgba(213, 224, 242, 0.45) 34px 35px
  );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 42%);
}
h1,
h2 {
  font-family: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h3 {
  font:
    600 1.1rem/1.45 "Hind",
    "Noto Sans Devanagari",
    sans-serif;
  margin: 0 0 4px;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 0 max(24px, calc(var(--margin-x) + 22px));
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font:
    600 1rem "Hind",
    "Noto Sans Devanagari",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn:hover {
  background: var(--ink2);
  border-color: var(--ink2);
  color: var(--white);
}
.btn:active {
  transform: translateY(1px);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus {
  left: 0;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 254, 251, 0.9);
  border-bottom: 1px solid var(--line);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand-logo {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
  border-radius: 8px;
}
.brand:hover {
  color: var(--ink);
}

/* VidyaKhata wordmark - new-age display lockup */
.wordmark {
  font-family: "Cal Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .wm-vidya {
  color: var(--ink);
}
.wordmark .wm-khata {
  color: var(--red);
  position: relative;
}
.brand .wordmark {
  font-size: 1.42rem;
}
.brand:hover .wm-khata {
  color: #c43232;
}
.menu-btn {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font:
    600 0.95rem "Hind",
    sans-serif;
  cursor: pointer;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.95rem;
}
.top .btn-primary {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}

/* hero - full notebook page */
.hero {
  --rule-gap: 36px;
  position: relative;
  z-index: 1;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background-color: #fffefb;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--rule-gap) - 1px),
    #d7e0f0 calc(var(--rule-gap) - 1px) var(--rule-gap)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 40px rgba(15, 28, 69, 0.05);
}
.hero::before {
  /* red notebook margin */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(18px, calc(var(--margin-x) + 8px));
  width: 2px;
  background: var(--red);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  /* binder holes */
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: max(8px, calc(var(--margin-x) - 6px));
  width: 14px;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle at 50% 50%, #dfe6f2 0 4px, transparent 5px);
  background-size: 14px 72px;
  background-repeat: repeat-y;
  opacity: 0.95;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(52px, 8vw, 92px);
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.brand-mark {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 4px 14px;
  border-left: 3px solid var(--red);
  line-height: 1;
  animation: wordmark-in 0.7s var(--ease) both;
}
.brand-mark .brand-logo {
  width: 30px;
  height: 30px;
}
.brand-mark .wordmark {
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  letter-spacing: -0.05em;
}
.brand-mark .wm-vidya {
  color: var(--ink);
}
.brand-mark .wm-khata {
  color: var(--red);
}
@keyframes wordmark-in {
  from {
    opacity: 0;
    letter-spacing: 0.06em;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.05em;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    animation: none;
  }
}
.badge {
  display: inline-block;
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 8px 14px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 34em;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.6vw, 3.7rem);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}
.hero .sub {
  font-size: 1.14rem;
  max-width: 30em;
  margin-bottom: 28px;
  color: var(--ink2);
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(15, 28, 69, 0.16);
}
h1 {
  font-size: clamp(2.25rem, 5.6vw, 3.7rem);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.sub {
  font-size: 1.14rem;
  max-width: 30em;
  margin-bottom: 28px;
  color: var(--ink2);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero .cta-row .btn-ghost {
  background: #fff;
}
.hero .cta-row .btn-primary {
  background: var(--ink);
  color: #fff;
}
.hero .cta-row .btn-primary:hover {
  background: var(--ink2);
  border-color: var(--ink2);
  color: #fff;
}
.hero .cta-row .btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* register + receipt - notebook slips on the desk */
.desk {
  position: relative;
  z-index: 2;
  padding-bottom: 26px;
  animation: desk-in 0.9s var(--ease) both;
}
.desk::before {
  content: "";
  position: absolute;
  inset: 8% 4% -4% 8%;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(213, 224, 242, 0.55) 27px 28px),
    #f7f9fd;
  border: 1px dashed rgba(15, 28, 69, 0.18);
  border-radius: 2px;
  transform: rotate(-1.5deg);
  z-index: -1;
}
.register {
  background: #fffefb;
  border: 1.5px solid var(--ink);
  border-radius: 2px 8px 8px 2px;
  padding: 14px 18px 8px 22px;
  position: relative;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--rule) 43px 44px);
  background-position: 0 52px;
  box-shadow: 4px 8px 0 rgba(15, 28, 69, 0.04);
}
.register::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  opacity: 0.7;
}
.reg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  font-size: 0.98rem;
}
.reg-head span:last-child {
  font-weight: 400;
  color: var(--ink2);
  font-size: 0.9rem;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  font-size: 1.05rem;
}
.mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.mark svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}
.tick {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.5s ease-out forwards;
  animation-delay: var(--d);
}
.absent {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  opacity: 0;
  animation: appear 0.01s forwards;
  animation-delay: var(--d);
}
.receipt {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(213, 224, 242, 0.45) 27px 28px),
    #fffefb;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: 12px 16px 14px;
  margin: -6px 0 0 18%;
  width: 82%;
  box-shadow: 6px 10px 0 rgba(15, 28, 69, 0.05);
  transform: rotate(1.25deg);
}
.ai-slip {
  position: relative;
  margin: 14px 8% 0 0;
  width: 88%;
  padding: 12px 14px 12px 16px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(213, 224, 242, 0.4) 27px 28px),
    #f4f8ff;
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--red);
  border-radius: 2px 8px 8px 2px;
  box-shadow: 4px 7px 0 rgba(15, 28, 69, 0.04);
  transform: rotate(-1.1deg);
  animation: desk-in 0.9s var(--ease) 0.35s both;
}
.ai-slip-tag {
  display: inline-block;
  font:
    600 0.78rem/1 "Cal Sans",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.ai-slip p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}
.ai-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font:
    600 0.95rem/1.3 "Cal Sans",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 2px 0 2px 10px;
  border-left: 3px solid var(--red);
}
#ai .feature h3 {
  font-family: "Cal Sans", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}
.receipt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.5px;
  height: 0;
  border-top: 2px dashed var(--ink);
}
.receipt::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--red);
  opacity: 0.45;
}
.rc-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--ink2);
}
.rc-name {
  font-weight: 600;
  margin-top: 2px;
}
.rc-amt {
  font-family: "Tiro Devanagari Hindi", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.2;
}
.rc-wa {
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 600;
}
.stamp {
  position: absolute;
  right: 14px;
  bottom: 12px;
  border: 3px solid var(--red);
  color: var(--red);
  border-radius: 6px;
  padding: 0 12px;
  font:
    400 1.5rem/1.4 "Tiro Devanagari Hindi",
    Georgia,
    serif;
  transform: rotate(-9deg) scale(1);
  opacity: 0;
  animation: thud 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards;
  animation-delay: 3.3s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes appear {
  to {
    opacity: 1;
  }
}
@keyframes thud {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(1.8);
  }
  to {
    opacity: 0.92;
    transform: rotate(-9deg) scale(1);
  }
}
@keyframes desk-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tick {
    animation: none;
    stroke-dashoffset: 0;
  }
  .absent {
    animation: none;
    opacity: 1;
  }
  .stamp {
    animation: none;
    opacity: 0.92;
  }
  .desk,
  .reveal {
    animation: none;
  }
}

/* sections - notebook spreads */
.sec {
  --rule-gap: 36px;
  position: relative;
  z-index: 1;
  padding: clamp(52px, 8vw, 84px) 0;
  border-top: 1px solid var(--line);
  background-color: #fffefb;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--rule-gap) - 1px),
    rgba(215, 224, 240, 0.55) calc(var(--rule-gap) - 1px) var(--rule-gap)
  );
}
.sec:nth-of-type(even) {
  background-color: #f7f9fd;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--rule-gap) - 1px),
    rgba(208, 220, 237, 0.7) calc(var(--rule-gap) - 1px) var(--rule-gap)
  );
}
.sec::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(18px, calc(var(--margin-x) + 8px));
  width: 2px;
  background: var(--red);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
.reveal {
  animation: rise 0.7s var(--ease) both;
  animation-play-state: paused;
}
.reveal.in {
  animation-play-state: running;
}
h2 {
  position: relative;
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  line-height: 1.3;
  margin-bottom: 12px;
  padding-bottom: 10px;
  display: inline-block;
  max-width: 100%;
  border-bottom: 2px solid var(--ink);
  box-decoration-break: clone;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 3.2em;
  height: 3px;
  background: var(--red);
}
.lead {
  max-width: 36em;
  color: var(--ink2);
  margin-bottom: 28px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(15, 28, 69, 0.16);
}
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.pain-card {
  position: relative;
  margin: 0;
  padding: 16px 16px 16px 20px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(213, 224, 242, 0.55) 31px 32px),
    #fffefb;
  border: 1.5px solid rgba(15, 28, 69, 0.22);
  border-left: 3px solid var(--red);
  border-radius: 2px 6px 6px 2px;
  box-shadow: 3px 5px 0 rgba(15, 28, 69, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pain-problem {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}
.pain-agent {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 28, 69, 0.2);
  color: var(--ink2);
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.pain-close {
  margin-top: 28px;
  font-weight: 600;
  font-size: 1.1rem;
  max-width: 34em;
  padding: 14px 0 6px;
  border-top: 1px dashed rgba(15, 28, 69, 0.22);
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font:
    600 0.78rem/1 "Cal Sans",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(217, 58, 58, 0.35);
  background: rgba(217, 58, 58, 0.06);
  padding: 5px 9px;
  border-radius: 2px;
}
.agent-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 140, 90, 0.15);
}
.agent-flow {
  margin: 0 0 8px !important;
  color: var(--ink) !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  max-width: 36em;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin-top: 8px;
  border-top: 1px dashed rgba(15, 28, 69, 0.22);
}
.feature {
  position: relative;
  padding: 22px 0 22px 18px;
  border-bottom: 1px dashed rgba(15, 28, 69, 0.22);
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  background: #fffefb;
}
.feature .agent-chip {
  margin-bottom: 8px;
}
.feature h3 {
  font:
    400 1.28rem/1.35 "Tiro Devanagari Hindi",
    Georgia,
    serif;
  margin: 0 0 6px;
}
.feature p {
  color: var(--ink2);
  max-width: 32em;
}

.agent-loop {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: loop;
}
.agent-loop li {
  counter-increment: loop;
  position: relative;
  padding: 18px 18px 18px 20px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(213, 224, 242, 0.5) 31px 32px),
    #fffefb;
  border: 1.5px solid rgba(15, 28, 69, 0.22);
  border-left: 3px solid var(--red);
  border-radius: 2px 6px 6px 2px;
  box-shadow: 3px 5px 0 rgba(15, 28, 69, 0.04);
}
.agent-loop li::before {
  content: counter(loop, decimal-leading-zero);
  display: block;
  font:
    400 1.1rem/1 "Cal Sans",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 8px;
}
.agent-loop h3 {
  font:
    400 1.35rem/1.25 "Cal Sans",
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.agent-loop p {
  margin: 0;
  color: var(--ink2);
  font-size: 0.98rem;
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 18px 18px 20px 20px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(213, 224, 242, 0.5) 31px 32px),
    #fffefb;
  border: 1.5px solid rgba(15, 28, 69, 0.22);
  border-left: 3px solid var(--red);
  border-radius: 2px 6px 6px 2px;
  box-shadow: 3px 5px 0 rgba(15, 28, 69, 0.04);
}
.steps li::before {
  content: counter(s);
  display: block;
  font:
    400 2.6rem/1 "Tiro Devanagari Hindi",
    Georgia,
    serif;
  color: var(--red);
  margin-bottom: 6px;
}
.steps h3 {
  font:
    400 1.22rem/1.35 "Tiro Devanagari Hindi",
    Georgia,
    serif;
  margin-bottom: 6px;
}
.steps p {
  color: var(--ink2);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
  align-items: stretch;
}
.plan {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(213, 224, 242, 0.45) 31px 32px),
    #fffefb;
  border: 1.5px solid rgba(15, 28, 69, 0.28);
  border-radius: 2px 8px 8px 2px;
  padding: 22px 22px 22px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 7px 0 rgba(15, 28, 69, 0.04);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.plan::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  opacity: 0.55;
  pointer-events: none;
}
.plan:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 5px 10px 0 rgba(15, 28, 69, 0.06);
}
.plan.founding {
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--red);
  padding-left: 22px;
}
.plan.founding::before {
  display: none;
}
.plan.recommended {
  border: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(213, 224, 242, 0.4) 31px 32px),
    #fff;
}
.plan.recommended .tag {
  color: var(--ink);
}
.plan h3 {
  font:
    400 1.35rem/1.3 "Tiro Devanagari Hindi",
    Georgia,
    serif;
}
.tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 4px;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(217, 58, 58, 0.35);
}
.price {
  font:
    400 2.5rem/1.2 "Tiro Devanagari Hindi",
    Georgia,
    serif;
  margin: 6px 0 0;
}
.unit {
  font-size: 0.92rem;
  color: var(--ink2);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(15, 28, 69, 0.2);
}
.plan ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}
.plan li {
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px dashed rgba(15, 28, 69, 0.12);
}
.plan li:last-child {
  border-bottom: 0;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}
.plan .btn {
  width: 100%;
}
.plans-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--ink2);
  max-width: 46em;
}

details {
  border-bottom: 1px dashed rgba(15, 28, 69, 0.22);
}
summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 16px 36px 16px 18px;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  background: #fffefb;
}
summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
}
details[open] summary::after {
  content: "\2212";
}
details p {
  padding: 0 0 18px 18px;
  color: var(--ink2);
  max-width: 44em;
}
.faq {
  margin-top: 18px;
  max-width: 760px;
  border-top: 1px dashed rgba(15, 28, 69, 0.22);
}

/* form - application slip */
.sec.apply {
  background-color: #f7f9fd;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 35px,
    rgba(208, 220, 237, 0.7) 35px 36px
  );
}
.apply-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.apply-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  display: inline-block;
  padding: 2px 0 2px 10px;
  border-left: 3px solid var(--red);
}
.apply-lead {
  color: var(--ink2);
  margin: 0 0 22px;
  max-width: 28em;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(15, 28, 69, 0.16);
}
.apply-note {
  color: var(--ink2);
  margin: 22px 0 0;
  font-size: 0.95rem;
  max-width: 28em;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.trust-list li {
  position: relative;
  padding: 10px 12px 10px 38px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(213, 224, 242, 0.45) 27px 28px),
    #fffefb;
  border: 1.5px solid rgba(15, 28, 69, 0.18);
  border-left: 3px solid var(--red);
  border-radius: 2px 6px 6px 2px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
}
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--green);
  font-weight: 700;
}
.form-panel {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(213, 224, 242, 0.4) 35px 36px),
    #fffefb;
  border: 1.5px solid var(--ink);
  border-radius: 2px 10px 10px 2px;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px)
    clamp(22px, 3.2vw, 32px);
  box-shadow: 5px 10px 0 rgba(15, 28, 69, 0.05);
}
.form-panel::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  opacity: 0.55;
  pointer-events: none;
}
.form-block {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.form-block legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding: 0;
}
form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-block .form-fields {
  margin: 0;
}
/* contact + other simple forms still use a 2-col grid of .f directly */
form:not(:has(.form-block)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f.full {
  grid-column: 1/-1;
}
label {
  font-weight: 600;
  font-size: 0.98rem;
}
input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1.5px solid rgba(15, 28, 69, 0.35);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font:
    400 1rem "Hind",
    "Noto Sans Devanagari",
    sans-serif;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    background 0.15s var(--ease);
}
input::placeholder {
  color: rgba(58, 74, 114, 0.55);
}
input:hover,
select:hover,
textarea:hover {
  border-color: rgba(15, 28, 69, 0.55);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(217, 58, 58, 0.16);
}
.phone-field {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(15, 28, 69, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfe;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.phone-field:focus-within {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 58, 58, 0.16);
}
.phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--paper-deep);
  color: var(--ink2);
  font-weight: 600;
  border-right: 1px solid rgba(15, 28, 69, 0.18);
}
.phone-field input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.phone-field input:focus-visible {
  box-shadow: none;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.consent input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--ink);
}
.form-actions {
  gap: 8px;
}
.form-actions .btn {
  width: 100%;
}
.form-hint {
  margin: 0;
  text-align: center;
  color: var(--ink2);
  font-size: 0.92rem;
}
#formMsg,
#cMsg {
  grid-column: 1/-1;
  min-height: 1.4em;
  color: var(--red);
  font-weight: 600;
}
.done {
  display: none;
  border-left: 6px solid var(--green);
  background: var(--paper);
  padding: 20px 22px;
  border-radius: 8px;
}
.done.show {
  display: block;
}
.done h3 {
  font-size: 1.25rem;
}
.done .btn {
  margin-top: 14px;
}

footer {
  position: relative;
  z-index: 1;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink2);
  background-color: #fffefb;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 35px,
    rgba(215, 224, 240, 0.5) 35px 36px
  );
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(18px, calc(var(--margin-x) + 8px));
  width: 2px;
  background: var(--red);
  opacity: 0.35;
  pointer-events: none;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}
.foot a {
  text-underline-offset: 3px;
}

/* WhatsApp float kept in CSS for optional re-enable via contactWhatsApp */
.wa-float {
  display: none;
}

@media (max-width: 860px) {
  .hero::after {
    opacity: 0.55;
    background-size: 12px 64px;
  }
  .sec::before,
  footer::before {
    opacity: 0.28;
  }
  .desk::before {
    display: none;
  }
  .hero-grid,
  .apply-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pains,
  .steps,
  .plans,
  .agent-loop {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature {
    padding-left: 16px;
  }
  form,
  form:not(:has(.form-block)),
  .form-fields {
    grid-template-columns: 1fr;
  }
  .receipt {
    margin-left: 8%;
    width: 92%;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 10px;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a.active,
  .nav a:hover {
    border-bottom-color: var(--red);
  }
  .top .btn-primary {
    display: none;
  }
}

/* ---- site additions ---- */
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.soon {
  position: relative;
  z-index: 41;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.5;
}
.soon a {
  color: #fff;
  font-weight: 600;
  margin-left: 10px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.top {
  flex-wrap: wrap;
}
.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s var(--ease);
}
.nav a:hover,
.nav a.active {
  border-bottom-color: var(--red);
}
.page-head {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 30px 0 34px;
  background-color: #fffefb;
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
}
.page-head::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(18px, calc(var(--margin-x) + 8px));
  width: 2px;
  background: var(--red);
  opacity: 0.45;
  pointer-events: none;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin-bottom: 10px;
}
.page-head p {
  max-width: 36em;
  color: var(--ink2);
}
.est {
  margin-top: 14px;
  max-width: 760px;
}
.est input[type="number"] {
  width: 170px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink2);
  border-radius: 6px;
  font:
    400 1.1rem "Hind",
    sans-serif;
  color: var(--ink);
  background: #fff;
}
.est-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.est-card {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(213, 224, 242, 0.45) 31px 32px),
    #fffefb;
  border: 1.5px solid rgba(15, 28, 69, 0.28);
  border-left: 3px solid var(--red);
  border-radius: 2px 6px 6px 2px;
  padding: 16px 18px;
  box-shadow: 3px 5px 0 rgba(15, 28, 69, 0.04);
}
.est-card strong {
  display: block;
  font:
    400 2.1rem/1.2 "Tiro Devanagari Hindi",
    Georgia,
    serif;
}
.est-card small {
  display: block;
  color: var(--ink2);
  font-size: 0.92rem;
  margin-top: 4px;
}
.est-card small b {
  color: var(--ink);
}
.tablewrap {
  position: relative;
  overflow-x: auto;
  margin-top: 20px;
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  background: #fffefb;
  border: 1.5px solid rgba(15, 28, 69, 0.22);
}
.cmp th,
.cmp td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp th {
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}
.cmp .c {
  text-align: center;
  width: 96px;
}
.yes {
  color: var(--green);
  font-weight: 600;
}
.no {
  color: var(--ink2);
}
.cmp .when {
  color: var(--ink2);
  font-size: 0.95rem;
  white-space: nowrap;
}
.upi {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-left: 7px solid var(--red);
  border-radius: 4px;
  padding: 20px 22px;
  margin-top: 28px;
  max-width: 760px;
}
.upi code {
  font:
    600 1.05rem "Hind",
    monospace;
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 4px;
}
.upi .row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}
.upi img {
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  margin-top: 14px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-list .btn {
  width: 100%;
  justify-content: flex-start;
}
.legal {
  max-width: 46em;
}
.legal h2 {
  font-size: 1.45rem;
  margin: 34px 0 8px;
}
.legal p,
.legal li {
  margin: 0 0 10px;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 10px;
}
.ph {
  background: #fff1b8;
  padding: 0 4px;
  border-radius: 2px;
}
.summary-box {
  border-left: 4px solid var(--red);
  background: #fff;
  padding: 14px 18px;
  margin: 22px 0;
}
@media (max-width: 860px) {
  .est-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body::before {
    opacity: 0.28;
  }
}
