/* QuietBooking (quietbooking.com): QuietGuard family layout, in Juniper #3F5E57 (QuietClinic/QuietBooking, QUIET-DESIGN-RULES.md). */

@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 {
  /* QuietBooking = Juniper #3F5E57. Warm pages, light. */
  --primary: #3f5e57; --heading: #2f4741; --green: #4f9a5a;
  --ink: #2e2724; --muted: #6e625a; --line: #e6ddd3; --bg: #f7f4f0; --card: #ffffff; --tint: #e6efec;
  --link: #3f5e57; --on-primary: #ffffff;
  --mark: #40518a; --mark-dot: #4f9a5a;
  --quiet: #9a8e85;
  --shadow: 0 20px 50px rgba(46, 39, 36, 0.10);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --h-ink: #2e2724; --h-ink-2: #6e625a; --h-line: #e6ddd3; --h-tint: #e6efec; --h-bg: #f7f4f0; --h-surface: #ffffff;
  /* Names used inside the iPhone guide drawings. */
  --text: var(--ink); --soft: var(--muted); --accent: var(--primary); --onaccent: var(--on-primary);
  color-scheme: light;
}
/* Dark: the Juniper hue, deep (Quiet design rules "Colours"); the main button is the dark accent with dark text. */
:root[data-theme="dark"] {
  --primary: #85ada4; --heading: #ffffff; --green: #4f9a5a;
  --ink: #eaf0ef; --muted: #b9cac6; --line: #274c43; --bg: #102621; --card: #18352e; --tint: #132d27;
  --link: #aac6bf; --on-primary: #102621;
  --mark: #ffffff; --mark-dot: #4f9a5a;
  --quiet: #9fb5b0;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --h-ink: #ffffff; --h-ink-2: #b9cac6; --h-line: #274c43; --h-tint: #132d27; --h-bg: #102621; --h-surface: #18352e;
  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; }
:lang(th) { --font: "Leelawadee UI", "Thonburi", "Noto Sans Thai", "Sukhumvit Set", Tahoma, system-ui, sans-serif; }
/* Thai has tall marks above and below the letters: a little more room between heading lines. */
:lang(th) h1 { line-height: 1.4; }
:lang(th) h2, :lang(th) h3 { line-height: 1.45; }

* { 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; } }


/* ---------- Pages (QuietBin: home, iPhone guide, privacy, 404) ---------- */
.page { padding-bottom: 20px; }
.page > * { max-width: 780px; }
h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.16; margin: 40px 0 12px; color: var(--heading); font-weight: 650; }
h2 { font-size: 1.3rem; color: var(--heading); margin: 32px 0 6px; font-weight: 600; line-height: 1.3; }
.lead { font-size: 1.18rem; color: var(--muted); margin: 0 0 20px; }
.cta { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 12px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 600; }
.cta:hover { filter: brightness(1.08); }
.updated { color: var(--muted); margin-top: 0; }
.short { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--green); border-radius: 14px; padding: 16px 20px; }
ul { padding-inline-start: 22px; }
.note { color: var(--muted); font-size: 0.94rem; }
/* "A calm iPhone": numbered steps, each with a small drawing in the page colours. */
.page > .steps { max-width: 860px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps > li { grid-template-columns: 1fr 200px; align-items: center; } }
.steps h2 { margin: 0 0 6px; }
.steps h2::before { counter-increment: s; content: counter(s) ". "; }
.steps p { margin: 4px 0; }
.ui { font-weight: 600; color: var(--heading); }
figure { margin: 0; } figure svg { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto; }
.muted { color: var(--muted); }

/* ---------- 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 { font-size: 0.85rem; 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; }
/* "Part of EISA Group" line under the family row (Robert, 2026-10-27; a brand name, not the legal owner). */
.family .family-part { margin: 14px 0 0; font-size: 0.88rem; }
.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 row: each app's own circle icon from the family kit (Robert, 10 Nov 2026), the same in light and dark. */
.fam-ic { display: block; flex-shrink: 0; width: 26px; height: 26px; }

@media (max-width: 560px) { .family-links { flex-direction: column; } }
bdi[dir="ltr"] { white-space: nowrap; }

/* Home hero: the opening words next to Eisa (Robert, 16 Nov 2026: Eisa is the hero when an app has no hero picture). */
.page > .hero { max-width: 960px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 48px; align-items: center; padding: 40px 0 16px; }
.hero-text > :last-child { margin-bottom: 0; }
.hero-eisa { width: 100%; max-width: 260px; height: auto; border-radius: 18px; justify-self: center; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .page > .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .hero-eisa { max-width: 240px; }
}
