/* Afyari public website: same calm clinical colours as the app. */
:root {
  --bg: #f6f8fb; --card: #ffffff; --text: #14213d; --muted: #5b6475; --accent: #0b5fd9;
  --accent-text: #ffffff; --teal: #0e9f8e; --line: #e3e8f0; --red: #d93025; --soft: #eaf2ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1724; --card: #172133; --text: #e8edf5; --muted: #a3adbf; --accent: #6ea8ff;
    --accent-text: #0b1220; --teal: #4fd1c0; --line: #26324a; --red: #ff8a80; --soft: #1b2a44;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span b { color: var(--accent); font-weight: 700; }
nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { background: var(--soft); color: var(--accent); }
nav a.signin { background: var(--accent); color: var(--accent-text); }
nav a.signin:hover { color: var(--accent-text); filter: brightness(1.08); }
@media (max-width: 560px) { nav a:not(.signin):not(.join) { display: none; } .menu-link { display: inline-block !important; } }
.menu-link { display: none; }

main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 56px; }
.narrow { max-width: 760px; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 8px 0 12px; }
h2 { font-size: 1.4rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--accent), var(--teal));
       color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; font-size: 1.02rem;
       box-shadow: 0 6px 16px rgb(11 95 217 / .25); }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; padding: 11px 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 18px 0 8px; }
.hero .pic { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3;
             -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
                     mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.hero .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero .pic { order: -1; aspect-ratio: 16 / 10; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
               background: var(--soft); margin-bottom: 10px; }
section { margin: 40px 0; }
.band { background: var(--soft); border-radius: 24px; padding: 26px; }
.founder { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: start; }
.founder img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
               border: 4px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box,
               linear-gradient(135deg, var(--accent), var(--teal)) border-box; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }
.emergency { border-left: 5px solid var(--red); }

footer { border-top: 1px solid var(--line); }
footer .in { max-width: 1080px; margin: 0 auto; padding: 22px 16px 40px; display: flex; flex-wrap: wrap; gap: 8px 18px;
             align-items: center; color: var(--muted); font-size: .92rem; }

/* "Contact support" without showing the address */
details.contact { display: inline-block; }
details.contact summary { cursor: pointer; color: var(--accent); text-decoration: underline; list-style: none; }
details.contact .options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
details.contact .options a, details.contact .options button {
  font: inherit; font-size: .92rem; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--muted); background: var(--card); color: var(--text); text-decoration: none; }

.ic.step { background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; font-weight: 800; font-size: 1.2rem; }
#why h3 { color: var(--accent); }

ul.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
ul.why li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 600; }
