:root {
  color-scheme: dark;
  --ink: #f1f5ff; --muted: #b4c4dd; --paper: #070f20; --white: #11213a;
  --red: #ffadb8; --red-hover: #a51431; --line: #364d70; --button-red: #a51e3a;
  --dark: #0a192d; --bright: #ffadb8; --soft: #b4c4dd;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse at 85% 0,#17427a55,transparent 48%),radial-gradient(ellipse at 5% 55%,#751b3020,transparent 45%),var(--paper); }
body, button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
p { line-height: 1.57; }
h1, h2, h3, p { margin-top: 0; }
h2, h3 { letter-spacing: -.025em; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
#group-invitation {max-width:36rem;padding-block:2rem}
#group-invitation input {display:block;width:100%;margin:.5rem 0;padding:.7rem;border:1px solid var(--line);border-radius:.5rem}
#copy-group-invitation {padding:.6rem .9rem;margin-bottom:1rem}
:focus-visible { outline: 3px solid #a8d4ff; outline-offset: 4px; }
.skip { position: fixed; top: .7rem; left: .7rem; z-index: 5; transform: translateY(-150%); padding: .65rem 1rem; background: var(--white); }
.skip:focus { transform: none; }
.wrap { width: min(1312px, calc(100% - 92px)); margin-inline: auto; }

.masthead { border-bottom: 1px solid var(--line); }
.head { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; line-height: 1.1; }
.brand img { object-fit: contain; flex: none; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .61rem; letter-spacing: .16em; }
.head nav, .footer nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 40px); }
.head nav a, .footer nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 650; padding-block: 10px; }
.head nav a:hover, .footer nav a:hover, .head nav a[aria-current] { color: var(--red); }
.head nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.button { min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 13px; padding: 11px 17px; border: 1px solid transparent; border-radius: 13px; font-size: .95rem; font-weight: 750; line-height: 1.22; text-decoration: none; cursor: pointer; }
.button span { font-size: 1.13em; }
.primary { background: var(--button-red); border-color: #ec8297; color: white; }
.primary:hover { background: var(--red-hover); }
.outline { border-color: #547298; background: transparent; color: var(--ink); }
.outline:hover { background: #193553; }

.hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(22px, 4vw, 54px); padding: clamp(18px, 4vw, 39px); margin-block: 22px 20px; border: 1px solid #547298; border-radius: 24px; overflow: hidden; background: #0a192d; box-shadow: inset 0 1px 0 #b5d7ff38,0 16px 40px #0004; }
.eyebrow { margin-bottom: 12px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; }
.signal { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.8rem, 5.4vw, 5.15rem); line-height: .91; letter-spacing: -.086em; }
.lede { max-width: 42rem; margin-bottom: 26px; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.52; }
.hero .lede { max-width: 29rem; }
.brand-tagline { margin: 0 0 14px; font-size: clamp(1.18rem, 2vw, 1.6rem); font-weight: 650; line-height: 1.25; }
.hero [dir="rtl"] { text-align: left; letter-spacing: normal; }
.fine { color: var(--muted); font-size: .86rem; }
.emergency { margin: 18px 0 0; max-width: 340px; }

.quick-intro { display: grid; grid-template-columns: 1.06fr repeat(3, 1fr); gap: 23px; border-top: 1px solid var(--line); padding: 27px 0 42px; }
.quick-intro h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.quick-item h3 { margin: 5px 0; font-size: 1.03rem; }
.quick-item p { color: var(--muted); margin: 0; font-size: .9rem; }
.quick-item span, .step { color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }

.subpage { padding-block: clamp(37px, 6vw, 84px); }
.page-heading { margin-bottom: 29px; }
.page-heading h1 { font-size: clamp(2.4rem, 5.4vw, 5.1rem); line-height: 1; letter-spacing: -.06em; max-width: 18ch; margin: 0 0 16px; }
.page-heading .lede { margin-bottom: 0; }
.content-grid, .version-layout, .form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.content-grid { align-items: stretch; }
.form-layout { grid-template-columns: 1.4fr 1fr; }
.panel { min-width: 0; background: var(--white); padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 17px; }
.panel h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 9px; }
.panel h3 { margin-bottom: 7px; }
.panel p { color: var(--muted); margin-bottom: 13px; }
.panel > p:last-child { margin-bottom: 0; }
.panel .step { display: block; margin-bottom: 10px; }
.callout { max-width: 55rem; border-left: 3px solid var(--red); padding: 3px 0 3px 15px; margin: 22px 0 0; color: var(--muted); }
.text-link { font-weight: 750; color: var(--red); text-underline-offset: 4px; }
.breakable { overflow-wrap: anywhere; }
.download-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-block: 18px; scroll-margin-top: 6rem; }
.download-links span { flex-basis: 100%; font-weight: 700; }
.download-links > a { display: grid; grid-template-rows: auto 52px; place-items: center; padding-top: 6px; border-radius: 8px; color: inherit; text-decoration: none; }
.download-links img { width: auto; height: 40px; }
.download-links .google-play-badge { height: 52px; }
.store-availability { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: .88rem; }

