/*
 * Camera Grid: the content pages (how it works, pro, download, FAQ, privacy,
 * support), the 404 and search. They share the guides index's head, the
 * numbered sections of a guide page (.gsec, base.css) and the home's
 * components (plans, spec plate, FAQ, stack, coach, phone frame; base.css).
 * Everything is complete at rest; motion is transform and opacity only, and
 * the reduced-motion rule in base.css stops it.
 */

/* The page head (.pg-head) is in base.css: the blog shares it. */

/* A section body holding several blocks (paragraphs, a list, a note). */
.stack-y { display: grid; gap: 20px; align-content: start; }
.pg-steps { padding-bottom: clamp(24px, 4vw, 48px); }
.gsec-body .pg-note { font-size: 16px; color: var(--muted); padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: 14px; }
.pg-fine { margin: 22px 0 0; color: var(--muted); font-size: 14px; }

/* A numbered list of short titled items (the layers, what you get). */
.layers { display: grid; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: l; }
.layers li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; counter-increment: l; }
.layers li::before { content: counter(l, decimal-leading-zero); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2); font: 500 12px var(--mono); color: var(--mint); }
.layers h3 { padding-top: 9px; }
.layers p { margin: 0; color: var(--muted); }

/* ── How it works ────────────────────────────────────────── */
.hw-layers { border-top: 1px solid var(--line); }
.hw-layers .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hw-layers .wrap { grid-template-columns: 1fr; } }

