/* Jai Malhar Enterprises - Claymorphism / Soft UI (light) */
:root {
  --porcelain: #F8FAFC;
  --ink: #0F172A;
  --muted: #475569;
  --gold: #F5B800;
  --amber: #D97706;
  --crimson: #E51A34;
  --signal: #10B981;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  background-attachment: fixed;
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.font-display { font-family: 'Outfit', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Ambient light blobs */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; border-radius: 9999px; filter: blur(90px); opacity: .75; }
.ambient .a1 { width: 520px; height: 520px; top: -140px; left: -120px; background: #FEF3C7; }
.ambient .a2 { width: 460px; height: 460px; top: 30%; right: -160px; background: #FDE68A; opacity: .5; }
.ambient .a3 { width: 520px; height: 520px; bottom: -180px; left: 20%; background: #D1FAE5; }

/* Clay surfaces */
.clay-card {
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow:
    14px 22px 36px -10px rgba(15, 23, 42, 0.08),
    -8px -8px 20px 0 rgba(255, 255, 255, 0.95),
    inset 4px 4px 8px 0 rgba(255, 255, 255, 0.85),
    inset -4px -4px 8px 0 rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all 0.3s var(--spring);
}
.clay-card:hover {
  transform: translateY(-4px);
  box-shadow:
    18px 28px 44px -12px rgba(245, 158, 11, 0.12),
    -10px -10px 24px 0 rgba(255, 255, 255, 1),
    inset 4px 4px 8px 0 rgba(255, 255, 255, 0.9);
}
.clay-static:hover { transform: none; }
.clay-inset {
  background: #F1F5F9;
  border-radius: 20px;
  box-shadow: inset 5px 5px 10px rgba(15, 23, 42, 0.08), inset -5px -5px 10px rgba(255, 255, 255, 0.95);
}
.clay-featured { background: linear-gradient(160deg, #FFFBEB 0%, #FFFFFF 60%); outline: 2px solid rgba(245, 184, 0, .55); }

/* Clay buttons */
.clay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; font-weight: 700; padding: .9rem 1.75rem; cursor: pointer;
  transition: all 0.18s var(--spring); user-select: none;
}
.clay-btn-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 24px -6px rgba(245, 158, 11, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}
.clay-btn-primary:hover { transform: translateY(-2px); }
.clay-btn-primary:active { transform: translateY(2px) scale(0.98); box-shadow: 0 4px 10px -2px rgba(245, 158, 11, 0.3), inset 0 3px 6px rgba(0, 0, 0, 0.3); }
.clay-btn-soft {
  background: #FFFFFF; color: var(--ink);
  box-shadow: 8px 12px 22px -8px rgba(15, 23, 42, 0.12), -5px -5px 12px rgba(255, 255, 255, 1), inset 2px 2px 4px rgba(255, 255, 255, .9), inset -2px -2px 4px rgba(15, 23, 42, .04);
}
.clay-btn-soft:hover { transform: translateY(-2px); }
.clay-btn-soft:active { transform: translateY(2px) scale(0.98); box-shadow: inset 4px 4px 8px rgba(15, 23, 42, .1), inset -3px -3px 6px #fff; }

/* Pills / tabs */
.clay-pill {
  max-width: 100%; text-align: left;
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px; background: #fff;
  padding: .4rem 1rem; font-size: .8rem; font-weight: 700; color: var(--ink);
  box-shadow: 6px 8px 16px -6px rgba(15,23,42,.1), -4px -4px 10px #fff, inset 2px 2px 4px #fff, inset -2px -2px 4px rgba(15,23,42,.04);
}
.clay-tab {
  border-radius: 9999px; padding: .65rem 1.25rem; font-weight: 700; font-size: .875rem; color: var(--muted);
  transition: all .2s var(--spring); cursor: pointer;
}
.clay-tab[aria-selected="true"], .clay-tab[aria-pressed="true"] {
  background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff;
  box-shadow: 0 8px 16px -4px rgba(245,158,11,.45), inset 0 2px 3px rgba(255,255,255,.4), inset 0 -2px 3px rgba(0,0,0,.18);
}
.tab-track { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .35rem; }

/* Inputs */
.clay-input {
  width: 100%; background: #F1F5F9; color: var(--ink); border-radius: 16px; padding: .9rem 1.1rem; border: 1px solid transparent;
  box-shadow: inset 4px 4px 8px rgba(15,23,42,.07), inset -4px -4px 8px rgba(255,255,255,.95);
  transition: box-shadow .2s, border-color .2s;
}
.clay-input::placeholder { color: #94A3B8; }
.clay-input:focus { outline: none; border-color: rgba(217,119,6,.55); box-shadow: inset 4px 4px 8px rgba(15,23,42,.07), inset -4px -4px 8px #fff, 0 0 0 4px rgba(245,184,0,.2); }
.clay-input[aria-invalid="true"] { border-color: rgba(229,26,52,.6); }

/* Pillow sliders */
.clay-range { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; border-radius: 9999px; background: #E2E8F0; cursor: pointer;
  box-shadow: inset 3px 3px 6px rgba(15,23,42,.12), inset -3px -3px 6px rgba(255,255,255,.95); }
.clay-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFE066, #F59E0B 60%, #D97706);
  box-shadow: 0 8px 14px -3px rgba(217,119,6,.5), inset 2px 3px 4px rgba(255,255,255,.6), inset -2px -3px 4px rgba(0,0,0,.18); border: 0; transition: transform .15s var(--spring); }
.clay-range::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 32% 28%, #FFE066, #F59E0B 60%, #D97706);
  box-shadow: 0 8px 14px -3px rgba(217,119,6,.5), inset 2px 3px 4px rgba(255,255,255,.6), inset -2px -3px 4px rgba(0,0,0,.18); }
.clay-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.clay-range:focus-visible { outline: 3px solid rgba(245,184,0,.5); outline-offset: 4px; }

/* Currency switch */
.clay-switch { position: relative; width: 64px; height: 34px; border-radius: 9999px; background: #E2E8F0; cursor: pointer;
  box-shadow: inset 3px 3px 6px rgba(15,23,42,.12), inset -3px -3px 6px #fff; }
.clay-switch .thumb { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFE066, #F59E0B 60%, #D97706); box-shadow: 0 4px 8px rgba(217,119,6,.45), inset 1px 2px 3px rgba(255,255,255,.6);
  transition: transform .3s var(--spring); }
.clay-switch[aria-checked="true"] .thumb { transform: translateX(30px); }

/* Speed dial */
.dial-ring { transition: stroke-dashoffset 1.6s cubic-bezier(.22,1,.36,1); }
.dial-shell {
  border-radius: 50%; background: linear-gradient(145deg, #FFFFFF, #EEF2F7);
  box-shadow: 18px 24px 40px -10px rgba(15,23,42,.18), -12px -12px 26px #fff, inset 6px 6px 12px rgba(255,255,255,.9), inset -6px -6px 12px rgba(15,23,42,.06);
}
.dial-core { border-radius: 50%; background: #F1F5F9; box-shadow: inset 6px 6px 12px rgba(15,23,42,.1), inset -6px -6px 12px #fff; }

/* Misc */
.grad-text { background: linear-gradient(90deg, #F5B800, #D97706 55%, #E51A34); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--spring); }
.reveal.visible { opacity: 1; transform: none; }
.nav-scrolled { background: rgba(248,250,252,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px -14px rgba(15,23,42,.15); }
.pulse-dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.55);} 50% { box-shadow: 0 0 0 7px rgba(16,185,129,0);} }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-panel > div { overflow: hidden; }
.faq-item.open .faq-panel { grid-template-rows: 1fr; }
.faq-icon { transition: transform .3s var(--spring); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

#drawer { transform: translateX(105%); transition: transform .3s ease; }
#drawer.open { transform: none; }

button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid rgba(245,184,0,.6); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .pulse-dot { animation: none; }
  .clay-card, .clay-btn, .dial-ring { transition: none; }
}

/* Navigation */
.nav-link { padding: .55rem 1rem; border-radius: 9999px; color: var(--muted); transition: all .2s var(--spring); }
.nav-link:hover { color: var(--ink); }
.nav-link.active {
  color: var(--ink); background: #fff;
  box-shadow: 6px 8px 14px -6px rgba(15,23,42,.14), -4px -4px 10px #fff, inset 2px 2px 4px #fff, inset -2px -2px 4px rgba(15,23,42,.05);
}
.nav-link.active::after { content: ''; display: block; height: 3px; width: 18px; margin: 3px auto -2px; border-radius: 9999px; background: linear-gradient(90deg, #F5B800, #D97706); }

.wa-bubble {
  background: radial-gradient(circle at 32% 28%, #4ADE80, #25D366 60%, #16A34A);
  box-shadow: 0 12px 22px -6px rgba(37,211,102,.55), inset 2px 3px 5px rgba(255,255,255,.5), inset -2px -3px 5px rgba(0,0,0,.18);
}

/* Slot chips (scheduler) */
.slot-chip {
  border-radius: 14px; padding: .55rem .9rem; font-size: .8rem; font-weight: 700; color: var(--ink); background: #F1F5F9; cursor: pointer; text-align: center;
  box-shadow: inset 3px 3px 6px rgba(15,23,42,.07), inset -3px -3px 6px #fff; transition: all .18s var(--spring);
}
.slot-chip[aria-checked="true"] {
  background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff;
  box-shadow: 0 8px 14px -4px rgba(245,158,11,.45), inset 0 2px 3px rgba(255,255,255,.4), inset 0 -2px 3px rgba(0,0,0,.18);
}

/* Pipeline diagram */
.flow-node { cursor: pointer; position: relative; }
.flow-node[aria-pressed="true"] { outline: 2px solid rgba(245,184,0,.75); background: linear-gradient(160deg, #FFFBEB, #fff); }
.flow-node.done .flow-num::after { content: ' ✓'; color: var(--signal); }
.flow-node.running .flow-bar > span { transition: width 1s linear; width: 100% !important; }
.flow-node.done .flow-bar > span { width: 100%; }

/* Before / after slider */
.ba { position: relative; cursor: ew-resize; touch-action: pan-y; user-select: none; height: 22rem; border-radius: 24px; overflow: hidden; box-shadow: inset 5px 5px 10px rgba(15,23,42,.08), inset -5px -5px 10px rgba(255,255,255,.95); background: #E2E8F0; }
.ba-layer { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-chrome { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; background: #F1F5F9; }
.ba-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.ba-chrome b { margin-left: .5rem; font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--muted); font-weight: 500; }
.ba-body { padding: 1rem 1.25rem; }
.ba-tag { position: absolute; z-index: 3; top: 3.4rem; box-shadow: 0 2px 8px rgba(15,23,42,.15); padding: .3rem .8rem; border-radius: 9999px; font-size: .75rem; font-weight: 800; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: clamp(22px, var(--pos), calc(100% - 22px)); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 10px rgba(15,23,42,.25); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 32% 28%, #FFE066, #F59E0B 60%, #D97706); box-shadow: 0 8px 14px -3px rgba(217,119,6,.5), inset 2px 3px 4px rgba(255,255,255,.6); }
.sk { border-radius: 12px; background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(229,26,52,.25); border-top-color: var(--crimson); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .sk, .spinner { animation: none; } }

/* ---------- Mobile / touch polish ---------- */
html { -webkit-text-size-adjust: 100%; }
a, button, [role="tab"], [role="switch"], [role="radio"], .clay-btn, .clay-tab, .slot-chip { touch-action: manipulation; -webkit-tap-highlight-color: rgba(245, 184, 0, .18); }

/* Respect notches and the home indicator */
#main-header { padding-top: max(.75rem, env(safe-area-inset-top)); }
.wa-bubble { bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + .75rem)) !important; right: max(1.25rem, calc(env(safe-area-inset-right) + .75rem)) !important; }
#drawer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
footer { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 1023px) {
  /* 16px inputs stop iOS Safari zooming the page on focus */
  .clay-input, select.clay-input, textarea.clay-input { font-size: 16px; }

  /* Footer + inline text links: at least a 44px tap area */
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  main a:not(.clay-btn):not(.clay-card):not(.clay-tab):not(.nav-link) { position: relative; }
  main a:not(.clay-btn):not(.clay-card):not(.clay-tab):not(.nav-link)::after { content: ''; position: absolute; inset: -12px -4px; }

  /* Pills / tabs / slot chips */
  .clay-tab { min-height: 44px; display: inline-flex; align-items: center; }
  .slot-chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .clay-btn { min-height: 48px; }

  .clay-range { margin: 6px 0; }
  a.clay-pill { min-height: 44px; }
  .text-\[11px\] { font-size: 12px; }
  .clay-switch { min-width: 64px; margin: 5px 0; }
  .clay-switch::before { content: ''; position: absolute; inset: -8px; }

  /* Legibility of micro-labels */
  .ba-chrome b, .ba-tag { font-size: .75rem; }
  .font-mono { letter-spacing: 0; }
  .ba { height: 20rem; }
}

@media (max-width: 380px) {
  .tab-track { width: 100%; }
  .clay-card { border-radius: 22px; }
  h1 { overflow-wrap: anywhere; }
}

/* Landscape phones: keep drawer scrollable */
@media (max-height: 480px) { #drawer { overflow-y: auto; } }

/* ---------- Careers: job board ---------- */
.badge-open { display: inline-flex; align-items: center; gap: .35rem; border-radius: 9999px; padding: .2rem .65rem; font-size: .7rem; font-weight: 800; color: #047857; background: #D1FAE5; }
.badge-open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.job-card { display: block; width: 100%; text-align: left; cursor: pointer; padding: 1.25rem 1.35rem; }
.job-card:focus-visible { outline: 3px solid rgba(245,184,0,.65); outline-offset: 3px; }
.job-card[aria-current="true"] { outline: 2px solid rgba(245,184,0,.7); background: linear-gradient(160deg, #FFFBEB 0%, #FFFFFF 70%); }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.job-meta span { border-radius: 9999px; background: #F1F5F9; padding: .2rem .65rem; font-size: .72rem; font-weight: 700; color: var(--ink); }
.job-section + .job-section { margin-top: 1.5rem; }
.job-section h3 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.job-section ul { margin-top: .6rem; padding-left: 1.15rem; list-style: disc; }
.job-section li { margin-top: .4rem; }
.job-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.job-facts > div { border-radius: 16px; padding: .7rem .9rem; }
.job-facts dt { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.job-facts dd { margin-top: .15rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.job-sheet-bar { display: none; }

@media (min-width: 1024px) {
  .job-detail { position: sticky; top: 6rem; }
  .job-detail .job-body { animation: jobIn .35s ease both; }
}
@keyframes jobIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023.98px) {
  .job-detail {
    position: fixed; inset: 0; z-index: 75; overflow-y: auto; overscroll-behavior: contain; background: #F8FAFC;
    transform: translateX(100%); visibility: hidden; transition: transform .32s ease, visibility 0s linear .32s;
    padding: 0 0 env(safe-area-inset-bottom);
  }
  .job-detail.open { transform: none; visibility: visible; transition: transform .32s ease, visibility 0s; }
  .job-detail .hidden-on-mobile { display: none; }
  .job-sheet-bar {
    display: flex; align-items: center; position: sticky; top: 0; z-index: 2; padding: max(.75rem, env(safe-area-inset-top)) 1rem .75rem;
    background: rgba(248,250,252,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #E2E8F0;
  }
  .job-detail .job-article { border-radius: 0; box-shadow: none; border: 0; background: transparent; padding: 1.25rem 1rem 2rem; }
}

/* ---------- Careers: application panel ---------- */
.apply-root { position: fixed; inset: 0; z-index: 90; }
.apply-root.hidden { display: none; }
.apply-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.apply-root.open .apply-backdrop { opacity: 1; }
.apply-panel {
  position: absolute; display: flex; flex-direction: column; background: #F8FAFC;
  box-shadow: -20px 0 50px -10px rgba(15,23,42,.25); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.apply-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #E2E8F0; background: #fff; }
.apply-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1.25rem max(1.5rem, env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .apply-panel { top: 0; right: 0; bottom: 0; width: min(540px, 100%); transform: translateX(105%); }
  .apply-root.open .apply-panel { transform: none; }
}
@media (max-width: 1023.98px) {
  .apply-panel { left: 0; right: 0; bottom: 0; max-height: 94vh; max-height: 94dvh; border-radius: 28px 28px 0 0; transform: translateY(105%); box-shadow: 0 -20px 50px -10px rgba(15,23,42,.3); }
  .apply-root.open .apply-panel { transform: none; }
  .apply-head { border-radius: 28px 28px 0 0; }
}
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 9999px; background: #F1F5F9; font-size: .875rem; font-weight: 700; color: var(--ink);
  box-shadow: inset 3px 3px 6px rgba(15,23,42,.07), inset -3px -3px 6px #fff; transition: all .2s var(--spring); }
.choice input:checked + span { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; box-shadow: 0 6px 12px -4px rgba(245,158,11,.45), inset 0 2px 3px rgba(255,255,255,.4); }
.choice input:focus-visible + span { outline: 3px solid rgba(245,184,0,.65); outline-offset: 2px; }
.file-input { padding: .7rem 1rem; font-size: .875rem; }
.file-input::file-selector-button { margin-right: .75rem; border: 0; border-radius: 9999px; padding: .5rem 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #F59E0B, #D97706); cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset.apply-field { border: 0; padding: 0; margin: 0; min-width: 0; }
#apply-submit[aria-busy="true"] { opacity: .8; cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  .job-detail, .apply-panel, .apply-backdrop { transition: none !important; }
  .job-detail .job-body { animation: none; }
}
