/* QuietLine (quietline.io): QuietGuard family layout (same as quietweb.io), in QuietLine's own Ocean blue.
   Light for everyone by default; dark only when the visitor picks it with the sun/moon switch (theme.js).
   Right-to-left safe: inline-start/end only. No animations. */

@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --primary: #2f6596; --heading: #234a70; --green: #4f9a5a;
  --ink: #1f2a36; --muted: #5b6b7c; --line: #d6e1ec; --bg: #f4f7fa; --card: #ffffff; --tint: #e8eff6;
  --link: #2f6596; --on-primary: #ffffff;
  --mark: #2f6596; --mark-dot: #4f9a5a;
  --quiet: #8a98a8;
  --shadow: 0 20px 50px rgba(31, 42, 54, 0.12);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  /* header */
  --h-ink: #16222f; --h-ink-2: #34465a; --h-line: #d6e1ec; --h-tint: #e8eff6; --h-bg: #f4f7fa; --h-surface: #ffffff;
  color-scheme: light;
}
/* Dark: the same Ocean blue, just softer and lighter (family rule: no grey, no near-black). */
:root[data-theme="dark"] {
  --primary: #4d86bd; --heading: #eef3f8; --green: #7cc387;
  --ink: #cfdbe7; --muted: #a3b5c8; --line: #3d5878; --bg: #1d2b3d; --card: #2a3c52; --tint: #24364b;
  --link: #a9c9ea;
  --mark: #a9c9ea; --mark-dot: #7cc387;
  --quiet: #8ea3b9;
  --shadow: 0 18px 40px rgba(8, 14, 24, 0.3);
  --h-ink: #eef3f8; --h-ink-2: #cfdbe7; --h-line: #3d5878; --h-tint: #24364b; --h-bg: #1d2b3d; --h-surface: #2a3c52;
  color-scheme: dark;
}
/* Outfit only covers Latin: other scripts use the device's own fonts. */
:lang(ar), :lang(ur) { --font: "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }
:lang(ur) { --font: "Noto Nastaliq Urdu", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }
:lang(hi) { --font: "Nirmala UI", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif; }
:lang(ja) { --font: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", "Meiryo", system-ui, sans-serif; }
:lang(ko) { --font: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.tm { font-size: 0.55em; vertical-align: super; margin-inline-start: 1px; font-weight: 500; }

/* Q mark, drawn inline so it follows light/dark. */
.qmark { display: block; flex-shrink: 0; }
.qmark .qmark-t { fill: var(--mark); }
.qmark .qmark-r { stroke: var(--mark); }
.qmark .qmark-d { fill: var(--mark-dot); }

/* ---------- Header (family header) ---------- */
.site-header { border-bottom: 1px solid var(--h-line); background: color-mix(in srgb, var(--h-bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.site-header .hwrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--h-ink); }
.site-header .brand .qmark { width: 30px; height: 30px; }
.site-header .brand .name { font-family: "Outfit", "Segoe UI", system-ui, sans-serif; font-weight: 640; font-size: 1.08rem; letter-spacing: -0.01em; }
.site-header .brand .tm { font-size: inherit; font-weight: inherit; vertical-align: baseline; margin: 0; }
.site-header .nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.site-header .nav a { color: var(--h-ink-2); text-decoration: none; font-size: 0.94rem; padding: 8px 10px; border-radius: 3px; }
.site-header .nav a:hover { color: var(--h-ink); background: var(--h-tint); }
.site-header .nav a[aria-current="page"] { color: var(--h-ink); box-shadow: inset 0 -2px 0 var(--h-ink); border-radius: 0; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 36px; height: 36px; border: 1px solid var(--h-line); background: transparent; color: var(--h-ink-2); border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.theme-toggle:hover { color: var(--h-ink); border-color: var(--h-ink-2); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
details.lang-pop, details.menu { position: relative; }
details.lang-pop > summary, details.menu > summary { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; border: 1px solid var(--h-line); border-radius: 3px; padding: 0 12px; font-size: 15px; color: var(--h-ink-2); }
details.lang-pop > summary::-webkit-details-marker, details.menu > summary::-webkit-details-marker { display: none; }
details.lang-pop > summary:hover, details.menu > summary:hover { color: var(--h-ink); border-color: var(--h-ink-2); }
details.lang-pop > summary svg { width: 16px; height: 16px; }
details.menu[open] > summary { background: var(--h-ink); color: var(--h-bg); border-color: var(--h-ink); }
.lang-panel, .menu .panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20; width: min(240px, calc(100vw - 32px)); max-height: 75vh; overflow-y: auto; background: var(--h-surface); border: 1px solid var(--h-line); box-shadow: 0 18px 40px rgba(10, 20, 30, .14); padding: 8px; }
.lang-panel a, .menu .panel a { display: block; padding: 12px; color: var(--h-ink); text-decoration: none; border-bottom: 1px solid var(--h-line); }
.lang-panel a:last-of-type, .menu .panel a:last-of-type { border-bottom: 0; }
.lang-panel a:hover, .menu .panel a:hover { background: var(--h-tint); }
.lang-panel a[aria-current] { font-weight: 600; }
.lang-panel a[aria-current]::after { content: " ✓"; color: var(--green); }
.menu { display: none; }
@media (max-width: 640px) {
  .site-header .nav { display: none; }
  .menu { display: block; }
  .site-header .hwrap { gap: 10px; }
  .site-header .brand { gap: 8px; }
}
@media (max-width: 360px) { .site-header .brand .name { display: none; } }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 56px; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.14; margin: 0 0 16px; color: var(--heading); font-weight: 650; }
h2 { font-size: 1.75rem; color: var(--heading); margin: 0 0 12px; font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.15rem; color: var(--heading); margin: 0 0 6px; font-weight: 600; }
.lead { font-size: 1.18rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.small { color: var(--muted); font-size: 0.95rem; margin: 12px 0 0; }
.trust { margin: 8px 0 0; font-size: 0.98rem; font-weight: 600; color: var(--heading); }
.play-badge { display: inline-flex; align-items: center; line-height: 0; }
.play-badge img { height: 82px; width: auto; margin: -11px -6px; }
section { padding: 48px 0; }

/* Phone picture drawn in HTML: an example, not a screenshot. */
.phone { justify-self: center; width: min(340px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 34px; padding: 22px 18px 26px; box-shadow: var(--shadow); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.phone-top .qmark { width: 34px; height: 34px; }
.phone-top strong { display: block; color: var(--heading); font-size: 1rem; line-height: 1.3; }
.phone-top small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.3; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-inline-end: 6px; vertical-align: 0.05em; }
.call { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.call:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-weight: 650; flex-shrink: 0; }
.call .who { flex: 1; min-width: 0; }
.call .who strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.3; }
.call .who small { display: block; color: var(--muted); font-size: 0.85rem; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.tag { font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tag.rings { color: var(--green); border: 1px solid var(--green); }
.tag.quiet { color: var(--quiet); border: 1px solid var(--line); }
.call.is-quiet .avatar { color: var(--quiet); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card p { margin: 0; }
.step { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; margin-bottom: 10px; }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 12px; }
.feature-icon svg { width: 22px; height: 22px; }
.honest { border-inline-start: 4px solid var(--green); }
.makers { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button-alt { display: inline-block; border: 1px solid var(--line); background: var(--card); color: var(--heading); text-decoration: none; padding: 12px 20px; border-radius: 12px; font-weight: 600; }
.button-alt:hover { border-color: var(--primary); }
.faq { max-width: 780px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--heading); padding: 16px 0; }
.faq details p { margin: 0 0 16px; }

/* ---------- Text pages (privacy, terms, 404) ---------- */
.doc { padding-bottom: 20px; }
.doc > * { max-width: 780px; }
.doc h1 { font-size: 2.2rem; margin: 32px 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 30px 0 6px; }
.promise { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--green); border-radius: 14px; padding: 18px 22px; font-size: 1.1rem; }
.muted { color: var(--muted); }

/* ---------- Footer ---------- */
footer { padding: 30px 0 50px; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); margin-top: 24px; }
footer a { color: var(--muted); }
footer p { margin: 0 0 8px; }
.family { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.family-title { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 600; margin: 0 0 12px; color: var(--muted); }
.family-links { display: flex; gap: 14px 34px; flex-wrap: wrap; }
.family-links a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.family-links a:hover strong { text-decoration: underline; }
.family-links strong { display: block; font-weight: 600; font-size: 0.95rem; }
.family-links small { display: block; color: var(--muted); font-size: 0.82rem; }
.family-links a[aria-current="page"] { cursor: default; }
.family-links a[aria-current] strong::after { content: " ✓"; color: var(--green); }
.family-links a[aria-current="page"]:hover strong { text-decoration: none; }
/* Family marks keep the family navy; QuietLine's own mark is Ocean blue. */
.family-links .qmark.fam { --mark: #40518a; }
:root[data-theme="dark"] .family-links .qmark.fam { --mark: #a9b8ea; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .family-links { flex-direction: column; } }
