:root {
  --bn: 'Hind Siliguri', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --en: 'Inter', 'SF Pro Text', system-ui, -apple-system, sans-serif;

  /* Omnizen warm-light palette — near-white with subtle warmth */
  --bg:      #fdfcfa;
  --bg-warm: #fbf5ec;       /* peach tint top */
  --bg-2:    #ffffff;       /* card surface */
  --bg-3:    #faf6ef;       /* input nested */
  --fg:      #0e0a06;
  --fg-soft: #3f3a33;
  --fg-mute: #79716a;
  --line:    rgba(60,40,20,.10);
  --line-2:  rgba(60,40,20,.16);
  --glass:       rgba(255,253,249,.68);
  --glass-line:  rgba(60,40,20,.10);
  --shadow: 0 30px 80px -22px rgba(80,55,30,.18), 0 8px 24px -8px rgba(80,55,30,.10);

  --accent:    #b87147;     /* deeper terracotta — readable on light */
  --accent-2:  #d49872;     /* peach */
  --accent-ink:#fff8f0;
  --ok:        #1f8a4a;
  --warn:      #c83a4a;
  --warn-bg:   rgba(200,58,74,.07);
  --ok-bg:     rgba(31,138,74,.07);

  --r-card:  22px;
  --r-input: 14px;
  --ease:    cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--bn);
  color: var(--fg);
  background: var(--bg);
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  position: relative;
  overflow-x: hidden;
}

/* Ambient warm orbs */
.ambient {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-warm) 0, var(--bg) 42%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .35;
  animation: float 22s var(--ease) infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: radial-gradient(closest-side, #f5d4af, transparent 70%); top: -180px; left: -200px; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(closest-side, #ffd9c0, transparent 72%); top: 28%; right: -180px; animation-delay: -7s; opacity: .28; }
.orb-3 { width: 380px; height: 380px; background: radial-gradient(closest-side, #ffe5d0, transparent 75%); bottom: -140px; left: 22%; animation-delay: -14s; opacity: .25; }
@keyframes float {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(40px,-30px,0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 4vw, 32px) 64px;
  display: flex; flex-direction: column; gap: clamp(20px, 3.5vw, 36px);
}

/* Masthead */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--fg);
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 4px rgba(230,179,137,.14);
}
.year-pill {
  font-family: var(--en);
  font-size: 12.5px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  color: var(--fg-soft);
  box-shadow: 0 1px 2px rgba(80,55,30,.04);
}

/* Hero */
.hero { padding-top: clamp(8px, 2vw, 20px); }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--fg);
  text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--fg-soft);
  margin: 0;
  max-width: 60ch;
}

/* Glass card */
.glass {
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.search-card { padding: clamp(20px, 3vw, 28px); }

.label {
  display: block; font-family: var(--en);
  font-size: 11px; font-weight: 600;
  color: var(--fg-mute); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 10px;
}
.input-row { display: flex; gap: 10px; }

#tin {
  flex: 1; min-width: 0;
  font-family: var(--en);
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 16px 18px;
  border-radius: var(--r-input);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--fg);
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
#tin::placeholder { color: var(--fg-mute); font-weight: 500; letter-spacing: 0; font-family: var(--bn); font-size: 17px; }
#tin:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(230,179,137,.16);
}

#check {
  font-family: var(--bn);
  font-size: 16px; font-weight: 600;
  padding: 0 22px;
  border: 1px solid color-mix(in oklab, var(--accent-2) 65%, transparent);
  border-radius: var(--r-input);
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s var(--ease), filter .15s var(--ease);
  box-shadow: 0 8px 22px -10px rgba(230,179,137,.4);
}
#check:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
#check:active:not(:disabled) { transform: translateY(0); filter: brightness(.95); }
#check:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
#check svg { transition: transform .2s var(--ease); }
#check:hover:not(:disabled) svg { transform: translateX(2px); }

.hint { margin: 12px 2px 0; font-size: 13.5px; color: var(--fg-mute); }

