/* Layout: one phone-first column (max 640px); language switch on top, video as the thesis,
   then "which assistant" as the single decision the visitor has to make. */
:root {
  --bg: #f5f7f3;
  --fg: #16221b;
  --muted: #5a6b61;
  --card: #ffffff;
  --line: #d7e0d9;
  --accent: #1f6b47;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe2;
  --warn-soft: #fbead6;
  --warn-ink: #8a4b0f;
  --bubble: #e7efe9;
  --display: "Rubik", "Heebo", system-ui, sans-serif;
  --body: "Heebo", "Rubik", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101713;
    --fg: #e6ede8;
    --muted: #9fb0a6;
    --card: #172019;
    --line: #27352c;
    --accent: #5cc48c;
    --accent-ink: #0c1a12;
    --accent-soft: #1b3326;
    --warn-soft: #3a2a14;
    --warn-ink: #f2c186;
    --bubble: #1f2b24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101713;
  --fg: #e6ede8;
  --muted: #9fb0a6;
  --card: #172019;
  --line: #27352c;
  --accent: #5cc48c;
  --accent-ink: #0c1a12;
  --accent-soft: #1b3326;
  --warn-soft: #3a2a14;
  --warn-ink: #f2c186;
  --bubble: #1f2b24;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 640px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 7vw, 42px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
[dir="rtl"] { text-align: right; }

/* language switch */
.lang {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px;
  padding-block: 16px 0;
  direction: ltr; /* the switch keeps its order in every language */
}
.lang button {
  border: 2px solid var(--line); background: var(--card); color: var(--fg);
  border-radius: 999px; padding: 12px 8px; font-family: var(--display); font-weight: 700;
  font-size: 17px;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lang button:focus-visible, .btn:focus-visible, .card > button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero { padding-block: 28px 8px; display: grid; gap: 14px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.pill { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 999px; width: max-content; }

/* video */
.video { position: relative; margin: 18px auto 0; width: min(100%, 360px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* sections */
section { padding-block: 36px 0; }
.cards { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card > button {
  width: 100%; text-align: inherit; background: none; border: 0; color: inherit;
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 16px;
}
.logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; }
.logo.claude { background: #c96a3a; }
.logo.chatgpt { background: #2a2a2a; }
.logo.grok { background: #111; border: 1px solid #555; }
.card .name { font-family: var(--display); font-weight: 700; font-size: 19px; }
.card .hint { color: var(--muted); font-size: 15px; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.body { padding: 0 16px 18px; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 16px 20px; font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); width: 100%; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); padding: 10px 14px; font-size: 15px; border-radius: 10px; }

.qr-row { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.qr { width: 132px; height: 132px; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.qr img { width: 120px; height: 120px; display: block; }
@media (max-width: 380px) { .qr-row { grid-template-columns: 1fr; } }

.url { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.url code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--bubble); padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; direction: ltr; text-align: left; min-width: 0; }

ol.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
ol.steps[start="3"] { counter-reset: s 2; }
ol.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; counter-increment: s; }
ol.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; }
.note { font-size: 15px; color: var(--muted); }
.note-top { margin-top: 10px; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 700; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 14px; }
details.more > ol + .url, details.more > .url + ol { margin-top: 14px; }

/* examples */
.chat { display: grid; gap: 10px; }
.msg { justify-self: end; max-width: 92%; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: 17px; line-height: 1.45; font-weight: 500; }
[dir="rtl"] .msg { border-radius: 18px 18px 18px 4px; }
.cannot { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* keep */
.keep { display: grid; gap: 10px; }
.keep div { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.keep .yes::before { content: "✓"; color: var(--accent); font-weight: 700; }
.keep .no::before { content: "✕"; color: var(--warn-ink); font-weight: 700; }

footer { padding-block: 40px 0; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
