/* Nithar: tank cleaning and water testing, Lahore. Palette "Kashi on chuna". */
:root {
  --chuna: #eef1ef;
  --paper: #f8f9f8;
  --raat: #14192b;
  --muted: #4b5163;
  --soft: #5a6072;
  --kashi: #1e3f8f;
  --kashi-2: #16306f;
  --kashi-wash: #eaeff8;
  --firoza: #0f6f6c;
  --firoza-wash: #dcefed;
  --wash: #e3e8f1;
  --gaad: #a39a80;
  --khatra: #a3231b;
  --khatra-wash: #f6e2df;
  --line: rgba(20, 25, 43, 0.16);
  --line-2: rgba(20, 25, 43, 0.28);
  --txt: "Proza Libre", "Noto Nastaliq Urdu", system-ui, sans-serif;
  --ur: "Noto Nastaliq Urdu", "Proza Libre", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--chuna); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chuna);
  color: var(--raat);
  font-family: var(--txt);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--kashi); }
:focus-visible { outline: 3px solid var(--firoza); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Language pairs: English page by default, Urdu with dir=rtl. */
html:not([lang="ur"]) [data-l="ur"] { display: none !important; }
html[lang="ur"] [data-l="en"] { display: none !important; }
html[lang="ur"] body { font-size: 18px; }
html[lang="ur"] [data-l="ur"], [lang="ur"] { line-height: 2.05; }
html[lang="ur"] .body, html[lang="ur"] .lead { line-height: 2.1; }

.skip { position: fixed; inset-inline-start: 16px; inset-block-start: -80px; z-index: 100; background: var(--raat); color: var(--chuna); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { inset-block-start: 12px; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid var(--kashi);
  background: var(--kashi); color: #fff; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease-soft), border-color 180ms var(--ease-soft), color 180ms var(--ease-soft), transform 180ms var(--ease-soft);
}
.btn:hover { background: var(--kashi-2); border-color: var(--kashi-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--kashi); }
.btn--ghost:hover { background: var(--kashi-wash); color: var(--kashi-2); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.btn--full { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.ico { width: 20px; height: 20px; flex: none; }
.ico--dir { width: 20px; height: 20px; }
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--kashi); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 15px; }
.link-btn:hover { color: var(--kashi-2); text-decoration-thickness: 2px; }
.link-btn--sm { font-size: 14px; text-align: start; }

/* Bar */
.bar { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; background: var(--chuna); border-block-end: 1px solid transparent; transition: border-color 300ms var(--ease-soft); }
.bar.is-scrolled { border-block-end-color: var(--line); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--raat); }
.mark__ur { font-family: var(--ur); font-size: 27px; line-height: 1; color: var(--kashi); padding-block-end: 6px; }
.mark__en { font-weight: 600; font-size: 16px; }
.bar__end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang__b { border: 0; background: transparent; padding: 4px 12px; border-radius: 999px; font-size: 14px; cursor: pointer; color: var(--muted); min-height: 32px; }
.lang__b[lang="ur"] { font-family: var(--ur); font-size: 15px; line-height: 1.2; padding-block-end: 8px; }
.lang__b[aria-pressed="true"] { background: var(--raat); color: var(--chuna); }


/* Surface headings: Urdu above the water line on the right, English below it on the left. */
.surface { margin: 0 0 clamp(36px, 5vw, 64px); font-weight: 400; display: grid; gap: 4px; }
.surface { font-size: clamp(36px, 5vw, 60px); line-height: 1.2; }
.surface--hero { font-size: clamp(40px, 5.8vw, 82px); }
.surface--sm { font-size: clamp(32px, 3.6vw, 46px); }
.prices__h { font-size: clamp(34px, 4vw, 48px); line-height: 1.2; }
.sheet__h { font-size: 30px; line-height: 1.2; }
.surface__ur { display: block; font-family: var(--ur); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.9; text-align: right; color: var(--raat); padding-block-end: 0.15em; }
.surface__line { display: block; height: 1.5px; background: var(--raat); transform-origin: right center; }
.surface__en, .step__en, .mark__en, .steeltag__brand, .steeltag__date, .steeltag__code { direction: ltr; unicode-bidi: isolate; }
.surface__en { display: block; font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--muted); text-align: left; padding-block-start: 10px; }
.surface--hero .surface__ur { font-size: clamp(40px, 5.8vw, 82px); font-weight: 700; color: var(--kashi); line-height: 1.8; }
.surface--hero .surface__en { font-size: clamp(21px, 2.4vw, 31px); color: var(--raat); font-weight: 500; line-height: 1.3; }
.surface--sm .surface__ur { font-size: clamp(32px, 3.6vw, 46px); }
.surface--sm { margin-block-end: 28px; }

