:root {
  --paper: #eef1ed;
  --app-bg: #f4f8f4;
  --panel: #ffffff;
  --ink: #10231c;
  --muted: rgba(16, 35, 28, 0.64);
  --line: rgba(16, 35, 28, 0.12);
  --green: #114a36;
  --green-2: #0f6b4c;
  --mint: #e2f8ec;
  --orange: #ff6a1a;
  --danger: #b7381e;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  min-height: 74px;
  border-bottom: 1px solid rgba(16, 35, 28, 0.7);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    rgba(238, 241, 237, 0.94);
  background-size: 28px 28px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--green);
  text-decoration: none;
  font-family: var(--mono);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 950;
}

.brand img {
  width: 132px;
}

.prototype-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(14px, 3vw, 34px);
}

.phone-shell {
  width: min(100%, 428px);
  overflow: hidden;
  border: 9px solid #08100d;
  border-radius: 42px;
  background: #08100d;
  box-shadow: 0 26px 60px rgba(16, 35, 28, 0.24), 15px 15px 0 rgba(20, 72, 53, 0.12);
}

.phone-top {
  display: grid;
  grid-template-columns: 1fr 86px 1fr;
  align-items: center;
  padding: 10px 18px 8px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 950;
}

.phone-top span:last-child {
  text-align: right;
}

.phone-top i {
  height: 24px;
  border-radius: 999px;
  background: #020403;
}

.app-screen {
  position: relative;
  height: min(80vh, 812px);
  min-height: 690px;
  overflow: hidden;
  background: var(--app-bg);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 0 16px 88px;
}

.screen.is-active {
  display: block;
}

.mv-home-header {
  margin: 0 -16px;
  padding: 18px 18px 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #104b36, #0f6b4f 70%, #18815f);
}

.app-bar,
.app-bar-actions,
.panel-title,
.loan-card-head,
.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-bar {
  margin-bottom: 16px;
}

.app-bar img {
  width: 132px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 10px;
}

.reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 10px;
  font-weight: 850;
}

.reward-chip i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.hamburger {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  position: absolute;
  right: 6px;
  width: 23px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.hamburger span { top: 17px; }
.hamburger::before { top: 10px; }
.hamburger::after { top: 24px; }

.loan-banner {
  display: grid;
  grid-template-columns: 1fr 126px;
  gap: 12px;
  min-height: 178px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  padding: 18px 0 18px 18px;
}

.loan-banner b {
  display: inline-block;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 5px;
  font-size: 1.03rem;
}

.loan-banner strong {
  display: block;
  margin: 18px 0 15px;
  color: var(--green);
  font-size: 1.38rem;
  line-height: 1.22;
}

.loan-banner button,
.primary-action {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
}

.loan-banner button {
  padding: 10px 12px;
  font-size: 0.84rem;
}

.loan-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
}

.banner-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  animation: bannerDot 3.6s infinite ease-in-out;
}

.banner-dots i:nth-child(2) {
  animation-delay: 1.2s;
}

.banner-dots i:nth-child(3) {
  animation-delay: 2.4s;
}

.banner-dots i.is-active,
.banner-dots i:hover {
  width: 15px;
  background: #fff;
}

@keyframes bannerDot {
  0%, 26% {
    width: 15px;
    background: #fff;
  }
  34%, 100% {
    width: 5px;
    background: rgba(255, 255, 255, 0.46);
  }
}

.upi-panel,
.native-row,
.active-loan,
.advisor-entry,
.hero-card,
.calc-card,
.offer-card,
.consent-box,
.chat-thread,
.success-state {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 35, 28, 0.08);
}

.upi-panel {
  margin: 16px 0 20px;
  padding: 13px 14px 14px;
}

.panel-title span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upi-title-icon {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--orange);
}

.upi-title-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: #fff;
  opacity: 0.95;
}

.panel-title em {
  border-radius: 8px;
  background: #fff5d8;
  color: #78651a;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.upi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}

.upi-grid button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
}

.upi-grid span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 820;
}

