/* ADR-0060: the landing page's tokens (the identity's colours, light and dark), self-hosted fonts, base type. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/plex-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plex-mono.woff2') format('woff2');
}

/* Android ships Noto Sans Bengali: the body text needs no download there. Headings take the semibold from us. */
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local('Noto Sans Bengali'),
    local('NotoSansBengali-Regular'),
    url('/fonts/noto-bengali.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/fonts/noto-bengali.woff2') format('woff2');
}

/* The fallback wears Plex Sans's metrics, so the swap moves nothing. */
@font-face {
  font-family: 'Plex Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Roboto');
  size-adjust: 104%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --sunk: #efeff3;
  --text-1: #16161c;
  --text-2: #4c4c58;
  --text-3: #63636f;
  --accent: #3450c8;
  --accent-fg: #ffffff;
  --accent-soft: rgb(52 80 200 / 0.08);
  --border: #e3e3e9;
  --border-strong: #c6c6d0;
  --success: #177a4e;
  --warning: #8a5a00;
  --shadow: 0 28px 60px -32px rgb(16 17 22 / 0.35);
  --sans: 'IBM Plex Sans', 'Plex Fallback', 'Noto Sans Bengali', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101116;
    --surface: #17181f;
    --sunk: #0b0c10;
    --text-1: #f4f4f7;
    --text-2: #a9a9b4;
    --text-3: #8f8f9b;
    --accent: #8fa8ff;
    --accent-fg: #0b0c10;
    --accent-soft: rgb(143 168 255 / 0.12);
    --border: #26262e;
    --border-strong: #3a3a46;
    --success: #3ecf8e;
    --warning: #e8b23d;
    --shadow: 0 28px 60px -32px rgb(0 0 0 / 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Bangla needs more room: a little larger than the Latin, and taller lines. */
body:lang(bn) {
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

:lang(bn) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.3;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 600px) {
  .wrap {
    padding-inline: 24px;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
}

.skip:focus {
  top: 12px;
}

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ADR-0060: buttons, the header, the footer, the 404 page and the scroll reveal. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

.button.ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-1);
}

.button.ghost:hover {
  background: var(--accent-soft);
  filter: none;
}

.button.big {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1.0625rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  flex: none;
  border-radius: 6px;
}

.links {
  display: flex;
  gap: 24px;
  margin-inline: auto;
}

