/* Quiet Clock (quietclock.io): QuietGuard family layout (copied from quietbin.io, 29 Nov 2026), in Quiet Clock's own Claret #6F202C.
   Light for everyone by default; dark only when the visitor picks it with the sun/moon switch (theme.js).
   No animations. Shared header/footer as on quietbin.io; only the colour block and the page parts below differ. */

@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 {
  /* Quiet Clock = Claret #6F202C (Robert, 10 Nov 2026; QUIET-DESIGN-RULES.md "Colours"). Warm pages, light. */
  --primary: #6f202c; --heading: #5a1a24; --green: #4f9a5a;
  --ink: #2e2724; --muted: #6e625a; --line: #e6ddd3; --bg: #f7f4f0; --card: #ffffff; --tint: #f4eaeb;
  --link: #6f202c; --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: #f4eaeb; --h-bg: #f7f4f0; --h-surface: #ffffff;
  color-scheme: light;
}
/* Dark: Quiet Clock's own deep Claret (Quiet design rules "Colours", dark table); the main button is the dark accent
   #B1878D with dark text, links #C8ABAF. */
:root[data-theme="dark"] {
  --primary: #b1878d; --heading: #ffffff; --green: #4f9a5a;
  --ink: #f0eaeb; --muted: #cab9bc; --line: #4b272d; --bg: #261013; --card: #35181c; --tint: #2d1317;
  --link: #c8abaf; --on-primary: #261013;
  --mark: #ffffff; --mark-dot: #4f9a5a;
  --quiet: #a8979a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --h-ink: #ffffff; --h-ink-2: #cab9bc; --h-line: #4b272d; --h-tint: #2d1317; --h-bg: #261013; --h-surface: #35181c;
  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-line); background: var(--h-tint); }
.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-line); background: var(--h-tint); }
details.lang-pop > summary svg { width: 16px; height: 16px; }
details.menu[open] > summary { color: var(--h-ink); background: var(--h-tint); border-color: var(--h-line); }
.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 (Quiet Clock: home, 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; }
.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); }
/* A tidy grid (Robert, 25 Nov 2026: "3 columns and the icons lined up"): 3 equal columns, 2 on tablets, 1 on phones. */
.family-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; align-items: start; }
.family-links > a, .family-links > span { align-items: flex-start; }
.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: 900px) { .family-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .family-links { grid-template-columns: 1fr; } }
bdi[dir="ltr"] { white-space: nowrap; }

/* Home: the opening words next to the store picture of the home screen, then the alarms next to the ringing screen.
   The pictures are the Play store pictures (store-media/phone 01 and 02), 720 x 1280 WebP. */
.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 h1 { margin-top: 0; }
.hero-text > :last-child { margin-bottom: 0; }
.shot { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 18px; justify-self: center; box-shadow: var(--shadow); }
.page > .feature { max-width: 960px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 48px; align-items: center; margin-top: 24px; }
.feature-text h2 { margin-top: 0; }
li { margin: 4px 0; }
/* "Coming soon to Google Play": plain words in a quiet outline, not a link or a store badge (no store page yet). */
.soon { display: inline-block; margin-top: 8px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .page > .hero, .page > .feature { grid-template-columns: 1fr; gap: 24px; }
  .page > .hero { padding-top: 24px; }
  .shot { max-width: 240px; }
}
/* Right-to-left pages: each family name stays in one piece, so its ™ stays after the name (build.mjs wraps names
   in the page text in <bdi>; the family row's names are kept whole here). */
[dir="rtl"] .family-links strong { direction: ltr; unicode-bidi: isolate; text-align: right; }