.upi-shortcut {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: 0 auto;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

.upi-shortcut svg {
  width: 30px;
  height: 30px;
}

.upi-shortcut path:first-child {
  fill: var(--orange);
  stroke: none;
}

.upi-shortcut path + path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pay-contact circle:first-of-type,
.my-upi circle:first-of-type {
  fill: var(--orange);
}

.pay-contact circle:last-of-type {
  fill: var(--green);
}

.pay-contact path:last-child {
  stroke: #fff;
  stroke-width: 1.6;
}

.my-upi path:first-child {
  stroke: #fff;
  stroke-width: 1.7;
}

.my-upi circle:last-of-type {
  fill: #fff;
  opacity: 0.95;
}

.pay-contact {
  transform: rotate(-3deg);
}

.pay-bill {
  transform: rotate(2deg);
}

.my-upi {
  transform: rotate(-1deg);
}

.upi-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.upi-foot b {
  color: var(--green);
}

.upi-powered {
  display: grid;
  justify-items: end;
  line-height: 0.85;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.upi-powered small {
  color: rgba(16, 35, 28, 0.48);
  font-size: 0.42rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.native-section {
  margin-bottom: 18px;
}

.native-section h2 {
  margin: 0 0 10px;
  color: rgba(16, 35, 28, 0.58);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.native-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.native-row + .native-row {
  margin-top: 9px;
}

.native-row b,
.native-row span,
.native-row small {
  display: block;
}

.native-row b {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.native-row span {
  margin-top: 3px;
  font-size: 0.98rem;
  font-weight: 900;
}

.native-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 15px;
  background: var(--mint);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(20, 72, 53, 0.08);
  font-family: var(--mono);
  font-weight: 950;
  font-style: normal;
}

.pay-contact::before { content: "PAY"; font-size: 0.68rem; }
.pay-bill::before { content: "BILL"; font-size: 0.64rem; }
.my-upi::before { content: "UPI"; font-size: 0.72rem; }
.gold-locker::before { content: "Au"; color: #d49500; }
.credit-score::before { content: "782"; font-size: 0.7rem; }

.divider-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  color: rgba(16, 35, 28, 0.5);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.divider-title span {
  height: 1px;
  background: rgba(16, 35, 28, 0.18);
}

.active-loan {
  padding: 14px;
}

.loan-card-head b,
.advisor-entry span,
.hero-card span,
.offer-card > span {
  display: block;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.loan-card-head strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 1.55rem;
}

.loan-card-head em {
  align-self: start;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  padding: 6px 9px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.loan-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.loan-meta-grid div,
.impact-grid div,
.offer-card div {
  border-radius: 10px;
  background: #f4f7f5;
  padding: 9px;
}

.loan-meta-grid span,
.loan-meta-grid b,
.impact-grid span,
.impact-grid b {
  display: block;
}

.loan-meta-grid span,
.impact-grid span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 780;
}

.loan-meta-grid b,
.impact-grid b {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.72rem;
}

.repay-progress {
  overflow: hidden;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e5ece7;
}

.repay-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.advisor-entry {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  border-color: rgba(255, 106, 26, 0.3);
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.11), #fff 68%);
  padding: 13px;
  text-align: left;
}

.advisor-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--green);
}

.advisor-mark::before {
  content: "Rs";
  color: #fff;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 950;
}

.advisor-entry strong,
.hero-card strong,
.offer-card strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 1.16rem;
  font-weight: 900;
}

.advisor-entry p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 760;
  line-height: 1.3;
}

.advisor-entry em {
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 9px 11px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
}

.screen-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -16px 14px;
  padding: 16px;
  background: rgba(244, 248, 244, 0.94);
  backdrop-filter: blur(12px);
}

.screen-bar button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--green);
  padding: 8px 10px;
  font-weight: 850;
}

.screen-bar span {
  color: var(--green);
  font-weight: 900;
}

.hero-card,
.calc-card,
.offer-card,
.consent-box,
.chat-thread,
.success-state {
  padding: 18px;
  margin-bottom: 12px;
}

.hero-card {
  background: linear-gradient(180deg, var(--mint), #fff 68%);
}

.hero-card strong,
.offer-card strong {
  margin: 7px 0 5px;
  font-family: var(--sans);
  font-size: 2.5rem;
  line-height: 1;
}

.hero-card p,
.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.42;
}

.checks-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.checks-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 13px;
}

.checks-list b,
.checks-list em {
  font-weight: 900;
}

.checks-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.checks-list em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  background: #f0f3ef;
  color: var(--muted);
  padding: 7px 9px;
  font-size: 0.62rem;
  font-style: normal;
}

.checks-list .pass em {
  background: var(--mint);
  color: var(--green);
}

.calc-card label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calc-card strong {
  display: block;
  margin: 7px 0 10px;
  color: var(--orange);
  font-size: 2.1rem;
  line-height: 1;
}

.calc-card input {
  width: 100%;
  accent-color: var(--green);
  margin: 0 0 18px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.impact-grid div {
  min-height: 86px;
  border: 1px solid var(--line);
  background: #fff;
}

.impact-grid b {
  color: var(--green);
  font-size: 1rem;
}

.risk-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  border: 1px solid rgba(20, 72, 53, 0.18);
  border-radius: 16px;
  background: var(--mint);
  padding: 14px;
  color: var(--green);
  font-weight: 900;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 50px;
  font-weight: 900;
}

.primary-action:disabled {
  background: #b7c2bb;
  cursor: not-allowed;
}

.secondary-action {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
}

.offer-card {
  background: linear-gradient(180deg, var(--mint), #fff 56%);
}

.offer-card div {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.offer-card div span,
.offer-card div b {
  font-size: 0.82rem;
}

.consent-box {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.35;
}

.chat-thread {
  display: grid;
  gap: 10px;
  background: #f4f7f5;
}

.chat-thread p {
  max-width: 88%;
  margin: 0;
  border-radius: 16px;
  padding: 12px;
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.35;
}

.chat-thread .bot {
  background: #fff;
}

.chat-thread .user {
  justify-self: end;
  background: var(--green);
  color: #fff;
}

.success-state {
  display: grid;
  place-items: center;
  min-height: 620px;
  text-align: center;
}

.success-state span {
  color: var(--orange);
  font-weight: 950;
  text-transform: uppercase;
}

.success-state strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.success-state p {
  color: var(--muted);
  font-weight: 760;
}

.timeline {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  width: 100%;
  margin: 18px 0;
  text-align: left;
}

.timeline i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--orange);
}

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
  }

  .brand img {
    width: 116px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .prototype-shell {
    min-height: calc(100vh - 66px);
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    min-height: calc(100vh - 66px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-screen {
    height: calc(100vh - 42px - 66px);
    min-height: 620px;
  }

  .loan-banner {
    grid-template-columns: 1fr 106px;
  }
}
