/* jild website. Tokens are the apps' own: packages/ui-tokens/tokens.json, apps/web-guest/src/styles.css.
   Teal means inside the company, amber means outside; amber appears only where the page talks about clients. */
:root {
  --bg: #FFFFFF; --surface: #F3F6F6; --surface2: #E8EEEE; --wall: #EAF0EF;
  --sep: #E4EAEA; --sep2: #CBD5D6; --text: #0F1A1C; --text2: #4D5E61; --text3: #647376;
  --accent: #0B7F7A; --accent-pressed: #086560; --on-accent: #FFFFFF; --accent-tint: #E3F4F2; --accent-text: #086560;
  --amber: #E58A00; --amber-text: #9A5200; --amber-tint: #FFF1DC;
  --sh-shot: 0 1px 2px rgba(8,16,18,.08), 0 12px 40px rgba(8,16,18,.14);
  --bezel: #0F1A1C;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='%230B7F7A' stroke-opacity='.075'%3E%3Cpath d='M28 8L48 28 28 48 8 28zM14 14h28v28H14zM0 28h8M48 28h8M28 0v8M28 48v8M0 0l6 6M56 0l-6 6M0 56l6-6M56 56l-6-6'/%3E%3C/svg%3E");
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1415; --surface: #161F21; --surface2: #1E292C; --wall: #090E0F;
    --sep: #212D30; --sep2: #344448; --text: #E8EEEE; --text2: #A9B8BA; --text3: #8A9B9E;
    --accent: #2CC4B8; --accent-pressed: #55D3C9; --on-accent: #04201E; --accent-tint: #10302E; --accent-text: #55D3C9;
    --amber: #FFB54A; --amber-text: #FFC876; --amber-tint: #33250F;
    --sh-shot: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.5);
    --bezel: #2A3639;
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='%232CC4B8' stroke-opacity='.07'%3E%3Cpath d='M28 8L48 28 28 48 8 28zM14 14h28v28H14zM0 28h8M48 28h8M28 0v8M28 48v8M0 0l6 6M56 0l-6 6M0 56l6-6M56 56l-6-6'/%3E%3C/svg%3E");
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd {
  font: 600 14px/1 var(--font); padding: 3px 6px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--sep2); color: var(--text); white-space: nowrap;
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.small { font-size: 14px; line-height: 1.45; color: var(--text3); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--text); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.2px;
}
.mark { width: 34px; height: 34px; flex: none; }
.mk-b { fill: var(--accent); }
.mk-f { fill: var(--on-accent); }
.mk-s { fill-opacity: .6; }
.langs { display: flex; gap: 4px; }
.langs a {
  min-width: 44px; height: 40px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text2); font-size: 14px; font-weight: 600; text-decoration: none;
}
.langs a:hover { background: var(--surface2); color: var(--text); }
.langs a[aria-current] { background: var(--accent); color: var(--on-accent); }
.ls { display: none; }
@media (max-width: 479.98px) {
  .langs a { padding: 0 10px; }
  .lf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ls { display: inline; }
}

/* buttons */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; line-height: 1.25;
  text-decoration: none; text-align: center; transition: background-color .15s;
}
.btn:hover { background: var(--accent-pressed); }
.btn.g { background: var(--surface); color: var(--text); }
.btn.g:hover { background: var(--surface2); }
.btn.g .i { color: var(--accent); }
@media (max-width: 479.98px) { .cta .btn { flex: 1 1 100%; } }

/* hero */
.hero { padding-top: 24px; padding-bottom: 32px; }
@media (min-width: 720px) { .hero { padding-top: 56px; padding-bottom: 40px; } }
.hero h1 {
  font-size: clamp(34px, 2.6vw + 22px, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.025em;
  max-width: 18ch; text-wrap: balance;
}
.lead { margin-top: 20px; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--text2); }
@media (min-width: 720px) { .hero .lead { font-size: 20px; } }
.hero .cta, .hero .soon { margin-top: 28px; }
.soon {
  display: inline-flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--accent-tint); color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.4;
}
.soon .i { color: var(--accent-text); margin-top: 1px; }
.invite { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 760px; }
.invite p { flex: 1 1 280px; color: var(--text2); font-size: 16px; }
.invite strong { color: var(--text); }
.plat { margin-top: 24px; font-size: 14px; color: var(--text3); }

