/*
 * Website demo page (D109). Soft light theme: cool grey canvas with white cards (less glare than pure
 * white), slate text, hairline borders, one calm blue accent for selection, focus and progress; green
 * only for "lines open". Geist for Latin, Noto Sans Bengali for Bangla.
 * Shape rule: cards, inputs and buttons 8px; segmented thumbs 6px; badges are pills.
 */
:root {
  --paper: #f6f7f9;
  --sheet: #ffffff;
  --sheet-head: #ffffff;
  --surface: #ffffff;
  --muted-bg: #f1f3f5;
  --ink: #1d2127;
  --ink-hover: #0b0d10;
  --ink-2: #59616c;
  --rule: #e4e7eb;
  --rule-strong: #cfd4da;
  --accent: #2f6be0;
  --accent-soft: #eef3fd;
  --ok: #12703a;
  --on-ink: #ffffff;
  --error: #c0362c;
  --focus: #2f6be0;
  --display: "Geist", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Geist", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, .btn, .lang, .agent, .seg span, select, .consent { touch-action: manipulation; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 var(--text);
  overflow-x: hidden;
}
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 8vw, 60px); }
h2 { font-size: clamp(26px, 5.5vw, 36px); margin-bottom: 14px; }
p { margin: 0 0 14px; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* masthead: the memo pad's printed header */
.mast { border-bottom: 1px solid var(--rule); background: var(--paper); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.15; min-height: 40px; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--on-ink); }
.mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-by { font-size: 15px; color: var(--ink-2); }
.lang { font: 500 15px var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 14px; min-height: 44px; cursor: pointer; }
.lang:hover { border-color: var(--rule-strong); background: var(--muted-bg); }

/* first viewport */
.top { padding-block: 28px 56px; }
.top-grid { display: grid; gap: 28px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 34em; margin-top: 16px; }
@media (min-width: 960px) {
  .top { padding-block: 56px 80px; }
  .top-grid { grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: start; }
  .lead { font-size: 21px; }
}

/* what you'll hear: the selected agent's call, as a short transcript */
.hear { margin: 28px 0 0; max-width: 560px; }
.hear-h { font-family: var(--display); font-weight: 700; font-size: 21px; margin: 0 0 6px; }
.hear-role { color: var(--ink-2); font-size: 16px; margin: 0 0 14px; }
.steps { margin: 0 0 18px; padding-left: 1.4em; color: var(--ink-2); }
.steps li { margin: 2px 0; }
.line { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding-block: 8px; border-top: 1px solid var(--rule); font-size: 17px; }
.line:last-child { border-bottom: 1px solid var(--rule); }
.line b { font-family: var(--display); font-weight: 700; }
.line.you { color: var(--ink-2); }
@media (max-width: 959px) { .hear { order: 3; } .intro { display: contents; } .intro > h1, .intro > .lead { order: 0; } .memo { order: 2; } .top-grid { display: flex; flex-direction: column; } }

