/*
 * Camera Grid: the base every page loads, after the inline critical sheet
 * (critical.css: tokens, type, the header, buttons, the breadcrumb and the
 * page head). The footer and the shared
 * components (guide cards, post cards, plans, the spec plate, the FAQ, the
 * closing call). Page-specific layout is in home.css and the other page
 * sheets. The look is the approved concept's
 * (docs/superpowers/specs/assets/2026-09-28-cameragrid-concept.html).
 *
 * Palette and type are exactly the spec's. Mint means locked, amber means
 * close, white dashed means a proposal. Dark only, by choice.
 */

/* ── Footer ──────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px 64px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-foot p { margin: 12px 0 0; max-width: 26em; }
.site-foot .foot-copy { font-size: 13px; opacity: .8; }
.site-foot .brand { color: var(--text); }
.foot-h { font: 500 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.site-foot ul { margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot li { list-style: none; }
.site-foot a { text-decoration: none; transition: color .2s; }
.site-foot a:hover { color: var(--text); }
@media (max-width: 819.98px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── Guide cards ─────────────────────────────────────────── */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { --c: #fff; position: relative; display: block; text-decoration: none; border-radius: 22px; overflow: hidden; background: var(--ink-2);
  border: 1px solid var(--line); transition: transform .35s var(--ease-out), border-color .3s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: rgba(61, 220, 151, .5); --c: var(--mint); }
.card .pic { position: relative; aspect-ratio: 1; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .4s; }
.card:hover .pic img, .card:focus-visible .pic img { transform: scale(1.04); filter: brightness(.82); }
.card .lines { position: absolute; inset: 0; background: var(--c); -webkit-mask-size: cover; mask-size: cover;
  transition: background .3s; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }
.card:hover .lines, .card:focus-visible .lines { animation: draw .9s cubic-bezier(.3, .7, .2, 1); filter: drop-shadow(0 0 6px rgba(61, 220, 151, .8)); }
@keyframes draw { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
.card .meta { padding: 14px 16px 18px; display: grid; gap: 6px; }
.card .meta .eng { font-size: 10px; letter-spacing: .16em; }
.card .meta p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .pro { position: absolute; top: 12px; right: 12px; font: 600 10px/1.2 var(--mono); letter-spacing: .1em; padding: 4px 8px; border-radius: 7px;
  background: var(--amber); color: #2b1d00; }
.card[hidden] { display: none; }
@media (max-width: 600px) {
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card--grid { border-radius: 18px; }
  .card--grid .meta { padding: 11px 12px 14px; gap: 4px; }
  .card--grid .meta .eng { font-size: 9px; letter-spacing: .12em; }
  .card--grid h3 { font-size: 17px; }
  .card--grid .meta p { font-size: 13px; }
  .card--grid .pro { top: 9px; right: 9px; }
}

/* ── Post cards ──────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.post .pic { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; background: var(--ink-2); }
.post .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post:hover .pic img { transform: scale(1.05); }
.post .post-text { display: grid; gap: 10px; align-content: start; }
.post h2, .post h3 { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; transition: color .2s; }
.post:hover h2, .post:hover h3 { color: var(--mint); }
.post p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }


/* ── The spec plate ──────────────────────────────────────── */
/* The 1 px gap over a line-coloured ground draws every inner rule once, with no doubled edge. */
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line);
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.spec > div { padding: 28px 26px; display: grid; gap: 8px; align-content: start; background: var(--ink); }
.spec dd { margin: 0; display: grid; gap: 8px; }
.spec strong { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.03em; }
.spec p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .spec { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; } }

/* ── Plans ───────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { border: 1px solid var(--line); border-radius: 26px; padding: 30px 28px; display: grid; gap: 14px; align-content: start; background: var(--ink-2); }
.plan.hot { border-color: rgba(242, 177, 52, .55); background: linear-gradient(180deg, rgba(242, 177, 52, .10), var(--ink-2) 60%); }
.plan .price { font: 800 44px/1 var(--display); letter-spacing: -.03em; }
.plan .price small { font: 500 14px var(--body); color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { list-style: none; color: var(--muted); font-size: 15px; }
.plan li::before { content: "—"; color: var(--mint); margin-right: 10px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; background: var(--ink-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 19px/1.3 var(--display); letter-spacing: -.01em;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--amber); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ── The closing call ────────────────────────────────────── */
.final { text-align: center; padding-block: clamp(80px, 10vw, 140px); position: relative; overflow: hidden; }
.final .wrap { display: grid; gap: 26px; justify-items: center; }
.final img.icon { width: 112px; height: 112px; filter: drop-shadow(0 30px 50px rgba(233, 165, 107, .3)); }