/* screenshots on the tile wall of the chat screen */
.wall { border-radius: 24px; background: var(--wall) var(--pat) 0 0 / 56px 56px; }
.hero-shot { padding: clamp(12px, 4vw, 40px); }
.hero-shot img { border-radius: 12px; box-shadow: var(--sh-shot); width: 100%; }
@media (min-width: 720px) { .hero-shot img { border-radius: 10px; } }
.phone {
  border: 7px solid var(--bezel); border-radius: 42px; overflow: hidden; background: var(--bezel);
  box-shadow: var(--sh-shot); width: 100%; max-width: 280px; margin: 0 auto;
}
.phone img { border-radius: 35px; }
.screen { border-radius: 12px; overflow: hidden; box-shadow: var(--sh-shot); background: var(--bg); }
figcaption { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--text2); text-align: center; }

/* sections */
.sec { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 720px) { .sec { padding-top: 72px; padding-bottom: 72px; } }
.sec h2 {
  font-size: clamp(27px, 1.2vw + 22px, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -.018em;
  max-width: 24ch; text-wrap: balance;
}
.intro, .sec-text > p { margin-top: 16px; max-width: 62ch; color: var(--text2); }
.sec-text > p + p { margin-top: 12px; }

.why { display: grid; gap: 28px; }
@media (min-width: 900px) { .why { grid-template-columns: 5fr 7fr; gap: 64px; } }
.points li { padding: 20px 0; border-top: 1px solid var(--sep); color: var(--text2); }
.points li:last-child { border-bottom: 1px solid var(--sep); }
.points strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 19px; line-height: 1.35; }

.tag {
  display: inline-block; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0;
  padding: 2px 8px; border-radius: 6px; vertical-align: middle; white-space: nowrap;
}
.tag.in { background: var(--accent-tint); color: var(--accent-text); }
.tag.out { background: var(--amber-tint); color: var(--amber-text); }
.tag.muted { background: var(--surface2); color: var(--text2); }
h2 .tag { font-size: 15px; line-height: 22px; padding: 2px 9px; position: relative; top: -3px; }

.clients { display: grid; gap: 36px; }
.split { margin-top: 16px; display: grid; gap: 24px; }
.split .sec-text > p:first-child { margin-top: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.dots { display: grid; gap: 14px; max-width: 62ch; }
.dots li { position: relative; padding-left: 22px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.dots.out li::before { background: var(--amber); }
.pair { display: grid; gap: 28px; padding: clamp(16px, 4vw, 40px); align-items: start; }
.fig-phone .phone { max-width: 240px; }
@media (min-width: 900px) {
  .pair { grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
  .fig-phone .phone { max-width: 280px; }
}

.team { display: grid; gap: 36px; }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 360px; gap: 64px; align-items: center; } }
.fig-settings { padding: clamp(20px, 4vw, 40px) 16px; }
.fig-settings .phone { max-width: 240px; }
@media (min-width: 900px) { .fig-settings .phone { max-width: 260px; } }
.sec-text > p.roles-h { margin-top: 24px; font-weight: 600; color: var(--text); }
.roles { margin-top: 12px; display: grid; gap: 10px; max-width: 62ch; }
.roles li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; color: var(--text2); }
.roles .tag { justify-self: start; }

.groups { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }
.group { background: var(--surface); border-radius: 20px; padding: 6px 0; }
.group li { display: flex; gap: 14px; padding: 14px 20px 14px 16px; position: relative; }
.group li + li::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; border-top: 1px solid var(--sep); }
.ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-tint); color: var(--accent-text); }
.group h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.group p { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--text2); }

