/* Pakka Gujarati Ni Diwali – Fortune
   Layout is drawn on a 1920-unit design grid: 1 unit = --u. Text has readable minimums on phones. */
@font-face {
  font-family: "Hind Vadodara";
  src: url("../fonts/HindVadodara-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hind Vadodara";
  src: url("../fonts/HindVadodara-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hind Vadodara";
  src: url("../fonts/HindVadodara-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0050A9;
  --blue-deep: #003C80;
  --yellow: #FFFD00;
  --sky: #E9F3FE;
  --ink: #0B2A4A;
  --error: #C62828;
  --col: min(100vw, 1040px);
  --u: calc(var(--col) / 1920);
  --font: "Hind Vadodara", "Noto Sans Gujarati", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: #fff;
  color: var(--blue);
  font: 500 16px/1.4 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid #F5A623; outline-offset: 3px; }

/* Banner: full bleed */
.banner, .banner img { display: block; width: 100%; height: auto; }

.page {
  position: relative;
  width: var(--col);
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.page > section { position: relative; }

.deco {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.headline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 700;
  font-size: max(25px, calc(106.5 * var(--u)));
  line-height: 1.3;
  text-align: center;
  color: var(--blue);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--yellow);
  font-weight: 700;
  border-radius: 999px;
  line-height: 1.25;
}

/* ---------- Headline section ---------- */
.s-hero { padding-top: max(46px, calc(214 * var(--u))); }

/* ---------- Intro ---------- */
.s-intro {
  z-index: 1;
  margin-top: max(14px, calc(80 * var(--u)));
  text-align: center;
}
.intro-line {
  max-width: calc(890 * var(--u));
  margin: 0 auto calc(16 * var(--u));
  font-weight: 700;
  font-size: max(14px, calc(43.2 * var(--u)));
  line-height: 1.35;
}
.intro-box {
  position: relative;
  width: calc(1456 * var(--u));
  min-height: calc(170 * var(--u));
  margin: 0 auto;
  padding: calc(22 * var(--u)) calc(270 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: calc(46 * var(--u));
}
.intro-box p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: max(14px, calc(43.2 * var(--u)));
  line-height: 1.4;
}
.woman {
  position: absolute;
  bottom: calc(-3 * var(--u));
  width: calc(203 * var(--u));
  height: auto;
  pointer-events: none;
}
.woman--l { left: calc(50 * var(--u)); }
.woman--r { right: calc(50 * var(--u)); }

/* ---------- Festivals ---------- */
.s-fest { margin-top: max(30px, calc(96 * var(--u))); }
.tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, calc(713 * var(--u)));
  justify-content: center;
  column-gap: calc(110 * var(--u));
  row-gap: calc(100 * var(--u));
  margin-top: calc(50 * var(--u));
}
.tile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tile__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(44 * var(--u));
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile__img { transform: translateY(-3px); }
.tile[aria-pressed="true"] .tile__img { box-shadow: 0 0 0 max(3px, calc(12 * var(--u))) #F5A623; }
.tile__label {
  min-width: calc(349 * var(--u));
  min-height: calc(92 * var(--u));
  margin-top: calc(19 * var(--u));
  padding: 0.15em 1.1em;
  font-size: max(14px, calc(47.5 * var(--u)));
  transition: background-color .2s ease, color .2s ease;
}
.tile[aria-pressed="true"] .tile__label { background: var(--yellow); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.tile__today {
  position: absolute;
  top: calc(-18 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.1em 0.9em;
  border-radius: 999px;
  background: #F5A623;
  color: #fff;
  font-weight: 700;
  font-size: max(12px, calc(36 * var(--u)));
  white-space: nowrap;
}

/* ---------- Upload ---------- */
.s-upload {
  margin-top: calc(6 * var(--u));
  padding-top: max(60px, calc(248 * var(--u)));
  text-align: center;
}
.pill--heading {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: calc(129 * var(--u));
  padding: 0.25em 1.3em;
  font-size: max(16px, calc(56.6 * var(--u)));
}
.upload {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(1672 * var(--u));
  margin: calc(43 * var(--u)) auto 0;
  padding: calc(56 * var(--u)) calc(50 * var(--u));
  background: var(--sky);
  border-radius: calc(64 * var(--u));
  cursor: pointer;
}
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--u));
  min-height: calc(470 * var(--u));
  padding: 16px;
  border: max(1.5px, calc(3.5 * var(--u))) dashed var(--blue);
  border-radius: calc(40 * var(--u));
  transition: background-color .2s ease;
}
.upload:hover .upload__inner { background: rgba(0, 80, 169, .04); }
.upload input:focus-visible + .upload__inner { outline: 3px solid #F5A623; outline-offset: 4px; }
.upload__icon { width: max(56px, calc(190 * var(--u))); height: auto; color: var(--blue); }
.upload__text { font-weight: 500; font-size: max(15px, calc(49.6 * var(--u))); }
.upload--done .upload__inner { border-style: solid; }

.msg { position: relative; z-index: 1; margin: 12px auto 0; max-width: 90%; color: var(--error); font-weight: 600; text-align: center; }

/* ---------- Editor ---------- */
.s-editor {
  z-index: 1;
  margin-top: calc(110 * var(--u));
  text-align: center;
}
.stage {
  width: min(92%, 560px);
  margin: calc(40 * var(--u)) auto 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 60, 128, .22);
  touch-action: none;
}
.stage canvas { display: block; width: 100%; height: auto; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.hint { margin: 12px 0 4px; font-size: 14px; color: var(--ink); }
.zoom { display: flex; align-items: center; gap: 12px; width: min(92%, 560px); margin: 0 auto; font-size: 14px; color: var(--ink); }
.zoom input { flex: 1; accent-color: var(--blue); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px auto 0; width: min(92%, 560px); }
.actions .btn { flex: 1 1 140px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: var(--yellow); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--primary[disabled] { opacity: .65; cursor: progress; }
.btn--ghost { background: #fff; color: var(--blue); }
.btn--ghost:hover { background: var(--sky); }

.entry, .thanks {
  width: min(92%, 560px);
  margin: 28px auto 0;
  padding: 24px 22px;
  background: var(--sky);
  border-radius: 18px;
  text-align: left;
}
.entry__title, .thanks h3 { margin: 0 0 16px; font-size: 20px; font-weight: 700; line-height: 1.35; text-align: center; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.field b { color: var(--error); }
.field em { font-style: normal; font-weight: 500; color: #4A6A8A; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #B9D2EE;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 500 16px var(--font);
}
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 80, 169, .15); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 16px; color: var(--ink); }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.link { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.entry .btn--primary, .thanks .btn { width: 100%; }
.entry .msg { margin: 0 0 12px; max-width: none; text-align: left; }
.thanks { text-align: center; color: var(--ink); }
.thanks p { margin: 0 0 18px; }

/* ---------- Post on ---------- */
.s-post { margin-top: max(30px, calc(57 * var(--u))); text-align: center; }
.post-on {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(14 * var(--u));
  margin: 0;
  font-weight: 500;
  font-size: max(22px, calc(75.5 * var(--u)));
}
.post-on span { margin-right: calc(8 * var(--u)); }
.post-on img { display: block; width: max(34px, calc(95 * var(--u))); height: auto; }
.tag-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(18 * var(--u));
  margin: calc(22 * var(--u)) 0 0;
  font-weight: 600;
  font-size: max(14px, calc(44.5 * var(--u)));
}
.pill--handle {
  min-height: calc(106 * var(--u));
  padding: 0.15em 0.8em;
  font-weight: 600;
  font-size: max(15px, calc(52.8 * var(--u)));
}
.footer-art {
  position: relative;
  z-index: 1;
  display: block;
  width: max(230px, calc(732 * var(--u)));
  height: auto;
  margin: max(26px, calc(107 * var(--u))) auto 0;
}

/* ---------- Terms dialog ---------- */
.terms {
  width: min(92vw, 560px);
  max-height: 80vh;
  padding: 24px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
}
.terms::backdrop { background: rgba(0, 30, 70, .55); }
.terms h2 { margin: 0 0 12px; color: var(--blue); font-size: 22px; }
.terms__body { max-height: 55vh; overflow-y: auto; margin-bottom: 16px; line-height: 1.6; }
.terms__body ol { margin: 0; padding-left: 20px; }
.terms .btn { width: 100%; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .intro-line { max-width: 58%; }
  .intro-box { width: 94%; padding: 12px 23%; border-radius: 16px; }
  .woman { width: 21%; }
  .woman--l { left: 1%; }
  .woman--r { right: 1%; }
  .tiles { grid-template-columns: repeat(2, 43%); column-gap: 4%; row-gap: 26px; margin-top: 18px; }
  .tile__img { border-radius: 14px; }
  .tile__label { min-width: 72%; }
  .upload { width: 92%; padding: 14px; border-radius: 20px; }
  .upload__inner { min-height: 150px; border-radius: 14px; }
}

/* ---------- Share hint & social buttons ---------- */
.share-hint { width: min(92%, 560px); margin: 14px auto 0; line-height: 1.5; }
.social-btn {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn:active { transform: scale(.95); }

/* ---------- Details popup ---------- */
.lead {
  width: min(92vw, 440px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 30, 70, .35);
}
.lead::backdrop { background: rgba(0, 40, 90, .6); backdrop-filter: blur(2px); }
.lead[open] { animation: lead-in .25s ease-out; }
@keyframes lead-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.lead form { padding: 0 22px 22px; }
.lead__brand {
  margin: 0 -22px 18px;
  padding: 14px 22px;
  background: var(--blue);
  color: var(--yellow);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}
.lead h2 { margin: 0; color: var(--blue); font-size: 24px; font-weight: 700; text-align: center; }
.lead__sub { margin: 2px 0 18px; color: var(--blue); font-weight: 600; text-align: center; }
.lead .btn--primary { width: 100%; }
.lead .msg { margin: 0 0 12px; max-width: none; text-align: left; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: min(92vw, 480px);
  padding: 14px 18px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 30, 70, .3);
}

/* Mobile banner: square -> 4:3 crop */
@media (max-width: 767px) {
  .banner img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 28%;
  }
}

/* T&C shown inline in the details popup */
.tnc {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--sky);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
}
.tnc strong { display: block; margin-bottom: 2px; color: var(--blue); font-size: 14px; }
.tnc p { margin: 0; }

/* ===== Details popup – client design ===== */
.lead { width: min(92vw, 460px); max-height: 94vh; padding: 0; border: 0; border-radius: 24px; overflow: hidden auto; background: #fff; }
.lead__fw { position: absolute; height: auto; pointer-events: none; z-index: 0; }
.lead__fw--tl { left: 0; top: 0; width: 24%; }
.lead__fw--tr { right: 0; top: 4px; width: 20%; }
.lead__fw--ml { left: 0; top: 46%; width: 30%; }
.lead__fw--mr { right: 0; top: 50%; width: 16%; }
.lead form { position: relative; z-index: 1; padding: 34px 24px 26px; }
.lead h2 { margin: 8px 0 20px; color: var(--blue); font-size: clamp(30px, 9vw, 40px); font-weight: 700; line-height: 1.2; text-align: center; }
.lead__fields { display: grid; gap: 10px; max-width: 340px; margin: 0 auto; }
.lead__fields input { width: 100%; min-height: 60px; padding: 14px 20px; border: 0; border-radius: 16px; background: var(--blue); color: var(--yellow); font: 600 18px var(--font); caret-color: var(--yellow); }
.lead__fields input::placeholder { color: var(--yellow); opacity: 1; }
.lead__fields input:focus { outline: none; box-shadow: 0 0 0 3px #F5A623; }
.lead__fields input:-webkit-autofill, .lead__fields input:-webkit-autofill:focus { -webkit-text-fill-color: var(--yellow); box-shadow: 0 0 0 100px var(--blue) inset; }
.lead__tnc { max-width: 380px; margin: 16px auto 14px; color: var(--blue); font-size: 14px; font-weight: 500; line-height: 1.45; text-align: center; }
.lead .msg { max-width: 340px; margin: 0 auto 12px; text-align: center; }
.lead__btn { display: flex; width: 100%; max-width: 340px; margin: 0 auto; }

/* ===== Details popup v2 – matches client artwork ===== */
.lead { width: min(94vw, 760px); border-radius: 26px; }
.lead form { padding: 46px 0 34px; }
.lead h2 { margin: 0 0 26px; font-size: 48px; line-height: 1.15; }
.lead__fields { gap: 16px; max-width: 380px; padding: 0; }
.lead__fields input {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 18px;
  font: 500 20px var(--font);
}
.lead__tnc {
  max-width: 560px;
  margin: 24px auto 20px;
  padding: 0 16px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
}
.lead .msg, .lead__btn { max-width: 380px; }

.lead__fw--tl { left: 11%; top: 6%;  width: 12%; }
.lead__fw--tr { right: 5%; top: 2%;  width: 17%; }
.lead__fw--bl { left: 4%;  top: 42%; width: 15%; }
.lead__fw--br { right: 9%; top: 47%; width: 9.5%; }
.lead__fw--sm { right: 3%; bottom: 5%; top: auto; width: 5.5%; }

@media (max-width: 600px) {
  .lead form { padding: 34px 18px 24px; }
  .lead h2 { font-size: 34px; margin-bottom: 20px; }
  .lead__fields { max-width: none; gap: 12px; }
  .lead__fields input { min-height: 54px; font-size: 18px; }
  .lead__tnc { font-size: 14px; margin: 18px auto 16px; padding: 0; }
  .lead .msg, .lead__btn { max-width: none; }
  .lead__fw--tl { left: 1%; top: 1%; width: 17%; }
  .lead__fw--tr { right: 0; top: 0; width: 21%; }
  .lead__fw--bl, .lead__fw--br { display: none; }
  .lead__fw--sm { right: 2%; bottom: 2%; width: 9%; }
}

/* Popup ke peeche gehra blue overlay */
.lead::backdrop {
  background: rgba(0, 50, 120, .78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* ===== Submit -> thank you -> download / share ===== */
#editPane .actions .btn--primary { color: var(--yellow); }
.final { width: min(92%, 560px); margin: 24px auto 0; }
.final__thanks {
  padding: 20px 18px;
  border-radius: 18px;
  background: var(--sky);
  color: var(--ink);
  text-align: center;
  line-height: 1.5;
}
.final__thanks h3 { margin: 0 0 6px; color: var(--blue); font-size: 26px; font-weight: 700; }
.final__thanks p { margin: 0; }
.final__img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 60, 128, .22);
}
.final .actions { width: 100%; }
.final__again { width: 100%; margin-top: 10px; }

/* New 1080x600 mobile banner: no crop needed */
@media (max-width: 767px) {
  .banner img { aspect-ratio: auto; object-fit: fill; }
}

/* Story-size (9:16) frames: keep preview within the screen */
.stage { width: fit-content; max-width: min(92%, 560px); }
.stage canvas { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.final__img { width: auto; max-width: 100%; max-height: 78vh; margin-left: auto; margin-right: auto; }

/* ===================== T&C + Login / Registration ===================== */
.gate[hidden], #site[hidden] { display: none !important; }

/* ---------- Login / Registration ---------- */
.gate--auth {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 3vw;
  padding: 0 6vw;
  background: radial-gradient(120% 90% at 28% 60%, #0A55B8 0%, #003A96 48%, #012A78 100%);
}
.auth__art { position: relative; z-index: 1; align-self: end; }
.auth__art img {
  display: block;
  width: 100%;
  max-width: 660px;
  height: auto;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%);
  mask-composite: intersect;
}
.auth__card {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 440px);
  padding: 30px 30px 32px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 20, 70, .35);
}
.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1.5px solid #0050A9;
  border-radius: 14px;
  background: #EAF3FF;
}
.auth__tabs button {
  padding: 11px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0050A9;
  font: 600 16px var(--font);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.auth__tabs button[aria-selected="true"] { background: #0050A9; color: #fff; }
.auth__form[hidden] { display: none; }
.af { display: block; margin-bottom: 16px; }
.af__label { display: block; margin-bottom: 8px; color: #1B1B1B; font-weight: 600; font-size: 15px; }
.af__label--req { color: #D9531E; }
.af input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid #0050A9;
  border-radius: 999px;
  background: #EAF3FF;
  color: #0B2A4A;
  font: 500 16px var(--font);
}
.af input::placeholder { color: #8E9BAA; }
.af input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 80, 169, .2); }
.af-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; color: #111; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.af-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #0050A9; }
.af-link { padding: 0; border: 0; background: none; color: #D9531E; font: inherit; cursor: pointer; }
.af-link:hover { text-decoration: underline; }
.af-msg { margin: 0 0 12px; color: #C62828; font-weight: 600; font-size: 14px; }
.af-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: #0050A9;
  color: #fff;
  font: 600 17px var(--font);
  cursor: pointer;
}
.af-btn:hover { background: #003C80; }
.af-btn[disabled] { opacity: .7; cursor: progress; }

.auth__deco { position: absolute; z-index: 0; height: auto; pointer-events: none; }
.auth__deco--diyas { left: 3%; top: 0; width: clamp(70px, 9vw, 150px); }
.auth__deco--fw1 { right: 0; bottom: 10%; width: clamp(40px, 4vw, 70px); }
.auth__deco--fw2 { right: 0; top: 0; width: clamp(90px, 13vw, 220px); opacity: .9; }
.auth__deco--fw3 { left: 0; top: 42%; width: clamp(60px, 8vw, 140px); opacity: .85; }
.auth__deco--fw4 { left: 70%; bottom: 0; width: clamp(80px, 12vw, 200px); opacity: .85; }

@media (max-width: 900px) {
  .gate--auth {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 0 0 28px;
  }
  .auth__art { align-self: start; margin-bottom: -70px; }
  .auth__art img { max-width: 520px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .auth__card { width: auto; margin: 0 16px; padding: 22px 18px 24px; border-radius: 22px; }
  .auth__tabs button { font-size: 15px; }
  .auth__deco--fw3, .auth__deco--fw4 { display: none; }
  .auth__deco--diyas { width: 64px; }
  .auth__deco--fw2 { width: 110px; }
}

/* ---------- Terms & Conditions ---------- */
.gate--terms { min-height: 100vh; background: #F2F6FB; color: var(--ink); }
.tc-head {
  position: relative;
  padding: 26px 20px 86px;
  background: radial-gradient(120% 120% at 30% 20%, #0A55B8 0%, #003A96 55%, #012A78 100%);
  color: #fff;
  text-align: center;
}
.tc-back {
  display: block;
  margin: 0 auto 0 0;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #fff;
  font: 600 15px var(--font);
  cursor: pointer;
}
.tc-back:hover { text-decoration: underline; }
.tc-kicker { margin: 18px 0 4px; color: var(--yellow); font-weight: 700; font-size: 18px; }
.tc-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.15; }
.tc-intro { max-width: 640px; margin: 12px auto 0; font-size: 16px; line-height: 1.5; opacity: .92; }
.tc-card {
  position: relative;
  max-width: 880px;
  margin: -60px auto 0;
  padding: 30px 28px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 40, 100, .12);
}
.tc { margin: 0; padding: 0; list-style: none; counter-reset: sec; font-size: 15.5px; }
.tc > li { counter-increment: sec; margin-bottom: 24px; }
.tc > li:last-child { margin-bottom: 0; }
.tc h3 { margin: 0 0 10px; color: var(--blue); font-size: 19px; font-weight: 700; }
.tc > li > h3::before { content: counter(sec) ". "; }
.tc > li > ol { margin: 0; padding: 0; list-style: none; counter-reset: sub; }
.tc > li > ol > li { counter-increment: sub; position: relative; margin: 8px 0; padding-left: 44px; line-height: 1.6; }
.tc > li > ol > li::before { content: counter(sec) "." counter(sub) "."; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.tc ul { margin: 6px 0 0; padding-left: 20px; }
.tc ul li { margin: 4px 0; line-height: 1.55; }
.tc p { margin: 0; line-height: 1.6; }
.tc-foot { padding: 26px 16px 44px; text-align: center; }
.tc-foot .btn { max-width: 100%; white-space: normal; }

@media (max-width: 600px) {
  .tc-card { margin: -60px 12px 0; padding: 22px 16px; }
  .tc { font-size: 14.5px; }
  .tc > li > ol > li { padding-left: 38px; }
}

/* ===== Auth screen v2: bigger art like the client design ===== */
.gate--auth {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  padding: 0 5vw 0 3vw;
  background: radial-gradient(110% 100% at 32% 70%, #0A4DB0 0%, #00378F 45%, #012570 100%);
}
.auth__art { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.auth__art img {
  width: min(100%, 100vh);
  max-width: none;
  height: auto;
  margin: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%);
}
.auth__card { width: min(100%, 430px); }
.auth__deco--diyas { z-index: 2; }

@media (max-width: 900px) {
  .gate--auth { padding: 0 0 28px; }
  .auth__art { align-self: start; }
  .auth__art img {
    width: min(100%, 520px);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
}

/* ===== Auth screen v3: art pinned bottom-left, fills the height ===== */
@media (min-width: 901px) {
  .gate--auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 6vw;
  }
  .gate--auth .auth__art {
    position: absolute;
    left: 2vw;
    bottom: 0;
    width: min(56vw, 96vh);
    height: min(56vw, 96vh);
    margin: 0;
  }
  .gate--auth .auth__art img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
  }
  .gate--auth .auth__card { flex: none; width: min(36vw, 430px); }
  .gate--auth .auth__deco--diyas { z-index: 2; }
}

/* ===== Auth hero: logo + hashtag + family cut-out (client art) ===== */
.auth__art { display: none !important; }
.auth__hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.auth__logo { display: block; width: clamp(150px, 18vw, 270px); height: auto; }
.auth__tag {
  margin: 2.2vh 0 0;
  color: #fff;
  font: 700 clamp(26px, 3.4vw, 54px)/1.1 var(--font);
  text-align: center;
  -webkit-text-stroke: .14em #0B2B70;
  paint-order: stroke fill;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.auth__family { display: block; width: 100%; height: auto; }

@media (min-width: 901px) {
  .gate--auth .auth__hero {
    position: absolute;
    left: 2vw;
    top: 0;
    bottom: 0;
    width: min(58vw, 980px);
    padding-top: 15vh;
  }
  .gate--auth .auth__family {
    width: auto;
    max-width: 100%;
    max-height: 56vh;
    margin-top: auto;
    object-fit: contain;
  }
}
@media (max-width: 900px) {
  .gate--auth { display: grid; grid-template-columns: 1fr; align-content: start; padding: 0 0 28px; }
  .auth__hero { padding: 26px 12px 0; margin-bottom: -24px; }
  .gate--auth .auth__card { width: auto; margin: 0 16px; }
  .auth__logo { width: 160px; }
  .auth__tag { font-size: 26px; }
  .auth__family { margin-top: 14px; }
}

/* ===== T&C page – final client design ===== */
.gate--terms { background: #0050A9; color: #0050A9; }
.tc-head { position: relative; padding: 34px 20px 38px; background: none; }
.tc-back {
  position: absolute;
  top: 28px;
  right: max(20px, calc(50% - 560px));
  margin: 0;
  padding: 6px 18px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.tc-back::after { content: " \2192"; }
.tc-back:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.tc-kicker { margin: 64px 0 6px; color: #fff; font-size: 13px; font-weight: 500; }
.tc-head h1 { font-size: clamp(30px, 4vw, 44px); }
.tc-intro { max-width: 760px; font-size: 14px; opacity: 1; }
.tc-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 48px 44px;
  border-radius: 34px;
  box-shadow: none;
  color: #0050A9;
}
.tc { font-size: 14px; }
.tc > li { margin-bottom: 34px; }
.tc h3 { margin: 0 0 14px; color: #0050A9; font-size: 22px; }
.tc > li > ol > li { margin: 0 0 14px; padding-left: 0; line-height: 1.45; }
.tc > li > ol > li::before { position: static; margin-right: .35em; color: inherit; font-weight: inherit; }
.tc ul { margin: 12px 0 0; padding: 0; list-style: none; }
.tc ul li { margin: 2px 0; line-height: 1.4; }
.tc ul li::before { content: "\2022  "; }
.tc p { line-height: 1.45; }
.tc-foot { padding: 34px 16px 64px; }
.tc-foot .btn {
  min-height: 0;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1.5px solid #fff;
  border-radius: 0;
  background: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.tc-foot .btn::before { content: "\2190  "; }
.tc-foot .btn:hover { background: none; opacity: .85; }

@media (max-width: 600px) {
  .tc-back { top: 16px; right: 12px; font-size: 14px; }
  .tc-kicker { margin-top: 52px; }
  .tc-card { margin: 0 12px; padding: 26px 18px; border-radius: 24px; }
  .tc h3 { font-size: 19px; }
}
