/* The public site of higuys: the same tokens as the cabinet (app.css), light and dark. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --border: #e1e4e9;
  --text: #16181d;
  --muted: #5b616e;
  --accent: #0e6b5c;
  --accent-hover: #0b5a4d;
  --on-accent: #ffffff;
  --accent-soft: #e3f1ee;
  --warm: #e8710a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 12px 32px rgba(22, 24, 29, 0.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
/* The theme: assets/theme.js puts the visitor's choice or the system theme into data-theme before
   the first paint, the button in the header switches it. The media query is the fallback without
   scripts, so the dark tokens appear twice. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121418;
  --surface: #1e2128;
  --surface-2: #252931;
  --border: #2c3039;
  --text: #eceef2;
  --muted: #9aa1ad;
  --accent: #2fa38f;
  --accent-hover: #3bb8a2;
  --on-accent: #0b1714;
  --accent-soft: #17312c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121418;
    --surface: #1e2128;
    --surface-2: #252931;
    --border: #2c3039;
    --text: #eceef2;
    --muted: #9aa1ad;
    --accent: #2fa38f;
    --accent-hover: #3bb8a2;
    --on-accent: #0b1714;
    --accent-soft: #17312c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin-bottom: 32px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn.ghost { background: transparent; }
.btn.big { min-height: 48px; padding: 12px 22px; font-size: 17px; border-radius: 12px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand-icon { width: 30px; height: 30px; }
.brand-icon path { fill: var(--accent); }
.brand-icon text { fill: var(--on-accent); font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav > a:hover { color: var(--text); background: var(--surface-2); }
.nav > a.btn { color: var(--text); margin-left: 4px; }
/* the language menu: a button with the current language, a list of all (the service will have many) */
.lang-menu { position: relative; margin-left: 8px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
.lang-btn:hover, .lang-menu.open .lang-btn { color: var(--text); background: var(--surface-2); }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lang-btn .chev { width: 14px; height: 14px; }
.lang-list { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; max-height: 60vh; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); z-index: 30; }
.lang-menu.open .lang-list { display: block; }
.lang-list a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; white-space: nowrap; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current] { font-weight: 600; color: var(--accent); }
.nav > a.btn.primary { color: var(--on-accent); }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; }
/* the theme switch: a moon in the light theme, a sun in the dark one */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); padding: 0; cursor: pointer; flex-shrink: 0; }
.theme-btn:hover { color: var(--text); background: var(--surface-2); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }

/* hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1200px 500px at 20% -10%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lead { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.art { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 32px rgba(22, 24, 29, 0.12)); }

/* The hero scene (owner's request 2026-10-17): a visitor writes in the chat of a website, the
   operator answers on the phone; landing.js plays it in a loop, the texts come from the page. */
