/* Technaus Renewable HR — shell tokens match the WA Installation Planner */
:root {
  --navy: #10233e; --navy-2: #173155; --blue: #2563eb; --blue-ink: #1d4ed8; --blue-wash: #eef3fe;
  --brand-blue: #088ac2; --ink: #0f1a2b; --ink-2: #3b4a5e; --muted: #6b7a90; --line: #e3e8ef;
  --line-2: #eef1f5; --bg: #f6f8fb; --white: #fff;
  --green: #127a4b; --green-wash: #e7f5ee; --amber: #9a5b00; --amber-wash: #fff4e0;
  --red: #b42318; --red-wash: #fdecea; --violet: #5b3fb8; --violet-wash: #f0ecfb;
  --radius: 8px; --shadow: 0 1px 2px rgba(16, 35, 62, .06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); font-size: 14px; line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 15px; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- staff shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #c9d4e5; padding: 22px 14px; position: sticky; top: 0; height: 100vh;
        display: flex; flex-direction: column; }
.side .logo { padding: 0 8px 22px; }
.side .logo img { width: 168px; display: block; }
.side .logo span { display: block; font-size: 11.5px; color: #8ea3c2; margin-top: 8px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9d4e5; padding: 8px 10px; border-radius: 6px;
              font-weight: 500; margin-bottom: 2px; }
