/*
 * Copyrighted: the base every page loads, after the inline critical sheet
 * (critical.css: type, the header, the badge, buttons, the breadcrumb and the
 * page head). The footer, the network's app band and the shared components
 * (pills, the certificate card and the drop zone, plans, Learn cards, post cards, the FAQ, the
 * closing call). Page layout is in home.css and the other page sheets. The
 * look is the approved concept's.
 */

/* ── Pills: status chips and small buttons ───────────────── */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(18, 26, 43, .8);
  border: 1px solid var(--line-2); font: 500 12px/1.3 var(--mono); letter-spacing: .06em; color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill i { font-style: normal; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); flex: none; }
button.pill { cursor: pointer; }
button.pill:hover { border-color: var(--gold); }

/* ── The certificate card (the home teaser, the checker) ─── */
.cert { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5); background-image: radial-gradient(circle at 100% 0, rgba(214, 178, 94, .18), transparent 40%); }
.cert::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(176, 138, 60, .5); border-radius: 3px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(176, 138, 60, .35); border-radius: 2px; pointer-events: none; }
.cert-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; position: relative; }
.cert-head .k { font: 500 10.5px/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--paper-muted); overflow-wrap: anywhere; }
.cert-head h3 { font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--serif); margin-top: 6px; color: var(--paper-ink); overflow-wrap: anywhere; }
.cert-seal { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--foil); display: grid; place-items: center;
  font: 700 38px/1 var(--serif); color: #3a2a08; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25), 0 6px 16px rgba(0, 0, 0, .2); }
.cert-status { --c: var(--blank); position: relative; margin: 14px 0 18px; display: inline-flex; gap: 8px; align-items: center; font: 500 12px/1.4 var(--mono);
  padding: 5px 11px; border-radius: 999px; color: color-mix(in srgb, var(--c) 72%, #000); background: color-mix(in srgb, var(--c) 16%, transparent); }
.cert-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.cert-status[data-kind="blank"] { --c: var(--blank); }
.cert-status[data-kind="consistent"] { --c: var(--ok); }
.cert-status[data-kind="conflicting"] { --c: var(--bad); }
.cert-status[data-kind="error"], .cert-status[data-kind="incomplete"] { --c: var(--warn); }
.table-scroll { overflow-x: auto; position: relative; }
.cert table { position: relative; width: 100%; border-collapse: collapse; font: 400 13.5px/1.45 var(--sans); }
.cert th { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); text-align: left;
  padding: 8px 8px 8px 0; border-bottom: 1px solid rgba(29, 27, 22, .15); }
.cert td { color: var(--paper-ink); padding: 9px 8px 9px 0; border-bottom: 1px solid rgba(29, 27, 22, .08); vertical-align: top; overflow-wrap: anywhere; }
.cert tbody th { font: 500 12px/1.45 var(--mono); letter-spacing: 0; text-transform: none; color: var(--paper-muted); width: 110px; border-bottom-color: rgba(29, 27, 22, .08); }
.cert td.none { color: #6f685a; }
.cert .foot { position: relative; margin: 16px 0 0; font: 400 12px/1.5 var(--mono); color: var(--paper-muted); }
.cert .notes { position: relative; margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--paper-muted); }

/* ── The gold button (a page's first action) ─────────────── */
.button-gold { background: var(--foil); color: #2d2006; border-color: transparent; }
.button-gold:hover { color: #2d2006; border-color: transparent; }

/* ── The drop zone (the home teaser, the checker) ──────── */
.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: 22px; padding: 28px; display: grid; gap: 14px; justify-items: start;
  background: var(--ink-2); transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--ink-2)); }
.drop label.btn { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; background: var(--foil); color: #2d2006; font: 600 15px var(--sans);
  padding: 11px 18px; border-radius: 12px; transition: transform .2s var(--ease-out); }
