/* Relay website. Plain CSS, no build step. */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(assets/fonts/dm-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(assets/fonts/dm-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #05081e;
  --navy-2: #151937;
  --navy-line: #262b57;
  --blue: #0a20e7;
  --blue-tint: #e8ebfd;
  --yellow: #e7df0a;
  --red: #c40822;
  --red-tint: #fdeaec;
  --green: #07a28a;
  --muted-dark: #c2d7ff;
  --ink: #05081e;
  --ink-2: #4a4e66;
  --line: #e3e6ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --radius: 20px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.dark { background: var(--navy); color: #fff; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; color: var(--blue); margin-bottom: 12px; }
.dark .eyebrow { color: var(--yellow); }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.5px; }
h2.left { text-align: left; }
.sub { color: var(--ink-2); font-size: 18px; margin: 14px auto 0; max-width: 640px; }
.dark .sub, .dark .muted { color: var(--muted-dark); }
.body { color: var(--ink-2); font-size: 17px; margin-top: 18px; }
.small { font-size: 14px; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { box-shadow: 0 8px 24px rgba(231, 223, 10, .3); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 8, 30, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--navy-line); }
.header-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 24px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; }
.nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; }
.nav a:hover { opacity: 1; }
.nav-toggle { display: none; }
.lang-switch { color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 1px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 12px; }
.lang-switch:hover { border-color: #fff; }

/* Hero */
.hero { padding: 80px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--yellow); border: 1px solid rgba(231, 223, 10, .4); padding: 6px 12px; border-radius: 999px; }
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -1.5px; margin-top: 22px; }
.lead { font-size: 19px; color: var(--muted-dark); margin-top: 20px; max-width: 600px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: var(--muted-dark); font-size: 15px; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof svg, .ticks li::before { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2.5; }

.hero-phone { display: flex; justify-content: center; }
.phone { width: 290px; height: 580px; border-radius: 44px; background: #1e2138; padding: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.screen { height: 100%; border-radius: 34px; background: var(--navy); border: 1px solid #2a2e55; text-align: center; padding: 40px 22px 26px; display: flex; flex-direction: column; align-items: center; }
.ph-title { font-weight: 700; font-size: 20px; }
.ph-sub { color: var(--muted-dark); font-size: 13px; margin-top: 4px; }
.ptt { position: relative; width: 200px; height: 200px; margin: 52px 0 28px; }
.ptt .ring { position: absolute; border-radius: 50%; background: rgba(10, 32, 231, .2); }
.ptt .r1 { inset: 0; animation: pulse 2.4s ease-in-out infinite; }
.ptt .r2 { inset: 22px; background: rgba(10, 32, 231, .4); }
.ptt .core { position: absolute; inset: 44px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; line-height: 1.2; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .6; } }
.ph-status { color: var(--yellow); font-weight: 700; }
.ph-sos { margin-top: auto; width: 100%; background: #e70a29; border-radius: 999px; padding: 14px; font-weight: 700; }

/* Video */
.video-frame { margin: 40px auto 14px; max-width: 960px; border-radius: 24px; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px rgba(5, 8, 30, .18); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.ic { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-tint); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; flex: none; }
.ic svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-red { background: var(--red-tint); }
.ic-red svg { stroke: var(--red); }
.card-dark { background: var(--navy); border-color: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.card-dark p { color: var(--muted-dark); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }

/* Vision */
.vision-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.vision-grid h2 { font-size: clamp(26px, 3.2vw, 34px); }
.pillars { display: grid; gap: 16px; }
.pillars .card { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
.pillars .ic { margin: 0; }

/* Steps */
.steps .num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }

/* Compare table */
.table-wrap { margin-top: 48px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--navy-line); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--navy-line); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { color: var(--muted-dark); font-size: 14px; font-weight: 700; background: var(--navy-2); }
.compare thead .relay-col { color: var(--yellow); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td.no { color: var(--muted-dark); }
.compare td.yes { background: rgba(10, 32, 231, .14); font-weight: 500; }
.compare td.no::before, .compare td.yes::before { display: inline-block; width: 22px; font-weight: 700; }
.compare td.no::before { content: '✕'; color: #ff6b7f; }
.compare td.yes::before { content: '✓'; color: #3ee0c4; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 48px auto 24px; max-width: 920px; }
.plan { padding: 36px; }
.plan h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-sub { margin-top: 10px; }
.plan-premium { background: var(--navy); border-color: var(--navy); color: #fff; }
.plan-premium .plan-sub, .plan-premium .ticks li { color: var(--muted-dark); }
.badge { font-size: 11px; letter-spacing: 1.2px; background: var(--yellow); color: var(--navy); padding: 5px 10px; border-radius: 999px; }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307A28A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 20px 32px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; }

/* CTA */
.cta-section { padding-top: 0; background: var(--bg-alt); }
.cta-band { background: var(--blue); color: #fff; border-radius: 28px; padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band p { color: #dfe4ff; margin-top: 10px; font-size: 17px; }

/* Footer */
.site-footer { padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid img { height: 26px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; font-size: 15px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-line); color: var(--muted-dark); font-size: 13px; }

/* Reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .vision-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .header-row { gap: 12px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 8px 16px 16px; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 0; font-size: 17px; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .grid-4, .grid-3, .plans { grid-template-columns: 1fr; }
  .video-frame { border-radius: 16px; }
  .cta-band { padding: 36px 24px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Cost table: one card per row so both columns stay visible */
  .table-wrap { border: 0; overflow: visible; }
  .compare { min-width: 0; font-size: 15px; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { border: 1px solid var(--navy-line); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
  .compare tbody th { width: auto; background: var(--navy-2); padding: 14px 18px; }
  .compare th, .compare td { border-bottom: 0; padding: 12px 18px; }
  .compare tbody tr:last-child > * { border-bottom: 0; }
  .compare td.no::before, .compare td.yes::before { display: block; width: auto; font-size: 12px; letter-spacing: 1px; margin-bottom: 4px; }
  .compare td.no::before { content: '✕  TWO-WAY RADIOS'; }
  .compare td.yes::before { content: '✓  RELAY'; }
  .compare td.no:lang(fr)::before { content: '✕  TALKIES-WALKIES'; }
}

/* ===== Legal pages (delete account) ===== */
.legal-wrap { max-width: 760px; }
.legal-title { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.5px; }
.legal-lead { font-size: 17px; margin-top: 14px; }
.legal-card { margin-top: 20px; }
.legal-card ol, .legal-card ul { margin: 12px 0 0; padding-left: 22px; list-style: revert; color: var(--ink-2); font-size: 15.5px; }
.legal-card li { margin-top: 6px; }
.legal-card p a, .legal-card li a { color: var(--blue); }
.legal-table { margin-top: 12px; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; color: var(--ink-2); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(127,127,127,.25); }
.legal-table th { font-weight: 700; }
.legal-card p + p { margin-top: 10px; }

/* ===== Chat assistant (Figma: Website chat assistant, Nov 2026) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.rc-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 18px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 700 15px/1 'DM Sans', system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(10, 32, 231, .35); }
.rc-launcher svg { display: inline-block; }
.rc-launcher:hover { transform: translateY(-1px); }
.rc-launcher:focus-visible, .rc-chip:focus-visible, .rc-close:focus-visible, .rc-send:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rc-launcher.rc-hide { display: none; }
.rc-panel { position: fixed; right: 24px; bottom: 24px; z-index: 91; width: 380px; height: min(600px, calc(100vh - 48px)); display: flex; flex-direction: column; background: #f4f5fa; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(5, 8, 30, .22); font-family: 'DM Sans', system-ui, sans-serif; }
.rc-panel[hidden] { display: none; }
.rc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--navy); color: #fff; }
.rc-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.rc-titles { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.rc-titles strong { font-size: 15px; }
.rc-titles span { font-size: 12px; color: #a3a6b8; }
.rc-close { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; border-radius: 8px; }
.rc-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rc-bot { align-self: flex-start; max-width: 88%; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.rc-bot a { color: var(--blue); font-weight: 700; }
.rc-user-row { display: flex; justify-content: flex-end; }
.rc-user { max-width: 85%; background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.rc-suggest-title { margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-chip { background: #fff; border: 1px solid rgba(10, 32, 231, .35); color: var(--blue); border-radius: 999px; padding: 8px 14px; font: 500 13px/1.3 'DM Sans', system-ui, sans-serif; cursor: pointer; text-align: left; }
.rc-chip:hover { background: var(--blue-tint); }
.rc-handoff { display: flex; flex-direction: column; gap: 8px; }
.rc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.rc-btn svg { display: inline-block; }
.rc-btn-wa { background: #16a34a; color: #fff; }
.rc-btn-call { background: #fff; color: var(--blue); border: 1px solid rgba(10, 32, 231, .4); }
.rc-composer { background: #fff; border-top: 1px solid var(--line); padding: 12px 16px 14px; margin: 0; }
.rc-row { display: flex; gap: 8px; align-items: center; }
.rc-row input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f4f5fa; font: 400 16px/1.3 'DM Sans', system-ui, sans-serif; color: var(--ink); }
.rc-row input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.rc-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rc-human { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); }
.rc-human a { font-weight: 700; text-decoration: none; }
.rc-wa { color: #16a34a; }
.rc-call { color: var(--blue); }
@media (max-width: 600px) {
  .rc-launcher { right: 16px; bottom: 16px; padding: 14px; }
  .rc-launcher span { display: none; }
  .rc-panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
}
