/* Calm Glass for the web: system fonts, no external resources. Mobile first, follows the phone's dark mode.
   Neutral colors from the apps' theme tokens; per-app accents (--accent, --fill, --on-fill, --soft) are appended by build.py. */
:root {
  color-scheme: light dark;
  --bg: #F2F2F7; --card: #FFFFFF; --fg: #000000; --muted: #6C6C70;
  --line: rgba(60,60,67,0.18); --glass: rgba(255,255,255,0.72);
  --mark: #FFF3A3; --mark-fg: #3D3200; --warn: #FFF4D6; --warn-fg: #4A3B00;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #1C1C1E; --fg: #FFFFFF; --muted: #AEAEB2;
    --line: rgba(84,84,88,0.6); --glass: rgba(28,28,30,0.72);
    --mark: #5A4A00; --mark-fg: #FFF3C4; --warn: #3A3000; --warn-fg: #FFE8A3;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Header: frosted bar, brand on top, nav as a 3-part segmented control that never wraps */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding: .6rem max(1rem, calc((100% - 42rem) / 2)) .6rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 22%; display: block; }
header.site nav { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(118,118,128,.12); border-radius: 10px; padding: 2px; }
header.site nav a { text-align: center; padding: .35rem .25rem; border-radius: 8px; font-size: .875rem; font-weight: 600; color: var(--fg); text-decoration: none; white-space: nowrap; overflow-wrap: normal; }
header.site nav a[aria-current="page"] { background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

main, footer.site { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
main { padding-top: 1rem; padding-bottom: 2rem; }
footer.site { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 2.5rem; color: var(--muted); font-size: .9rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }

h1 { font-size: 1.85rem; line-height: 1.2; margin: 1rem 0 .5rem; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .5rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: .25rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.note { background: var(--card); border-left: 4px solid var(--accent); padding: .6rem 1rem; margin: 1rem 0; border-radius: 10px; }

/* Draft banner: small, quiet, still obvious */
.draft { background: var(--warn); color: var(--warn-fg); padding: .55rem .8rem; border-radius: 12px; font-size: .85rem; line-height: 1.45; margin: 0 0 1rem; border: 1px solid rgba(201,154,0,.35); }
.draft strong { display: inline-block; background: var(--warn-fg); color: var(--warn); padding: 0 .45em; border-radius: 6px; margin-right: .35em; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }
mark.ph { background: var(--mark); color: var(--mark-fg); padding: 0 .2em; border-radius: 4px; }
mark.ph mark.ph { padding: 0; }

/* Home hero */
.hero { background: var(--card); border-radius: 24px; padding: 1.75rem 1.25rem 1.5rem; text-align: center; box-shadow: var(--shadow); background-image: radial-gradient(120% 60% at 50% 0%, var(--soft), transparent 70%); }
.hero-icon { width: 112px; height: 112px; border-radius: 22.5%; box-shadow: 0 6px 20px rgba(0,0,0,.18); display: block; margin: 0 auto .75rem; }
.hero h1 { margin: .25rem 0 .15rem; font-size: 2rem; }
.tagline { font-size: 1.1rem; color: var(--muted); margin: 0 0 .9rem; font-weight: 500; }
.blurb { margin: 0 auto 1.25rem; max-width: 30rem; }
.store p { margin: 0; }
.store { border: 1.5px dashed var(--line); border-radius: 14px; padding: .75rem; font-size: .95rem; }
.button { display: inline-block; padding: .7rem 1.2rem; border-radius: 14px; background: var(--fill); color: var(--on-fill); text-decoration: none; font-weight: 600; }

/* Home links as an inset grouped list, like iOS Settings */
.links { list-style: none; padding: 0; }
.cards { background: var(--card); border-radius: 16px; margin: 1.25rem 0; overflow: hidden; box-shadow: var(--shadow); }
.cards li { margin: 0; border-top: 1px solid var(--line); }
.cards li:first-child { border-top: 0; }
.cards a { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; color: var(--fg); text-decoration: none; font-weight: 500; }
.cards a::after { content: "\203A"; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.contact { text-align: center; color: var(--muted); font-size: .95rem; }
.contact a { font-weight: 600; }
@media (min-width: 40rem) { h1 { font-size: 2.1rem; } .hero { padding: 2.5rem 2rem 2rem; } }

/* Clockpay accents */
:root { --accent: #4338CA; --fill: #4F46E5; --on-fill: #FFFFFF; --soft: rgba(79,70,229,0.09); }
@media (prefers-color-scheme: dark) { :root { --accent: #A5B4FC; --fill: #A5B4FC; --on-fill: #000000; --soft: rgba(165,180,252,0.14); } }