/* the memo sheet (pink duplicate copy, blue ruling) */
.memo { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 0 18px 16px; box-shadow: 0 2px 2px rgb(0 0 0 / 4%), 0 8px 16px -4px rgb(0 0 0 / 4%); }
.memo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 -18px 16px; padding: 12px 18px; background: var(--sheet-head); border-bottom: 1px solid var(--rule); border-radius: 12px 12px 0 0; }
.memo-title { font-family: var(--display); font-weight: 600; font-size: 17px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.status.open i { background: var(--ok); box-shadow: 0 0 0 3px rgb(18 112 58 / 15%); }
.status.open { color: var(--ok); }
.memo-foot { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field > label { font-family: var(--display); font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }

/* agents: memo line items with a tick column */
.agents { margin-bottom: 14px; }
.agent-list { display: grid; }
.agent { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 8px; margin: 2px -8px 0; border-radius: 8px; cursor: pointer; }
.agent:has(input:checked) { background: var(--accent-soft); }
.agent:hover { background: var(--muted-bg); }
.agent:has(input:checked):hover { background: var(--accent-soft); }
.agent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--rule-strong); border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.tick svg { width: 14px; height: 14px; stroke: var(--on-ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.agent input:checked + .tick { background: var(--accent); border-color: var(--accent); }
.agent input:checked + .tick svg { opacity: 1; }
.agent input:focus-visible + .tick { outline: 3px solid var(--focus); outline-offset: 2px; }
.agent-t { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.35; display: block; }
.agent-o { display: none; font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 3px; }
.agent input:checked ~ span .agent-o { display: block; }
.agent-pop { display: inline-block; font-family: var(--text); font-weight: 500; font-size: 12px; line-height: 1.6; color: var(--ink-2); background: var(--muted-bg); border: 1px solid var(--rule); border-radius: 999px; padding: 0 8px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }


.field { display: grid; margin-bottom: 14px; }
.field small, .opt { color: var(--ink-2); font-size: 13.5px; font-family: var(--text); font-weight: 400; }
input[type="tel"], input[type="text"], select {
  font: 16px var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 8px 12px; min-height: 44px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
#phone { font-size: 18px; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
input[type="tel"]:focus, input[type="text"]:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(47 107 224 / 18%); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; background: var(--muted-bg); }
.seg label { position: relative; }

.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 38px; padding: 4px 8px; border-radius: 7px; cursor: pointer; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink-2); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(16 24 40 / 8%), 0 0 0 1px var(--rule); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 0; }
.later { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.note { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.note:empty { display: none; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.turnstile:empty { display: none; }
.turnstile { margin-bottom: 12px; }
.error { color: var(--error); font-size: 14.5px; margin: 0 0 12px; }
.error:empty { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16.5px var(--display); border-radius: 8px; padding: 10px 20px; min-height: 46px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, transform .1s; }
.btn-primary { width: 100%; background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.7; cursor: progress; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--rule); font-size: 16px; min-height: 46px; }
.btn-quiet:hover { background: var(--muted-bg); border-color: var(--rule-strong); }

/* booked: a check, the time, and a 30-second bar while the phone is about to ring */
.done { padding: 8px 0 4px; }
.done:focus { outline: none; }
.ok-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin: 8px 0 14px; }
.ok-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done.landed .ok-icon { animation: pop 360ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.countdown { height: 4px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; margin: 4px 0 16px; }
.countdown span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.countdown.run span { animation: drain 30s linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
.done h2 { font-size: 26px; margin-bottom: 6px; }
.done p { font-size: 18px; }
.callerid .num { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.callerid { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; color: var(--ink); font-size: 16px; }
.tips { margin: 14px 0 18px; padding-left: 1.2em; color: var(--ink-2); font-size: 16px; }




.foot { border-top: 1px solid var(--rule); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 18px 28px; font-size: 15px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* phones: tighter first screen so the form starts sooner; nothing under 16px in inputs (iOS zoom) */
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  h1 { font-size: clamp(28px, 8.4vw, 40px); }
  h2 { font-size: 24px; }
  .mast-in { padding-block: 10px; }
  .top { padding-block: 14px 32px; }
  .lead { font-size: 17px; margin-top: 10px; }
  .memo { padding: 0 14px 14px; }
  .memo-head { margin: 0 -14px 14px; padding: 10px 14px; }
  .agent { padding: 9px 8px; }
  .agents { margin-bottom: 14px; }
  .field { margin-bottom: 14px; }
  .agent-o { font-size: 15px; }
  .line { grid-template-columns: 4.6em 1fr; font-size: 16px; }
  .done h2 { font-size: 22px; }
}
.foot-in { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }

/* Bangla glyphs touch under negative tracking */
:lang(bn) h1, :lang(bn) h2 { letter-spacing: 0; }

main { flex: 1; }

/* privacy page */
.doc { padding-block: 40px 56px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc-sub { color: var(--ink-2); max-width: 40em; }
