/* MatrixSMS public site (landing, privacy, terms). Same palette as the app. */
:root {
  color-scheme: dark;
  --bg: #111315; --panel: #181b1e; --raised: #202428; --line: #2c3034;
  --text: #f3f3f1; --muted: #969da4; --orange: #f26a1b; --orange-hover: #ff7d33; --soft: #38271e;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-hover); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--orange); color: #111; font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--orange); color: #111; font-weight: 700; text-decoration: none; border: 1px solid var(--orange); }
.btn:hover { background: var(--orange-hover); color: #111; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--orange); color: var(--text); }

.hero { padding: 72px 0 56px; display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.kicker { color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.phone { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 18px; max-width: 340px; margin-inline: auto; width: 100%; }
.phone .bar { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding: 0 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 16px; margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.bubble.in { background: var(--raised); border-bottom-left-radius: 5px; }
.bubble.out { background: var(--orange); color: #111; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 3px; }

section.block { padding: 48px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -.01em; }
section.block > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--orange); display: grid; place-items: center; font-size: 19px; margin-bottom: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--orange); font-weight: 800; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .95rem; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

/* Legal pages */
.doc { padding: 48px 0 64px; max-width: 760px; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: #d6d8d6; }
.doc ul { padding-left: 1.2em; }
.doc .meta { color: var(--muted); font-size: .9rem; }
.doc .note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px; padding: 14px 16px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0 36px; }
  .phone { order: -1; max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