.links a,
.signin,
.lang {
  color: var(--text-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.links a:hover,
.signin:hover,
.lang:hover {
  color: var(--text-1);
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.links + .actions {
  margin-left: 0;
}

.foot {
  border-top: 1px solid var(--border);
  padding-block: 40px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.foot-brand p,
.copy {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.875rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot nav a {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.missing {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding-block: 96px;
}

.missing p:last-child {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Sections below the hero fade up once as they scroll into view (motion.js); without script, nothing hides. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 280ms var(--ease),
    transform 280ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .links {
    display: none;
  }
}

@media (max-width: 480px) {
  .signin {
    display: none;
  }

  .actions {
    gap: 14px;
  }
}

/* ADR-0060: sections in general, the hero and the example picker under its thread. */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin-bottom: 40px;
  max-width: 24ch;
}

.lead {
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  max-width: 60ch;
}

.tag,
.label,
.price,
.order dd {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* IBM Plex Mono has no Bengali letters: Bangla labels stay in the sans. */
:lang(bn) :is(.tag, .label) {
  font-family: var(--sans);
}

.hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.8vw, 4.25rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

:lang(bn) .hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem);
  max-width: 16ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note,
.fine {
  color: var(--text-3);
  font-size: 0.9375rem;
  max-width: 48ch;
}

.scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.scenes button {
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-3);
  font: 500 0.8125rem/1.4 var(--sans);
  cursor: pointer;
}

.scenes button:hover {
  color: var(--text-1);
}

.scenes button.on {
  color: var(--text-1);
  border-bottom-color: var(--accent);
}

html:not(.js) .scenes {
  display: none;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 6vw, 80px);
  }

  .hero-copy {
    padding-top: 24px;
  }

  .thread {
    max-width: 460px;
    justify-self: end;
    margin-top: -8px;
  }
}

/* ADR-0060: the drawn inbox thread: bubbles, the reply's source, the order card, the offers and the owner's foot. */

.thread {
  position: relative;
  width: 100%;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.thread-who {
  display: grid;
  line-height: 1.3;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.live::before,
.waiting::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.tag {
  margin-left: auto;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-3);
}

/* As tall as the tallest example in either language, so the thread never changes height between them. */
.stage {
  --stage-h: 472px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: var(--stage-h);
  padding: 18px 16px 16px;
  background: var(--sunk);
}

@media (min-width: 600px) {
  .stage {
    --stage-h: 420px;
  }
}

@media (min-width: 900px) {
  .stage {
    --stage-h: 444px;
  }
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

:lang(bn) .bubble {
  line-height: 1.65;
}

.bubble.in {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.reply {
  display: grid;
  gap: 4px;
  justify-items: end;
  justify-self: end;
  max-width: 88%;
}

.reply .bubble,
.exchange .bubble.out {
  max-width: 100%;
  border-bottom-right-radius: 4px;
  background: var(--accent);
  color: var(--accent-fg);
}

.exchange .bubble.out {
  justify-self: end;
  max-width: 88%;
}

.source {
  padding-right: 4px;
  color: var(--text-3);
  font-size: 0.75rem;
}

.order {
  display: grid;
  gap: 10px;
  max-width: 88%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.order dl {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 0.9375rem;
}

.order dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order dd {
  margin: 0;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.order .sum {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.offers {
  display: grid;
  gap: 8px;
  max-width: 88%;
}

.offers li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.offers .price {
  margin-left: auto;
  font-size: 0.9375rem;
}

.foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.waiting {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--text-2);
  font-size: 0.8125rem;
}

.waiting::before {
  background: var(--warning);
}

.mini {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.mini.ghost {
  border-color: var(--border-strong);
  color: var(--text-1);
}

.mini.approve {
  background: var(--accent);
  color: var(--accent-fg);
}

/* The typing dots, before a reply. */
.dots {
  display: inline-flex;
  gap: 5px;
  justify-self: end;
  padding: 13px 14px;
  border-radius: 16px 16px 4px;
  background: var(--accent-soft);
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}

@media (max-width: 480px) {
  .bubble,
  .reply,
  .order,
  .offers {
    max-width: 94%;
  }
}

/* ADR-0060: the price promise band and the jar. */

.band {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.promise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.promise-copy {
  display: grid;
  gap: 18px;
}

.promise-copy h2 {
  margin: 0;
}

.exchange {
  display: grid;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 500;
}

.check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.points {
  display: grid;
  gap: 20px;
}

.points li {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.points p,
.does p,
.steps p {
  color: var(--text-2);
}

.jar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.jar-copy {
  display: grid;
  gap: 18px;
}

.jar-copy h2 {
  margin: 0;
}

.jar-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.glass {
  position: absolute;
  left: 2%;
  bottom: 0;
  width: 64%;
}

.glass .body {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 0.8;
}

.glass .lid {
  fill: var(--accent);
}

.drops {
  position: absolute;
  left: 7%;
  bottom: 4%;
  width: 54%;
  height: 56%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: 8px;
}

.drop {
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: clamp(0.75rem, 0.6rem + 0.6vw, 0.875rem);
  font-weight: 500;
  white-space: nowrap;
}

.drop.soon {
  border-style: dashed;
  color: var(--text-3);
}

.drop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* The channel marks, each in its own brand colour; the website is ours and takes the accent. */
.mark {
  flex: none;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.mark.web,
.mark.instagram {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark.instagram .dot {
  fill: currentColor;
  stroke: none;
}

.mark.messenger {
  color: #0084ff;
}

.mark.web {
  color: var(--accent);
}

.mark.whatsapp {
  color: #25d366;
}

.mark.instagram {
  color: #e1306c;
}

.drop span {
  font-weight: 400;
  font-size: 0.85em;
}

.jar-out {
  position: absolute;
  right: 0;
  bottom: 28%;
  display: grid;
  gap: 6px;
  width: 36%;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
}

.jar-out .price {
  font-size: 1.125rem;
}

.jar-out .waiting {
  margin: 0;
}

@media (min-width: 600px) {
  .jar-stage {
    aspect-ratio: 5 / 4;
  }

  .glass {
    left: 4%;
    width: 58%;
  }

  .drops {
    left: 9%;
    bottom: 5%;
    width: 48%;
    height: 50%;
  }

  .drop {
    padding: 6px 12px;
  }
}

@media (min-width: 900px) {
  .promise-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(56px, 7vw, 88px) clamp(48px, 7vw, 96px);
    align-items: center;
  }

  .exchange {
    padding: 24px 22px;
  }

  .points {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .jar-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 96px);
  }

  .jar-stage {
    justify-self: end;
  }
}

/* ADR-0060: the three steps with their drawn UI, what it does, the demo, early access and the questions. */

.steps {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.step-copy {
  display: grid;
  gap: 10px;
  max-width: 44ch;
}

.num {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.step-ui {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sheet th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-weight: 500;
  text-align: left;
}

.sheet td {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.sheet tr:last-child td {
  border-bottom: 0;
}

.sheet td:nth-child(2) {
  font-family: var(--mono);
}

.sheet .dim {
  color: var(--text-3);
}

.rules {
  display: grid;
  gap: 12px;
}

.rule {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9375rem;
}

.rule span {
  color: var(--text-2);
}

.inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
}

.inbox-who {
  display: grid;
  gap: 2px;
  font-size: 0.9375rem;
}

.inbox-who span {
  color: var(--text-2);
}

.inbox-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 480px) {
  .inbox-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.does {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 48px;
}

.does li {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.demo-grid > div:first-child {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.demo-grid h2 {
  margin-bottom: 0;
}

.tries {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.label {
  margin-bottom: 14px;
  color: var(--text-3);
}

.tries ul {
  display: grid;
  gap: 10px;
}

.tries li {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.tries li:lang(bn) {
  font-family: var(--sans);
}

.early {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--accent-soft);
}

.early h2 {
  margin-bottom: 0;
}

.early p {
  max-width: 56ch;
  color: var(--text-2);
  font-size: 1.0625rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(40px, 6vw, 80px);
  align-items: start;
}

.faq-list {
  max-width: 800px;
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--accent);
  font: 500 1.25rem/1 var(--mono);
}

details[open] summary::after {
  content: '−';
}

details p {
  padding-bottom: 18px;
  color: var(--text-2);
}

@media (min-width: 700px) {
  .does {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 80px);
  }

  .step:nth-child(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .step:nth-child(even) .step-copy {
    order: 2;
  }

  .demo-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 48px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .faq-list {
    max-width: none;
  }
}
