/* 3 Point Forward: components for the pages beyond the homepage.
 *
 * Loaded after site.css, which holds the tokens, header, buttons, device
 * frames, footer and motion. This file is the inner-page layer: the navy
 * page-head band, section rhythm, cards, lists, notes, steps, tables, FAQ,
 * the partner band and the legal pages. No build step.
 */

/* ── Page head: a night stage under the header ─────────────────── */
.page-head {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(48px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
  background:
    radial-gradient(1000px 520px at 82% 10%, #1b2d7a 0%, transparent 62%),
    linear-gradient(180deg, #081028, var(--night) 45%, var(--night2));
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.page-head > .wrap { position: relative; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 72px); margin-top: 16px; max-width: 16ch; color: #fff; line-height: 1.02; text-wrap: balance; }
.page-head h1 .gold { color: var(--gold); }
.page-head .lede { margin-top: 22px; max-width: 62ch; color: var(--on-night); font-size: clamp(17px, 1.4vw, 20px); }
.page-head .lede + .lede { margin-top: 14px; }
.page-head .kick { color: var(--gold); }
.page-head .btn-blue { background: var(--gold); color: #14183a; }
.page-head .btn-blue:hover { background: #ffc93d; }
.page-head .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.page-head .btn-ghost:hover { border-color: #fff; color: #fff; }
.page-head .tlink { color: #fff; }
.page-head .tlink:hover { color: var(--gold); }
.page-head .chip { color: #d3daf3; }
.page-head .chip-blue { color: var(--gold); }
.page-head p[style*="muted"] { color: var(--on-night2) !important; }

.crumbs { font-size: 13.5px; color: var(--on-night2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #d3daf3; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }

/* ── Sections ──────────────────────────────────────────────────── */
.sec { padding: clamp(64px, 8vw, 120px) 0; }
.sec-alt { background: var(--white); border-block: 1px solid var(--line); }
.sec p { color: var(--ink2); }

/* Section labels are a gold dot and text, never a chip. */
.kick {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 9px;
  font: 600 13px "Space Grotesk", sans-serif; letter-spacing: 0.04em;
  color: var(--blue);
}
.kick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 54px); margin-top: 14px; color: var(--ink); text-wrap: balance; }
.sec-head .intro { margin-top: 18px; color: var(--ink2); font-size: clamp(16px, 1.3vw, 19px); }
.sec-head h2:first-child { margin-top: 0; }

/* ── Cards and grids ───────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); }

.card {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 6px;
  padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.sec-alt .card { background: var(--paper); }
a.card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 30px 60px -30px rgba(31, 52, 127, 0.45); }
.card h2, .card h3 { font-size: clamp(20px, 1.7vw, 24px); color: var(--ink); }
.card p { color: var(--ink2); font-size: 15.5px; }
.card p[style*="muted"] { color: var(--muted) !important; }
.card .num { font: 700 13px "Space Grotesk", sans-serif; letter-spacing: 0.06em; color: var(--gold-ink); }
.card .tlink { align-self: flex-start; }

/* Chips render as dot labels: same markup, no pill. */
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink2); background: none; border: 0; padding: 0; white-space: normal;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip-blue { color: var(--blue); }
.chip-gold { color: var(--gold-ink); }
a.chip { border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
a.chip:hover { color: var(--blue-br); }
p.chips { gap: 12px 26px; }

/* ── Lists that carry meaning ──────────────────────────────────── */
.ilist { list-style: none; display: grid; gap: 13px; }
.ilist li {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
  color: var(--ink2); font-size: 15.8px;
}
.ilist li::before {
  content: ""; width: 12px; height: 2px; margin-top: 12px; background: var(--gold);
}
.ilist.plain li::before { background: #b9bfcc; }
.ilist.caution li::before { background: var(--warn); width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; }

/* ── Notes ─────────────────────────────────────────────────────── */
.note {
  border: 1.5px solid var(--line); border-left: 4px solid var(--gold);
  background: var(--white); border-radius: 6px; padding: 18px 20px;
  color: var(--ink2); font-size: 15.2px;
}
.sec-alt .note { background: var(--paper); }
.note.caution { border-left-color: var(--warn); background: var(--warn-tint); }
.note strong, .note b { color: var(--ink); }

/* ── Steps ─────────────────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.step {
  counter-increment: s; padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
}
.step::before {
  content: "0" counter(s);
  font: 700 clamp(22px, 2.2vw, 28px) "Space Grotesk", sans-serif; letter-spacing: -0.02em;
  color: var(--gold-ink); line-height: 1.1;
}
.step h3 { font-size: 19px; }
.step p { margin-top: 7px; color: var(--ink2); font-size: 15.5px; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* ── Tables ────────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 6px; background: var(--white); }
table.t { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.2px; }
table.t th, table.t td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font: 600 12.5px "Space Grotesk", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
table.t tr:last-child td { border-bottom: none; }
table.t td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 52px 20px 0; position: relative;
  font: 600 17px "Space Grotesk", sans-serif; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--gold-ink); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .fa { padding: 0 0 22px; color: var(--ink2); font-size: 15.8px; max-width: 72ch; }

/* ── Partner band ──────────────────────────────────────────────── */
.partner { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.partner .p-col { background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; padding: clamp(22px, 2.4vw, 30px); }
.partner .p-col.is-us { background: var(--blue2); border-color: var(--blue2); }
.partner .p-col.is-us h3 { color: #fff; }
.partner .p-col.is-us p { color: #c8d0ef; }
.partner .p-col.is-us .tlink { color: #fff; }
.partner h3 { font-size: 20px; }
.partner p { margin-top: 10px; color: var(--ink2); font-size: 15.5px; }

/* ── Work pages: the live site on a laptop and a phone ─────────── */
.wd-dev { margin-top: clamp(36px, 5vw, 64px); max-width: 980px; }
.wd-cap { margin-top: 26px; font-size: 13.5px; color: var(--on-night2); }
.shot { border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); margin: 0; }
.page-head .shot { border-color: #2a3150; background: #0b0f1c; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.shot .db { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.page-head .shot .db { background: #0b0f1c; border-color: #2a3150; }
.shot .db i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.shot figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.page-head .shot figcaption { color: var(--on-night2); border-color: #2a3150; }
.shotwrap { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.shotwrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
a.card:hover .shotwrap img { transform: scale(1.03); }

/* ── Closing band ──────────────────────────────────────────────── */
.close-band { text-align: left; }
.close-band.night { padding: clamp(80px, 10vw, 140px) 0; }
.close-band.night .sec-head h2 { color: #fff; }
.close-band.night .sec-head .intro { color: var(--on-night); }

/* ── Showcase link band (websites page) ────────────────────────── */
.show-link {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center;
  padding: 22px 24px; border-radius: 6px; background: var(--night); color: #fff;
}
.show-link p { color: var(--on-night) !important; flex: 1 1 280px; margin: 0; }
.show-link b { color: #fff; }

/* ── Legal pages ───────────────────────────────────────────────── */
.legal { max-width: 820px; }
.legal .meta { color: var(--muted); font-size: 14px; }
.legal h2 { font-size: clamp(21px, 2.6vw, 27px); margin: 42px 0 12px; padding-top: 8px; color: var(--ink); }
.legal h2 .n { color: var(--gold-ink); font-size: 15px; margin-right: 10px; font-weight: 700; }
.legal p, .legal li { color: var(--ink2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(31, 52, 127, 0.35); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--blue); }
.legal .note { margin: 0 0 26px; }
.toc { background: var(--white); border: 1.5px solid var(--line); border-radius: 6px; padding: 20px 22px; margin: 0 0 8px; }
.toc h3 { font: 600 13px "Space Grotesk", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 6px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.legal .contact { margin-top: 34px; color: var(--ink2); }

/* Website cards that carry a laptop and a phone. */
.site-card .dev { margin-bottom: 18px; padding-right: 14%; }
.site-card .dev .phone { width: 22%; bottom: -8%; }