.status {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--fg-soft);
}
.status[hidden] { display: none; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(184,113,71,.22);
  border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result { display: contents; }
.result-card {
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 28px);
  display: grid; gap: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  animation: pop .4s var(--ease);
}
.result-card.ok    { background: linear-gradient(180deg, var(--ok-bg),   var(--bg-2) 60%); border-color: color-mix(in oklab, var(--ok)   28%, var(--line)); }
.result-card.warn  { background: linear-gradient(180deg, var(--warn-bg), var(--bg-2) 60%); border-color: color-mix(in oklab, var(--warn) 28%, var(--line)); }
.result-card.error { background: var(--bg-2); }

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.r-head { display: flex; align-items: center; gap: 14px; }
.r-icon {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px;
  display: grid; place-items: center;
}
.r-icon.warn { background: linear-gradient(180deg, #ff9c8c, #d75d6e); color: #1d0a0a; }
.r-icon.ok   { background: linear-gradient(180deg, #6ee08c, #2fae5a); color: #07210e; }
.r-title { font-size: clamp(20px, 3vw, 24px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--fg); }
.r-sub   { color: var(--fg-soft); font-size: 14.5px; margin-top: 2px; }

.r-tin { font-family: var(--en); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; color: var(--fg); }

.details {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding-top: 6px;
}
@media (min-width: 520px) { .details { grid-template-columns: 1fr 1fr; } }
.det {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: rgba(255,250,243,.6);
}
.det .k { font-family: var(--en); font-size: 11px; color: var(--fg-mute); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.det .v { font-size: 15.5px; font-weight: 500; color: var(--fg); }

/* Guidance */
.guide {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  display: grid; gap: 14px;
}
.g-head { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.g-lead { margin: 0; color: var(--fg-soft); font-size: 14.5px; line-height: 1.65; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  font-size: 14.5px; line-height: 1.6;
  color: var(--fg-soft);
}
.steps b { font-weight: 600; color: var(--fg); }
.steps .num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--en); font-size: 13px; font-weight: 700;
  background: rgba(184,113,71,.10);
  color: var(--accent);
  border: 1px solid rgba(184,113,71,.28);
}
.result-card.warn .steps .num {
  background: rgba(60,40,20,.05);
  color: var(--fg-soft);
  border-color: var(--line-2);
}
.tip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(248,239,226,.55);
  border: 1px solid var(--line);
  font-size: 13.5px; color: var(--fg-soft); line-height: 1.6;
}
.tip svg { flex: 0 0 16px; margin-top: 2px; color: var(--fg-mute); }
.tip a { color: var(--accent-2); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(230,179,137,.4); }
.tip a:hover { border-bottom-color: var(--accent-2); }
.tip strong { color: var(--fg); font-weight: 600; }

/* Footer */
.foot { color: var(--fg-mute); font-size: 13px; padding-top: 8px; }
.foot strong { color: var(--fg-soft); font-weight: 600; }
.foot em { color: var(--fg-soft); font-style: italic; }
.foot .muted { margin-top: 6px; line-height: 1.7; }
.foot a { color: var(--accent-2); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(230,179,137,.35); }
.foot a:hover { border-bottom-color: var(--accent-2); }

/* Share button (in result card) */
.share-bar { display: flex; justify-content: flex-end; margin-top: -2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(248,239,226,.6);
  border: 1px solid var(--line);
  color: var(--fg-soft);
  font-family: var(--bn); font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.share-btn:hover { background: rgba(184,113,71,.10); border-color: rgba(184,113,71,.30); color: var(--accent); }
.share-btn svg { color: currentColor; }

/* KMS sponsor strip — neutral brand presence */
.ad-wrap {
  position: sticky; top: 0; z-index: 50;
  background:
    radial-gradient(700px 160px at 70% 0%, rgba(230,179,137,.18), transparent 75%),
    rgba(255,251,244,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.ad-banner {
  max-width: 720px;
  margin: 0 auto;
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 14px);
  padding: 6px clamp(20px, 4vw, 32px);
  color: var(--fg);
}
.ad-brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  flex: 1; min-width: 0;
}
.ad-label {
  font-family: var(--en);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute);
  flex: 0 0 auto;
  margin-right: 2px;
}
@media (max-width: 580px) { .ad-label { display: none; } }
.ad-logo {
  width: 56px; height: 56px; flex: 0 0 56px;
  object-fit: contain;
  background: transparent; padding: 0; border: 0;
}
.ad-text {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; min-width: 0; line-height: 1.15;
}
.ad-name {
  font-family: var(--en); font-weight: 800; font-size: 16px;
  color: var(--fg); letter-spacing: -0.015em;
  line-height: 1;
}
.ad-sub {
  font-family: var(--en); font-size: 11px; font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}

.ad-contacts {
  display: inline-flex; align-items: center; gap: 4px;
  flex: 0 0 auto;
  margin-left: clamp(24px, 5vw, 56px);
}
.ad-c {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  text-decoration: none;
  font-family: var(--en); font-size: 12.5px; font-weight: 500;
  color: var(--fg-soft);
  border: 1px solid transparent;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.ad-c:hover {
  background: rgba(184,113,71,.08);
  color: var(--accent);
  border-color: rgba(184,113,71,.20);
}
.ad-c svg { color: var(--accent); opacity: .8; flex: 0 0 auto; }
.ad-c-host {
  font-weight: 600; color: var(--accent);
  border: 1px solid rgba(184,113,71,.30);
  background: rgba(184,113,71,.06);
}
.ad-c-host svg { color: var(--accent); opacity: 1; }
.ad-c-host:hover { background: rgba(184,113,71,.12); border-color: var(--accent); }

/* Mobile — keep just host pill, hide phone+email */
@media (max-width: 580px) {
  .ad-banner { padding: 5px 16px; gap: 10px; }
  .ad-c:not(.ad-c-host) { display: none; }
  .ad-c { padding: 5px 9px; font-size: 12px; }
  .ad-name { font-size: 15px; }
  .ad-sub  { font-size: 10.5px; }
  .ad-logo { width: 46px; height: 46px; flex: 0 0 46px; }
}

/* KMS sponsor card (still available, currently unused) */
.kms-card {
  border: 1px solid rgba(230,179,137,.22);
  border-radius: var(--r-card);
  padding: clamp(18px, 2.6vw, 24px);
  background:
    radial-gradient(420px 220px at 92% -10%, rgba(255,140,40,.08), transparent 70%),
    linear-gradient(180deg, rgba(40,30,22,.55), var(--bg-2) 70%);
  box-shadow: var(--shadow);
  display: grid; gap: 14px;
}
.kms-eyebrow {
  font-family: var(--en); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.kms-head {
  display: flex; align-items: center; gap: 14px;
}
.kms-logo {
  width: 64px; height: 64px; border-radius: 14px;
  object-fit: contain; padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  flex: 0 0 64px;
}
.kms-name {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--fg); line-height: 1;
}
.kms-tag {
  font-family: var(--en); font-size: 12.5px; color: var(--fg-soft);
  margin-top: 4px; font-style: italic;
}
.kms-lead { margin: 2px 0 0; font-size: 14.5px; color: var(--fg-soft); line-height: 1.6; }
.kms-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kms-meta li {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
  font-size: 13.5px; color: var(--fg-soft); line-height: 1.5;
  align-items: start;
}
.kms-meta li svg { margin-top: 3px; color: var(--accent-2); }
.kms-meta a { color: var(--fg); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.kms-meta a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.kms-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink); font-weight: 700; font-size: 15px;
  text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--accent-2) 65%, transparent);
  box-shadow: 0 8px 22px -10px rgba(230,179,137,.4);
  transition: transform .15s var(--ease), filter .15s var(--ease);
  width: 100%;
}
.kms-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.kms-cta svg { transition: transform .2s var(--ease); }
.kms-cta:hover svg { transform: translateX(2px); }

.powered {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  font-family: var(--en); font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--fg-mute);
}
.powered a {
  color: var(--fg-soft);
  text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.powered a:hover { color: var(--accent-2); border-bottom-color: rgba(230,179,137,.4); }

::selection { background: rgba(230,179,137,.30); color: var(--fg); }