.hw-coach { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.hw-coach-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hw-coach-top { grid-template-columns: 1fr; } }
.says-head { margin: clamp(64px, 8vw, 104px) 0 22px; display: grid; gap: 8px; }
.says-head h3 { font-size: clamp(24px, 2.4vw, 30px); }
.says-head p { margin: 0; color: var(--muted); }
.says { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.says > div { background: var(--ink-2); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.says dt { font: 600 19px/1.25 var(--display); letter-spacing: -.01em; color: var(--amber); }
.says dd { margin: 0; color: var(--muted); font-size: 15px; }
.says .is-lock dt { color: var(--mint); }
/* An odd count leaves the last cell alone: let it span the row. */
.says > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 700px) { .says { grid-template-columns: 1fr; } }

.hw-story .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hw-story .ticks { margin-top: 8px; font-size: 17px; }
@media (max-width: 900px) { .hw-story .wrap { grid-template-columns: 1fr; } .hw-story .phone { order: 2; } }

.hw-device .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.hw-device .prose p:first-child { color: var(--text); }
@media (max-width: 900px) { .hw-device .wrap { grid-template-columns: 1fr; } }

/* ── Pro ─────────────────────────────────────────────────── */
.pro-plans .plan h2 { margin: 0; }
.pro-plans .pg-fine { text-align: center; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.note { border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.note h2 { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.note p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; } }
.terms { margin-top: 18px; border: 1px dashed var(--line-2); border-radius: 22px; padding: 24px; display: grid; gap: 12px; }
.terms p { margin: 0; color: var(--muted); font-size: 15px; max-width: 80ch; }
.terms-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* ── Download ────────────────────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.dl-badge { margin-top: 8px; }
.qr { margin: 0; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 260px; }
.qr-tile { display: block; width: 236px; padding: 8px; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 10px var(--ink-2), 0 0 0 11px var(--line), 0 40px 90px rgba(0, 0, 0, .5); }
.qr-tile img { width: 220px; height: 220px; image-rendering: pixelated; }
.qr figcaption { line-height: 1.7; }
/* A phone has the badge; a code to scan with the same phone is no use there. */
@media (max-width: 700px) { .dl-grid { grid-template-columns: 1fr; } .qr { display: none; } }
.dl-get { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); }
.dl-get .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.dl-get .head { margin-bottom: 0; }
.dl-again { margin-top: 36px; }
@media (max-width: 900px) { .dl-get .wrap { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────── */
/* A question is a heading inside its <summary>; it looks like the summary. */
.faq summary h2, .faq summary h3 { font: inherit; letter-spacing: inherit; margin: 0; text-wrap: pretty; }
.pg-faq-list { margin-bottom: clamp(40px, 6vw, 72px); }
.pg-more { max-width: 860px; border: 1px dashed var(--line-2); border-radius: 22px; padding: 26px; display: grid; gap: 12px; justify-items: start; }
.pg-more h2 { font-size: clamp(24px, 2.4vw, 30px); }
.pg-more p { margin: 0; color: var(--muted); }

/* ── Privacy ─────────────────────────────────────────────── */
.perms { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.perms > div { display: grid; grid-template-columns: 130px 1fr; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.perms dt { font: 500 12px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.perms dd { margin: 0; color: var(--text); font-size: 17px; line-height: 1.6; }
@media (max-width: 560px) { .perms > div { grid-template-columns: 1fr; } }
a.mail { color: var(--mint); text-underline-offset: 3px; }

/* ── Support ─────────────────────────────────────────────── */
.mailcard { margin-bottom: clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(61, 220, 151, .07), var(--ink-2) 70%); display: grid; gap: 12px; justify-items: start; }
.mailcard h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.02; }
.mailcard-text { margin: 0; color: var(--muted); max-width: 44em; }
.mailcard-addr { margin: 10px 0 4px; max-width: 100%; }
.addr { font: 500 clamp(18px, 2.6vw, 30px)/1.3 var(--mono); letter-spacing: -.01em; color: var(--text); user-select: all; -webkit-user-select: all;
  overflow-wrap: anywhere; }
.mailcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.button.copy { background: transparent; cursor: pointer; }
.button.copy[hidden] { display: none; }
.button.copy.is-done { border-color: rgba(61, 220, 151, .6); color: var(--mint); }
.copy-status:empty { display: none; }
.copy-status { color: var(--muted); }

.linklist { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); max-width: 640px; }
.linklist a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; font: 600 19px/1.3 var(--display); letter-spacing: -.01em; transition: color .2s; }
.linklist a span { color: var(--amber); transition: transform .2s var(--ease-out); }
.linklist a:hover { color: var(--mint); }
.linklist a:hover span { transform: translateX(4px); }

/* ── 404: out of frame ───────────────────────────────────── */
.nf { padding-block: clamp(28px, 4vw, 48px) clamp(72px, 10vw, 140px); }
.nf .crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.nf h1 { font-size: clamp(56px, 8vw, 120px); }
.nf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.nf .sform { margin-top: 18px; }
@media (max-width: 900px) { .nf-grid { grid-template-columns: 1fr; } }

/* The viewfinder, in CSS alone: a dusk scene, the thirds, a proposal target drifted off the right edge, the chip, an empty ring. */
.nf-vf { display: grid; justify-items: center; }
.nf-screen { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 4; border-radius: 34px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .42) calc(33.333% - .5px) calc(33.333% + .5px), transparent calc(33.333% + .5px) calc(66.666% - .5px), rgba(255, 255, 255, .42) calc(66.666% - .5px) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(180deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .42) calc(33.333% - .5px) calc(33.333% + .5px), transparent calc(33.333% + .5px) calc(66.666% - .5px), rgba(255, 255, 255, .42) calc(66.666% - .5px) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    radial-gradient(38% 26% at 50% 60%, rgba(233, 165, 107, .55), transparent 70%),
    linear-gradient(180deg, #1b2240 0%, #4a3a5c 42%, #c9855a 60%, #2a2320 61%, #15161c 100%);
  box-shadow: 0 0 0 10px #05060a, 0 0 0 11px var(--line-2), 0 50px 120px rgba(0, 0, 0, .6), 0 0 90px rgba(233, 165, 107, .14); }
.nf-target { position: absolute; left: 80%; top: 22%; width: 36%; aspect-ratio: 1; border: 2px dashed rgba(255, 255, 255, .9); border-radius: 6px;
  animation: nf-drift 5s ease-in-out infinite alternate; }
.nf-chip { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(15, 17, 24, .66); border: 1px solid rgba(255, 255, 255, .14); font: 600 13px var(--body); color: var(--text);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nf-shutter { position: absolute; left: 50%; bottom: 24px; width: 76px; height: 76px; transform: translateX(-50%); border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, .22); display: grid; place-items: center; }
.nf-shutter span { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font: 500 17px var(--mono); color: var(--ink); }
@keyframes nf-drift { to { transform: translate(8%, 6%); } }

/* ── Search ──────────────────────────────────────────────── */
.sform { display: grid; gap: 10px; max-width: 560px; }
.sform-row { display: flex; gap: 10px; }
.sform input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--ink-2); color: var(--text); font: 400 16px var(--body); }
.sform input::placeholder { color: var(--muted); opacity: .8; }
.sform input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sform .button { background: transparent; cursor: pointer; }
.pg-search .pg-head .sform { margin-top: 8px; }
.sr-group { padding-block: 0 clamp(40px, 6vw, 72px); }
.sr-group > h2 { margin-bottom: 20px; }
.pg-search .posts { margin: 0; }
.pg-search .nav-links { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 72px; }
.pg-search .nav-links a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.pg-search > .wrap > .lede { padding-bottom: clamp(72px, 10vw, 140px); }
