/* ==========================================================================
   Ramanujan Junior - stylesheet
   --------------------------------------------------------------------------
   All colours, fonts and spacing live in the :root block below.
   Change a value there and it updates across the whole site.
   ========================================================================== */

:root {
  /* ---- Brand colours (from the brand sheet) ---- */
  --green: #2E8B57;          /* the Rs 100 note */
  --green-dark: #216B42;     /* darker green - used for text + buttons so it passes contrast */
  --green-light: #E8F4EC;
  --blue: #2F6FDB;           /* the Rs 10 note */
  --blue-light: #E7EEFC;
  --yellow: #F5C518;         /* the Rs 1 coin */
  --yellow-light: #FDF3D4;
  --red: #B3261E;            /* accent only - never for large areas */
  --red-light: #FBE9E7;

  --ink: #2B1D0E;            /* main text */
  --ink-muted: #6B5848;      /* secondary text */
  --bg: #FFF8EC;             /* page background */
  --card: #FFFFFF;
  --line: #EADFCB;           /* hairlines + card borders */

  /* ---- Type ---- */
  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Mukta", "Segoe UI", system-ui, sans-serif;

  /* ---- Shape + depth ---- */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(43, 29, 14, 0.06);
  --shadow: 0 6px 20px rgba(43, 29, 14, 0.08);
  --shadow-lg: 0 14px 40px rgba(43, 29, 14, 0.10);

  /* ---- Layout ---- */
  --wrap: 1120px;
  --gutter: 20px;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;   /* 17px - comfortable on phones */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3.6vw, 1.45rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Stops the sticky header covering a section's heading when you jump to it
   from the menu or a footer link. */
section[id], div[id] { scroll-margin-top: 84px; }

.section { padding: 3.25rem 0; }
.section--tight { padding: 2.25rem 0; }

@media (min-width: 760px) {
  .section { padding: 5rem 0; }
  .section--tight { padding: 3.25rem 0; }
}

.section--paper { background: var(--card); }

/* Subtle graph-paper grid - the "maths notebook" texture */
.grid-paper {
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(47, 111, 219, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 111, 219, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}

.grid-paper--white {
  background-color: var(--card);
  background-image:
    linear-gradient(to right, rgba(47, 111, 219, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 111, 219, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.lede { font-size: 1.15rem; color: var(--ink-muted); }

.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: #1A5635; color: #fff; box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--block { width: 100%; }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand__tm { font-size: 0.62em; vertical-align: super; font-weight: 700; }

.nav { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 1.75rem; }
  .nav a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
  }
  .nav a:hover { color: var(--green-dark); text-decoration: underline; }
}

.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: 2.5rem 0 3rem; }
@media (min-width: 900px) { .hero { padding: 4rem 0 5rem; } }

.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex: 0 0 auto;
}

.hero h1 { margin-bottom: 0.65rem; }

.hero__sub { font-size: 1.15rem; color: var(--ink-muted); max-width: 34rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.hero__art {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   Cards + generic grids
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--ink-muted); }

.cards { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.icon-badge--green  { background: var(--green-light); }
.icon-badge--blue   { background: var(--blue-light); }
.icon-badge--yellow { background: var(--yellow-light); }
.icon-badge--red    { background: var(--red-light); }
.icon-badge svg { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   Problem section
   -------------------------------------------------------------------------- */

.problem__quote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  border-left: 6px solid var(--yellow);
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Product / money system
   -------------------------------------------------------------------------- */

.product { position: relative; overflow: hidden; }

/* faint 1 / 10 / 100 number motif in the background */
.number-motif {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 800;
  color: rgba(43, 29, 14, 0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.number-motif--a { font-size: 10rem; top: -1rem; right: -1rem; }
.number-motif--b { font-size: 7rem;  bottom: 2rem; left: -1.5rem; }

.product__grid { display: grid; gap: 2rem; align-items: start; position: relative; }
@media (min-width: 900px) { .product__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.product__title-hi {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-muted);
  display: block;
  margin-top: 0.4rem;
}

.money-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }

.money-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.money-chip {
  flex: 0 0 auto;
  width: 64px; height: 40px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.money-chip--100 { background: var(--green); }
.money-chip--10  { background: var(--blue); }
.money-chip--1   { background: var(--yellow); color: var(--ink); width: 40px; border-radius: 50%; }

.money-item strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.money-item span { color: var(--ink-muted); font-size: 0.95rem; }

.rule-card {
  background: var(--ink);
  color: #FFF8EC;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.rule-card .eyebrow { color: var(--yellow); }
.rule-card h3 { color: #fff; font-size: clamp(1.3rem, 4vw, 1.7rem); }
.rule-card p { color: rgba(255, 248, 236, 0.82); margin-bottom: 0; }
.rule-card strong { color: var(--yellow); }

/* --------------------------------------------------------------------------
   How it works - numbered steps
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step__art { margin: 0 0 1rem; }
.step__art svg { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   What's in the box
   -------------------------------------------------------------------------- */

.box-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .box-list { grid-template-columns: repeat(2, 1fr); } }

.box-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}

.box-list .tick {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-light);
  display: grid; place-items: center;
  margin-top: 2px;
}
.box-list .tick svg { width: 15px; height: 15px; }

.box-list strong { font-family: var(--font-head); font-size: 1.02rem; display: block; }
.box-list span { color: var(--ink-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Who it's for - stat tiles
   -------------------------------------------------------------------------- */

.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.tile__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.1;
  color: var(--green-dark);
  display: block;
}
.tile__label {
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 0.3rem;
  display: block;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 0.8fr; gap: 3rem; } }

.about__art { display: grid; place-items: center; }

/* --------------------------------------------------------------------------
   Early-bird form
   -------------------------------------------------------------------------- */

.signup { background: var(--green-dark); color: #fff; }
.signup .eyebrow { color: var(--yellow); }
.signup h2 { color: #fff; }
.signup__intro { color: rgba(255, 255, 255, 0.88); }

.signup__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .signup__grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; } }

.signup__points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.signup__points li { display: flex; gap: 0.7rem; align-items: flex-start; color: rgba(255,255,255,0.9); }
.signup__points svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 5px; }

.form-card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 560px) { .form-card { padding: 2rem; } }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.field .hint { font-weight: 400; color: var(--ink-muted); font-size: 0.88rem; }

.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  min-height: 48px;   /* comfortable tap target */
}
.field input:focus,
.field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47,111,219,0.18); }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--red); }