.side nav a:hover { background: var(--navy-2); text-decoration: none; color: #fff; }
.side nav a.on { background: var(--blue); color: #fff; }
.side nav .sep { height: 1px; background: #22395c; margin: 12px 6px; }
.side .who { margin-top: auto; font-size: 12px; padding: 10px; color: #8ea3c2; border-top: 1px solid #22395c; }
.side .who b { color: #fff; font-weight: 600; display: block; }
.main { padding: 26px 34px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.sim-banner { background: var(--amber-wash); color: var(--amber); border: 1px solid #f3dcb0; padding: 8px 12px;
              border-radius: var(--radius); font-size: 12.5px; margin-bottom: 18px; }

/* ---------- panels, tables */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel + .panel, .section + .section { margin-top: 18px; }
.grid-2 > .panel { margin-top: 0; min-width: 0; }
.panel { overflow-x: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px;
              border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; }
.panel-body { padding: 16px 18px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px;
                border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: #fafcff; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-link { color: var(--ink); font-weight: 600; }
.bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; min-width: 120px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
dl.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }

/* ---------- pills */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 550;
        white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill.g-screening { background: var(--blue-wash); color: var(--blue-ink); }
.pill.g-interview { background: var(--violet-wash); color: var(--violet); }
.pill.g-onboarding { background: var(--amber-wash); color: var(--amber); }
.pill.g-employees { background: var(--green-wash); color: var(--green); }
.pill.warn { background: var(--amber-wash); color: var(--amber); }
.pill.g-closed { background: #f1f2f4; color: #6b7280; }
.score-ok { color: var(--green); font-weight: 600; }
.score-bad { color: var(--red); font-weight: 600; }

/* ---------- tabs & filters */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 9px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; font-weight: 500; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { color: var(--blue); border-color: var(--blue); }
.tabs a span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 180px; }

/* ---------- forms */
label { display: block; font-weight: 550; font-size: 13px; margin-bottom: 5px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date],
input[type=datetime-local], input[type=password], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cfd7e3; border-radius: 6px; font: inherit; color: var(--ink);
  background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
textarea { min-height: 84px; resize: vertical; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { margin-top: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px;
       border-radius: 6px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer;
       background: var(--blue); color: #fff; text-decoration: none; }
.btn:hover { background: var(--blue-ink); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cfd7e3; }
.btn.ghost:hover { background: #f5f7fa; }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c4bf; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn.wide { width: 100%; padding: 12px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13.5px; }
.flash.info { background: var(--blue-wash); color: var(--blue-ink); }
.flash.error { background: var(--red-wash); color: var(--red); }
.errors { background: var(--red-wash); color: var(--red); padding: 12px 16px 12px 32px; border-radius: var(--radius); margin: 0 0 18px; }
details.step { border-top: 1px solid var(--line); }
details.step > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none;
                         display: flex; justify-content: space-between; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > div { padding: 0 18px 18px; }

/* ---------- timeline */
ol.timeline { list-style: none; margin: 0; padding: 0; }
ol.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); position: relative; font-size: 13px; }
ol.timeline li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px;
                         border-radius: 50%; background: #b8c4d6; }
ol.timeline li .when { color: var(--muted); font-size: 12px; display: block; }

/* ---------- answer review */
.qa { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.qa .q { font-weight: 550; }
.qa .a-wrong { color: var(--red); }
.qa .a-right { color: var(--green); }

/* ---------- WhatsApp simulator */
.wa { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 170px); min-height: 480px; }
.wa .threads { border-right: 1px solid var(--line); overflow-y: auto; }
.wa .threads a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.wa .threads a.on { background: var(--blue-wash); }
.wa .threads a:hover { text-decoration: none; background: #f7f9fc; }
.wa .chat { background: #efeae2; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.wa .bubble { align-self: flex-start; background: #fff; max-width: 440px; padding: 8px 12px 6px; border-radius: 8px;
              box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-wrap; word-break: break-word; }
.wa .bubble .meta { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }
.wa .bubble .tpl { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.wa .bubble.otp .code { font-size: 22px; font-weight: 700; letter-spacing: .12em; }

/* ---------- candidate side */
.c-wrap { max-width: 640px; margin: 0 auto; padding: 28px 20px 70px; }
.c-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.c-top img { width: 170px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.c-card h1 { font-size: 22px; margin-bottom: 8px; }
.c-card .lead { color: var(--ink-2); font-size: 15px; }
.c-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }
.bigfield input { font-size: 20px; padding: 12px 14px; letter-spacing: .04em; }
.bigfield .prefix { display: flex; }
.bigfield .prefix span { padding: 12px 12px; border: 1px solid #cfd7e3; border-right: 0; border-radius: 6px 0 0 6px;
                         background: #f5f7fa; font-size: 18px; color: var(--ink-2); }
.bigfield .prefix input { border-radius: 0 6px 6px 0; }
.steps-list { list-style: none; padding: 0; margin: 16px 0; }
.steps-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line-2); }
.steps-list li b { position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%;
                   background: var(--blue-wash); color: var(--blue-ink); font-size: 12px; display: grid; place-items: center; }

/* test */
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.saved-row { min-height: 18px; margin-bottom: 14px; text-align: right; font-size: 12px; color: var(--muted); }
.progress i { display: block; height: 100%; background: var(--blue); transition: width .25s ease; }
.qhead { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.question { font-size: 18px; font-weight: 600; line-height: 1.45; margin: 4px 0 18px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line);
       border-radius: 10px; margin-bottom: 10px; cursor: pointer; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff; }
.opt:hover { border-color: #b9c8e6; }
.opt input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.opt.chosen { border-color: var(--blue); background: var(--blue-wash); }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 22px; }
.dots button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
               font-size: 11.5px; cursor: pointer; color: var(--ink-2); }
.dots button.done { background: var(--blue-wash); border-color: #c7d6f7; color: var(--blue-ink); }
.dots button.here { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }

/* joining form */
.fs { border: 0; padding: 0; margin: 0 0 8px; }
.fs legend { font-size: 16px; font-weight: 650; margin-bottom: 12px; padding-top: 18px; }
.qrow { display: grid; grid-template-columns: 1.2fr 1.6fr .6fr .6fr; gap: 8px; margin-bottom: 8px; }
.have { font-size: 12.5px; color: var(--green); margin-top: 4px; }
.sigpad { border: 1.5px dashed #b7c3d6; border-radius: 10px; background: #fff; touch-action: none; width: 100%; height: 180px; display: block; }
.pdf-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .detail, .grid-2 { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 50px; }
}
@media (max-width: 560px) {
  .fields, .fields.three { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr 1fr; }
  .c-card { padding: 20px 16px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px 0; }
  dl.kv dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- English / Tamil */
.lang-en .ta, .lang-ta .en { display: none !important; }
.lang-ta { font-family: "Noto Sans Tamil", Inter, system-ui, sans-serif; }
.lang-ta .question { font-size: 17px; line-height: 1.6; }
.lang-switch { display: inline-flex; border: 1px solid #cfd7e3; border-radius: 999px; overflow: hidden; }
.lang-switch button { border: 0; background: #fff; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.lang-switch button.on { background: var(--blue); color: #fff; }
.lang-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.lang-pick label { justify-content: center; font-size: 17px; font-weight: 600; margin: 0; }
.ta-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; font-family: "Noto Sans Tamil", Inter, sans-serif; }
[hidden] { display: none !important; }

/* ================================================================ motion & loading */
#loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
#loadbar i { display: block; height: 100%; width: 0; opacity: 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--blue), #88d0f0); box-shadow: 0 0 8px rgba(37,99,235,.5); }
#loadbar.go i { opacity: 1; animation: loadbar 8s cubic-bezier(.1,.7,.2,1) forwards; }
#loadbar.done i { opacity: 0; width: 100%; transition: width .2s ease, opacity .35s ease .15s; }
@keyframes loadbar { 0% { width: 0 } 20% { width: 45% } 60% { width: 75% } 100% { width: 92% } }

.btn { position: relative; transition: background .15s ease, transform .12s ease, box-shadow .15s ease; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.ghost.is-busy::after, .btn.small.ghost.is-busy::after { border-color: rgba(37,99,235,.25); border-top-color: var(--blue); }
.btn.danger.is-busy::after { border-color: rgba(185,28,28,.25); border-top-color: #b91c1c; }
@keyframes spin { to { transform: rotate(360deg); } }

/* page entrance */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.main > *, #intro > .c-hero, .c-wrap > .c-card, .c-wrap > .c-hero, .c-wrap > .flash { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.main > *:nth-child(2) { animation-delay: .04s } .main > *:nth-child(3) { animation-delay: .08s }
.main > *:nth-child(4) { animation-delay: .12s } .main > *:nth-child(n+5) { animation-delay: .16s }
.c-wrap > .c-card:nth-of-type(2) { animation-delay: .08s } .c-wrap > .c-card:nth-of-type(3) { animation-delay: .16s }
tr.row-in { animation: fade .35s ease both; animation-delay: calc(var(--i, 0) * 22ms + .1s); }
table.list tbody tr { transition: background .15s ease; }
.stagger > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + .15s); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.bar i { animation: grow .8s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.flash { animation: rise .35s ease both; }
.pill.warn { animation: pop .4s ease .3s both; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.08) } 100% { transform: scale(1); opacity: 1 } }

/* nav hover */
.side nav a { transition: background .15s ease, color .15s ease, padding-left .15s ease; }
.side nav a:hover:not(.on) { padding-left: 16px; }

/* ================================================================ animated scene */
.scene { display: block; width: 100%; height: auto; border-radius: 14px; }
.scene .sun-rays { transform-origin: 455px 62px; animation: spin 26s linear infinite; }
.scene .sun-glow { transform-origin: 455px 62px; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(.92); opacity: .8 } 50% { transform: scale(1.06); opacity: 1 } }
.scene .cloud { animation: drift 46s linear infinite; }
.scene .cloud.c2 { animation-duration: 64s; animation-delay: -30s; }
@keyframes drift { from { transform: translateX(-140px); } to { transform: translateX(640px); } }
.scene .pv { animation: panel-in .55s cubic-bezier(.2,.8,.3,1.2) both; animation-delay: calc(var(--d) + .2s); transform-box: fill-box; transform-origin: center; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-18px) scale(.8); } to { opacity: 1; transform: none; } }
.scene .sheen { animation: sheen 3.8s ease-in-out 1.4s infinite; }
@keyframes sheen { 0% { transform: skewX(-18deg) translateX(0); } 60%,100% { transform: skewX(-18deg) translateX(170px); } }
.scene .flow { stroke-dasharray: 3 9; animation: flow .9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.scene .led { animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2 } }
.scene .win { animation: warm 3.5s ease-in-out infinite alternate; } .scene .win.w2 { animation-delay: -1.7s; }
@keyframes warm { from { opacity: .65 } to { opacity: 1 } }
.scene .tree { transform-origin: 70px 196px; animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
.scene-sm { max-width: 360px; margin: 0 auto 18px; }

/* animated check */
.check-anim { width: 58px; height: 58px; color: #16a34a; display: block; margin-bottom: 10px; }
.check-anim .ring { stroke-dasharray: 176; stroke-dashoffset: 176; animation: draw .7s ease-out .15s forwards; opacity: .25; }
.check-anim .tick { stroke-dasharray: 44; stroke-dashoffset: 44; animation: draw .45s ease-out .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 3s cubic-bezier(.3,.6,.6,1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

/* ================================================================ candidate welcome */
.c-hero { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.c-hero .scene { border-radius: 0; }
.c-hero .hero-text { padding: 20px 26px 24px; }
.c-hero h1 { font-size: 25px; line-height: 1.25; margin: 0 0 6px; }
.c-hero h1 .wave { display: inline-block; transform-origin: 70% 80%; animation: wave 1.8s ease-in-out .8s 2; }
@keyframes wave { 0%,100% { transform: rotate(0) } 15%,45% { transform: rotate(14deg) } 30% { transform: rotate(-8deg) } }
.c-hero .lead { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.c-sec { margin-bottom: 16px; }
.c-sec h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-blue); margin: 0 0 10px; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0 4px; }
.facts > div { flex: 1 1 25%; min-width: 120px; padding: 12px 10px 12px 0; }
.facts > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.facts b { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.01em; }
.facts span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; }
.why { list-style: none; padding: 0; margin: 0; }
.why li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.why li:last-child { border-bottom: 0; }
.why li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: #e8f7ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2316a34a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.reveal.in .why li { animation: rise .45s ease both; } .reveal.in .why li:nth-child(2) { animation-delay: .08s }
.reveal.in .why li:nth-child(3) { animation-delay: .16s } .reveal.in .why li:nth-child(4) { animation-delay: .24s } .reveal.in .why li:nth-child(n+5) { animation-delay: .32s }
.btn.go-btn .arrow { display: inline-block; transition: transform .2s ease; } .btn.go-btn:hover .arrow { transform: translateX(4px); }
.btn.go-btn { animation: nudge 2.6s ease-in-out 2.5s 2; }
@keyframes nudge { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0) } 50% { box-shadow: 0 0 0 7px rgba(37,99,235,.16) } }
.signoff { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* ================================================================ test page motion */
.progress i { transition: width .45s cubic-bezier(.2,.7,.2,1); }
fieldset.q.enter-next { animation: q-next .32s cubic-bezier(.2,.7,.2,1) both; }
fieldset.q.enter-prev { animation: q-prev .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes q-next { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes q-prev { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
label.opt { transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease; }
label.opt:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(15,26,43,.06); }
label.opt.just-picked { animation: picked .35s ease; }
@keyframes picked { 40% { transform: scale(1.015); } }
#saved.ok::before { content: "✓ "; color: #16a34a; }
#saved { transition: opacity .3s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .check-anim .ring, .check-anim .tick { stroke-dashoffset: 0; }
}

/* ================================================================ import */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  border: 2px dashed #c9d5e6; border-radius: 12px; padding: 30px 18px; background: #fafcff; color: var(--ink-2);
  transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: var(--blue-wash); }
.dropzone.over { transform: scale(1.01); }
.dropzone.has-file { border-style: solid; border-color: #86c79d; background: #f1faf4; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .dz-icon { color: var(--blue); animation: bob 2.4s ease-in-out infinite; }
.dropzone.has-file .dz-icon { color: #16a34a; animation: none; }
@keyframes bob { 50% { transform: translateY(-4px); } }
table.list.compact td, table.list.compact th { padding-top: 7px; padding-bottom: 7px; }
select.warn-select { border-color: #f0b35b; background-color: #fff8ec; }
.skip-reason { color: #9a5b00; }

/* ================================================================ team notes & payroll */
ol.thread { list-style: none; margin: 0; padding: 14px 18px 4px; }
ol.thread li { display: flex; gap: 10px; margin-bottom: 12px; animation: rise .3s ease both; }
ol.thread .avatar { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--blue-wash); color: var(--blue-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
ol.thread li.me .avatar { background: var(--navy); color: #fff; }
ol.thread .bubble { background: #f6f8fb; border: 1px solid var(--line-2); border-radius: 4px 12px 12px 12px; padding: 8px 12px; max-width: 760px; }
ol.thread li.me .bubble { background: var(--blue-wash); border-color: #dbe6fd; }
ol.thread .meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
ol.thread .text { white-space: pre-wrap; font-size: 14px; }
.note-form textarea { width: 100%; }
.note-to { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; background: #fff; transition: background .15s, border-color .15s; }
.chip:has(input:checked) { background: var(--blue-wash); border-color: #b9cdfa; color: var(--blue-ink); }
.chip input { margin: 0; }
.people-pick { width: auto; min-width: 170px; padding: 5px 8px; font-size: 13px; }
dd.copyable { display: flex; align-items: center; gap: 8px; }
button.copy { border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: 11.5px; padding: 1px 8px; cursor: pointer; color: var(--ink-2); }
button.copy:hover { border-color: var(--blue); color: var(--blue); }
button.copy.ok { border-color: #86c79d; color: #16a34a; }
.todo-banner { border-left: 4px solid #f0b35b; }
.done-banner { border-left: 4px solid #22c55e; }
.check-anim.small { width: 34px; height: 34px; margin: 0; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); }
.pager .muted { margin-right: auto; }

/* WhatsApp preview – laid out like the real message on a phone */
.wa .bubble { box-shadow: 0 1px .5px rgba(11,20,26,.13); border-radius: 0 8px 8px 8px; padding: 8px 10px 6px; font-size: 14px; line-height: 1.45; position: relative; }
.wa .bubble .wa-header { font-weight: 700; margin-bottom: 4px; }
.wa .bubble .wa-body { white-space: normal; }
.wa .bubble .wa-footer { font-size: 12.5px; color: #8696a0; margin-top: 6px; }
.wa .bubble .meta { font-size: 11px; color: #8696a0; }
.wa .bubble .wa-button { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px -10px -6px; padding: 10px;
  border-top: 1px solid #e9edef; color: #0a7cff; color: #027eb5; font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer; }
.wa .bubble .wa-button:hover { background: #f5f6f6; text-decoration: none; }
.wa .bubble.ta-text { font-family: "Noto Sans Tamil", Inter, sans-serif; }
.wa .bubble { white-space: normal; }

/* Google sign-in */
.btn.google-btn { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; gap: 10px; margin-top: 8px; }
.btn.google-btn:hover { background: #f8faff; border-color: #c6d2e8; }
details.alt-login { margin-top: 16px; }
details.alt-login summary { cursor: pointer; color: var(--muted); font-size: 13.5px; text-align: center; list-style: none; }
details.alt-login summary::-webkit-details-marker { display: none; }
details.alt-login summary:hover { color: var(--blue); }

.start-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.start-choice .opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.start-choice .opt.chosen { border-color: var(--blue); background: var(--blue-wash); }
.start-choice .opt span { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 720px) { .start-choice { grid-template-columns: 1fr; } }

.owner-form select { padding: 3px 6px; font-size: 13px; width: 100%; }

/* reviews */
.review { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.review .text { white-space: pre-wrap; font-size: 14px; margin-top: 4px; }
.review-replies { list-style: none; margin: 10px 0 0; padding: 0; }
.review-replies li { padding: 6px 0; }
.pill.verdict-recommend { background: #e8f7ee; color: #16a34a; } .pill.verdict-maybe { background: #fff4e0; color: #b7791f; } .pill.verdict-no { background: #fdecec; color: #b91c1c; }
.review-form { margin-top: 12px; padding: 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; }
.verdicts { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.verdict { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; cursor: pointer; background: #fff; font-size: 13.5px; }
.verdict:has(input:checked).v-recommend { background: #e8f7ee; border-color: #86c79d; } .verdict:has(input:checked).v-maybe { background: #fff4e0; border-color: #f0c36b; }
.verdict:has(input:checked).v-no { background: #fdecec; border-color: #f1a3a3; }
.verdict input { margin-right: 4px; }
.people-pick-list { display: flex; flex-wrap: wrap; gap: 8px; }

.meet-link { font-weight: 600; }

.resume-note { background: #e8f7ee; color: #166534; border: 1px solid #bfe5cd; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin: 0 0 10px; animation: rise .4s ease both; transition: opacity 1s ease; }
.resume-note.fade { opacity: 0; }

.draft-status { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 20px); opacity: 0; background: #10233e; color: #fff;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; transition: all .3s ease; pointer-events: none; z-index: 50; max-width: 92vw; text-align: center; }
.draft-status.show { opacity: .95; transform: translate(-50%, 0); } .draft-status.bad { background: #b91c1c; } .draft-status.ok { background: #166534; }

/* ================================================================ in-portal dialog */
.tn-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.tn-modal-back { position: absolute; inset: 0; background: rgba(16, 35, 62, .38); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.tn-modal-card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px -12px rgba(16, 35, 62, .45), 0 0 0 1px rgba(16, 35, 62, .06);
  transform: translateY(10px) scale(.97); opacity: 0; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.tn-modal.open .tn-modal-back { opacity: 1; } .tn-modal.open .tn-modal-card { transform: none; opacity: 1; }
.tn-modal h2 { font-size: 17px; margin: 0 0 8px; color: #22274f; }
.tn-modal .tnm-text { color: #4b5a70; font-size: 14px; margin: 0 0 14px; white-space: pre-line; }
.tn-modal .tnm-label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 6px; color: #33435a; }
.tn-modal textarea, .tn-modal input { width: 100%; margin-bottom: 14px; }
.tn-modal textarea.need { border-color: #e0795f; box-shadow: 0 0 0 4px rgba(224, 121, 95, .15); }
.tn-modal .tnm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tn-modal .btn.danger { background: #b42318; border-color: #b42318; color: #fff; }
.tn-modal .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ================================================================ loading screen */
.tn-loading { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(243, 245, 249, .72);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.tn-loading.on { opacity: 1; pointer-events: auto; }
.tnl-card { background: #fff; border-radius: 18px; padding: 26px 34px 22px; text-align: center; min-width: 260px;
  box-shadow: 0 24px 60px -18px rgba(16, 35, 62, .4), 0 0 0 1px rgba(16, 35, 62, .05); transform: translateY(6px); transition: transform .3s ease; }
.tn-loading.on .tnl-card { transform: none; }
.tnl-sun { position: relative; width: 64px; height: 64px; margin: 0 auto 14px; }
.tnl-sun i { position: absolute; inset: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, #ffc53d 60%, #f5a623);
  box-shadow: 0 0 22px rgba(255, 197, 61, .55); animation: tnl-pulse 1.6s ease-in-out infinite; }
.tnl-sun b { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #ffc53d 0 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 23px, #000 24px, #000 31px, transparent 32px); mask: radial-gradient(circle, transparent 23px, #000 24px, #000 31px, transparent 32px);
  animation: tnl-spin 3s linear infinite; }
.tnl-msg { font-weight: 650; color: #22274f; font-size: 15px; }
.tnl-sub { color: #6a7890; font-size: 12.5px; min-height: 18px; margin-top: 4px; transition: opacity .3s; }
@keyframes tnl-spin { to { transform: rotate(360deg); } }
@keyframes tnl-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(255, 197, 61, .75); } }
@media (prefers-reduced-motion: reduce) { .tnl-sun i, .tnl-sun b { animation: none; } }
