:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --soft: #f8f9fa; --ink: #202124; --muted: #5f6368; --line: #dadce0;
  --accent: #1a73e8; --accent-ink: #ffffff; --accent-soft: #e8f0fe; --them: #f1f3f4; --ok: #188038;
  --shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 2px 6px 2px rgba(60, 64, 67, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 Roboto, "Google Sans", -apple-system, "Segoe UI", "Noto Sans Arabic", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; text-wrap: balance; font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0; }
.muted { color: var(--muted); }

header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--muted); }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 500; color: var(--ink); }
.mark { width: 28px; height: 28px; flex: none; }
nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 500; }
nav a:hover { color: var(--ink); text-decoration: none; }
nav a.btn { color: var(--accent-ink); }
@media (max-width: 640px) { nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 500; font-size: 1rem; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; transition: box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; background: #1b66c9; box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }
.btn.small { min-height: 36px; padding: 0 18px; font-size: .9rem; }
.btn.ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); box-shadow: none; }
.btn.off { background: var(--soft); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.btn.off:hover { background: var(--soft); box-shadow: none; }

.hero { padding: 88px 0 72px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 640px) { .hero { padding: 48px 0 48px; } }
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 500; color: var(--accent); margin-bottom: 20px; }
.hero h1 { max-width: 14em; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); margin: 24px 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { font-size: .875rem; color: var(--muted); margin-top: 16px; }
.hero .demo { margin-top: 56px; text-align: left; }

/* The product, drawn: a chat with the suggestion panel open. */
.demo { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; max-width: 440px; margin: 0 auto; width: 100%; }
.demo .who { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #fbbc04; color: #fff; display: grid; place-items: center; font-weight: 500; }
.bubbles { display: flex; flex-direction: column; gap: 8px; padding: 16px 2px; }
.b { max-width: 82%; padding: 9px 13px; border-radius: 17px; font-size: .97rem; line-height: 1.4; }
.b.them { background: var(--them); border-bottom-left-radius: 5px; align-self: flex-start; }
.b.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; align-self: flex-end; }
.panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chips { display: flex; gap: 6px; padding: 10px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--soft); }
.chip { flex: none; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.opt { padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.opt:last-child { border-bottom: 0; }
.opt small { display: block; font-size: .75rem; font-weight: 500; color: var(--accent); margin-bottom: 2px; }

section { padding: 80px 0; }
section.alt { background: var(--soft); }
.head { max-width: 40em; margin: 0 auto 44px; text-align: center; }
.head p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
section.alt .card { background: #fff; }
.card .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }
.card .ic.red { background: #fce8e6; color: #d93025; } .card .ic.yellow { background: #fef7e0; color: #e37400; } .card .ic.green { background: #e6f4ea; color: #188038; }
.card p { color: var(--muted); margin-top: 6px; font-size: .98rem; }
.ar { direction: rtl; font-family: "Noto Sans Arabic", "Geeza Pro", -apple-system, sans-serif; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 24px 24px 68px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
section.alt .step { background: #fff; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 500; }
.step p { color: var(--muted); margin-top: 5px; font-size: .98rem; }

.get { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .get { grid-template-columns: 1fr; } }
.get .card { display: flex; flex-direction: column; gap: 10px; }
.get .card .btn { margin-top: auto; }
.get ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .96rem; }
.get li { margin: 3px 0; }

.plans { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.plan.best { border: 2px solid var(--accent); }
.price { font-size: 2.5rem; font-weight: 400; letter-spacing: -.02em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tag { display: inline-block; font-size: .8rem; font-weight: 500; color: var(--ok); }
.includes { list-style: none; padding: 0; margin: 28px auto 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; max-width: 760px; }
@media (max-width: 640px) { .includes { grid-template-columns: 1fr; } }
.includes li { padding-left: 26px; position: relative; color: var(--muted); }
.includes li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 760px; margin: 0 auto; }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 500; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: .875rem; background: var(--soft); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer .wrap span:first-child { margin-right: auto; }

/* Guides, legal pages and the animated walkthroughs. */
.page { padding: 48px 0 64px; }
.page h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page .lead { color: var(--muted); font-size: 1.15rem; margin: 14px 0 0; max-width: 40em; }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 10px; }
.prose h3 { margin: 24px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: .96rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.prose th { color: var(--ink); font-weight: 500; }
.tablewrap { overflow-x: auto; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.toc a { font-size: .93rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.toc a:hover { text-decoration: none; border-color: var(--accent); }
.device { padding: 44px 0; border-top: 1px solid var(--line); }
.device > .wrap { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .device > .wrap { grid-template-columns: 1fr; } }
.badge { display: inline-block; font-size: .78rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 8px; vertical-align: middle; }

.tour { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 80px; }
@media (max-width: 900px) { .tour { position: static; } }
.tour .stage { position: relative; height: 330px; background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.tour .frame { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.tour .frame.on { opacity: 1; transform: none; }
.tour .bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.tour .bar button { font: inherit; font-size: .85rem; font-weight: 500; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 9px; padding: 5px 11px; cursor: pointer; }
.tour .caption { font-size: .93rem; color: var(--muted); flex: 1; min-height: 2.9em; display: flex; align-items: center; }
.tour .dots { display: flex; gap: 5px; }
.tour .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour .dots i.on { background: var(--accent); }
.ui { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .92rem; }
.ui.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui small { display: block; color: var(--muted); font-size: .8rem; }
.switch { width: 42px; height: 25px; border-radius: 999px; background: var(--ok); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; }
.code { font: 700 1.9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .28em; text-align: center; padding: 16px 0 12px; }
.spark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; font-size: 16px; }
.field { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--muted); background: var(--surface); flex: 1; font-size: .92rem; }
.pill { align-self: center; background: var(--accent); color: var(--accent-ink); font-weight: 500; border-radius: 11px; padding: 10px 18px; font-size: .95rem; }
.keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.keys i { height: 22px; border-radius: 5px; background: var(--them); }
@media (prefers-reduced-motion: reduce) { .tour .frame { transition: none; } html { scroll-behavior: auto; } }

.center { text-align: center; }
.get .card { text-align: left; }
[dir="rtl"] .step::before { left: auto; right: 20px; }
[dir="rtl"] .b.them { align-self: flex-start; border-bottom-left-radius: 17px; border-bottom-right-radius: 5px; }
[dir="rtl"] .b.me { align-self: flex-end; border-bottom-right-radius: 17px; border-bottom-left-radius: 5px; }
[dir="rtl"] .includes li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] footer .wrap span:first-child { margin-right: 0; margin-left: auto; }
button.btn { cursor: pointer; font-family: inherit; }
button.btn:disabled { opacity: .6; cursor: default; }
[hidden] { display: none !important; }
