/* Shared by every page of the site: the apps overview, each app's page and its privacy policy.
   Calm and businesslike: white and slate, one deep blue accent, light borders instead of colour. */
:root {
  --bg: #ffffff;
  --band: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --accent-soft: #eff4ff;
  --accent-text: #ffffff;
  --dark: #0f172a;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --band: #0f172a;
    --surface: #111a2e;
    --surface-2: #1a2438;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --faint: #7c8aa0;
    --line: #233046;
    --accent: #60a5fa;
    --accent-soft: #15233d;
    --accent-text: #0b1120;
    --dark: #020617;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 5px; font-size: .9em; color: var(--text); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header and footer */
.top-bar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; color: var(--text); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; gap: 24px; font-size: .94rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--faint); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .97rem; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 64px 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.eyebrow img { width: 40px; height: 40px; border-radius: 10px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.035em; font-weight: 750; }
.hero p.lead { font-size: 1.17rem; color: var(--muted); margin: 0 0 28px; max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.status { margin-top: 18px; font-size: .88rem; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }

/* The signal: dits and dahs that light up one after the other */
.signal {
  background: var(--dark); border-radius: 18px; padding: 30px; color: #e2e8f0;
  border: 1px solid #1e293b; box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .6);
}
.signal .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #94a3b8; }
.signal .word { font-size: 2.4rem; font-weight: 700; letter-spacing: .1em; margin-top: 6px; color: #fff; }
.signal .code { display: flex; gap: 10px; align-items: center; margin: 20px 0 16px; flex-wrap: wrap; }
.signal .code span { height: 12px; border-radius: 6px; background: #334155; }
.signal .code .dit { width: 12px; }
.signal .code .dah { width: 40px; }
.signal .code .gap { width: 18px; background: none; }
.signal .note { font-size: .9rem; color: #94a3b8; border-top: 1px solid #1e293b; padding-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .signal .code span:not(.gap) { animation: key 3.6s infinite; }
}
@keyframes key { 0%, 100% { background: #334155; } 4%, 12% { background: #60a5fa; } 16% { background: #334155; } }

/* Sections */
section { padding: 64px 0 0; }
section.band { background: var(--band); border-block: 1px solid var(--line); padding: 64px 0; margin-top: 64px; }
section h2 { font-size: 1.75rem; margin: 0 0 10px; letter-spacing: -.02em; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 1.04rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots figure { margin: 0; }
.shots img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(15, 23, 42, .45); }
.shots figcaption { text-align: center; color: var(--faint); font-size: .9rem; margin-top: 12px; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { background: var(--surface-2); font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.support {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px;
}
.support .mark { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.support .mark svg { width: 24px; height: 24px; }
.support h2 { margin: 0 0 4px; font-size: 1.35rem; }
.support p { margin: 0; color: var(--muted); }

/* App list on the overview page */
.page-title { font-size: clamp(2rem, 4vw, 2.6rem); margin: 56px 0 8px; letter-spacing: -.03em; }
.apps { display: grid; gap: 14px; }
.app-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; text-decoration: none; color: var(--text); transition: border-color .15s; }
.app-card:hover { border-color: var(--faint); }
.app-card img { width: 56px; height: 56px; border-radius: 13px; }
.app-card .go { color: var(--faint); font-size: 1.4rem; }

/* Policy text */
.doc h1 { font-size: 2.1rem; margin: 48px 0 4px; letter-spacing: -.03em; }
.doc h2 { font-size: 1.2rem; margin-top: 36px; }
.doc .date { color: var(--faint); margin-top: 0; }
.doc p, .doc li { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 24px; }
  .grid, .shots { grid-template-columns: 1fr 1fr; }
  .support { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .grid, .shots { grid-template-columns: 1fr; }
  .shots { max-width: 320px; margin: 0 auto; }
  .top nav { display: none; }
  section.band { padding: 48px 0; }
  th, td { padding: 10px 12px; }
}