.scene { position: relative; height: 420px; font-family: var(--font); }
.sc-site { position: absolute; left: 0; top: 24px; width: calc(100% - 200px); height: 360px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 32px rgba(22, 24, 29, 0.12); overflow: hidden; }
.sc-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.sc-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.sc-bar span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.sc-page { padding: 22px 24px; display: grid; gap: 10px; }
.sc-page b { width: 46%; height: 14px; border-radius: 7px; background: var(--text); opacity: 0.55; }
.sc-page s { width: 70%; height: 8px; border-radius: 4px; background: var(--text); opacity: 0.14; }
.sc-page s.short { width: 52%; }
.sc-page em { width: 38%; height: 70px; border-radius: 10px; background: var(--accent-soft); margin-top: 6px; }
.sc-widget { position: absolute; right: 30px; bottom: 14px; width: 210px; height: 236px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(22, 24, 29, 0.16); overflow: hidden; }
.sc-whead { padding: 9px 12px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.sc-wbody, .sc-pbody { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px; overflow: hidden; }
.sc-winput { position: relative; margin: 0 8px 8px; height: 28px; display: flex; align-items: center; padding: 0 30px 0 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); font-size: 11px; white-space: nowrap; overflow: hidden; }
.sc-ph { color: var(--muted); }
.sc-typed:not(:empty) + .sc-ph { display: none; }
.sc-send { position: absolute; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.sc-phone { position: absolute; right: 0; top: 0; width: 220px; height: 420px; display: flex; flex-direction: column; border: 8px solid var(--text); border-radius: 30px; background: var(--surface); box-shadow: 0 20px 40px rgba(22, 24, 29, 0.2); overflow: hidden; }
.sc-notch { align-self: center; width: 60px; height: 6px; margin: 6px 0 2px; border-radius: 3px; background: var(--border); }
.sc-phead { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; border-bottom: 1px solid var(--border); }
.sc-ricon svg { width: 26px; height: 26px; display: block; }
.sc-rname { display: flex; flex-direction: column; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--text); min-width: 0; }
.sc-status { font-size: 10px; font-weight: 400; color: var(--muted); }
.sc-pinput { height: 26px; margin: 0 8px 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.sc-msg { max-width: 85%; padding: 6px 9px; border-radius: 12px; font-size: 11px; line-height: 1.35; animation: sc-in 0.3s ease-out; }
.sc-msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.sc-msg.them { align-self: flex-start; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.sc-row { display: flex; align-items: flex-end; gap: 6px; align-self: flex-start; max-width: 92%; animation: sc-in 0.3s ease-out; }
.sc-row .sc-msg { max-width: none; animation: none; }
.sc-av { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #b45309; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sc-op { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: block; }
.sc-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-name { font-size: 9.5px; font-weight: 600; color: var(--muted); padding-left: 2px; }
.sc-dots { align-self: flex-start; padding: 7px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; gap: 3px; }
.sc-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: sc-dot 1s infinite; }
.sc-dots i:nth-child(2) { animation-delay: 0.15s; }
.sc-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sc-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
@media (max-width: 640px) {
  .scene { height: 380px; }
  .sc-site { width: 100%; top: 0; height: 300px; }
  .sc-page { display: none; }
  .sc-widget { left: 8px; right: auto; bottom: 12px; width: calc(100% - 178px); height: 250px; }
  .sc-phone { width: 160px; height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-msg, .sc-row { animation: none; }
}
.a-window, .a-phone, .a-widget, .a-toast { fill: var(--surface); stroke: var(--border); }
.a-bar, .a-screen { fill: var(--surface-2); }
.a-dot { fill: var(--border); }
.a-line { fill: var(--text); opacity: 0.55; }
.a-line.soft { opacity: 0.16; }
.a-img { fill: var(--accent-soft); }
.a-accent, .a-bubble, .a-toast-ic { fill: var(--accent); }
.a-wtitle, .a-ptitle { fill: var(--on-accent); font-family: var(--font); font-size: 11px; font-weight: 600; }
.a-msg.in { fill: var(--surface-2); stroke: var(--border); }
.a-msg.out { fill: var(--accent-soft); }
.a-input { fill: var(--surface-2); stroke: var(--border); }
.a-bubble-ic { fill: var(--on-accent); }
.a-notch { fill: var(--border); }
.a-arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 6; }
.a-arrow-head { fill: var(--accent); }


/* sections */
.section { padding: 72px 0; }
.about p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.about a { color: var(--accent); }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* the steps in a row with arrows between them, a number and a short phrase each (owner's request) */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps li { position: relative; counter-increment: step; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.steps li::before { content: counter(step); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.steps li:not(:last-child)::after { content: '→'; position: absolute; right: -36px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 24px; font-weight: 700; line-height: 1; }
.steps h3 { margin: 0; }
.steps p, .features p { color: var(--muted); font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
/* the title beside the icon, the text under them (owner's request) */
.feature .fh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feature .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 16px; margin: 0; }
/* the channels card: the Telegram and Element marks under the text (owner 2026-10-19) */
.feature .chan-logos { display: flex; gap: 12px; margin-top: 14px; }
.feature .chan-logos .app-logo { width: 28px; height: 28px; flex: none; }
.why { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.why p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.checks li::before { content: ''; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6b5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; margin-top: 1px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plans-note { margin-top: 20px; color: var(--muted); font-size: 15px; text-align: center; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.plan h3 { font-size: 20px; }
.price { margin: 12px 0 2px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price small { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: 0; margin-left: 6px; }
.price-year { color: var(--muted); font-size: 14px; min-height: 21px; }
.limits { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 15px; }
.limits li { display: flex; justify-content: space-between; gap: 12px; }
.limits li b { font-weight: 600; }
.plan .incl { margin-top: 16px; font-size: 14px; color: var(--muted); }
.plan .feats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.plan .feats li { padding-left: 22px; position: relative; }
.plan .feats li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; padding-top: 10px; padding-bottom: 10px; }
.plan .grow { flex: 1; min-height: 16px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex-shrink: 0; transition: transform 0.15s; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 15px; }
.faq .apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.faq .apps a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font-size: 14px; text-decoration: none; }
.faq .apps a:hover { border-color: var(--accent); color: var(--accent); }
.faq .apps .app-logo { width: 22px; height: 22px; flex: none; }

/* final + footer */
.final { padding: 80px 0; text-align: center; background: var(--accent-soft); border-top: 1px solid var(--border); }
.final p { color: var(--muted); font-size: 18px; margin: 10px auto 28px; max-width: 520px; }
.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* phones and tablets */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-art { max-width: 560px; }
  .why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  /* on a phone: the theme switch, then the menu button at the edge */
  .theme-btn { order: 1; margin-left: auto; }
  .burger { display: inline-flex; order: 2; margin-left: -6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 12px; }
  .nav > a.btn { margin: 6px 0 0; }
  .lang-menu { margin: 0; }
  .lang-btn { width: 100%; justify-content: flex-start; padding: 12px; }
  .lang-btn .chev { margin-left: auto; }
  .lang-list { position: static; box-shadow: none; max-height: 40vh; margin: 2px 0 6px; }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 40px; }
  .steps li:not(:last-child)::after { content: '↓'; right: auto; left: 40px; top: auto; bottom: -32px; transform: translateX(-50%); }
  .section { padding: 52px 0; }
  .hero { padding: 44px 0 28px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  /* on a phone the text goes beside the icon (owner's request) */
  .feature { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; }
  .feature .fh { display: contents; }
  .feature .ic { grid-row: 1 / 3; }
  .feature h3 { margin-bottom: 6px; }
  /* keep the channel marks under the text, not under the icon column */
  .feature .chan-logos { grid-column: 2; }
  .cta-row .btn { flex: 1 1 auto; }
  .lead { font-size: 17px; }
  .price { font-size: 34px; }
}

/* the legal pages (/terms, /privacy): the articles of the cabinet's legal pages */
.legal-page { padding: 48px 0 72px; }
.legal-page h1 { font-size: clamp(30px, 4.4vw, 42px); }
.legal-page h2 { font-size: 21px; margin: 32px 0 10px; }
.legal-page p, .legal-page li { line-height: 1.65; }
.legal-page p { margin: 0 0 12px; }
.legal-page .muted { color: var(--muted); }
.legal-page a { color: var(--accent); }
.legal-page mark { background: #fff3bf; color: #1f1f1f; padding: 0 3px; border-radius: 3px; }
.notfound { padding: 96px 0 120px; text-align: center; }
.notfound .lead { color: var(--muted); font-size: 19px; margin: 14px 0 28px; }
