/* iravaci.ai. One stylesheet for every page; edited by hand.
   Layout: a slim fixed bar, a short opening, one pinned chat scene (site.js plays it with the
   scroll), then calm bands. Light only for now: the owner decided against a dark mode (24.11.2026).
   Colours: warm peach ground, deep violet for buttons and dark bands, coral for highlights.
   Font: Noto Sans Armenian (with Noto Sans for Cyrillic), served from assets/fonts/. The files and
   their character ranges are Google Fonts' own subsets (SIL Open Font License), fetched 24.11.2026. */
@font-face { font-family: "Noto Sans Armenian"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/noto-sans-armenian-armenian.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }
@font-face { font-family: "Noto Sans Armenian"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/noto-sans-armenian-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/noto-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  --night: #2A2550; --violet: #3D348B; --coral: #FFB199; --coral-deep: #C8452F;
  --paper: #FFFFFF; --peach: #FFF5EE; --tint: #FFE6D8; --ink: #2A2550; --muted: #55507A;
  --dim: #E6E1FF; --line: #E4D5CB; --edge: #7E74A3;
  --amber: #FFE9A8; --red: #C2410C; --green: #0B7A53;
  --font: "Noto Sans Armenian", "Noto Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --bar: 60px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--peach); color: var(--ink); font: 400 17px/1.5 var(--font); overflow-wrap: break-word; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.dark { background: var(--night); color: #FFFFFF; }
.dark a:focus-visible, .dark button:focus-visible { outline-color: var(--coral); }
.on-paper a:focus-visible, .on-paper button:focus-visible, .on-paper summary:focus-visible, .on-paper [tabindex]:focus-visible { outline-color: var(--violet); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 20; background: var(--violet); color: #FFFFFF; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 8px; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 9; background: var(--peach); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar .wrap { max-width: 1280px; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
/* the logo: a letter "i" made of a loose stack of pages, with a coral dot */
.logo { height: 38px; width: auto; aspect-ratio: 26 / 61; flex: none; }
.logo-pages { fill: var(--violet); }
.logo-dot { fill: var(--coral); }
/* the name as a logo: small letters, the first one is the page stack and stands on the text baseline */
.wordmark { display: inline-flex; align-items: baseline; font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.wm-i { height: 0.86em; width: 0.305em; margin-right: 0.05em; flex: none; overflow: visible; }
.wm-ai { margin-left: 0.28em; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--violet); display: grid; place-items: center; }
.avatar .logo { height: 24px; }
.avatar .logo-pages { fill: #FFFFFF; }
.nav { display: none; gap: 4px; }
.nav a { min-height: 44px; padding: 0 10px; white-space: nowrap; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; border-radius: 10px; }
.nav a:hover { background: rgba(61, 52, 139, 0.08); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 4px; font-size: 14px; font-weight: 700; }
.langs a { min-width: 46px; min-height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); text-decoration: none; border: 1px solid var(--edge); }
.langs a[aria-current="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.bar .langs { display: none; }
.langbar .wrap { padding-top: 14px; }

.btn { min-height: 54px; padding: 0 24px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; font-weight: 800; font-size: 17px; text-decoration: none; background: var(--violet); color: #FFFFFF; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.btn-line { background: transparent; color: var(--violet); border: 2px solid var(--violet); }
.dark .btn { background: var(--coral); color: var(--ink); }
.dark .btn.btn-line { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.free { font-size: 15px; color: var(--muted); }
.dark .free { color: var(--dim); }

/* ---------- opening ---------- */
.hero .wrap { padding-block: 18px 34px; }
.hero-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* example questions beside the headline: desktop only, a tap puts the question into the box */
.hero-side { display: none; }
.topics-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.topic { border: 1px solid var(--line); background: var(--paper); color: var(--night); border-radius: 999px; padding: 8px 14px; min-height: 44px; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.topic:hover, .topic:focus-visible { border-color: var(--violet); color: var(--violet); }
.prices { display: grid; gap: 8px; margin: 0 0 12px; max-width: 46rem; }
.prices > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.prices dt { font-weight: 600; }
.prices dd { margin: 0; color: var(--violet); font-weight: 700; }
.side-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.quick { align-self: flex-end; max-width: 92%; text-align: left; border: 0; background: var(--violet); color: #FFFFFF; border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.quick:hover { background: var(--night); }
.hero h1 { font-size: clamp(34px, 6.2vw, 72px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; max-width: 14em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--coral-deep); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 36rem; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hint::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px) rotate(45deg); } }

/* ---------- the pinned chat scene (finished state by default; .scrolly is added by site.js) ---------- */
.stage { background: var(--violet); padding-block: 28px 36px; }
.pin.scrolly { height: 210vh; }  /* about half the earlier scroll (owner: a shorter page) */
.scrolly .stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar)); height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); padding-block: 0; overflow: hidden; }
.kicker { font-size: 14px; font-weight: 700; color: var(--coral); }
.cap-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cap-top .kicker { min-width: 0; }
.scene-skip { flex: none; min-height: 44px; display: none; align-items: center; gap: 6px; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.scene-skip::after { content: "↓"; }
.scrolly .scene-skip { display: inline-flex; }
.dots { display: none; gap: 6px; }
.dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); }
.dots i.now { background: var(--coral); }
.lay { display: grid; gap: 14px; }
.caps { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cap-list { display: flex; flex-direction: column; gap: 10px; }
.cap { font-size: clamp(20px, 2.5vw, 32px); line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; }
.device { background: var(--paper); color: var(--ink); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; }
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-head span { display: flex; flex-direction: column; font-size: 15px; font-weight: 800; line-height: 1.2; }
.chat-head small { font-size: 13px; font-weight: 500; color: var(--muted); }
/* The chat fills from the top like a new conversation; once it is taller than its window, site.js
   slides it up so the newest part stays in view. */
.view { flex: 1; min-height: 0; padding: 4px 12px 14px; }
.stream { display: flex; flex-direction: column; }
.it { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s ease, opacity 0.3s ease; }
.it > .clip { overflow: hidden; min-height: 0; }
.pad { padding-top: 10px; display: flex; flex-direction: column; }
.me { align-self: flex-end; max-width: 88%; background: var(--violet); color: #FFFFFF; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 16px; font-weight: 600; line-height: 1.4; min-height: 42px; }
.caret { display: none; }
.bot { align-self: flex-start; max-width: 94%; background: var(--tint); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 15.5px; line-height: 1.45; }
.short { font-size: 17px; font-weight: 800; line-height: 1.35; }
.short mark { background: var(--coral); color: var(--ink); border-radius: 4px; padding: 0 4px; }
.label { align-self: flex-start; font-size: 13px; font-weight: 800; background: var(--ink); color: #FFFFFF; border-radius: 6px; padding: 2px 9px; }
.step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start; padding-top: 6px; }
.step b { width: 24px; height: 24px; border-radius: 50%; background: var(--violet); color: #FFFFFF; font-size: 13px; display: grid; place-items: center; }
.src a { color: var(--violet); font-weight: 700; }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #FFFFFF; font-size: 12px; font-weight: 800; margin-left: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.scrolly .tick:not(.on) { opacity: 0; transform: scale(0.3); }
.fine { font-size: 13px; color: var(--muted); padding-top: 8px; }
.search { background: var(--night); color: #FFFFFF; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pile { position: relative; height: 84px; }
.pp { position: absolute; width: 16px; height: 21px; border-radius: 3px; background: #FFFFFF;
  left: calc((var(--x) + (46 - var(--x)) * var(--s, 1)) * 1%); top: calc((var(--y) + (32 - var(--y)) * var(--s, 1)) * 1%);
  transform: rotate(calc(var(--r, 0) * 1deg)); opacity: clamp(0, calc((var(--k, 2) - var(--s, 1)) * 10), 0.9); }
.pp.keep { opacity: 1; transition: background-color 0.3s ease, transform 0.3s ease; }
.keep-a { --x: 38; --y: 30; --r: -6; }
.keep-b { --x: 54; --y: 34; --r: 5; }
.found .pp.keep { background: var(--coral); transform: scale(1.5); }
.count { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--dim); }
.count b { font: 800 30px/1 var(--mono); color: #FFFFFF; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.states { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.scrolly .states li { color: #B9B4DC; }
.scrolly .states li.now { color: #FFFFFF; font-weight: 700; }
.scrolly .it:not(.on) { grid-template-rows: 0fr; opacity: 0; }
.scrolly .lay { height: 100%; grid-template-rows: auto minmax(0, 1fr); padding-block: 12px 14px; }
.scrolly .view { overflow: hidden; }
.scrolly .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: #FFFFFF; animation: blink 1s steps(1) infinite; }
.scrolly .sent .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- calm bands ---------- */
.band .wrap { padding-block: 56px; display: flex; flex-direction: column; gap: 22px; }
.band h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.band h3 { font-size: 19px; line-height: 1.25; font-weight: 800; }
.band-intro { max-width: 40rem; }
.band-intro a { color: var(--violet); font-weight: 700; }
/* links inside a sentence get a taller tap area without moving the line */
.band-intro a, .meta a, .mail a, .test-list a, .faq a, .close p a { padding-block: 12px; }
.split, .band .wrap.split { display: grid; gap: 22px; }
.split-head { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.paper { background: var(--paper); color: var(--ink); }
.pale { background: var(--peach); color: var(--ink); }
.blue { background: var(--violet); color: #FFFFFF; }
.paper .band-intro, .pale .band-intro { color: var(--muted); }
.small { font-size: 14px; }
.sub { padding-top: 10px; }

/* the question box */
.askbox { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; max-width: 46rem; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 32px rgba(42, 37, 80, 0.10); }
.ask-label { padding: 12px 16px 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.askbox textarea { margin: 6px 12px 0; padding: 12px 14px; min-height: 96px; border: 1.5px solid var(--edge); border-radius: 14px; font: inherit; line-height: 1.45; color: var(--ink); background: var(--paper); resize: vertical; }
.askbox textarea:focus-visible { outline-offset: 2px; }
.ask-note { padding: 8px 16px 0; font-size: 14px; color: var(--muted); }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px 16px; }
.ask-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.file-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.attach { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; border: 2px solid var(--violet); color: var(--violet); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.attach svg { width: 18px; height: 18px; flex: none; }
.file-input:focus-visible + .attach { outline: 3px solid var(--violet); outline-offset: 3px; }
.file-hint { font-size: 14px; color: var(--muted); }
.file-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: var(--tint); border-radius: 12px; padding-left: 12px; font-size: 14.5px; font-weight: 600; }
.file-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.file-chip button { width: 44px; height: 44px; flex: none; border: 0; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; border-radius: 12px; }
.ask-status { margin: 0 16px 16px; padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: 14.5px; }

/* example questions: a swipe row on phones, three columns on desktop */
.qa-row { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.qa { scroll-snap-align: start; background: var(--paper); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qa .bot { max-width: 100%; }
.qa .bot b { display: block; font-size: 13px; color: var(--violet); padding-bottom: 2px; }
.use { align-self: flex-start; margin-top: auto; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--violet); background: transparent; color: var(--violet); font-weight: 700; font-size: 15px; }

/* how it works: a line that fills as you scroll */
.how-list { position: relative; display: flex; flex-direction: column; gap: 26px; max-width: 44rem; }
.how-list::before, .how-list::after { content: ""; position: absolute; left: 21px; top: 22px; width: 2px; }
.how-list::before { bottom: 22px; background: rgba(255, 255, 255, 0.25); }
.how-list::after { height: calc((100% - 44px) * var(--h, 1)); background: var(--coral); }
.how { position: relative; z-index: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.how b { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--night); border: 2px solid var(--coral); color: var(--coral); display: grid; place-items: center; font-size: 18px; }
.how h3 { padding-top: 9px; }
.how p { color: #F1F3FF; padding-top: 4px; }

/* why us: cards that stack on phones, a grid on desktop */
.stack { display: flex; flex-direction: column; gap: 16px; }
.fcard { background: var(--paper); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -8px 24px rgba(42, 37, 80, 0.10); }
.fcard svg { width: 32px; height: 32px; color: var(--violet); }
.fcard p { color: var(--muted); }
.fcard:nth-child(2) { --n: 1; } .fcard:nth-child(3) { --n: 2; } .fcard:nth-child(4) { --n: 3; }
.srcs { display: flex; flex-wrap: wrap; gap: 8px; }
.srcs li { font-size: 14px; font-weight: 700; background: var(--paper); border-radius: 999px; padding: 6px 14px; }

/* the dated-law example */
.demo-grid { display: grid; gap: 18px; }
.demo-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: 1; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.12); color: #FFFFFF; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.chip[aria-checked="true"] { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.sheet { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sheet-act { font-size: 18px; font-weight: 800; line-height: 1.2; }
.sheet-article { font-size: 14.5px; color: var(--muted); }
.law { font-size: 16px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.m-later { background: var(--amber); border-radius: 3px; padding: 1px 2px; }
.m-removed { color: #4A5078; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.m-added { text-decoration: none; font-weight: 700; background: var(--coral); border-radius: 3px; padding: 1px 2px; }
.notebox { background: var(--tint); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.key { align-self: flex-start; font-size: 13px; font-weight: 700; border-radius: 4px; padding: 1px 7px; }
.key-later { background: var(--amber); }
.key-removed { padding-left: 0; color: #4A5078; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.key-added { background: var(--coral); }
.note { font-size: 15.5px; line-height: 1.45; }
.meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--muted); }
.meta a { color: var(--violet); font-weight: 700; }
.quote { font-size: 13.5px; color: var(--muted); }

/* products */
.cards { display: grid; gap: 16px; }
.card { background: var(--peach); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pill { border-radius: 999px; padding: 3px 12px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); white-space: nowrap; }
.pill.live { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.card > p { color: var(--muted); }
.points { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; }
.points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.points li::before { content: "✓"; color: var(--green); font-weight: 800; }
.card .btn { align-self: flex-start; margin-top: auto; }
/* a card's bullet list folds on a phone (site.js closes it there); on desktop it is simply shown */
.more > summary { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.more[open] > summary::after { content: "–"; }
.card .mail { font-size: 14px; }
.card .mail a { color: var(--violet); font-weight: 700; }

/* test period and FAQ */
.test-list { display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
.fold { background: var(--paper); border-radius: 14px; padding: 0 16px; font-size: 16px; }
.fold > summary { min-height: 52px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-weight: 700; }
.fold[open] > summary::after { content: "–"; }
.fold > p { color: var(--muted); padding-bottom: 14px; }
.test-list a, .faq a { color: var(--violet); font-weight: 700; }
.faq { display: flex; flex-direction: column; max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* closing and footer */
.close .wrap { align-items: flex-start; }
.close p { color: #F1F3FF; max-width: 40rem; }
.close a:not(.btn) { color: #FFFFFF; font-weight: 700; }
.foot { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.foot .wrap { padding-block: 32px 48px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--dim); }
.foot a { color: #FFFFFF; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- privacy, terms and connector pages ---------- */
.doc { background: var(--paper); }
.doc .wrap { max-width: 820px; padding-block: 28px 64px; }
.doc article { display: flex; flex-direction: column; gap: 14px; }
.back { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; color: var(--violet); font-weight: 700; }
.doc h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.doc h2 { font-size: 22px; line-height: 1.2; font-weight: 800; padding-top: 14px; }
.doc p, .doc li { max-width: 46rem; }
.doc a:not(.btn):not(.back) { color: var(--violet); font-weight: 700; }
.doc ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc ul ul { padding-top: 6px; }
.lede { font-size: 18px; color: var(--muted); }
.todo-banner { background: var(--amber); border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
mark.todo { background: var(--amber); color: var(--ink); border-radius: 4px; padding: 0 4px; }
.site-note { background: var(--peach); border-radius: 14px; padding: 14px 16px; font-size: 15.5px; }
.site-note.test { background: var(--tint); }
.table-scroll { overflow-x: auto; }
.doc table { border-collapse: collapse; min-width: 520px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px; border: 1px solid var(--line); }
.doc th { background: var(--peach); }

@media (max-width: 860px) {
  .topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .topic { flex: none; }
  /* a shorter phone page (owner): the scene already shows how it works */
  #how { display: none; }
  .fcard { padding: 16px; gap: 6px; }
  .fcard p { font-size: 15px; }
  .scrolly .caps { gap: 6px; }
  .scrolly .cap { display: none; font-size: 21px; min-height: 2.36em; }
  .scrolly .cap.now { display: block; }
  .scrolly .dots { display: flex; }
  .stack.sticky .fcard { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar) + 14px + var(--n, 0) * 12px); }
  /* while the opening's own buttons are on screen, the bar does not repeat them */
  .bar.at-top .btn { visibility: hidden; }
}
@media (min-width: 861px) {
  .bar .langs { display: flex; }
  .langbar { display: none; }
  .hero .wrap { padding-block: 64px 72px; }
  .hero-main { gap: 20px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
  .hero-side { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 12px 32px rgba(42, 37, 80, 0.10); }
  .hero h1 { font-size: clamp(40px, 4.6vw, 64px); }
  .split, .band .wrap.split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .how-list { flex-direction: row; max-width: none; gap: 32px; }
  .how-list::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .how-list::after { left: 22px; top: 21px; height: 2px; width: calc((100% - 44px) * var(--h, 1)); }
  .how { flex: 1; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .how h3 { padding-top: 0; }
  .more > summary { display: none; }
  .lay { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; }
  .scrolly .lay { grid-template-rows: minmax(0, 1fr); padding-block: 24px; }
  .caps { gap: 16px; }
  .cap-list { gap: 14px; }
  .scrolly .cap { opacity: 0.6; transition: opacity 0.3s ease; }
  .scrolly .cap.now { opacity: 1; }
  .device { border: 8px solid var(--night); border-radius: 36px; }
  .scrolly .device { height: min(100%, 640px); }
  .band .wrap { padding-block: 88px; gap: 28px; }
  .qa-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .stack { display: grid; grid-template-columns: 1fr 1fr; }
  .fcard { box-shadow: none; padding: 24px; }
  .demo-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
  .chip { flex: none; padding: 0 18px; }
  .sheet { padding: 26px 28px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc .wrap { padding-block: 48px 96px; }
}
@media (min-width: 1200px) { .nav { display: flex; } }
@media (prefers-reduced-motion: reduce) { .hint::after { animation: none; } .it, .tick, .pp.keep, .cap { transition: none; } }

/* ---------- the website chat (chat.html) ---------- */
body.app { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.app .bar .wrap { max-width: none; }
.app-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.app-note { padding: 16px; background: var(--tint); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--edge); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; }
.icon-btn svg { width: 22px; height: 22px; }
.balance { font-size: 14px; font-weight: 700; color: var(--violet); white-space: nowrap; }
.menu-wrap, .attach-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(42, 37, 80, 0.18); padding: 6px; display: flex; flex-direction: column; }
.menu-up { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; min-width: 200px; }
.menu > a, .menu > button { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 0; background: none; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; text-align: left; }
.menu > a:hover, .menu > button:hover { background: var(--peach); }
.menu .danger { color: var(--red); }
.menu-langs { display: flex; gap: 4px; padding: 6px 8px; }
.menu-langs a { min-width: 44px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.menu-langs a[aria-current="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.screen { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.screen-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px; max-width: 36rem; width: 100%; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 32px rgba(42, 37, 80, 0.10); }
.screen-card h1 { font-size: 26px; line-height: 1.2; }
.screen-card a:not(.btn) { color: var(--violet); font-weight: 700; }
.screen-error { background: #FFF1EC; border: 1px solid var(--coral); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.consent-text { white-space: pre-wrap; max-height: 48vh; overflow-y: auto; background: var(--peach); border-radius: 14px; padding: 14px; font-size: 15px; line-height: 1.5; }
.chat-layout { flex: 1; display: flex; min-height: 0; }
.sidebar { width: 280px; flex: none; border-right: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; }
.side-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.side-head .btn svg { width: 18px; height: 18px; }
.side-title { font-size: 14px; color: var(--muted); font-weight: 700; }
.chat-list { display: flex; flex-direction: column; gap: 2px; }
.chat-list li { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.chat-list li.now { background: var(--tint); }
.chat-list .open { flex: 1; min-width: 0; min-height: 44px; text-align: left; border: 0; background: none; padding: 6px 10px; color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 10px; }
.chat-list .open:hover { background: var(--peach); }
.chat-list .del { min-width: 40px; min-height: 40px; border: 0; background: none; color: var(--muted); border-radius: 8px; font-size: 20px; }
.chat-list .del:hover { color: var(--red); background: var(--peach); }
.conv { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.messages > .empty { margin: auto; }
.msg { max-width: min(92%, 46rem); border-radius: 16px; padding: 10px 14px; font-size: 16px; line-height: 1.5; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--violet); color: #FFFFFF; border-radius: 16px 16px 4px 16px; }
.msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.msg.answer a { color: var(--violet); font-weight: 700; }
.msg.status { color: var(--muted); font-style: italic; background: transparent; border-style: dashed; }
.msg.error { background: #FFF1EC; border-color: var(--coral); }
.msg.hint, .msg.offer { background: var(--tint); border-color: var(--tint); }
.offer-row, .fb-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; white-space: normal; font-size: 14px; color: var(--muted); }
.chip-btn { min-width: 44px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 18px; }
.empty { text-align: center; max-width: 30rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.empty h2 { color: var(--ink); font-size: 22px; }
.composer { border-top: 1px solid var(--line); background: var(--peach); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.composer > * { max-width: 52rem; margin-inline: auto; }
.composer textarea { display: block; width: 100%; min-height: 52px; max-height: 40vh; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 14px; font: inherit; line-height: 1.45; resize: vertical; background: var(--paper); color: var(--ink); }
.composer.drag textarea { border-color: var(--violet); background: var(--tint); }
.composer-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.composer-row #send { margin-left: auto; }
#send small { font-weight: 600; opacity: 0.9; font-size: 13px; }
#send small:empty { display: none; }
#send:disabled { opacity: 0.55; cursor: progress; }
.mode { display: flex; border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; }
.mode button { min-height: 42px; padding: 0 12px; border: 0; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; }
.mode button[aria-checked="true"] { background: var(--ink); color: #FFFFFF; }
.files-chip { display: flex; align-items: center; gap: 8px; background: var(--tint); border-radius: 10px; padding: 4px 4px 4px 12px; font-size: 14px; margin-bottom: 8px; }
.files-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-chip button { min-width: 40px; min-height: 40px; border: 0; background: none; font-size: 20px; border-radius: 8px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.composer .fine { font-size: 13px; color: var(--muted); margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: 12px; max-width: calc(100vw - 32px); font-size: 15px; }
.dlg { border: 0; border-radius: 18px; padding: 22px; max-width: 30rem; width: calc(100vw - 32px); color: var(--ink); }
.dlg::backdrop { background: rgba(42, 37, 80, 0.45); }
.dlg h2 { font-size: 20px; margin-bottom: 10px; }
.dlg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.dlg-row a { color: var(--violet); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .only-touch { display: none !important; } }
@media (min-width: 861px) { .only-phone { display: none !important; } }
@media (max-width: 860px) {
  .sidebar { position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--bar)); bottom: 0; left: 0; z-index: 25; width: min(86vw, 320px); transform: translateX(-105%); visibility: hidden; transition: transform 0.2s, visibility 0s 0.2s; box-shadow: 0 12px 32px rgba(42, 37, 80, 0.25); }
  body.drawer-open .sidebar { transform: none; visibility: visible; transition: transform 0.2s; }
  .app .balance { font-size: 13px; }
  .messages { padding: 14px 12px; }
  .composer { padding-inline: 12px; }
  #send { padding: 0 12px; }
  #send span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .composer .fine { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
