/* Olingo Chat website. Colours come from the app (chat-app/app/src/lib/theme.ts). */

/* Headings use Bricolage Grotesque (SIL Open Font License, see assets/fonts/OFL.txt), Latin letters only.
   Body text and every other script use the visitor's system font, so all 40 languages display well. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght.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 {
  --bg: #FFFFFF;
  --surface: #F7F6F4;          /* tinted sections */
  --card: #FFFFFF;
  --text: #14171C;
  --muted: #5B6474;
  --border: #E6E3DF;
  --border-strong: #D6D0C9;
  --accent: #D9480F;           /* Olingo Chat orange: logo, large text, icons */
  --accent-strong: #C2410C;    /* buttons and links: white text on it passes contrast */
  --accent-hover: #9A3412;
  --on-accent: #FFFFFF;
  --accent-soft: #FFF1EA;
  --accent-text: linear-gradient(100deg, #E8590C 0%, #D9480F 42%, #C2255C 100%);  /* large text only */
  --theirs: #EEF0F3;
  --on-theirs: #14171C;
  --mine: #D9480F;
  --on-mine: #FFFFFF;
  --chat-bg: #FFFFFF;
  --phone-frame: linear-gradient(150deg, #3B414C, #14171C 38%, #0B0D10);
  --dark-band: #14171C;        /* security section stays dark in both modes */
  --dark-band-card: #1C2027;
  --dark-band-line: rgb(255 255 255 / 9%);
  --dark-band-text: #ECEEF1;
  --dark-band-muted: #A9B1BF;
  --dark-accent: #FF9466;
  --shadow-sm: 0 1px 2px rgb(20 23 28 / 5%);
  --shadow: 0 1px 2px rgb(20 23 28 / 6%), 0 12px 32px rgb(20 23 28 / 8%);
  --shadow-lg: 0 2px 4px rgb(20 23 28 / 5%), 0 24px 48px -16px rgb(20 23 28 / 20%);
  --shadow-phone: 0 40px 80px -30px rgb(20 23 28 / 50%), 0 16px 32px -16px rgb(20 23 28 / 30%);
  --radius: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Yu Gothic UI", "Noto Sans", "Noto Sans CJK KR", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115;
    --surface: #14171C;
    --card: #1A1E25;
    --text: #ECEEF1;
    --muted: #A9B1BF;
    --border: #272C35;
    --border-strong: #363C47;
    --accent: #FF7A45;
    --accent-strong: #FF7A45;
    --accent-hover: #FF9466;
    --on-accent: #1A0A02;
    --accent-soft: #2A1C15;
    --accent-text: linear-gradient(100deg, #FFA477 0%, #FF7A45 45%, #F0648F 100%);
    --theirs: #232832;
    --on-theirs: #ECEEF1;
    --mine: #C2410C;
    --on-mine: #FFFFFF;
    --chat-bg: #0F1115;
    --phone-frame: linear-gradient(150deg, #4A515D, #2A2F38 38%, #1D2128);
    --dark-band: #171A20;
    --dark-band-card: #1F242C;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 30%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 24px 48px -16px rgb(0 0 0 / 60%);
    --shadow-phone: 0 40px 80px -30px rgb(0 0 0 / 85%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
:lang(ko) { word-break: keep-all; }   /* Korean wraps between words, not in the middle of one */
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 28px; } }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent-strong); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.small { font-size: 14px; color: var(--muted); }
.accent { color: var(--accent); }

/* Section labels ("eyebrows") */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 5px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.5;
}
.eyebrow-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (max-width: 400px) { .eyebrow { font-size: 12px; letter-spacing: 0.05em; border-radius: 14px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary {
  background: var(--accent-strong); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover {
  background: var(--accent-hover); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 14px 28px -12px color-mix(in srgb, var(--accent) 90%, transparent);
}
.btn-sm.btn-primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }
.btn-light { background: #FFFFFF; color: #9A3412; box-shadow: 0 12px 28px -14px rgb(0 0 0 / 45%); }
.btn-light:hover { background: #FFF1EA; color: #7C2D12; }
.btn-ghost-light { background: transparent; color: #FFFFFF; border-color: rgb(255 255 255 / 60%); }
.btn-ghost-light:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgb(255 255 255 / 12%); }
.btn-disabled { background: var(--surface); color: var(--muted); border-color: var(--border); cursor: default; }
.btn .icon-arrow { transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.link-quiet { color: var(--muted); font-weight: 600; text-decoration: none; font-size: 15px; }
.link-quiet:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transition: box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -18px rgb(20 23 28 / 35%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand picture { flex: none; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550;
  padding: 7px 12px; border-radius: 999px; transition: color .15s, background-color .15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav .nav-signin { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.hide-sm { display: none; }
@media (min-width: 480px) { .hide-sm { display: inline; } .only-sm { display: none; } }
/* Phones: tighter spacing (and a shorter button label) so the logo, name, button and menu fit on one line. */
@media (max-width: 479px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 0 14px; }
}

.menu-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-right: -4px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.no-js .menu-toggle { display: none; }

@media (max-width: 959px) {
  /* Small screens: the navigation is a panel under the header, opened with the menu button. */
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 6px 16px 14px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 32px -24px rgb(20 23 28 / 35%);
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 4px; border-radius: 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a:hover { background: none; color: var(--accent-strong); }
}
@media (max-width: 479px) { .main-nav .nav-signin { display: block; } }
@media (min-width: 960px) { .menu-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 44px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(52% 58% at 84% 30%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 70%),
    radial-gradient(42% 46% at 4% 96%, color-mix(in srgb, #C2255C 10%, transparent), transparent 70%);
}
.hero::after {   /* a faint dot grid behind the phone */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 62% at 76% 40%, #000 10%, transparent 72%);
          mask-image: radial-gradient(60% 62% at 76% 40%, #000 10%, transparent 72%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; }
}
.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
}
.hero h1 .accent {
  display: block; padding-bottom: 0.08em; margin-bottom: -0.08em;   /* room for descenders in the gradient */
  background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 24px; font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-row.center { justify-content: center; }
.cta-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero-secure {
  display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 24px;
  padding: 10px 16px 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 75%, transparent);
  border: 1px solid var(--border); font-size: 14.5px; line-height: 1.45; color: var(--text);
}
.hero-secure .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-strong); }
.hero-secure a { font-weight: 650; white-space: nowrap; }
@media (max-width: 479px) { .hero .cta-row .btn { width: 100%; } }

/* ---------- Demo phone ---------- */
.demo { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.demo-switch {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  width: min(360px, 100%); padding: 5px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
}
.demo-switch button {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 4px; border: 0; border-radius: 11px;
  background: transparent; color: var(--muted); font: inherit; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.demo-switch button:hover { color: var(--text); background: var(--surface); }
.demo-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.sw-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.sw-lang { font-size: 12px; line-height: 1.3; }

.phone-wrap { position: relative; width: min(340px, 100%); }
.phone {
  position: relative; width: 100%;
  padding: 10px; border-radius: 48px;
  background: var(--phone-frame);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 9%), var(--shadow-phone);
}
.phone::before, .phone::after {   /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 3px; background: #2B3039;
}
.phone::before { left: -3px; top: 132px; height: 58px; }
.phone::after { right: -3px; top: 168px; height: 84px; }
.phone-screen {
  display: flex; flex-direction: column;
  height: 620px; border-radius: 38px; overflow: hidden;
  background: var(--chat-bg);
}
.status-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 6px 22px 0 28px; flex: none;
  background: var(--bg); color: var(--text); font-size: 14px; font-weight: 650;
}
.island { position: absolute; left: 50%; top: 11px; width: 88px; height: 25px; margin-left: -44px; border-radius: 20px; background: #000; }
.status-icons { display: flex; align-items: center; gap: 5px; }
.sb-icon { fill: currentColor; }
.sb-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.chat-back { color: var(--accent); width: 22px; height: 22px; }
.chat-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.chat-sub { font-size: 12px; color: var(--muted); }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #FFFFFF;
  background: #667085;
}
.avatar-group { width: 36px; height: 36px; background: linear-gradient(135deg, #FF8A50, #D9480F); font-size: 13px; }
.avatar[data-c="1"] { background: #C2255C; }
.avatar[data-c="2"] { background: #1C64F2; }
.avatar[data-c="3"] { background: #138A4B; }
.avatar[data-c="4"] { background: #7C3AED; }

.chat-body {
  flex: 1; min-height: 0; list-style: none; margin: 0; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; scrollbar-width: none;
}
.chat-body::-webkit-scrollbar { display: none; }
.chat-body > :first-child { margin-top: auto; }   /* messages sit at the bottom, like a real chat */
.msg { display: flex; align-items: flex-start; gap: 8px; }
.msg.mine { justify-content: flex-end; }
.msg.theirs .avatar { margin-top: 22px; }          /* line up with the bubble, below the name */
.bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.msg.mine .bubble-wrap { align-items: flex-end; flex: 0 1 80%; }
.sender { font-size: 12px; line-height: 1.5; font-weight: 650; color: var(--muted); margin: 0 0 4px 12px; }
.bubble {
  max-width: 90%;
  padding: 9px 13px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.4;
  background: var(--theirs); color: var(--on-theirs);
  border-bottom-left-radius: 6px;
  transition: opacity .2s;
}
.msg.mine .bubble { max-width: 100%; background: var(--mine); color: var(--on-mine); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bubble.is-translating { opacity: .55; }
.meta { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 3px 4px 0 12px; display: flex; flex-wrap: wrap; gap: 0 6px; }
.msg.mine .meta { margin: 3px 4px 0 0; }
.meta button {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 650;
  color: var(--accent-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.typing-dots { display: inline-flex; gap: 3px; padding: 4px 0; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: dot 1s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: .8; transform: translateY(-2px); } }

.composer {
  display: flex; align-items: center; gap: 10px;
  margin: 0 10px 14px; padding: 6px 6px 6px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--muted);
}
.composer-input { flex: 1; font-size: 14px; }
.composer-send {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-strong); color: var(--on-accent);
}
.composer-send .icon { width: 16px; height: 16px; }
.demo-caption { font-size: 14px; color: var(--muted); text-align: center; max-width: 340px; min-height: 2.6em; }

/* Floating labels beside the phone (wide screens only) */
.float-chip {
  position: absolute; z-index: 2; display: none; align-items: center; gap: 11px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  line-height: 1.25; white-space: nowrap;
}
.float-chip strong { display: block; font-size: 14px; font-weight: 700; }
.float-chip small { display: block; font-size: 12.5px; color: var(--muted); }
.chip-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-strong);
}
.chip-icon .icon { width: 19px; height: 19px; }
@media (min-width: 1360px) {
  /* They overlap only the phone's frame, never the chat, so they need room beside it. */
  .float-chip { display: flex; }
  .chip-secure { left: -172px; top: 28px; animation: float 7s ease-in-out infinite; }
  .chip-lang { right: -170px; bottom: 112px; animation: float 7s ease-in-out -3.5s infinite; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--border); background: var(--bg); }
.facts-grid { list-style: none; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
@media (min-width: 1100px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 34px 0; }
  .facts-grid li { padding: 0 28px; }
  .facts-grid li:first-child { padding-left: 0; }
  .facts-grid li:last-child { padding-right: 0; }
  .facts-grid li + li { border-left: 1px solid var(--border); }
  .fact-num { white-space: nowrap; }
}
.fact-num {
  font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; width: fit-content;
  background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact-label { font-size: 14.5px; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-tint { background: var(--surface); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.section-lede { margin-top: 18px; color: var(--muted); font-size: 18px; }

.steps h3, .card h3, .checks h3, .get-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.steps p, .card p, .checks p, .get-card p { color: var(--muted); font-size: 16px; }

/* Steps: a numbered timeline (down on phones, across on wide screens) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.steps li { position: relative; padding-left: 76px; min-height: 56px; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #FFFFFF;
  background: linear-gradient(150deg, #FF8A50, #C2410C);
  box-shadow: 0 12px 24px -12px rgb(194 65 12 / 70%), inset 0 1px 0 rgb(255 255 255 / 25%);
}
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 68px; bottom: -22px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--border-strong) 0 6px, transparent 6px 12px);
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { padding: 84px 12px 0; text-align: center; }
  .step-num { left: 50%; margin-left: -28px; }
  .steps li:not(:last-child)::before {
    left: calc(50% + 44px); right: calc(-50% + 4px); top: 27px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  }
}

/* Split section (translation) */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li {
  padding: 26px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.checks h3 { position: relative; padding-left: 36px; }
.checks h3::before {
  content: ""; position: absolute; left: 0; top: 0; width: 25px; height: 25px; border-radius: 50%;
  background: var(--accent-strong)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks h3::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0A02' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}

/* Feature cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px; padding: 12px; margin-bottom: 20px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-strong);
}
@media (max-width: 639px) {
  /* Phones: icon beside the heading, so the long stacks of cards stay compact */
  .card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 22px; }
  .card .card-icon { width: 44px; height: 44px; padding: 11px; margin: 0; }
  .card h3 { margin: 0; }
  .card p { grid-column: 1 / -1; margin-top: 12px; }
}

/* Languages */
/* Drawing 40 writing systems means finding a font for each, which is slow on phones. content-visibility
   lets the browser skip that until the list is about to scroll into view (the text stays in the page for
   search engines, screen readers and find-in-page). The sizes are estimates that reserve the space. */
.langs {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  content-visibility: auto; contain-intrinsic-size: auto 940px;
}
@media (min-width: 640px) { .langs { grid-template-columns: repeat(4, 1fr); gap: 10px; contain-intrinsic-size: auto 740px; } }
@media (min-width: 860px) { .langs { grid-template-columns: repeat(5, 1fr); contain-intrinsic-size: auto 580px; } }
@media (min-width: 1100px) { .langs { grid-template-columns: repeat(8, 1fr); contain-intrinsic-size: auto 400px; } }
.langs li {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 58px; min-width: 0;
  padding: 9px 11px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .15s;
}
.langs li:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lang-native { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.lang-native[dir="rtl"] { text-align: left; }   /* keep the tiles' alignment even */
.lang-en { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
@media (min-width: 640px) {
  .langs li { min-height: 64px; padding: 10px 14px; }
  .lang-native { font-size: 16.5px; }
  .lang-en { font-size: 12.5px; }
}

/* ---------- Security (a dark band in both modes) ---------- */
.section-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--dark-band); color: var(--dark-band-text); }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 38% at 50% 0%, rgb(255 122 69 / 17%), transparent 70%),
    radial-gradient(36% 30% at 100% 100%, rgb(194 37 92 / 12%), transparent 70%);
}
.section-dark .eyebrow { background: rgb(255 122 69 / 14%); color: var(--dark-accent); }
.section-dark .section-lede { color: var(--dark-band-muted); }
.section-dark a { color: var(--dark-accent); }

/* The journey of a message */
.journey { list-style: none; margin: 0 0 64px; padding: 0; display: grid; gap: 30px; }
.journey li { position: relative; padding-left: 72px; min-height: 52px; }
.journey h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.journey p { color: var(--dark-band-muted); font-size: 15.5px; }
.journey-icon {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(150deg, #FF8A50, #C2410C); color: #FFFFFF;
  box-shadow: 0 14px 28px -12px rgb(255 122 69 / 55%), inset 0 1px 0 rgb(255 255 255 / 25%);
}
.journey-icon .icon { width: 24px; height: 24px; }
.journey li:not(:last-child)::before {
  content: ""; position: absolute; left: 25px; top: 62px; bottom: -22px; width: 2px;
  background: repeating-linear-gradient(180deg, rgb(255 148 102 / 45%) 0 6px, transparent 6px 12px);
}
@media (min-width: 640px) and (max-width: 999px) {
  .journey { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .journey li { padding: 70px 0 0; }
  .journey li:not(:last-child)::before { display: none; }
}
@media (min-width: 1000px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .journey li { padding: 74px 8px 0 0; }
  .journey li:not(:last-child)::before {
    left: 66px; right: -14px; top: 25px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, rgb(255 148 102 / 45%) 0 6px, transparent 6px 12px);
  }
  /* a glowing dot carries the message along, one step after another */
  .journey li:not(:last-child)::after {
    content: ""; position: absolute; top: 22px; left: 66px; width: 8px; height: 8px; border-radius: 50%;
    background: #FFC2A1; box-shadow: 0 0 0 4px rgb(255 122 69 / 22%), 0 0 16px 3px rgb(255 122 69 / 75%);
    opacity: 0; animation: packet 4.5s ease-in-out infinite;
  }
  .journey li:nth-child(2)::after { animation-delay: 1.5s; }
  .journey li:nth-child(3)::after { animation-delay: 3s; }
}
@keyframes packet {
  0% { left: 66px; opacity: 0; }
  5%, 28% { opacity: 1; }
  33.3%, 100% { left: calc(100% - 18px); opacity: 0; }
}

.cards-dark .card { background: var(--dark-band-card); border-color: var(--dark-band-line); box-shadow: none; }
.cards-dark .card:hover { border-color: rgb(255 148 102 / 45%); box-shadow: none; }
.cards-dark .card h3 { font-size: 19px; }
.cards-dark .card p { color: var(--dark-band-muted); font-size: 15.5px; }
.cards-dark .card-icon { background: rgb(255 122 69 / 14%); color: var(--dark-accent); }

/* What is and isn't encrypted */
.scope {
  display: grid; gap: 1px; margin-top: 20px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--dark-band-line); background: var(--dark-band-line);
}
.scope-col { padding: 26px 28px; background: var(--dark-band-card); }
@media (min-width: 900px) { .scope { grid-template-columns: 0.9fr 1.15fr 1.45fr; } }
.scope h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.scope-intro { color: var(--dark-band-muted); font-size: 14.5px; margin: -6px 0 12px; }
.scope-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scope-list li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--dark-band-text); }
.scope-list .icon { width: 19px; height: 19px; margin-top: 1px; }
.scope-yes .icon { color: var(--dark-accent); }
.scope-no li { color: var(--dark-band-muted); }
.scope-no .icon { color: #7D8696; }
.scope-note { background: linear-gradient(160deg, rgb(255 122 69 / 10%), transparent 60%), var(--dark-band-card); }
.scope-note h3 .icon { color: var(--dark-accent); width: 22px; height: 22px; }
.scope-note p { color: var(--dark-band-muted); font-size: 15.5px; }

.tech { margin-top: 16px; border: 1px solid var(--dark-band-line); border-radius: var(--radius); background: rgb(255 255 255 / 2.5%); }
.tech summary {
  position: relative; padding: 18px 56px 18px 26px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 16px; color: var(--dark-band-text);
}
.tech summary::-webkit-details-marker { display: none; }
.tech summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--dark-band-muted); border-bottom: 2px solid var(--dark-band-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.tech[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tech ul { list-style: none; margin: 0; padding: 0 26px 26px; display: grid; gap: 14px; }
@media (min-width: 900px) { .tech ul { grid-template-columns: 1fr 1fr; gap: 16px 40px; } }
.tech li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--dark-band-muted); }
.tech li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--dark-accent); }
.tech strong { color: var(--dark-band-text); font-weight: 650; }

/* ---------- Get the app ---------- */
.get-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .get-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; } }
.get-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 30px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.get-card p { margin-bottom: 14px; }
.get-card .btn { margin-top: auto; }
.get-card .link-quiet, .get-card .small { margin-top: 10px; margin-bottom: 0; }
.get-card-main {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--card) 70%);
  box-shadow: var(--shadow-lg);
}
.get-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.get-list li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.get-list .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-strong); stroke-width: 2.4; }
.get-qr { display: none; }
@media (min-width: 860px) and (hover: hover) and (pointer: fine) {
  /* On a computer, offer a code to scan instead of downloading the APK to the computer */
  .get-qr {
    display: flex; align-items: center; gap: 14px; width: 100%;
    margin: 0 0 18px; padding: 10px; border-radius: 16px;
    background: var(--surface); border: 1px dashed var(--border-strong);
  }
  .get-qr img { width: 88px; height: 88px; flex: none; border-radius: 10px; background: #FFFFFF; }
  .get-card .get-qr p { margin: 0; font-size: 14px; line-height: 1.45; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 17px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent-strong); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 88px 0;
  background:
    radial-gradient(70% 90% at 80% 0%, #FF8A50 0%, transparent 60%),
    linear-gradient(135deg, #C2410C, #9A3412);
  color: #FFFFFF; text-align: center;
}
.final-cta::before, .final-cta::after {   /* two linked rings, like the logo */
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  border: 52px solid rgb(255 255 255 / 7%);
}
.final-cta::before { width: 440px; height: 440px; left: -150px; top: -210px; }
.final-cta::after { width: 520px; height: 520px; right: -190px; bottom: -330px; }
.final-inner h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; }
.final-inner p { margin-top: 14px; font-size: 18px; color: rgb(255 255 255 / 90%); }
@media (max-width: 479px) { .final-cta .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.footer-brand .brand { font-size: 18px; }
.footer-brand p { margin-top: 14px; max-width: 32ch; font-size: 15px; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-title { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
.footer-secure { display: inline-flex; align-items: center; gap: 8px; }
.footer-secure .icon { width: 16px; height: 16px; color: var(--accent-strong); }

/* ---------- Page not found (404.html) ---------- */
.page-404 {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(50% 50% at 80% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, color-mix(in srgb, #C2255C 9%, transparent), transparent 70%),
    var(--bg);
}
.notfound { max-width: 680px; padding: 48px 16px; text-align: center; }
.notfound .brand { display: flex; width: fit-content; margin: 0 auto 44px; }
.notfound h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.notfound .lede { margin: 20px auto 0; }

/* ---------- Motion ---------- */
/* main.js adds .reveal-pending to content below the fold and .is-visible once it scrolls into view.
   Without JavaScript, or with reduced motion, everything simply shows. */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-pending.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .typing-dots span, .float-chip, .journey li::after { animation: none; }
  .journey li::after { display: none; }
  .btn:hover .icon-arrow { transform: none; }
}
@media print {
  .site-header, .menu-toggle, .demo-switch, .float-chip { display: none; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
}
