/* The Droid Workshop: site styles. Plain CSS, no build step. */
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/orbitron-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0a0a;
  --bg-2: #0f1110;
  --card: #121413;
  --line: #222826;
  --text: #e4e6e5;
  --muted: #9aa3a0;
  --green: #3ddc84;            /* Android green, carried over from the old site */
  --green-glow: rgba(61, 220, 132, 0.35);
  --teal: #00695c;             /* Chime On Time brand */
  --amber: #ffa000;
  --font-head: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #7cf0b0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.12em; font-size: 0.95rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand .hl { color: var(--green); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: 0.85rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: #161a18; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 104px 0 88px;
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(61, 220, 132, 0.16), transparent 60%),
    linear-gradient(rgba(61, 220, 132, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 132, 0.045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.eyebrow { font-family: var(--font-mono); color: var(--green); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.12; letter-spacing: 0.02em; margin: 0 0 22px; max-width: 18ch; }
.hero h1 .hl { color: var(--green); text-shadow: 0 0 24px var(--green-glow); }
.lede { font-size: 1.15rem; color: #c9cecc; max-width: 60ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; text-decoration: none; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--green); transition: background .2s, color .2s, box-shadow .2s; }
.btn-primary { background: var(--green); color: #04130b; }
.btn-primary:hover { color: #04130b; box-shadow: 0 0 22px var(--green-glow); }
.btn-ghost { color: var(--green); background: transparent; }
.btn-ghost:hover { background: rgba(61, 220, 132, 0.1); color: var(--green); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: 0.04em; margin: 0 0 12px; }
.section-sub { color: var(--muted); margin: 0 0 40px; max-width: 62ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-family: var(--font-mono); font-size: 1rem; margin: 14px 0 8px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(61, 220, 132, 0.1); color: var(--green); }
.card .ico svg { width: 22px; height: 22px; }

/* App feature block */
.app-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; background: linear-gradient(135deg, rgba(0, 105, 92, 0.28), rgba(10, 10, 10, 0.2) 70%); border: 1px solid #1d3a34; border-radius: 20px; padding: 40px; }
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.app-head h3 { font-family: var(--font-head); font-size: 1.5rem; margin: 0; letter-spacing: 0.03em; }
.app-head p { margin: 2px 0 0; color: #a7d9cf; font-family: var(--font-mono); font-size: 0.85rem; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: #ffd28a; background: rgba(255, 160, 0, 0.1); border: 1px solid rgba(255, 160, 0, 0.35); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: #d3d8d6; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(61, 220, 132, 0.15); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.6); }
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(0.45em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.panel { background: rgba(0, 0, 0, 0.35); border: 1px solid #1d3a34; border-radius: var(--radius); padding: 24px; }
.panel h4 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a7d9cf; margin: 0 0 12px; }
.panel ul { margin: 0; padding-left: 18px; color: #c9cecc; font-size: 0.95rem; }
.panel ul li + li { margin-top: 6px; }
.panel + .panel { margin-top: 16px; }
.small { font-size: 0.85rem; color: var(--muted); }

/* Contact strip */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--green); color: var(--text); transform: translateY(-2px); }
.contact-card .label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.contact-card .addr { font-family: var(--font-mono); color: var(--green); font-size: 1.05rem; margin: 6px 0 8px; word-break: break-all; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Document pages (policies, support) ---------- */
.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); background-image: radial-gradient(ellipse at 20% -20%, rgba(61, 220, 132, 0.12), transparent 60%); }
.page-head h1 { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 10px; letter-spacing: 0.03em; line-height: 1.2; }
.page-head p { margin: 0; color: var(--muted); }
.crumbs { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.doc { max-width: 760px; padding: 48px 24px 88px; margin: 0 auto; }
.doc h2 { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; color: var(--text); margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 28px; }
.doc h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.doc p, .doc li { color: #cfd4d2; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: #fff; }
.meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 32px; }
.note { border-left: 3px solid var(--green); background: rgba(61, 220, 132, 0.06); padding: 14px 18px; border-radius: 0 10px 10px 0; color: #cfd4d2; }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound .code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); color: var(--green); text-shadow: 0 0 30px var(--green-glow); line-height: 1; margin: 0 0 10px; }
.notfound h1 { font-family: var(--font-mono); font-weight: 500; font-size: 1.3rem; margin: 0 0 12px; }
.notfound p { color: var(--muted); margin: 0 auto 28px; max-width: 46ch; }
.notfound .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #070707; padding: 40px 0 32px; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand strong { display: block; color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.footer-brand p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid #161a18; font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .app-feature { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; padding-bottom: 8px; }
  .nav { justify-content: flex-start; margin-left: -12px; }
  .nav { gap: 2px; margin-left: -8px; }
  .nav a { padding: 6px 8px; font-size: 0.8rem; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .app-feature { padding: 22px; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