.drop label.btn:hover { transform: translateY(-1px); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop input:focus-visible + p, .drop:focus-within label.btn { outline: 2px solid var(--gold); outline-offset: 3px; }
.drop p { margin: 0; color: var(--muted); font-size: 15px; }
.lock { font: 500 12px/1.4 var(--mono); color: var(--ok); letter-spacing: .04em; }
.cert[aria-busy="true"] { opacity: .7; }

/* ── Plans ───────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 14px; align-content: start; background: var(--ink-2); }
.plan.hot { border-color: rgba(214, 178, 94, .6); background: linear-gradient(180deg, rgba(214, 178, 94, .12), var(--ink-2) 60%); }
.plan .price { font: 700 44px/1 var(--serif); font-variation-settings: "opsz" 144; }
.plan .price small { font: 500 14px var(--sans); color: var(--muted); }
.plan ul { margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { list-style: none; color: var(--muted); font-size: 15px; padding-left: 24px; text-indent: -24px; }
.plan li::before { content: "©"; color: var(--gold); margin-right: 10px; font-family: var(--serif); display: inline-block; width: 14px; text-indent: 0; }
.plan-notes { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--muted); font-size: 13.5px; max-width: 62em; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ── Learn cards ─────────────────────────────────────────── */
.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lc { text-decoration: none; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start;
  background: var(--ink-2); transition: border-color .25s, transform .3s var(--ease-out); }
.lc:hover, .lc:focus-visible { border-color: var(--gold); transform: translateY(-3px); }
.lc .tag { font-size: 10.5px; }
.lc h3 { font-size: 18px; }
.lc p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 960px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .learn-grid { grid-template-columns: 1fr; } }

/* ── Post cards ──────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; }
/* A field note, filed like a print: the photo in a gold hairline frame with the small © seal, and under it an
   ivory mini-label on the certificate's paper (the note's kicker and its reading time), then the title. */
.post { text-decoration: none; display: grid; gap: 16px; align-content: start; color: var(--text); }
.post-print { position: relative; display: grid; margin: 0; }
.post-print .pic { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2);
  border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.post-print .pic::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(243, 219, 152, .35); border-radius: 5px; pointer-events: none; }
.post-print .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post:hover .pic img { transform: scale(1.035); }
.post-seal { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--foil); display: grid;
  place-items: center; font: 700 20px/1 var(--serif); color: #3a2a08; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 6px 14px rgba(0, 0, 0, .35); }
.post-label { position: relative; justify-self: start; max-width: calc(100% - 32px); margin: -18px 0 0 16px; display: flex; flex-wrap: wrap; gap: 2px 14px;
  padding: 8px 12px; border-radius: 3px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  font: 500 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.post-label::before { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(176, 138, 60, .55); border-radius: 2px; pointer-events: none; }
.post-label span + span { color: var(--paper-muted); }
.post-text { display: grid; gap: 10px; align-content: start; }
.post h2, .post h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.post:hover :is(h2, h3) { color: var(--gold-hi); }
.post-text > p:not(.tag) { margin: 0; color: var(--muted); font-size: 15px; }
.post-text > .tag { margin: 0; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; background: var(--ink-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 19px/1.3 var(--serif); 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(--gold); 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; border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0, rgba(214, 178, 94, .10), transparent 60%); }
.final .wrap { display: grid; gap: 24px; justify-items: center; }
.final img.icon { width: 112px; height: 112px; filter: drop-shadow(0 30px 50px rgba(214, 178, 94, .25)); }
.final-text { margin: 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }

/* ── The network's app band (template-parts/app-network.php) ── */
.app-network { border-top: 1px solid var(--line); background: var(--ink-2); padding-block: clamp(48px, 7vw, 88px); }
.app-network-head { display: grid; gap: 8px; margin-bottom: 26px; }
.app-network-title { font: 700 clamp(26px, 3vw, 36px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--text); margin: 0; }
.app-network-intro { margin: 0; color: var(--muted); }
.app-network-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.app-network-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%; padding: 20px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--ink); color: var(--text); text-decoration: none; transition: border-color .25s, transform .3s var(--ease-out); }
.app-network-card:hover, .app-network-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); }
.app-network-card img { width: 52px; height: 52px; border-radius: 13px; }
.app-network-name { font: 600 18px/1.2 var(--serif); }
.app-network-pitch { color: var(--muted); font-size: 14px; line-height: 1.45; }
.app-network-cta { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.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; }
.app-network-chip:hover, .app-network-chip:focus-visible { border-color: var(--gold); }
.app-network-chip img { width: 28px; height: 28px; border-radius: 8px; }
.app-network-arrow { color: var(--gold); }
/* Phones: one card per row, full width, the icon beside the name and pitch
   (a 2-up column would be 170 px, too narrow for a pitch). */
@media (max-width: 560px) {
  .app-network-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-network-card { grid-template-columns: 52px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 6px; padding: 18px; }
  .app-network-card img { grid-row: 1 / span 3; }
  .app-network-name, .app-network-pitch, .app-network-cta { grid-column: 2; }
}

/* ── 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; }
.foot-h { font: 500 11px/1.4 var(--mono); letter-spacing: .18em; 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: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

main.cr-wrap { padding-block: clamp(48px, 8vw, 96px); min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
