/* OnerChat marketing site. Plain CSS, no build step. Colours are the OneR palette (brand/colours.md). */

:root {
  color-scheme: light dark;
  --forest: #064e3b;
  --teal: #0f766e;
  --lime: #a3e635;
  --bg: light-dark(#f8fafc, #0b1411);
  --surface: light-dark(#ffffff, #121c18);
  --surface-alt: light-dark(#f1f5f4, #192620);
  --line: light-dark(#e2e8e6, #24352c);
  --text: light-dark(#1f2937, #e8f0ec);
  --text-2: light-dark(#4b5563, #a7b5ae);
  --brand: light-dark(#064e3b, #0f766e);
  --brand-text: light-dark(#0f766e, #5eead4);
  --brand-tint: light-dark(#e3f2ee, rgba(15, 118, 110, 0.22));
  --accent: #a3e635;
  --accent-text: light-dark(#3f6212, #c5f26b);
  --accent-tint: light-dark(#f1fbda, rgba(163, 230, 53, 0.16));
  --hero: light-dark(#064e3b, #061f19);
  --on-hero: #ffffff;
  --on-hero-2: light-dark(#cfe3dc, #9fb7ad);
  --bubble-in: light-dark(#ffffff, #1e2b25);
  --bubble-out: light-dark(#064e3b, #0f766e);
  --shadow: 0 12px 40px light-dark(rgba(6, 78, 59, 0.14), rgba(0, 0, 0, 0.5));
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.eyebrow { display: inline-block; color: var(--brand-text); font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 12px; }
.lead { color: var(--text-2); font-size: 1.15rem; max-width: 62ch; }
section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--forest); padding: 8px 12px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 750; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--forest); }
.btn-primary:hover { background: #b5ef4d; }
.btn-ghost { background: transparent; color: var(--on-hero); border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); }
.btn-outline { background: transparent; color: var(--brand-text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-text); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--hero); color: var(--on-hero); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 850; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--on-hero-2); text-decoration: none; font-weight: 650; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--on-hero); background: rgba(255, 255, 255, 0.08); }
.nav .btn { margin-left: 8px; min-height: 42px; color: var(--forest); }
.menu { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 700; color: var(--on-hero); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: rgba(255, 255, 255, 0.1); }
  .menu .sheet { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; display: grid; }
  .menu .sheet a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 650; }
  .menu .sheet a:hover { background: var(--surface-alt); }
  .menu .sheet .btn { margin-top: 6px; color: var(--forest); }
}

/* Hero */
.hero { background: var(--hero); color: var(--on-hero); padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(163, 230, 53, 0.18), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { color: var(--on-hero); }
.hero .lead { color: var(--on-hero-2); margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 20px; color: var(--on-hero-2); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.hero .note svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .visual { order: 2; }
}

/* Phone mock-up: the real app's layout and colours, drawn in CSS */
.visual { display: grid; place-items: center; }
.phone {
  width: min(340px, 100%); aspect-ratio: 9 / 18.6; border-radius: 44px; background: #000; padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2a2a2a;
}
.phone .screen { height: 100%; border-radius: 36px; overflow: hidden; background: light-dark(#f1f5f4, #0b1411); color: var(--text); display: flex; flex-direction: column; font-size: 13px; }
.phone .bar { background: var(--hero); color: #fff; padding: 36px 16px 12px; display: flex; align-items: center; gap: 10px; }
.phone .bar .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; }
.phone .bar .av img { width: 20px; height: 20px; }
.phone .bar b { display: block; font-size: 14px; }
.phone .bar small { color: var(--lime); font-size: 11px; }
.phone .msgs { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.bubble.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--bubble-out); color: #fff; border-bottom-right-radius: 4px; }
.bubble time { display: block; font-size: 10px; opacity: 0.65; margin-top: 4px; text-align: right; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; width: 86%; align-self: flex-start; display: grid; gap: 6px; }
.card .thumb { height: 64px; border-radius: 10px; background: linear-gradient(135deg, #0f766e, #064e3b); display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: 0.04em; font-size: 11px; }
.card b { font-size: 13px; }
.card .price { color: var(--brand-text); font-weight: 800; }
.card .cta { background: var(--brand); color: #fff; text-align: center; border-radius: 9px; padding: 7px; font-weight: 700; font-size: 12px; }
.status { align-self: center; background: var(--accent-tint); color: var(--accent-text); border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 750; }
.phone .compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px 26px; background: var(--surface); border-top: 1px solid var(--line); }
.phone .compose .field { flex: 1; background: var(--surface-alt); border-radius: 999px; padding: 9px 14px; color: var(--text-2); }
.phone .compose .mic { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.phone .compose .mic svg { width: 16px; height: 16px; }

/* Comparison */
.compare { background: var(--surface); border-block: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--surface-alt); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.table thead th.us { background: var(--brand); color: #fff; }
.table tbody th { font-weight: 750; width: 22%; }
.table td.us { background: var(--brand-tint); font-weight: 650; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.yes, .no, .meh { display: inline-flex; align-items: center; gap: 8px; }
.yes::before, .no::before, .meh::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.yes::before { background: var(--lime); box-shadow: 0 0 0 3px var(--accent-tint); }
.no::before { background: #dc2626; opacity: 0.8; }
.meh::before { background: #d97706; }
.foot { margin-top: 16px; color: var(--text-2); font-size: 0.9rem; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: auto; }
  .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table tbody th { padding: 12px 16px 4px; width: auto; }
  .table td { padding: 8px 16px; border: 0; }
  .table td::before { content: attr(data-label); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); margin-bottom: 2px; }
  .table td.us { border-radius: 10px; margin: 0 8px; }
}

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-text); display: grid; place-items: center; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--text-2); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 24px 24px 72px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--forest); font-weight: 850; display: grid; place-items: center; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-2); }

/* Dashboard mock-up */
.dash-section { background: var(--surface); border-block: 1px solid var(--line); }
.dash-section .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .dash-section .wrap { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 2px; }
.checks b { color: var(--text); }
.browser { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg); font-size: 12px; }
.browser .chrome { background: var(--surface-alt); padding: 10px 14px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--line); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser .chrome span { margin-left: 10px; color: var(--text-2); background: var(--surface); border-radius: 6px; padding: 3px 10px; flex: 1; font-size: 11px; }
.dash { display: grid; grid-template-columns: 180px 1fr; min-height: 320px; }
.dash .list { border-right: 1px solid var(--line); background: var(--surface); }
.dash .list .h { background: var(--hero); color: #fff; padding: 10px 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.dash .list .h img { width: 16px; }
.dash .row { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.dash .row.active { background: var(--brand-tint); }
.dash .row b { font-size: 12px; }
.dash .row small { color: var(--text-2); grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .row .n { background: var(--accent); color: var(--forest); font-weight: 800; border-radius: 999px; padding: 0 6px; font-size: 10px; align-self: center; }
.dash .pane { display: flex; flex-direction: column; }
.dash .pane .h { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); }
.dash .pane .h b { font-size: 13px; }
.dash .pane .h small { color: var(--text-2); display: block; }
.pill { border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 750; background: var(--accent-tint); color: var(--accent-text); white-space: nowrap; }
.dash .msgs { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dash .bubble { font-size: 12px; max-width: 70%; }
.dash .tools { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.dash .tools span { border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; color: var(--text-2); font-size: 11px; }
.dash .tools span.send { background: var(--brand); color: #fff; border-color: transparent; margin-left: auto; }
@media (max-width: 480px) { .dash { grid-template-columns: 1fr; } .dash .list { display: none; } }

/* Audience */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .who { grid-template-columns: 1fr; } }
.who div { background: var(--brand-tint); border-radius: var(--radius); padding: 22px; }
.who h3 { color: var(--brand-text); margin-bottom: 6px; }
.who p { color: var(--text-2); font-size: 0.98rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 750; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-text); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); padding-bottom: 18px; }

/* Call to action */
.cta { background: var(--hero); color: var(--on-hero); text-align: center; }
.cta h2 { color: var(--on-hero); }
.cta .lead { color: var(--on-hero-2); margin: 16px auto 28px; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer { padding: 32px 0 48px; color: var(--text-2); font-size: 0.95rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .logo { color: var(--text); font-size: 1rem; }
footer .logo img { width: 24px; height: 24px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* Inner pages */
.doc { max-width: 760px; padding-block: 48px 96px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc .meta { color: var(--text-2); font-size: 0.95rem; margin-bottom: 24px; }