/* A line of copy under the closing call's headline. */
.final-text { margin: 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }

/* ── Shared page pieces (the home, the guide pages, the content pages) ── */
/* Running copy. Before .gsec-body, so a guide page's .gsec-body.prose keeps the section's own type. */
.prose { max-width: 65ch; }
.prose p { margin: 0 0 1.1em; color: var(--muted); font-size: 18px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }

/* A numbered section: an engraved number and heading beside ~65ch of copy (stacked < 900 px). */
.gsec { display: grid; gap: 18px 48px; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .gsec { grid-template-columns: minmax(0, 300px) minmax(0, 65ch); } }
.gsec-head { display: grid; gap: 10px; align-content: start; }
.gsec-head .eng { color: var(--mint); }
.gsec-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.02; }
.gsec-body { max-width: 65ch; }
.gsec-body p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text); }

/* Lists: a mint tick for what is so, an amber dash for what to avoid. ul only: the home ruler has a div.ticks. */
ul.ticks, ul.misses { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 18px; line-height: 1.6; }
.ticks li, .misses li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.misses li { color: var(--muted); }
.misses li::before { content: ""; position: absolute; left: 1px; top: .78em; width: 14px; height: 2px; background: var(--amber); }

/* The three screen layers that come apart in 3D (home.js sets --p; at rest, exploded). */
.stack { --p: 1; position: relative; height: clamp(460px, 56vw, 640px); perspective: 1800px; display: grid; place-items: center; }
.stack .plate { position: absolute; width: min(56%, 270px); aspect-ratio: 640 / 1391; border-radius: 26px; overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--p) * 58deg)) rotateZ(calc(var(--p) * -24deg)) translateZ(calc(var(--z) * var(--p) * 150px));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, calc(var(--p) * .35)), 0 30px 60px rgba(0, 0, 0, .45); }
.stack .plate img { width: 100%; height: 100%; object-fit: cover; }
.stack .plate.guide { background-color: rgba(255, 255, 255, calc(var(--p) * .04)); box-shadow: 0 0 0 2px rgba(61, 220, 151, calc(var(--p) * .5)); }

/* The coach's instructions, lit one at a time by home.js; at rest the lock is lit. The phone frame round a capture.
   The unlit ones are dimmed, not faded out: at .5 they keep 4.7:1 on ink-2 (AA at any size), and the lit one still
   stands apart by its colour, its glowing dot and its step to the right. */
.tips { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.tips li { display: flex; align-items: center; gap: 14px; font: 600 clamp(22px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em;
  color: rgba(238, 241, 246, .5); transition: color .4s, transform .4s; }
.tips li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.tips li.on { color: var(--amber); transform: translateX(8px); }
.tips li.on::before { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.tips li.lock.on { color: var(--mint); }
.tips li.lock.on::before { background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.phone { width: min(100%, 270px); margin-inline: auto; border-radius: 44px; padding: 10px; background: #05060a;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px rgba(0, 0, 0, .55); }
.phone img { border-radius: 35px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
main.cg-wrap { padding-block: clamp(48px, 8vw, 96px); min-height: 50vh; }

/* The network's app band, above the footer (template-parts/app-network.php). */
.app-network { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); background: var(--ink-2); }
.app-network-head { display: grid; gap: 8px; margin-bottom: 28px; }
.app-network-title { font: 800 clamp(26px, 3vw, 36px)/1.05 var(--display); letter-spacing: -.03em; color: var(--text); margin: 0; text-wrap: balance; }
.app-network-intro { margin: 0; color: var(--muted); font-size: 16px; }
.app-network-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.app-network-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%; padding: 22px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--ink); color: var(--text); text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.app-network-card:hover, .app-network-card:focus-visible { transform: translateY(-3px); border-color: rgba(61,220,151,.5); }
.app-network-card img { width: 56px; height: 56px; border-radius: 14px; }
.app-network-name { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; }
.app-network-pitch { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.app-network-cta { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.app-network--compact { padding-block: 32px; }
.app-network--compact .app-network-head { margin-bottom: 16px; }
.app-network--compact .app-network-title { font: 500 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.app-network--compact .app-network-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.app-network-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s; }
.app-network-chip:hover, .app-network-chip:focus-visible { border-color: rgba(61,220,151,.5); background: rgba(61,220,151,.06); }
.app-network-chip img { width: 28px; height: 28px; border-radius: 8px; }
.app-network-arrow { color: var(--mint); }
@media (prefers-reduced-motion: reduce) { .app-network-card { transition: none; } .app-network-card:hover { transform: none; } }
