/* ChatOS landing page. Self-hosted font, no script, no inline style: the marketing CSP allows nothing else. */

@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/site/fonts/readex-pro-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/site/fonts/readex-pro-arabic-600-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/site/fonts/readex-pro-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/site/fonts/readex-pro-latin-400-normal.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: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/site/fonts/readex-pro-latin-600-normal.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: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/site/fonts/readex-pro-latin-700-normal.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;
}

:root {
  color-scheme: light dark;
  --bg: #f6f0e4;
  --bg-alt: #ede4d1;
  --card: #fffdf8;
  --ink: #17231f;
  --muted: #4b5a54;
  --line: #d9ccb4;
  --accent: #0f6b5c;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe3;
  --amber: #8a4700;
  --amber-soft: #fbe9c8;
  --cust: #ffffff;
  --bot: #d3eadf;
  --staff: #fbe3b6;
  --chat-bg: #efe6d2;
  --risk-bg: #17231f;
  --risk-ink: #f3ede0;
  --risk-muted: #c9d3ce;
  --risk-accent: #f2b45a;
  --risk-line: #3a4a44;
  --final-bg: #0f6b5c;
  --final-ink: #ffffff;
  --shadow: 0 1px 0 rgb(23 35 31 / .05), 0 14px 32px -18px rgb(23 35 31 / .35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --bg-alt: #141d1b;
    --card: #182321;
    --ink: #eaf0ed;
    --muted: #a9b9b3;
    --line: #2b3a36;
    --accent: #4fd1b8;
    --accent-ink: #06211c;
    --accent-soft: #173a32;
    --amber: #f2b45a;
    --amber-soft: #3b2c12;
    --cust: #22302d;
    --bot: #1b4a3f;
    --staff: #4a3813;
    --chat-bg: #101917;
    --risk-bg: #2a2012;
    --risk-ink: #f4ecdc;
    --risk-muted: #d3c9b6;
    --risk-accent: #f2b45a;
    --risk-line: #5a4727;
    --final-bg: #12413a;
    --final-ink: #eaf7f3;
    --shadow: 0 1px 0 rgb(0 0 0 / .3), 0 14px 32px -18px rgb(0 0 0 / .7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Readex Pro', 'Segoe UI', Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--risk-accent); outline-offset: 3px; border-radius: 4px; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

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

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; line-height: 1; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset-inline-start: 6px; bottom: -4px; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 0 100%); }
[dir='rtl'] .brand-mark::after { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.brand-mark::before { content: ''; position: absolute; inset: 9px 7px; border-block: 2px solid var(--accent-ink); }
.nav { display: none; gap: 22px; margin-inline-start: 18px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.top-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; font-size: .95rem; }
.top-actions .lang, .top-actions .login { color: var(--ink); text-decoration: none; padding: 6px 4px; }
.top-actions .lang:hover, .top-actions .login:hover { text-decoration: underline; }
.top-actions .login { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 28px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.05rem; line-height: 1.3; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: .95rem; border-radius: 11px; }
.btn-light { background: var(--final-ink); color: var(--final-bg); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.cta-note { color: var(--muted); font-size: .95rem; }

/* Hero */
.hero { padding-block: 44px 56px; background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.2px); background-size: 22px 22px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
h1 { font-size: clamp(1.95rem, 6.4vw, 3.5rem); line-height: 1.4; font-weight: 700; letter-spacing: 0; max-width: 24ch; text-wrap: balance; }
[lang='en'] h1 { line-height: 1.18; max-width: 20ch; letter-spacing: -.01em; }
.lead { margin-top: 22px; font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }
[lang='en'] .lead { max-width: 46ch; line-height: 1.7; }
.risk-note { margin-top: 20px; display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--muted); max-width: 46ch; }
.risk-note a { color: var(--amber); font-weight: 600; }
.dot { flex: none; margin-top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--risk-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--risk-accent) 28%, transparent); }

/* The unanswered message, drawn as a short timeline */
.pain { position: relative; justify-self: stretch; max-width: 380px; width: 100%; margin-inline: auto; padding: 28px 24px 24px; border: 1px dashed var(--line); border-radius: 22px; background: color-mix(in srgb, var(--card) 80%, transparent); display: grid; gap: 0; }
.pain-tag { position: absolute; top: -13px; inset-inline-start: 20px; background: var(--bg); padding: 0 10px; font-size: .8rem; color: var(--muted); }
.pain-bubble { position: relative; background: var(--cust); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 12px; width: fit-content; max-width: 100%; line-height: 1.6; box-shadow: var(--shadow); }
.pain-time { display: block; font-size: .75rem; color: var(--muted); }
.pain-gap { height: 84px; margin-inline-start: 28px; border-inline-start: 2px dashed var(--risk-accent); display: flex; align-items: center; padding-inline-start: 16px; color: var(--amber); font-weight: 600; font-size: .95rem; }
.pain-gone { align-self: end; justify-self: end; background: transparent; border-style: dashed; color: var(--muted); box-shadow: none; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }

