/* Fonts are served from this site (no Google Fonts), so visits aren't shared with anyone. */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

/* CamWatch website. Colours match the app's amber accent. */
:root {
  --ink: #000000;        /* page background: black, like the app */
  --panel: #1c1c1e;      /* raised areas: the dark grey of the app's settings rows */
  --line: #38383a;       /* borders */
  --mist: #ffffff;       /* main text */
  --dim: #98989f;        /* secondary text */
  --amber: #ff9f1c;      /* brand accent */
  --amber-deep: #c97400;
  --ok: #7bd389;
  --warn: #f2c14e;
  --no: #ef7f6c;
  --radius-big: 18px;
  --radius-small: 8px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --osd: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffb84d; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mist); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand:hover { color: var(--mist); }
.app-icon { width: 40px; height: 40px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--line); }
.rec {width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,159,28,.18); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 16px; }
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mist); }

/* "How to use" drop-down: opens on click, never on hover */
.nav { align-items: center; }
.navmenu { position: relative; }
.navmenu summary { list-style: none; cursor: pointer; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.navmenu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.navmenu summary:hover, .navmenu[open] summary, .navmenu.current summary { color: var(--mist); }
.navmenu-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; min-width: 170px;
  display: grid; padding: 8px; border-radius: var(--radius-small);
  background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(0,0,0,.6);
}
.navmenu-list a { padding: 9px 12px; border-radius: 6px; color: var(--mist); }
.navmenu-list a:hover, .navmenu-list a[aria-current="page"] { background: var(--ink); color: var(--amber); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 13ch;
}
.lede { font-size: 20px; color: var(--dim); margin: 0 0 30px; max-width: 34ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--amber); color: #1d1300;
}
.btn:hover { background: #ffb84d; color: #1d1300; }
.btn[aria-disabled="true"] { background: transparent; color: var(--mist); box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.btn-quiet { background: transparent; color: var(--mist); box-shadow: inset 0 0 0 2px var(--line); }
.btn-quiet:hover { background: var(--panel); color: var(--mist); }

/* The camera grid: the one bold thing on the page */
.grid-shot {
  background: #000;
  border-radius: var(--radius-big);
  padding: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px var(--line);
}
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #1c1c1e; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.osd {
  position: absolute; left: 8px; right: 8px; top: 6px;
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--osd); font-size: 11px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.tile .name {
  position: absolute; left: 8px; bottom: 6px;
  font-size: 12px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.tile.live::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--amber);
}

/* Sections */
section { padding: 72px 0; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
.section-intro { color: var(--dim); margin: 0 0 40px; font-size: 19px; }

/* Try before you pay: a real sequence, so it's numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--amber);
  font-weight: 800; font-size: 20px; margin-bottom: 18px;
  box-shadow: inset 0 0 0 2px var(--amber);
}
.steps h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--dim); }
.promise {
  margin: 44px 0 0; padding: 22px 26px; border-radius: var(--radius-small);
  background: var(--ink); border-left: 4px solid var(--amber);
  font-size: 20px; font-weight: 600;
}

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 56px; margin: 0; }
.features dt { font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--dim); }

/* Devices */
.devices { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.devices li { padding: 10px 18px; border-radius: 999px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }

/* Compatibility */
.compat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.compat h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 20px; }
.compat h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.compat .yes h3 { color: var(--ok); }
.compat .maybe h3 { color: var(--warn); }
.compat .no h3 { color: var(--no); }
.compat p { margin: 0; color: var(--dim); }
.compat strong { color: var(--mist); font-weight: 600; }

/* Footer */
.site-foot { padding: 40px 0 56px; color: var(--dim); font-size: 15px; border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--dim); }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Inner pages */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 16px; max-width: 20ch; }
.page-head .lede { max-width: none; }
.prose > * { max-width: none; }
.prose .brand-list { padding-left: 0; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose h3 { font-size: 21px; margin: 32px 0 8px; }
.prose p, .prose li { color: #d1d1d6; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--mist); }
.page-body { padding: 24px 0 80px; }
.note { margin: 32px 0; padding: 18px 22px; border-radius: var(--radius-small); background: var(--panel); border-left: 4px solid var(--amber); }
.note p { margin: 0; }

.tier { margin: 40px 0 0; }
.tier h2 { display: flex; align-items: center; gap: 12px; }
.tier h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: currentColor; flex: none; }
.tier.yes h2 { color: var(--ok); }
.tier.maybe h2 { color: var(--warn); }
.tier.no h2 { color: var(--no); }
.brand-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.brand-list li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.brand-list b { color: var(--mist); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; color: var(--amber); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; }
.faq .answer p:first-child { margin-top: 0; }

.contact-card { display: inline-block; margin: 8px 0 8px; padding: 20px 26px; border-radius: var(--radius-small); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 22px; font-weight: 700; }

.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--mist); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--mist);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-small);
  padding: 12px 14px; width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8e8e93; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: var(--radius-small); font-weight: 600; }
.form-status.ok { background: rgba(123,211,137,.12); color: var(--ok); }
.form-status.bad { background: rgba(239,127,108,.12); color: var(--no); }

/* Inner pages: sections alternate black and grey */
.chunk { padding: 52px 0; }
.chunk .prose > :first-child { margin-top: 0; }
.chunk .prose > :last-child { margin-bottom: 0; }
.chunk .tier { margin-top: 0; }
.chunk .tier h2 { margin-top: 0; }
.chunk.band .note, .chunk.band kbd, .chunk.band .contact-form input, .chunk.band .contact-form select,
.chunk.band .contact-form textarea, .chunk.band .contact-card { background: var(--ink); }
.page-head { padding-bottom: 40px; }

/* How-to guides */
.shot { margin: 30px 0 38px; text-align: center; }
.shot img { margin: 0 auto; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -24px rgba(0,0,0,.7); background: #000; }
.shot.portrait img { width: 300px; max-width: 100%; border-radius: 26px; }
.shot figcaption { margin-top: 12px; font-size: 15px; color: var(--dim); text-align: center; }
.guide-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.guide-switch a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--mist); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 16px; }
.guide-switch a:hover { background: var(--panel); color: var(--mist); }
.guide-switch a[aria-current="page"] { background: var(--amber); color: #1d1300; box-shadow: none; }
.steps-list { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); }
kbd { font-family: var(--osd); font-size: .85em; padding: 1px 7px; border-radius: 5px; background: var(--panel); box-shadow: inset 0 -2px 0 var(--line), 0 0 0 1px var(--line); color: var(--mist); }
.prose code { font-family: var(--osd); font-size: .9em; color: var(--amber); }
.defs { margin: 0; }
.defs dt { font-weight: 700; color: var(--mist); margin-top: 18px; }
.defs dd { margin: 4px 0 0; color: #d1d1d6; }

@media (max-width: 860px) {
  .brand-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 24px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .features, .compat { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .osd { font-size: 9px; }
  .tile .name { font-size: 11px; }
}