.field-error {
  display: none;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.field-error.is-visible { display: block; }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.consent input {
  width: 24px; height: 24px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--green-dark);
}
.consent label { font-weight: 400; font-size: 0.95rem; line-height: 1.5; }

.form-foot { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.9rem; }

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-status.is-visible { display: block; }
.form-status--ok   { background: var(--green-light); color: var(--green-dark); }
.form-status--err  { background: var(--red-light);   color: var(--red); }

/* Honeypot - hidden from people, visible to simple bots */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 48rem; margin-inline: auto; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green-dark);
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "\2013"; }

.faq .faq__body { padding: 0 1.25rem 1.25rem; color: var(--ink-muted); }

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 248, 236, 0.78);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a { color: #FFF8EC; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }

.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer__brand .brand__name { color: #FFF8EC; }
.footer__tagline { margin-top: 0.75rem; max-width: 24rem; }

.footer__heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFF8EC;
  margin-bottom: 0.75rem;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.1);
  display: grid; place-items: center;
}
.socials a:hover { background: rgba(255, 248, 236, 0.2); }
.socials svg { width: 20px; height: 20px; }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 248, 236, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.kit-no { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em; }

/* --------------------------------------------------------------------------
   Inner pages (legal, 404)
   -------------------------------------------------------------------------- */

.page-head { padding: 2.5rem 0 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }

.draft-banner {
  background: var(--red-light);
  border: 2px dashed var(--red);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  color: var(--red);
  font-weight: 600;
}
.draft-banner strong { font-family: var(--font-head); }

.prose { max-width: 46rem; padding-bottom: 3.5rem; }
.prose h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); margin-top: 2.25rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45rem; }
.prose .meta { color: var(--ink-muted); font-size: 0.95rem; }

/* Marks a [PLACEHOLDER] or [CHECK] you still have to fill in.
   Highlighted so you can spot the ones you missed by reading the live site.
   The explicit colour matters: without it these would inherit the cream
   footer text colour and vanish against the yellow. */
.ph {
  background: var(--yellow-light);
  border-bottom: 2px solid var(--yellow);
  color: var(--ink);
  padding: 0 0.2em;
  font-weight: 600;
  white-space: nowrap;
}

.notfound { text-align: center; padding: 4rem 0 5rem; }
.notfound__art { max-width: 320px; margin: 0 auto 2rem; }
.notfound h1 { font-size: clamp(2rem, 7vw, 3rem); }
.notfound p { max-width: 32rem; margin-inline: auto; color: var(--ink-muted); }
.notfound .btn { margin-top: 1.75rem; }