.app-screenshots { margin-block: clamp(24px, 4vw, 48px); }
.app-screenshots h2 { margin-bottom: 16px; }
.app-screenshots-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); }
.app-screenshots figure { margin: 0; min-width: 0; }
.app-screenshots a { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--dark); }
.app-screenshots img { width: 100%; height: auto; }
.app-screenshots img[data-content-only] { aspect-ratio: 591 / 1017; object-fit: cover; object-position: bottom; }
#screen-preview { width: min(100% - 2rem, 38rem); max-height: 92vh; padding: 1rem; color: var(--ink); background: var(--dark); border: 1px solid var(--line); border-radius: 14px; }
#screen-preview::backdrop { background: #050a14d9; }
#screen-preview form { float: right; }
#screen-preview button { color: inherit; background: transparent; font-size: 1.5rem; border: 0; cursor: pointer; }
#screen-preview h3 { margin: .3rem 2.5rem 1rem 0; }
.app-screenshots figcaption { padding-top: 8px; font-size: .92rem; color: var(--muted); }
@media (max-width: 660px) {
  .app-screenshots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.emergency { font-size: .9rem; margin-top: 18px; }
.emergency summary { cursor: pointer; }
.emergency ul { padding-inline-start: 22px; margin-block: 8px; }
.emergency li { margin-block: 5px; }
.emergency li a { display: inline-block; padding-block: 4px; }
.version-panel details { border-top: 1px solid var(--line); }
.version-panel summary { cursor: pointer; padding-block: 13px; line-height: 1.4; font-weight: 750; }
.version-panel summary time { font-size: .77rem; color: var(--muted); margin-left: 4px; font-weight: normal; }
.version-panel ul { padding-left: 21px; line-height: 1.56; color: var(--muted); margin: 0 0 15px; }
.version-panel li + li { margin-top: 4px; }
.version-panel .text-link { display: inline-block; margin-top: 10px; }
form { margin-top: 18px; }
form label { display: block; margin-bottom: 13px; font-weight: 700; font-size: .93rem; }
form .optional { margin-left: .2rem; font-size: .75rem; font-weight: 400; color: var(--muted); }
form input:not([type="checkbox"]), form textarea, form select { display: block; width: 100%; margin-top: 6px; border: 1px solid #547298; border-radius: 7px; padding: 10px; background: var(--white); color: var(--ink); font-size: 1rem; }
form textarea { resize: vertical; }
form .checkbox { display: flex; align-items: baseline; gap: 8px; font-weight: 400; line-height: 1.45; }
form input[type="checkbox"] { accent-color: var(--red); }
form .form-status { margin: 10px 0 0; }
form .form-status:empty { display: none; }
.side-panel hr { border: 0; border-top: 1px solid var(--line); margin-block: 23px; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 20px; }
.footer nav { flex-wrap: wrap; row-gap: 1px; }
@media (max-width: 1030px) {
  .wrap { width: calc(100% - 52px); }
  .hero { gap: 25px; }
}
@media (max-width: 790px) {
  .wrap { width: calc(100% - 36px); }
  .head { flex-wrap: wrap; padding: 12px 0 7px; gap: 7px 13px; }
  .head nav { order: 3; width: 100%; gap: clamp(12px, 5vw, 34px); flex-wrap: wrap; }
  .head nav a, .footer nav a { font-size: .85rem; }
  .brand img { width: 40px; height: 40px; }
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero h1 { font-size: clamp(2.7rem, 10vw, 4.9rem); margin-bottom: 16px; }
  .hero .lede { margin-bottom: 16px; }
  .quick-intro { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding-block: 15px; gap: 7px; }
}
@media (max-width: 490px) {
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.35rem); }
  .content-grid, .version-layout { grid-template-columns: 1fr; }
  .quick-intro { gap: 17px; }
  .quick-intro > div:first-child { grid-column: 1 / -1; }
  .footer nav { gap: 5px 14px; }
}
@media (max-width: 335px) {
  .wrap { width: calc(100% - 24px); }
  .head nav { gap: 9px; }
}
.button:disabled { opacity: .65; cursor: default; }
.draft { margin-top: 14px; padding: 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; }
.draft h3 { margin-bottom: 5px; font-size: 1rem; }
.draft-body { font: inherit; font-size: .9rem; margin: 0 0 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 490px) {
  .head .brand { gap: 8px; font-size: .91rem; }
}
#guest-thread { margin-top: 18px; }
.guest-messages article { padding: 10px 12px; margin-bottom: 8px; background: var(--paper); border-radius: 7px; }
.guest-messages p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.hero-art { overflow: hidden; border-radius: 16px; }
.hero-art img { width: 100%; height: auto; object-fit: cover; }
.brand img { filter: drop-shadow(0 0 12px #ef253b38); }
.quick-intro { margin-top: 25px; }
@media (max-width: 600px) { .hero-art img { max-height: 190px; } }

#map-home { scroll-margin-top: 12px; }
@media (max-width: 460px) { .head nav { gap: 8px 13px; } }

.site-accessibility { flex: none; position: relative; margin-inline-start: auto; }
.site-accessibility summary {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  cursor: pointer;
  list-style: none;
  border: 1px solid #b9d7ffb3;
  border-radius: 17px;
  color: #fff;
  background: radial-gradient(ellipse at 20% 0, #d9efff85, transparent 63%),
    linear-gradient(155deg, #497cbbd9, #152b50f5 76%);
  box-shadow: inset 0 1px 2px #fff9, inset 0 -3px 7px #06172d99, 0 5px 0 #101f39, 0 10px 20px #0007;
  backdrop-filter: blur(12px);
}
.site-accessibility summary::-webkit-details-marker { display: none; }
.site-accessibility summary:hover, .site-accessibility[open] summary { border-color: #eff7ff; }
.site-accessibility svg { filter: drop-shadow(0 2px 2px #071528); }
.accessibility-panel {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  inset-block-end: calc(100% + 12px);
  width: min(18rem, calc(100vw - 28px));
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 8px 30px #0008;
}
.accessibility-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.accessibility-panel legend { padding: 0; margin-block-end: .3rem; font-weight: 750; }
.accessibility-panel label { display: flex; align-items: center; gap: .5em; min-height: 44px; cursor: pointer; }
.accessibility-panel input { flex: none; margin: 0; width: 1.1em; height: 1.1em; accent-color: var(--red); }

:root.site-large-text { font-size: 125%; }
.site-large-text h1 { overflow-wrap: anywhere; }
.site-high-contrast {
  --ink: #fff; --muted: #fff; --paper: #000; --white: #000; --line: #fff;
  --red: #ffe476; --button-red: #000; --red-hover: #303030;
}
.site-high-contrast :is(body, .hero, sos-activity-map, .site-accessibility summary) { background: var(--paper); }
.site-high-contrast :is(.hero, sos-activity-map, .button, .site-accessibility summary) { border-color: var(--line); }
.site-high-contrast :focus-visible { outline-color: var(--red); }
.site-underlined-links a[href] { text-decoration: underline; text-underline-offset: .2em; }
.site-underlined-links a:has(> img:only-child) { border: 2px solid currentColor; }
@media (forced-colors: active) {
  .site-accessibility summary { color: ButtonText; border-color: ButtonText; }
}