.eyebrow { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 46ch; margin: 28px 0 32px; }
.body { font-size: 17px; color: var(--muted); max-width: 52ch; margin: 0; }
.body--intro { margin-block: -24px 40px; }

/* Hero */
.hero { padding-block: calc(var(--bar-h) + clamp(40px, 7vw, 96px)) clamp(64px, 8vw, 110px); min-height: 100svh; display: flex; align-items: center; }
.hero__grid { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.hero__head { grid-column: 1 / -1; }
.hero__head .surface { margin-block-end: 0; }
.hero__text { grid-column: 1 / span 6; padding-block-start: 4px; }
.hero__media { grid-column: 8 / span 5; margin: 28px 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--firoza); }

.frame { border-radius: 18px; overflow: hidden; background: var(--wash); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 5 / 4; }
.frame--tall img { object-position: 36% 50%; }

/* Sections */
.sec { padding-block: clamp(96px, 12vw, 168px); }
.tank-why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tank-why__media { grid-column: 1 / span 6; margin: 0; }
.tank-why__media .frame { aspect-ratio: 5 / 4; }
.tank-why__media img { object-position: 60% 40%; }
.tank-why__text { grid-column: 8 / span 5; }
.numbers { margin: 40px 0 0; }
.numbers > div { border-block-start: 1px solid var(--line); padding-block: 18px 20px; }
.numbers dt { font-size: clamp(28px, 3vw, 36px); font-weight: 600; color: var(--kashi); line-height: 1.2; }
.numbers dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* Reveal: settling and filling */
.kit-js .settle { opacity: 0; transform: translateY(-12px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.kit-js .settle.is-in { opacity: 1; transform: none; }
.kit-js .fill { clip-path: inset(100% 0 -30% 0); transition: clip-path 1100ms var(--ease); }
.kit-js .fill.is-in, .kit-js .surface.is-in .fill { clip-path: inset(-30% -4% -30% -4%); }
.kit-js .surface__line { transform: scaleX(0); transition: transform 1000ms var(--ease-wipe) 120ms; }
.kit-js .surface.is-in .surface__line { transform: scaleX(1); }
.is-static .settle, .is-static .fill { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.is-static .surface__line { transform: none !important; transition: none !important; }

/* Signature: the tank clears as you scroll */
.clean { position: relative; height: 560vh; border-block: 1px solid var(--line); }
.clean__stage { position: sticky; inset-block-start: 0; height: 100svh; display: flex; align-items: center; padding-block-start: var(--bar-h); overflow: hidden; }
.clean__grid { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.clean__tank { grid-column: 1 / span 6; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.tankbox { position: relative; aspect-ratio: 400 / 480; max-height: calc(100svh - var(--bar-h) - 80px); width: 100%; margin-inline: auto; }
.tankbox svg, .tankbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tank { overflow: visible; }
.tank__shell { fill: none; stroke: var(--raat); stroke-width: 2.5; }
.tank__inner { fill: #eef1f6; }
.tank__water { fill: #8f8a6e; transition: fill 120ms linear; }
.tank__surface { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; }
.tank__silt { fill: var(--gaad); }
.tank__lid { fill: var(--raat); transform-box: fill-box; transform-origin: 0% 100%; transition: transform 500ms var(--ease-soft); }
.tank__hose { fill: none; stroke: var(--raat); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; }
.tank__tag { fill: #d9dde3; stroke: var(--raat); stroke-width: 1.5; opacity: 0; transition: opacity 400ms var(--ease-soft); }
.tank__pipe { fill: none; stroke: var(--raat); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.tank__stand { fill: none; stroke: var(--raat); stroke-width: 3; stroke-linecap: round; }
.tank__ticks path { stroke: var(--raat); stroke-width: 1.5; }
.tank__gal { font: 500 12px var(--txt); fill: var(--muted); }
.readings { display: grid; gap: 18px; padding-block-end: 8px; min-width: 150px; }
.reading { display: grid; gap: 2px; border-block-start: 1px solid var(--line); padding-block-start: 10px; }
.reading__k { font-size: 13px; color: var(--muted); }
.reading__v { font-size: clamp(34px, 3.6vw, 46px); font-weight: 600; line-height: 1.1; color: var(--khatra); font-variant-numeric: tabular-nums; transition: color 400ms var(--ease-soft); }
.reading__v.is-ok { color: var(--firoza); }
.reading__lim { font-size: 13px; color: var(--soft); }
.readings__when { margin: 0; font-size: 14px; font-weight: 600; color: var(--raat); }
.clean__steps { grid-column: 8 / span 5; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-block: 10px; border-block-start: 1px solid var(--line); }
.step__n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--soft); transition: background-color 300ms var(--ease-soft), color 300ms, border-color 300ms; }
.step h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-weight: 500; font-size: 17px; color: var(--soft); transition: color 300ms; }
.step__ur { font-family: var(--ur); font-size: 21px; line-height: 1.9; order: 2; }
.step__en { order: 1; }
.step p { margin: 0; max-height: 0; overflow: hidden; color: var(--muted); font-size: 16px; transition: max-height 500ms var(--ease), margin 500ms var(--ease); }
.step.is-on .step__n { background: var(--kashi); border-color: var(--kashi); color: #fff; }
.step.is-on h3 { color: var(--raat); }
.step.is-on p { max-height: 220px; margin-block-start: 6px; }
.is-static .clean { height: auto; }
.is-static .clean__stage { position: static; height: auto; padding-block: 120px; }
.is-static .step p { max-height: none; margin-block-start: 6px; }

/* Report card */
.report-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.report-grid__intro { grid-column: 1 / span 5; display: grid; gap: 32px; }
.report-grid__media { margin: 0; }
.report-grid__media .frame { aspect-ratio: 4 / 3; }
.report-grid__media figcaption { margin-block-start: 10px; font-size: 14px; color: var(--muted); }
.report-grid .report { grid-column: 7 / span 6; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.report { padding: clamp(20px, 2.6vw, 32px); }
.report__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: flex-start; padding-block-end: 18px; border-block-end: 1px solid var(--line); }
.report__t { margin: 0; font-size: 19px; font-weight: 600; }
.report__meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.report__code { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; font-weight: 600; color: var(--kashi); }
.toggle { display: inline-flex; border: 1.5px solid var(--raat); border-radius: 12px; padding: 3px; gap: 3px; }
.toggle button { border: 0; background: transparent; padding: 7px 16px; border-radius: 9px; cursor: pointer; font-size: 15px; font-weight: 500; min-height: 38px; }
.toggle button[aria-pressed="true"] { background: var(--raat); color: var(--chuna); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-block-end: 1px solid var(--line); }
.row__b { width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) 64px minmax(0, 1fr) 132px; gap: 12px; align-items: center; padding: 14px 0; background: none; border: 0; text-align: start; cursor: pointer; }
.row__k { font-size: 15px; font-weight: 500; }
.row__k small { display: block; font-size: 13px; color: var(--soft); font-weight: 400; }
.row__v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row__lim { font-size: 13px; color: var(--muted); }
.row__b .chip { justify-self: end; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip--ok { background: var(--firoza-wash); color: #0b5552; }
.chip--bad { background: var(--khatra-wash); color: #8a1d16; }
.chip--info { background: var(--kashi-wash); color: var(--kashi-2); }
.row__more { margin: 0; padding: 0 0 14px; font-size: 14px; color: var(--muted); max-width: 60ch; }
.row__b:hover .row__k { color: var(--kashi); }
.report__note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.report__v-flip { animation: flip 420ms var(--ease) both; }
@keyframes flip { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Prices band */
.prices { color: var(--chuna); padding-block: clamp(24px, 4vw, 48px); }
.prices__in { display: grid; gap: 32px; background: var(--raat); border-radius: 24px; padding: clamp(28px, 5vw, 64px); max-width: calc(1240px - 2 * clamp(16px, 4vw, 40px)); }
@media (max-width: 1320px) { .prices__in { margin-inline: clamp(16px, 4vw, 40px); } }
.prices__h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; font-weight: 400; }
.prices__ur { font-family: var(--ur); font-size: clamp(34px, 4vw, 48px); line-height: 1.8; order: 2; }
.prices__en { font-size: 19px; color: #c9ccd6; order: 1; }
.prices__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prices__list li { display: grid; gap: 8px; padding: 18px 20px 20px 0; border-block-start: 1px solid rgba(244, 242, 234, 0.25); }
.prices__k { font-size: 15px; color: #c9ccd6; }
.prices__v { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; font-variant-numeric: tabular-nums; }
.prices__note { margin: 0; font-size: 14px; color: #c9ccd6; max-width: 72ch; }

/* Booking: the desk and the slip */
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.desk { background: none; border-block-start: 1.5px solid var(--raat); padding: 18px 0 0; display: flex; flex-direction: column; gap: 18px; position: sticky; inset-block-start: calc(var(--bar-h) + 20px); }
.desk__head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.desk__head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.notes__k { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.notes__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.note { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; text-align: start; padding: 8px 14px 8px 10px; border: 1px solid var(--line-2); border-radius: 14px; background: transparent; cursor: pointer; transition: border-color 180ms, background-color 180ms; min-height: 46px; }
.note .note__play { grid-row: auto; }
.note:hover { border-color: var(--kashi); }
.note[aria-pressed="true"] { border-color: var(--kashi); background: var(--kashi-wash); }
.note__play { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--kashi); position: relative; }
.note__play::after { content: ""; position: absolute; left: 11px; top: 9px; width: 8px; height: 10px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.note__who { font-size: 14px; font-weight: 600; line-height: 1.3; }
.note__meta { font-size: 12px; color: var(--muted); line-height: 1.3; }
.thread { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.msg { max-width: 88%; display: grid; gap: 8px; animation: settle-in 520ms var(--ease) both; }
@keyframes settle-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.msg__b { padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; background: var(--paper); border: 1px solid var(--line); }
.msg__b[lang="ur"] { font-family: var(--txt); line-height: 2.1; font-size: 16px; }
.msg--me { align-self: flex-end; }
.msg--me .msg__b { background: var(--kashi); border-color: var(--kashi); color: #fff; border-end-end-radius: 6px; }
.msg--desk { align-self: flex-start; }
.msg--desk .msg__b { border-end-start-radius: 6px; }
.voice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--kashi); color: #fff; border-end-end-radius: 6px; }
.voice__bars { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; min-width: 120px; }
.voice__bars i { display: block; width: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); height: var(--h, 40%); }
.voice__bars i.is-done { background: #fff; }
.voice__t { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 32px; }
.voice audio { display: none; }
.msg__tr { font-size: 13px; color: var(--muted); padding-inline: 4px; }
.msg__tr b { font-weight: 600; color: var(--raat); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--kashi); color: var(--kashi); background: var(--paper); padding: 6px 12px; border-radius: 999px; font-size: 14px; cursor: pointer; min-height: 36px; }
.chips button:hover { background: var(--kashi-wash); }
.dots { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); align-self: flex-start; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); }
.dots i:nth-child(2) { opacity: 0.6; } .dots i:nth-child(3) { opacity: 0.3; }
@keyframes drop { 0%, 100% { transform: translateY(-3px); opacity: 0.4; } 50% { transform: translateY(3px); opacity: 1; } }
.dots__l { font-size: 13px; color: var(--muted); align-self: center; margin-inline-start: 6px; }
.composer { display: flex; align-items: flex-end; gap: 8px; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 18px; padding: 6px; }
.composer:focus-within { border-color: var(--kashi); }
.mic, .send { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; border: 0; }
.mic { background: var(--kashi-wash); color: var(--kashi); }
.mic svg, .send svg { width: 22px; height: 22px; }
.mic[aria-pressed="true"] { background: var(--khatra); color: #fff; }
.send { background: var(--kashi); color: #fff; }
.send:hover { background: var(--kashi-2); }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; padding: 11px 6px; font-size: 15px; line-height: 1.5; max-height: 140px; min-height: 46px; }
.composer textarea:focus { outline: none; }
.rec { display: none; align-items: center; gap: 10px; flex: 1; padding: 0 8px; min-height: 46px; font-size: 14px; color: var(--khatra); font-weight: 600; }
.composer.is-rec .rec { display: flex; }
.composer.is-rec textarea { display: none; }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--khatra); }

.slip { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 0; }
.slip__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block-end: 16px; border-block-end: 1px solid var(--line); margin-block-end: 18px; }
.slip__head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.slip__auto { font-size: 13px; color: var(--kashi-2); background: var(--kashi-wash); padding: 4px 10px; border-radius: 999px; }
.slip__body { display: grid; gap: 18px; }
.slip__errors { margin-block-end: 16px; padding: 12px 14px; border-radius: 12px; background: var(--khatra-wash); color: #7d1a14; font-size: 14px; }
.slip__errors ul { margin: 6px 0 0; padding-inline-start: 18px; }
.slip__errors a { color: #7d1a14; }
.f { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.f > label, .f > legend { font-size: 14px; font-weight: 500; padding: 0; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.f input[type="text"], .f input[type="tel"], .f select, .f input[type="number"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 16px; transition: border-color 160ms, background-color 400ms; }
.f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314192b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px 8px; background-position: right 14px center; padding-inline-end: 36px; }
[dir="rtl"] .f select { background-position: left 14px center; }
.f input:focus, .f select:focus { border-color: var(--kashi); outline: 3px solid rgba(30, 63, 143, 0.22); outline-offset: 0; }
.f.is-auto input, .f.is-auto select, .f.is-auto .opt input:checked + span { background-color: var(--kashi-wash); }
.f.has-err input, .f.has-err select { border-color: var(--khatra); }
.f__err { margin: 0; font-size: 13px; color: var(--khatra); min-height: 0; }
.f__err:empty { display: none; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt > span { display: grid; gap: 2px; min-height: 48px; align-content: center; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color 160ms, background-color 300ms; }
.opt b { font-weight: 500; font-size: 15px; }
.opt small { font-size: 13px; color: var(--muted); }
.opt input:checked + span { border-color: var(--kashi); background: var(--kashi-wash); }
.opt input:checked + span b { color: var(--kashi-2); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--firoza); outline-offset: 2px; }
.opt--sm > span { min-height: 44px; text-align: center; }
.stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; overflow: hidden; min-height: 48px; }
.stepper button { border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--kashi-wash); }
.f .stepper input { border: 0; min-height: 44px; text-align: center; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: grid; gap: 0; justify-items: center; padding: 8px 2px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; min-height: 62px; }
.day b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.day small { font-size: 12px; color: var(--muted); }
.day[aria-checked="true"] { background: var(--raat); border-color: var(--raat); color: var(--chuna); }
.day[aria-checked="true"] small { color: #c9ccd6; }
.day.is-full small { color: var(--khatra); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 48px; }
.slot { min-height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; }
.slot[aria-checked="true"] { border-color: var(--kashi); background: var(--kashi-wash); color: var(--kashi-2); font-weight: 600; }
.slot[disabled] { color: var(--soft); background: transparent; border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.skel { min-height: 48px; border-radius: 12px; background: var(--wash); animation: pulse 1s var(--ease-soft) infinite alternate; }
@keyframes pulse { from { opacity: 0.45; } to { opacity: 1; } }
.slots__msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--wash); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.slip__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.slip__total { margin: 0; font-size: 15px; color: var(--muted); }
.slip__total b { display: block; font-size: 24px; color: var(--raat); font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--kashi); flex: none; }
.slip__done { display: grid; gap: 16px; }
.done__seal { width: 64px; height: 64px; border-radius: 50%; background: var(--firoza); display: grid; place-items: center; animation: settle-in 700ms var(--ease) both; }
.done__seal svg { width: 30px; height: 30px; }
.done__h { margin: 0; font-size: 24px; font-weight: 600; }
.done__ref { font-size: 15px; color: var(--muted); margin: 0; }
.done__ref b { color: var(--kashi); letter-spacing: 0.04em; }
.done__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.done__list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-block-end: 1px solid var(--line); font-size: 15px; }
.done__list span:first-child { color: var(--muted); }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Record and the steel tag */
.record__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.steeltag { grid-column: 2 / span 4; position: relative; height: 320px; }
.steeltag__string { position: absolute; inset-inline-start: 50%; inset-block-start: 0; width: 1.5px; height: 90px; background: var(--raat); transform: rotate(8deg); transform-origin: top; }
.steeltag__plate { position: absolute; inset-inline-start: calc(50% - 118px); inset-block-start: 80px; width: 236px; height: 150px; border-radius: 16px; background: #d9dde3; border: 1.5px solid #8d95a3; transform: rotate(-5deg); display: grid; grid-template-columns: 1fr auto; align-content: center; padding: 18px 22px; gap: 4px 12px; color: #2f3542; }
[dir="rtl"] .steeltag__plate { transform: rotate(5deg); }
.steeltag__hole { position: absolute; inset-inline-start: 50%; inset-block-start: 12px; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: var(--chuna); border: 1.5px solid #8d95a3; }
.steeltag__brand { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; grid-column: 1; margin-block-start: 14px; }
.steeltag__code { font-size: 30px; font-weight: 600; letter-spacing: 0.06em; grid-column: 1 / -1; direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
.steeltag__ur { font-family: var(--ur); font-size: 20px; line-height: 1.6; grid-column: 2; grid-row: 1; margin-block-start: 6px; }
.steeltag__date { font-size: 13px; letter-spacing: 0.18em; grid-column: 1 / -1; }
.record__text { grid-column: 7 / span 6; display: grid; gap: 28px; }
.record__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { border-block-start: 1px solid var(--line); padding-block: 56px 28px; font-size: 15px; color: var(--muted); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1.4fr 0.8fr; gap: 32px; }
.foot p { margin: 0 0 6px; }
.foot__mark { font-size: 18px; color: var(--raat); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.foot__mark span { font-family: var(--ur); color: var(--kashi); font-size: 26px; line-height: 1.6; font-weight: 600; }
.foot__k { font-weight: 600; color: var(--raat); }
.foot__list { line-height: 1.9; }
.foot__nav { display: grid; gap: 6px; align-content: start; justify-items: start; }
.foot__nav a { color: var(--raat); text-decoration: none; padding-block: 2px; }
.foot__nav a:hover { color: var(--kashi); text-decoration: underline; }
.foot__nav .link-btn { color: var(--raat); text-decoration: none; padding: 2px 0; font-size: 15px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-block-start: 40px; padding-block-start: 18px; border-block-start: 1px solid var(--line); font-size: 13px; }

/* Dialogs: the sign-in sheet */
dialog { color: var(--raat); }
dialog::backdrop { background: rgba(20, 25, 43, 0.55); }
.sheet { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 22px; padding: 0; background: var(--chuna); overflow: auto; }
.sheet[open] { animation: settle-in 420ms var(--ease) both; }
.sheet__in { position: relative; padding: 30px clamp(20px, 4vw, 32px) 26px; }
.sheet__x { position: absolute; inset-inline-end: 14px; inset-block-start: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.sheet__x svg { width: 18px; height: 18px; }
.sheet__h { margin: 0 0 20px; display: grid; gap: 0; padding-inline-end: 44px; font-weight: 400; }
.sheet__ur { font-family: var(--ur); font-size: 30px; line-height: 1.9; font-weight: 600; color: var(--kashi); text-align: right; }
.sheet__en { font-size: 18px; font-weight: 600; text-align: left; }
.sheet__p { margin: -10px 0 18px; font-size: 15px; color: var(--muted); }
.sheet form { display: grid; gap: 16px; }
.sheet__alt { margin: 18px 0 0; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tagfield { display: grid; gap: 8px; }
.tagfield > label { font-size: 14px; font-weight: 500; }
.tagfield__plate { position: relative; border-radius: 14px; background: #d9dde3; border: 1.5px solid #8d95a3; padding: 26px 16px 12px; }
.tagfield__hole { position: absolute; inset-inline-start: 50%; inset-block-start: 8px; width: 12px; height: 12px; margin-inline-start: -6px; border-radius: 50%; background: var(--chuna); border: 1.5px solid #8d95a3; }
.tagfield input { width: 100%; border: 0; border-block-end: 1.5px dashed #6b7382; background: transparent; font-size: 28px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #2f3542; padding: 4px 0; text-align: center; }
.tagfield input:focus { outline: none; border-block-end-color: var(--kashi); }
.tagfield__plate:focus-within { outline: 3px solid var(--firoza); outline-offset: 3px; }
.otp { display: grid; grid-template-columns: repeat(4, 56px); gap: 10px; justify-content: center; }
.otp input { width: 56px; height: 64px; text-align: center; font-size: 28px; font-weight: 600; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; }
.otp input:focus { border-color: var(--kashi); outline: 3px solid rgba(30, 63, 143, 0.22); }
.otp.has-err input { border-color: var(--khatra); }
.wa { margin: -8px -6px 18px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; align-items: center; transform: translateY(-14px); opacity: 0; transition: transform 600ms var(--ease), opacity 600ms var(--ease); }
.wa.is-in { transform: none; opacity: 1; }
.wa__app { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--firoza); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.wa__top { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.wa__msg { font-size: 14px; }
.wa__msg b { letter-spacing: 0.12em; }

/* Portal */
.portal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; padding: 0; background: var(--chuna); }
.portal[open] { animation: fade 300ms var(--ease-soft) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.portal__in { max-width: 1240px; margin-inline: auto; padding: 0 clamp(16px, 4vw, 40px) 64px; }
.p-bar { position: sticky; inset-block-start: 0; z-index: 2; background: var(--chuna); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--bar-h); border-block-end: 1px solid var(--line); }
.p-bar__end { display: flex; align-items: center; gap: 10px; }
.p-hello { margin: 40px 0 28px; display: grid; gap: 2px; }
.p-hello h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.p-hello h2 span[lang="ur"] { font-family: var(--ur); line-height: 1.9; }
.p-hello p { margin: 0; color: var(--muted); }
.p-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.p-col { display: grid; gap: 18px; }
.p-card { padding: 22px; }
.p-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.p-due { display: grid; gap: 10px; }
.p-due__date { font-size: 28px; font-weight: 600; color: var(--kashi); }
.p-due__bar { height: 8px; border-radius: 8px; background: var(--wash); overflow: hidden; }
.p-due__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--firoza); border-radius: 8px; }
.p-due__k { font-size: 14px; color: var(--muted); margin: 0; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 12px; border-block-start: 1px solid var(--line); font-size: 15px; }
.p-list li small { color: var(--muted); font-size: 13px; grid-column: 1; }
.p-empty { display: grid; gap: 12px; justify-items: start; padding: 26px; border: 1.5px dashed var(--line-2); border-radius: 18px; color: var(--muted); }
.p-empty b { color: var(--raat); font-size: 18px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 980px) {
  .hero__text { grid-column: 1 / -1; }
  .hero__media { grid-column: 1 / -1; max-width: 420px; }
  .frame--tall { aspect-ratio: 16 / 10; }
  .tank-why__media, .tank-why__text { grid-column: 1 / -1; }
  .report-grid__intro, .report-grid .report { grid-column: 1 / -1; }
  .book__grid { grid-template-columns: minmax(0, 1fr); }
  .desk { position: static; }
  .record__grid > * { grid-column: 1 / -1 !important; }
  .steeltag { height: 260px; }
  .prices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .clean { height: 620vh; }
  .clean__grid { grid-template-rows: auto auto; gap: 10px; align-content: center; }
  .clean__tank, .clean__steps { grid-column: 1 / -1; }
  .clean__tank { grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
  .tankbox { max-height: 40svh; }
  .clean__steps .surface--sm { display: none; }
  .step { display: none; border: 0; }
  .step.is-on { display: grid; }
  .is-static .step { display: grid; }
  .is-static .clean__steps .surface--sm { display: grid; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar__end .btn--sm { display: none; }
  .bar__end { gap: 8px; }
  .lang__b { padding: 4px 9px; font-size: 13px; }
  .hero { min-height: 0; }
  .notes__row { grid-template-columns: minmax(0, 1fr); }
  .seg--3 { grid-template-columns: minmax(0, 1fr); }
  .seg--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-row { grid-template-columns: minmax(0, 1fr); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .row__b { grid-template-columns: minmax(0, 1fr) 56px 118px; }
  .row__lim { display: none; }
  .prices__list { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .readings { min-width: 0; }
  .reading__v { font-size: 30px; }
  .clean__tank { grid-template-columns: minmax(0, 1fr) 108px; }
  .otp { grid-template-columns: repeat(4, 52px); }
  .otp input { width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Desk message details */
.msg__b p { margin: 8px 0 0; }
.msg__dl { margin: 8px 0 0; display: grid; gap: 4px; }
.msg__dl div { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 12px; padding-block: 4px; border-block-start: 1px solid var(--line); }
.msg__dl dt { color: var(--muted); font-size: 13px; }
.msg__dl dd { margin: 0; font-weight: 500; }

/* Room for the Nastaliq overhang at the right edge */
.surface__ur { padding-right: 0.14em; }

[tabindex="-1"]:focus { outline: none; }

/* Designed dropdowns (nithar-dd.js) and checkboxes: no native controls on the page */
.dd { position: relative; }
.dd__native { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd__btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 16px; text-align: start; cursor: pointer; color: var(--raat); transition: border-color 160ms, background-color 400ms; }
.dd__btn.is-empty .dd__v { color: var(--soft); }
.dd__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__chev { flex: none; width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 220ms var(--ease-soft); }
.dd.is-open .dd__chev { transform: translateY(2px) rotate(-135deg); }
.dd__btn:hover { border-color: var(--raat); }
.dd__btn:focus-visible, .dd.is-open .dd__btn { border-color: var(--kashi); outline: 3px solid rgba(30, 63, 143, 0.22); outline-offset: 0; }
.dd__list { position: absolute; z-index: 30; inset-inline: 0; inset-block-start: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1.5px solid var(--raat); border-radius: 12px; max-height: 264px; overflow: auto; animation: settle-in 260ms var(--ease) both; }
.dd.is-up .dd__list { inset-block-start: auto; inset-block-end: calc(100% + 6px); }
.dd__list:focus { outline: none; }
.dd__list [role="option"] { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; min-height: 42px; }
.dd__list [role="option"].is-active { background: var(--kashi-wash); }
.dd__list [aria-selected="true"] { font-weight: 600; color: var(--kashi-2); }
.dd__list [aria-selected="true"]::after { content: ""; flex: none; width: 10px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.dd__list .is-placeholder { color: var(--soft); }
.f.is-auto .dd__btn { background-color: var(--kashi-wash); }
.f.has-err .dd__btn { border-color: var(--khatra); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; flex: none; }
.check input:checked { border-color: var(--kashi); background: var(--kashi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 10px no-repeat; }
.check input:focus-visible { outline: 3px solid var(--firoza); outline-offset: 2px; }
.prices__in { padding: 56px; }
@media (max-width: 640px) { .prices__in { padding: 28px; } }

/* Tracking: Latin only, tighter as it gets bigger. Nastaliq is never tracked. */
.surface--hero .surface__en { letter-spacing: -0.018em; }
.surface__en { letter-spacing: -0.008em; }
.mark__en { letter-spacing: -0.012em; }
.reading__v { letter-spacing: -0.025em; }
html:not([lang="ur"]) .numbers dt, html:not([lang="ur"]) .prices__v { letter-spacing: -0.022em; }
html:not([lang="ur"]) .p-hello h2, html:not([lang="ur"]) .done__h, html:not([lang="ur"]) .report__t { letter-spacing: -0.015em; }
html:not([lang="ur"]) .slip__total b, html:not([lang="ur"]) .p-due__date { letter-spacing: -0.02em; }

/* Section nav: the water drop marks where you are */
.drops { flex: 1; display: flex; justify-content: center; min-width: 0; }
.drops ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.drops a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; min-height: 40px; white-space: nowrap; transition: color 200ms var(--ease-soft), background-color 200ms var(--ease-soft); }
.drops a:hover { color: var(--raat); background: var(--wash); }
.drops [lang="ur"] { font-size: 16px; line-height: 1.7; padding-block-end: 2px; }
.drop { width: 8px; height: 11px; fill: var(--kashi); flex: none; opacity: 0; transform: translateY(-5px) scale(0.5); transition: opacity 300ms var(--ease), transform 600ms var(--ease); }
.drops a.is-on { color: var(--raat); font-weight: 600; }
.drops a.is-on .drop { opacity: 1; transform: none; }
@media (max-width: 1180px) { .drops { display: none; } }