.band { background: var(--surface); }
.data-grid { margin-top: 28px; display: grid; gap: 24px; }
@media (min-width: 900px) { .data-grid { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } }
.checks { display: grid; gap: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { color: var(--accent-text); margin-top: 3px; }
.note { background: var(--bg); border-radius: 20px; padding: 20px; display: grid; gap: 14px; }
.note p { display: flex; gap: 12px; align-items: flex-start; color: var(--text2); }
.note p:last-child { padding-left: 32px; }
.note .i { color: var(--text); margin-top: 3px; }
.note strong { color: var(--text); }

.steps { margin-top: 28px; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 600px) { .steps { grid-template-columns: 1fr 1fr; gap: 20px 24px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n {
  width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-text); font-size: 14px; font-weight: 700; margin-top: 1px;
}
.get { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 900px) { .get { grid-template-columns: 1fr 1fr; gap: 24px; } }
.get-box { border: 1px solid var(--sep2); border-radius: 20px; padding: 20px; display: grid; gap: 14px; align-content: start; }
@media (min-width: 720px) { .get-box { padding: 28px; } }
.get-box h3 { font-size: 20px; line-height: 1.3; }
.get-box p { color: var(--text2); }
.get-box .soon { margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--sep); padding: 36px 0 40px; }
.foot-in { display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-in { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.foot-brand .small { margin-top: 6px; }
.foot-nav ul { display: grid; gap: 4px; }
.foot-nav a, .foot-contact a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; }
.foot-nav a:hover, .foot-contact a:hover { text-decoration: underline; }
.foot-h { font-size: 14px; color: var(--text3); }
.foot-contact p:last-child { padding: 6px 0; }
.foot-note { margin-top: 24px; }

/* values the operator has not set yet (see scripts/build.mjs) */
.unset { color: var(--text2); font-style: italic; border-bottom: 1px dashed var(--sep2); }

/* long pages: privacy policy, support */
.doc { padding-top: 24px; padding-bottom: 72px; max-width: 800px; margin-left: auto; margin-right: auto; }
@media (min-width: 720px) { .doc { padding-top: 48px; } }
.doc h1 { font-size: clamp(32px, 1.8vw + 24px, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.doc .lead { font-size: 18px; }
.updated { margin-top: 12px; font-size: 15px; color: var(--text3); }
.doc section { margin-top: 48px; }
.doc h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; scroll-margin-top: 16px; }
.doc h3 { margin-top: 28px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.doc h2 + p, .doc h2 + .bul, .doc h2 + .rows, .doc h3 + p { margin-top: 12px; }
.doc p + p, .doc p + .bul, .doc .bul + p, .doc .rows + p, .doc p + .rows { margin-top: 14px; }
.doc p, .doc li, .doc dd { max-width: 68ch; }
.bul { display: grid; gap: 10px; }
.bul li { position: relative; padding-left: 22px; }
.bul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 3px; background: var(--accent); }
.rows > div { padding: 14px 0; border-top: 1px solid var(--sep); }
.rows > div:last-child { border-bottom: 1px solid var(--sep); }
.rows dt { font-weight: 600; }
.rows dd { margin-top: 4px; color: var(--text2); }
@media (min-width: 640px) {
  .rows > div { display: grid; grid-template-columns: 190px 1fr; gap: 20px; }
  .rows dd { margin-top: 0; }
}
.path { font-weight: 600; color: var(--text); white-space: normal; }
.toc { margin-top: 32px; padding: 20px; border-radius: 20px; background: var(--surface); }
.toc-h { font-size: 14px; font-weight: 600; color: var(--text3); }
.toc ul { margin-top: 8px; display: grid; gap: 2px 24px; }
@media (min-width: 640px) { .toc ul { grid-template-columns: 1fr 1fr; } }
.toc a { display: inline-block; padding: 5px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.doc .contact { margin-top: 32px; padding: 20px; border-radius: 20px; background: var(--accent-tint); }
@media (min-width: 720px) { .doc .contact { padding: 28px; } }
.contact h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.contact h2 .i { color: var(--accent-text); }
.contact p { color: var(--text); }
.doc .contact-mail { margin-top: 10px; font-size: 20px; font-weight: 600; }
.nf section { margin-top: 32px; }
.nf p { margin-top: 10px; }
.nf section:first-child { margin-top: 0; }
.nf h2 { font-size: 22px; }

@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
