/* Habla Hola — public site.
   Palette: teal #1F9D93, sun orange #FF875C, navy #1E2A38, cream #F6F4EF.
   White text never sits on raw teal (3.3:1); it uses --teal-strong (4.9:1). */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #f6f4ef;
  --paper: #fbfaf7;
  --navy: #1e2a38;
  --navy-2: #2a3747;
  --teal: #1f9d93;
  --teal-strong: #197e76;
  --teal-ink: #17766e;
  --teal-soft: #e3f1ef;
  --orange: #ff875c;
  --orange-soft: #ffe7de;
  --orange-ink: #9a3412;
  --ink: #1e2a38;
  --muted: #586473;
  --line: rgba(30, 42, 56, 0.12);
  --line-strong: rgba(30, 42, 56, 0.22);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow-lg: 0 1px 0 rgba(30, 42, 56, 0.04), 0 12px 24px -12px rgba(30, 42, 56, 0.18), 0 32px 64px -24px rgba(30, 42, 56, 0.22);
  --shadow-sm: 0 1px 2px rgba(30, 42, 56, 0.06), 0 2px 8px -2px rgba(30, 42, 56, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--navy); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-ink { background: var(--navy); color: var(--cream); }
.btn-ink:hover { background: var(--navy-2); }
.btn-teal { background: var(--teal-strong); color: #fff; }
.btn-teal:hover { background: #156b64; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: #fff; }
.link-quiet { text-decoration: none; font-size: 15px; color: var(--muted); white-space: nowrap; }
.link-quiet:hover { color: var(--ink); }
.inline-link { background: none; border: 0; padding: 0; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
  font: 500 13.5px var(--sans); color: var(--muted); padding: 6px 28px 6px 10px; height: 34px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586473' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.lang:hover { color: var(--ink); border-color: var(--ink); }
/* Hidden while the language is chosen (normally well under a second); shown anyway after 1.5 s. */
.i18n-wait body { opacity: 0; animation: hh-reveal 0s linear 1.5s forwards; }
body { transition: opacity 0.15s ease; }
@keyframes hh-reveal { to { opacity: 1; } }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; position: relative; cursor: pointer; }
.menu-btn span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 0.2s ease; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 24px 16px; display: grid; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 17px; }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 550; margin-bottom: 18px; }
.eyebrow .num { color: var(--orange-ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 33em; }
.body { color: var(--muted); max-width: 34em; }
.small { font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero h1 em { color: var(--teal-ink); letter-spacing: -0.02em; }
:lang(es) .hero h1 { font-size: clamp(40px, 4.9vw, 68px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-trust { margin-top: 10px; display: flex; align-items: flex-start; gap: 8px; max-width: 46ch; font-size: 14px; line-height: 1.45; color: var(--ink); }
.hero-trust svg { flex: none; margin-top: 1px; color: var(--teal, #0f766e); }

/* product scene */
.scene { position: relative; min-height: 540px; }
.sketch { position: absolute; inset: 0 64px 56px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sketch-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.sketch-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.sketch-bar span { margin-left: 10px; }
.sketch-body { padding: 30px 28px; display: grid; gap: 12px; }
.sketch-body b { display: block; height: 12px; border-radius: 6px; background: rgba(30, 42, 56, 0.07); }
.sketch-body .s1 { width: 62%; height: 22px; background: rgba(30, 42, 56, 0.12); }
.sketch-body .s2 { width: 84%; }
.sketch-body .s3 { width: 48%; }
.sketch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.sketch-cards b { height: 96px; border-radius: 10px; background: rgba(30, 42, 56, 0.05); }

.widget { position: absolute; right: 0; bottom: 0; width: 336px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(30, 42, 56, 0.08); }
.widget-head { display: flex; align-items: center; gap: 12px; background: var(--teal-strong); color: #fff; padding: 14px 16px; }
.widget-head strong { display: block; font-size: 15px; font-weight: 600; }
.widget-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.9; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7ee2a8; display: inline-block; }
.thread { list-style: none; margin: 0; padding: 16px 14px 8px; height: 318px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: #fafaf8; overflow: hidden; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(6px); animation: msg-in 0.35s ease forwards; }
.msg.v { align-self: flex-end; background: var(--teal-strong); color: #fff; border-bottom-right-radius: 5px; }
.msg.a, .msg.o { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg .tag { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; letter-spacing: 0.01em; }
.msg.o .tag { color: var(--teal-ink); font-weight: 600; }
.msg.sys { align-self: center; background: none; border: 0; font-size: 12px; color: var(--muted); padding: 2px 0; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 5px; animation: msg-in 0.2s ease forwards; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3ad; animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.widget-input { margin: 8px 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #9aa3ad; }
.widget-foot { text-align: center; font-size: 11px; color: #9aa3ad; padding: 2px 0 10px; }

.toast { position: absolute; left: -32px; bottom: 132px; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 16px 12px 14px; box-shadow: var(--shadow-sm), 0 18px 32px -18px rgba(30, 42, 56, 0.3); border: 1px solid rgba(30, 42, 56, 0.08); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.toast.is-on { opacity: 1; transform: none; }
.toast strong { display: block; font-size: 14px; }
.toast small { font-size: 12.5px; color: var(--muted); }
.toast-ring { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); flex: none; }

@keyframes msg-in { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper); }
.section-head h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 20px; }
.section-head h2 em { color: var(--teal-ink); }
.section-head.narrow { max-width: 640px; margin-bottom: 56px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.split .section-head { position: sticky; top: 120px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 0 0 40px 28px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--ink); }
.timeline li.is-you::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.timeline time { font: 500 14px/1.9 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 6px; }
.timeline p { color: var(--muted); }

/* inbox mock */
.inbox-mock { display: grid; grid-template-columns: 180px 300px minmax(0, 1fr); min-height: 380px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); font-size: 14px; }
.im-side { background: var(--navy); color: #cbd2da; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.im-side img { width: 112px; height: auto; margin: 0 6px 18px; }
.im-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.im-nav.is-on { background: var(--teal-strong); color: #fff; }
.im-nav b { background: var(--orange); color: var(--navy); font-size: 11px; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.im-nav em { font: 600 11px var(--sans); background: #394450; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.im-list { border-right: 1px solid var(--line); }
.im-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.im-row.is-active { background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal); }
.im-row strong { display: block; font-size: 14px; font-weight: 600; }
.im-row small { color: var(--muted); font-size: 12.5px; }
.im-av { width: 32px; height: 32px; border-radius: 50%; background: #e9e6df; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--navy); }
.im-wait { font-size: 11px; font-weight: 600; color: var(--orange-ink); background: var(--orange-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.im-count { background: var(--orange); color: var(--navy); font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 20px; text-align: center; line-height: 20px; }
.im-time { font-size: 12px; color: var(--muted); }
.im-chat { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; background: #fcfcfb; }
.im-chat-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.im-accept { background: var(--teal-strong); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; }
.im-msg { max-width: 78%; padding: 9px 12px; border-radius: 12px; line-height: 1.4; }
.im-msg.v { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.im-msg.a { background: var(--teal-soft); align-self: flex-end; color: #13524d; }
.im-file { align-self: flex-start; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px 8px 8px; }
.im-file-ico { font: 700 10px var(--mono); background: var(--orange-soft); color: var(--orange-ink); border-radius: 6px; padding: 8px 6px; }
.im-file strong { display: block; font-size: 13px; }
.im-file small { color: var(--muted); font-size: 12px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.facts > div { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.facts h3 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 8px; }
.facts p { color: var(--muted); font-size: 15.5px; }

/* install */
.steps { margin: 28px 0 24px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 30px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; font: 500 13px/1.9 var(--mono); color: var(--orange-ink); }
.steps code { background: rgba(30, 42, 56, 0.07); padding: 1px 6px; border-radius: 5px; }
.code { margin: 0; background: var(--navy); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.code figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 12px var(--mono); color: #8b95a3; }
.copy { background: rgba(255, 255, 255, 0.08); border: 0; color: #dfe4ea; font: 600 12px var(--sans); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.14); }
.code pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #dfe4ea; }
.code .c { color: #7d8896; }
.code .t { color: #7fd6cd; }
.code .k { color: #c7b8ff; }
.code .s { color: #ffb59a; }
.code .n { color: #ffd38a; }
.code .hl { background: rgba(255, 135, 92, 0.16); border-radius: 4px; padding: 1px 3px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); gap: 20px; }
.plans-loading { color: var(--muted); }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; display: flex; justify-content: space-between; align-items: center; }
.plan-desc { color: var(--muted); font-size: 15px; margin-top: -10px; }
.plan-price { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan-price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: ''; width: 10px; height: 6px; margin-top: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan li.base { color: var(--muted); }
.plan .btn { margin-top: auto; }
a.btn { text-decoration: none; text-align: center; justify-content: center; }
.plan-ask { align-self: center; margin-top: -8px; background: none; border: 0; padding: 4px; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plan-ask:hover { color: var(--ink); }
.plan-free { background: transparent; box-shadow: none; border-style: dashed; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 550; letter-spacing: -0.012em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 30px; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* team (agents) */
.team-mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; }
.tm-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tm-seats { font-size: 12px; font-weight: 600; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 3px 10px; }
.tm-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tm-row strong { display: block; font-weight: 600; }
.tm-row small { color: var(--muted); font-size: 12.5px; }
.tm-row.is-paused { opacity: 0.6; }
.tm-on { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--teal-ink); font-weight: 600; }
.tm-on i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.tm-off { font-size: 11px; font-weight: 600; color: var(--orange-ink); background: var(--orange-soft); border-radius: 999px; padding: 2px 8px; }
.tm-chat { padding: 16px 20px 20px; background: #fcfcfb; display: flex; flex-direction: column; gap: 6px; }
.tm-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.tm-chat-head strong { display: block; font-weight: 600; }
.tm-chat-head small { color: var(--muted); font-size: 12.5px; }
.tm-pick { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 10px; white-space: nowrap; background: #fff; }
.tm-pick b { color: var(--ink); font-weight: 600; }
.tm-name { align-self: flex-end; font-size: 11px; font-weight: 600; color: var(--muted); }
#team .facts { margin-top: 72px; }

/* closing + footer */
.closing { background: var(--navy); color: var(--cream); padding: 104px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.04em; max-width: 13em; }
.closing h2 em { color: #7fd6cd; }
.closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.closing-follow { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-size: 16px; font-weight: 500; opacity: .85; }
.closing-follow:hover, .closing-follow:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer { background: var(--navy); color: #aeb6c0; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 32px 0 40px; font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer img { width: 132px; height: auto; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer small { margin-left: auto; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (min-width: 721px) {
  .mobile-nav { display: none !important; }
}
@media (max-width: 1280px) {
  .nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 1040px) {
  .nav { display: none; }
  .toast { left: 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 56px; }
  .split .section-head { position: static; }
  .inbox-mock { grid-template-columns: 260px minmax(0, 1fr); }
  .im-side { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar-actions .link-quiet, .topbar-actions .btn { display: none; }
  .menu-btn { display: block; }
  .hero { padding: 40px 0 72px; }
  .lede { font-size: 17.5px; }
  .scene { min-height: 0; display: grid; justify-items: end; }
  .sketch { display: none; }
  .widget { position: relative; width: min(100%, 340px); }
  .scene { padding-top: 56px; }
  .toast { left: 0; top: 0; bottom: auto; }
  .inbox-mock { min-height: 0; }
  .section { padding: 80px 0; }
  .inbox-mock { grid-template-columns: 1fr; }
  .im-chat { display: none; }
  .facts { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .code pre { font-size: 12.5px; padding: 18px; }
  .closing { padding: 80px 0; }
  .footer small { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .typing { animation: none; opacity: 1; transform: none; }
  .toast { transition: none; }
}

/* ---------- Legal page ---------- */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; margin-bottom: 20px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--teal-ink); }
.legal-note { margin-top: 48px; font-size: 14px; }

/* guide (landing) pages */
.guide-wrap { max-width: 820px; }
.guide-hero { padding-top: 72px; border-top: 0; }
.guide-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 22px; }
.guide-hero h1 em { color: var(--teal-ink); letter-spacing: -0.02em; }
.guide-cta { margin-top: 30px; }
.guide .section h2, .guide-h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.guide .steps { font-size: 17px; line-height: 1.6; }
.guide .facts { margin-top: 36px; }
.guide .faq { margin-top: 26px; }
.guide-more { margin-top: 48px; font-size: 16px; }
.guide-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.guide-links a { color: var(--teal-ink); font-weight: 550; }
.guide-langs { display: block; opacity: 0.85; }
.guide-langs a { color: inherit; }
@media (max-width: 720px) {
  .guide-hero { padding-top: 48px; }
}
.guide-note { margin-top: 36px; font-size: 13px; color: var(--muted); max-width: 46em; }

.brand { flex-shrink: 0; }