/* Sections */
.section { padding-block: 64px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-inline-end: 10px; }
h2 { font-size: clamp(1.55rem, 4.4vw, 2.4rem); line-height: 1.45; font-weight: 700; max-width: 26ch; text-wrap: balance; }
[lang='en'] h2 { line-height: 1.22; max-width: 28ch; }
h3 { font-size: 1.1rem; line-height: 1.5; font-weight: 600; }
.sub { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.fine { color: var(--muted); font-size: .95rem; margin-top: 12px; max-width: 60ch; }

/* Conversation mock */
.conv-grid { margin-top: 40px; display: grid; gap: 36px; align-items: start; }
.phone { border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; width: 100%; max-width: 460px; margin-inline: auto; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); flex-wrap: wrap; }
.phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 25%, transparent); flex: none; }
.phone-title { font-weight: 600; }
.phone-label { margin-inline-start: auto; font-size: .75rem; opacity: .9; border: 1px solid color-mix(in srgb, var(--accent-ink) 55%, transparent); border-radius: 999px; padding: 0 10px; line-height: 1.7; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 22px; background: var(--chat-bg); }
.msg { position: relative; margin: 0; max-width: 86%; padding: 9px 14px 6px; border-radius: 16px; line-height: 1.7; font-size: .98rem; box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.msg-time { display: block; margin-top: 2px; font-size: .72rem; color: var(--muted); direction: ltr; text-align: end; }
.msg-c { align-self: flex-start; background: var(--cust); border-start-start-radius: 4px; }
.msg-b { align-self: flex-end; background: var(--bot); border-start-end-radius: 4px; }
.msg-s { align-self: flex-end; background: var(--staff); border-start-end-radius: 4px; }
.who { display: block; font-size: .78rem; color: var(--amber); font-weight: 600; }
.chip { align-self: center; margin: 4px 0; max-width: 94%; text-align: center; font-size: .82rem; line-height: 1.6; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.chip-help { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }

.steps { display: grid; gap: 22px; counter-reset: s; }
.steps li { position: relative; padding-inline-start: 58px; }
.step-n { position: absolute; inset-inline-start: 0; top: 2px; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; line-height: 1; }
.steps p { color: var(--muted); margin-top: 4px; }
.steps .steps-note { padding-inline-start: 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; font-size: .95rem; }
.steps .steps-note p { margin: 0; color: var(--ink); }

/* The number */
.tiles { margin-top: 36px; display: grid; gap: 16px; }
.tiles li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; border-block-start: 4px solid var(--accent); }
.tiles p { margin-top: 6px; color: var(--muted); }

/* The risk */
.risk { background: var(--risk-bg); color: var(--risk-ink); padding-block: 72px; border-block: 6px solid var(--risk-accent); }
.risk .eyebrow { color: var(--risk-accent); }
.risk h2 { max-width: 24ch; }
.risk-lead { margin-top: 22px; font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.9; max-width: 56ch; }
.risk-grid { margin-top: 36px; display: grid; gap: 20px; }
.risk-col { border: 1px solid var(--risk-line); border-radius: 18px; padding: 24px; }
.risk-col h3 { color: var(--risk-accent); margin-bottom: 10px; }
.risk-col h3:not(:first-child) { margin-top: 22px; }
.risk-col li { position: relative; padding-inline-start: 22px; margin-top: 8px; color: var(--risk-ink); }
.risk-col li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .85em; width: 8px; height: 8px; border-radius: 2px; background: var(--risk-accent); transform: rotate(45deg); }
.risk-col p { color: var(--risk-muted); }
.risk-close { margin-top: 32px; font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 600; line-height: 1.7; max-width: 44ch; color: var(--risk-accent); }
.risk-terms { margin-top: 14px; }
.risk a { color: var(--risk-ink); font-weight: 600; }

/* Prices */
.plans { margin-top: 36px; display: grid; gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.plan-trial { border: 2px solid var(--accent); background: var(--accent-soft); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.price-num { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.price-per { color: var(--muted); font-size: .92rem; }
.plan-replies { font-size: 1.05rem; }
.plan-replies b { font-weight: 700; font-size: 1.2rem; }
.plan-days { display: block; color: var(--muted); font-size: .92rem; }
.plan dl { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: .95rem; }
.plan dl div { display: flex; justify-content: space-between; gap: 12px; }
.plan dt { color: var(--muted); }
.plan dd { font-weight: 600; }

/* FAQ */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; padding-inline-end: 40px; position: relative; font-weight: 600; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 4px; top: 14px; font-size: 1.6rem; line-height: 1.2; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 64ch; }

/* Final call */
.final { background: var(--final-bg); color: var(--final-ink); padding-block: 64px; }
.final h2 { max-width: 24ch; }
.final .cta-row { margin-top: 26px; }

/* Footer */
.foot { padding-block: 40px 48px; font-size: .95rem; }
.foot-grid { display: grid; gap: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--ink); }
.foot-security { color: var(--muted); }
.foot .fine { margin-top: 10px; }

/* Wider screens */
@media (min-width: 760px) {
  .nav { display: flex; }
  .top-actions .login { display: inline; }
  .tiles, .plans { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .foot-security { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .conv-grid { grid-template-columns: 460px 1fr; gap: 64px; }
  .section { padding-block: 88px; }
  .risk { padding-block: 96px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(4, 1fr); }
}

/* Restrained motion: messages settle in as they come into view, where the browser supports it */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .msg, .chip { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  @keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .top, .skip { display: none; }
}
