/* AirBridge website. No external fonts or CDNs: system fonts only. */
:root {
  --bg: #f6f8fc;
  --bg-alt: #edf2fa;
  --surface: #ffffff;
  --surface-2: #f2f6fc;
  --text: #0c1627;
  --muted: #536179;
  --border: #dfe6f0;
  --accent: #0a66f5;
  --accent-2: #16b3ee;
  --accent-soft: #e3eeff;
  --accent-ink: #ffffff;
  --link: #0a5ce0;
  --ok: #10915a;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, .06), 0 1px 1px rgba(15, 30, 60, .04);
  --shadow: 0 10px 30px -12px rgba(15, 40, 90, .22), 0 2px 6px rgba(15, 30, 60, .06);
  --shadow-lg: 0 30px 70px -25px rgba(10, 40, 100, .38), 0 8px 20px -10px rgba(10, 30, 70, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial,
          "Noto Sans", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Malgun Gothic", "Apple SD Gothic Neo", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d17;
    --bg-alt: #0c1322;
    --surface: #111a2a;
    --surface-2: #0f1727;
    --text: #e9eff9;
    --muted: #9eabc0;
    --border: #1f2a3e;
    --accent: #3d8bff;
    --accent-2: #2cc3f5;
    --accent-soft: #14284a;
    --link: #7db0ff;
    --ok: #3ccf8e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 30px -14px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .85), 0 8px 24px -10px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.45rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: .8em 1.3em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, var(--accent-2)) 100%);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.btn-ghost { color: var(--link); background: var(--accent-soft); }
.btn-lg { font-size: 1.08rem; padding: .95em 1.55em; }
.btn-sm { font-size: .92rem; padding: .55em 1.05em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .96rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher (details/summary, no JS needed) */
.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  color: var(--muted); font-size: .93rem; font-weight: 550; padding: 7px 10px; border-radius: 10px; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--surface-2); }
.lang[open] summary .icon:last-child { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .95rem; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { color: var(--link); font-weight: 650; }
.lang-footer .lang-menu { top: auto; bottom: calc(100% + 6px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 120%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 45% at 78% 30%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 70%),
    radial-gradient(45% 50% at 20% 10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; color: var(--link);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 { background: linear-gradient(180deg, var(--text) 55%, color-mix(in srgb, var(--text) 72%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 36em; margin-bottom: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: .93rem; font-weight: 550; }
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges .icon { color: var(--ok); }

/* Download block */
.dl { display: flex; flex-direction: column; gap: 12px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.dl-mobile { display: none; }
.is-mobile .dl-desktop { display: none !important; }
.is-mobile .dl-mobile {
  order: -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start;
  padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  text-align: left;
}
.dl-hint-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.dl-hint { margin: 0; font-size: 1rem; color: var(--muted); }
.dl-hint strong { display: block; color: var(--text); font-size: 1.08rem; margin-bottom: 2px; }
.dl-url { margin: 4px 0 0; font-family: var(--mono); font-size: 1.05rem; font-weight: 650; color: var(--text); }
.dl-mobile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dl-mobile-actions .btn { flex: 1 1 140px; }
.dl-mobile .dl-meta { grid-column: 1 / -1; }
.dl-mobile .manual-url { grid-column: 1 / -1; margin: 4px 0 0; font-size: .92rem; word-break: break-all; }

/* Hero visual */
.hero-visual { position: relative; padding: 0 0 40px 0; }
.frame { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.frame-desktop { border-radius: 14px; }
.frame-desktop::before {
  content: ""; display: block; height: 26px; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 16px 13px, #ff5f57 4.5px, transparent 5px),
    radial-gradient(circle at 32px 13px, #febc2e 4.5px, transparent 5px),
    radial-gradient(circle at 48px 13px, #28c840 4.5px, transparent 5px),
    var(--surface-2);
}
.frame-phone {
  position: absolute; right: -14px; bottom: -6px; width: 27%; min-width: 120px; margin: 0;
  border-radius: 26px; overflow: hidden; border: 6px solid #0d1320; background: #0d1320;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06);
}
.frame-phone img { border-radius: 20px; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 24px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .lead { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.step { position: relative; padding: 30px 28px 26px; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  position: absolute; top: 22px; right: 24px; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: color-mix(in srgb, var(--accent) 16%, transparent);
}
.step-icon, .feature-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px;
  color: var(--link); background: var(--accent-soft);
}
.step:first-child .step-icon { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.steps-cta { display: flex; justify-content: center; margin-top: 32px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { padding: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Screenshots */
.shots-sub { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 18px; color: var(--muted); font-weight: 650; }
.shots-rail {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 26px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  scroll-padding-inline: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
}
.shots-rail:focus-visible { outline-offset: -3px; }
.shot { margin: 0; flex: 0 0 min(900px, 86vw); scroll-snap-align: start; }
.shot .frame { box-shadow: var(--shadow); }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; text-align: center; }
.shots-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -6px 0 18px; }
.shots-nav button {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
}
.shots-nav button:hover { border-color: var(--accent); }
.shots-nav button:disabled { opacity: .4; cursor: default; }
.shots-nav .prev .icon { transform: rotate(180deg); }
.shots-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 40px; margin-top: 8px; }
.shot-phone .frame-phone-flat { border-radius: 30px; border: 7px solid #0d1320; background: #0d1320; box-shadow: var(--shadow); }
.shot-phone .frame-phone-flat img { border-radius: 23px; }
.section-shots-ios { margin-top: 56px; }

/* Privacy band */
.pband {
  display: flex; gap: 26px; align-items: flex-start; padding: 36px 40px; border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--accent-2) 8%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.pband h2 { font-size: 1.6rem; }
.pband p { color: var(--muted); max-width: 46em; }
.pband-icon { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 20px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 26px -12px var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s ease; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 650; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.faq-more { text-align: center; margin-top: 28px; color: var(--muted); }

/* Final CTA */
.cta {
  text-align: center; padding: 64px 32px; border-radius: 28px; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.cta > * { position: relative; }
.cta img { margin: 0 auto 20px; border-radius: 18px; box-shadow: var(--shadow); }
.cta .lead { max-width: 34em; margin: 0 auto 28px; }
.cta .dl { align-items: center; }
.cta .dl-actions { justify-content: center; }
.signed { display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 0; font-size: .9rem; color: var(--muted); }
.signed .icon { color: var(--ok); }

/* Inner pages */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.page-hero .lead { max-width: 44em; }
.page-body { padding: 24px 0 88px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.ts { display: grid; gap: 14px; }
.ts-item { padding: 24px 26px; display: grid; grid-template-columns: 46px 1fr; gap: 4px 18px; }
.ts-item .ts-icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--link); background: var(--accent-soft); }
.ts-item h3 { margin: 0; align-self: center; }
.ts-item p { margin: 0; color: var(--muted); grid-column: 2; }
.aside { display: grid; gap: 18px; position: sticky; top: 90px; }
.aside .card { padding: 24px; }
.aside h2 { font-size: 1.2rem; margin-bottom: .6em; }
.aside p { color: var(--muted); font-size: .96rem; }
.aside .btn { width: 100%; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .96rem; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); }
.checklist .icon { color: var(--ok); margin-top: 3px; }
.kv { margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.kv div { display: grid; gap: 2px; }
.kv dt { color: var(--muted); font-size: .84rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv code { font-family: var(--mono); font-size: .8rem; font-weight: 500; }
.h-section { font-size: 1.5rem; margin: 0 0 18px; }

/* Legal documents */
.legal { max-width: 820px; }
.legal .notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: .95rem; margin-bottom: 28px; }
.legal .meta { color: var(--muted); font-size: .96rem; margin-bottom: 28px; }
.legal .meta p { margin: 0 0 .3em; }
.legal h2 { font-size: 1.45rem; margin: 2em 0 .6em; }
.legal h3 { font-size: 1.08rem; margin: 1.6em 0 .5em; }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal .summary { padding: 22px 26px; margin: 0 0 8px; }
.legal .summary ul { margin: 0; }
.legal address { font-style: normal; }

/* 404 */
.nf { text-align: center; padding: 100px 0 120px; }
.nf .code { font-size: 5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 44px 0 36px; font-size: .94rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; }
.footer-brand p { margin: 10px 0 0; max-width: 30em; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav > a { color: var(--text); text-decoration: none; font-weight: 550; }
.footer-nav > a:hover { color: var(--link); }
.footer-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.footer-legal p { margin: 0 0 .35em; }
.footer-legal a { color: inherit; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .dl, .dl-actions, .badges { justify-content: center; align-items: center; }
  .hero-visual { max-width: 760px; margin: 0 auto; width: 100%; padding-right: 30px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .brand { margin-right: auto; }
  .main-nav { order: 3; width: calc(100% + 48px); margin: 6px -24px 0; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 6px 10px; font-size: .92rem; }
  .steps { grid-template-columns: 1fr; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .shot-phone .frame-phone-flat { border-width: 4px; border-radius: 20px; }
  .shot-phone .frame-phone-flat img { border-radius: 16px; }
  .shot-phone figcaption { font-size: .84rem; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .main-nav { width: calc(100% + 36px); margin: 6px -18px 0; padding: 0 10px 8px; }
  .lang-header summary span { display: none; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .dl-actions .btn { width: 100%; }
  .hero-visual { padding-right: 18px; }
  .frame-phone { right: -8px; border-width: 4px; border-radius: 18px; }
  .frame-phone img { border-radius: 14px; }
  .pband { flex-direction: column; padding: 28px 24px; }
  .cta { padding: 48px 20px; }
  .ts-item { grid-template-columns: 1fr; padding: 22px; }
  .ts-item .ts-icon { grid-row: auto; margin-bottom: 8px; }
  .ts-item p { grid-column: 1; }
  .footer-inner { flex-direction: column; }
  .shots-rail { gap: 14px; }
}

/* ---------------------------------------------------------------- contact form (/support) */
.contact-card { padding: 28px; margin-top: 28px; scroll-margin-top: 90px; }
.contact-card h2 { font-size: 1.45rem; }
.contact-form { display: grid; gap: 14px; margin-top: 6px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea, .chat input, .chat textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7em .85em; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus, .chat input:focus, .chat textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.captcha { display: grid; gap: 6px; }
.captcha-label { font-weight: 600; font-size: .95rem; }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { border-radius: 10px; border: 1px solid var(--border); background: #e9f0fb; }
.captcha-row input { width: 90px; text-align: center; font-size: 1.15rem; font-weight: 700; }
.contact-form > .btn { justify-self: start; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .97rem; }
.form-msg.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.form-msg.bad { background: color-mix(in srgb, #d93025 12%, var(--surface)); border: 1px solid color-mix(in srgb, #d93025 40%, transparent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.small { font-size: .9rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .contact-card { padding: 20px; } }

/* ---------------------------------------------------------------- support chat (all pages) */
.chat { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70; font-size: 15px; }
.chat-fab {
  display: inline-flex; align-items: center; gap: .5em; border: 0; cursor: pointer; font: inherit; font-weight: 650;
  color: var(--accent-ink); padding: .85em 1.2em .85em 1em; border-radius: 999px; position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, var(--accent-2)) 100%);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent), 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .15s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .icon { width: 22px; height: 22px; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: #e5383b; color: #fff; font-size: 12px; line-height: 20px; text-align: center; padding: 0 5px; }
.chat.is-open .chat-fab { display: none; }
.chat-panel {
  position: absolute; right: 0; bottom: 0; width: 370px; height: min(580px, calc(100vh - 110px)); height: min(580px, calc(100dvh - 110px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 65%, var(--accent-2)) 100%); }
.chat-head img { border-radius: 10px; background: #fff; }
.chat-head div { flex: 1; min-width: 0; line-height: 1.3; }
.chat-head b { display: block; font-size: 1.02rem; }
.chat-head small { display: block; opacity: .88; font-size: .84rem; }
.chat-x { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.chat-x:hover { background: rgba(255, 255, 255, .3); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.chat-intro { margin: 0; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .95rem; }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg.them { align-self: flex-start; }
.chat-bubble { padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.45; }
.chat-msg.me .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.them .chat-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-files { display: block; margin-top: 6px; font-size: .85rem; opacity: .85; }
.chat-meta { font-size: .75rem; color: var(--muted); margin-top: 3px; padding: 0 4px; }
.chat-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.chat-start { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-start[hidden], .chat-compose[hidden] { display: none; }
.chat-start textarea { resize: none; }
.chat-start .btn { width: 100%; }
.chat-privacy { margin: 0; font-size: .78rem; text-align: center; }
.chat-privacy a { color: var(--muted); }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-compose textarea { resize: none; max-height: 140px; border-radius: 18px; padding: .6em .9em; }
.chat-send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.chat-send:hover { filter: brightness(1.08); }
.chat-err { margin: 0; padding: 8px 14px; font-size: .85rem; color: #fff; background: #c0392b; }
@media (max-width: 560px) {
  .chat-fab-label { display: none; }
  .chat-fab { padding: .95em; }
  .chat.is-open { inset: 0; right: 0; bottom: 0; }
  .chat-panel { position: fixed; inset: 0; width: auto; height: 100%; border-radius: 0; border: 0; }
  .chat-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .chat-compose, .chat-start { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media print { .chat { display: none; } }
