/* Kickstand Cam site. Colours come from the app icon (docs/brand/icon.svg): graphite #1E2430 and
   yellow #FACC15, with the apps' blue accent #2F6FE8 for links. System fonts only, so no visitor
   request leaves this origin. */
:root {
  --bg: #0d1016;
  --bg-2: #141922;
  --panel: #1a202b;
  --panel-2: #212836;
  --line: #2a3242;
  --text: #eef1f6;
  --muted: #a3acbb;
  --faint: #7b8597;
  --yellow: #facc15;
  --yellow-ink: #1e2430;
  --blue: #6b9bff;
  --red: #f87171;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #9dbcff; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--yellow); color: var(--yellow-ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 16, 22, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.08rem; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--panel); }
@media (max-width: 560px) {
  .nav { flex-wrap: wrap; gap: 0; padding-block: 8px; }
  .nav-links { margin-left: 0; width: 100%; justify-content: space-between; }
  .nav-links a { padding: 6px 8px; font-size: .9rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none; font-weight: 650; line-height: 1.2;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { color: var(--text); background: var(--panel-2); border-color: #3a4457; transform: translateY(-1px); }
.btn small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.btn.primary { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.btn.primary small { color: rgba(30, 36, 48, .75); }
.btn.primary:hover { background: #fde047; color: var(--yellow-ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 700px;
  background: radial-gradient(closest-side, rgba(250, 204, 21, .16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 650; font-size: .9rem; letter-spacing: .02em; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(250, 204, 21, .18); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.facts li { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: .88rem; }
.hero-shots { position: relative; min-height: 520px; }
.phone {
  border-radius: 34px; overflow: hidden; border: 1px solid #2c3445;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px #10141b;
  background: #0b0d12;
}
.hero-shots .phone { width: 250px; position: absolute; }
.hero-shots .phone.a { left: 8%; top: 30px; transform: rotate(-5deg); }
.hero-shots .phone.b { right: 6%; top: 0; transform: rotate(4deg); z-index: 1; }
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-shots { min-height: 0; display: flex; justify-content: center; gap: 16px; }
  .hero-shots .phone { position: static; width: min(44%, 220px); transform: none !important; }
}

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.band { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, .05); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.mode .phone { width: 72%; margin: 4px auto 22px; border-radius: 26px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 4px #10141b; }
.mode ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.mode li { margin: .25em 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); margin-bottom: 6px; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } .mode .phone { width: min(60%, 260px); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 24px; } .split.flip > :first-child { order: 0; } }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.window.plain { border: 0; box-shadow: none; background: transparent; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: .6em 0; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(250, 204, 21, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23facc15' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards.four { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: .95rem; }

.download { text-align: center; }
.download .buttons { justify-content: center; margin-top: 8px; }
.download .note { font-size: .88rem; color: var(--faint); margin-top: 18px; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Article pages (setup, privacy, support) */
.page-head { padding: 56px 0 8px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.article { padding: 24px 0 72px; }
.article h2 { font-size: 1.6rem; margin-top: 2em; scroll-margin-top: 90px; }
.article h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.article p, .article li { color: #d3d8e1; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: .4em 0; }
.prose { max-width: 760px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; background: var(--panel); border: 1px solid var(--line); color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: .9rem; }
.toc a:hover { color: var(--text); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin: 0 0 22px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--yellow-ink); font-weight: 800; font-size: .95rem;
}
.steps > li strong { color: var(--text); }
.shot-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; margin: 18px 0 8px; }
.shot-row .phone { width: min(100%, 240px); justify-self: center; border-radius: 28px; }
@media (max-width: 700px) { .shot-row { grid-template-columns: 1fr; } }
figure { margin: 0; }
figcaption { color: var(--faint); font-size: .85rem; margin-top: 8px; text-align: center; }

.callout { border: 1px solid var(--line); border-left: 4px solid var(--yellow); background: var(--panel); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.info { border-left-color: var(--blue); }
.placeholder { background: rgba(248, 113, 113, .14); color: #fecaca; border-radius: 6px; padding: 0 .35em; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 650; list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--faint); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 18px 6px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .06); padding: 36px 0 48px; color: var(--faint); font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
