/* ============================================================
   NativeFoundation — inner pages (services, products, about,
   careers, blog + subpages). Builds on site.css tokens.
   ============================================================ */

/* ── compact page hero ────────────────────────────────────── */
.phero {
  position: relative; overflow: hidden; color: var(--ink);
  min-height: 60vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 56px;
  background:
    radial-gradient(120% 100% at 78% 18%, color-mix(in srgb, var(--hero-glow) 16%, transparent) 0%, transparent 52%),
    linear-gradient(168deg, var(--hero-1) 0%, var(--hero-2) 56%, var(--hero-3) 100%);
}
.phero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(140% 120% at 50% 0%, transparent 58%, rgba(0,0,0,0.34) 100%),
    linear-gradient(180deg, transparent 70%, var(--hero-3) 100%),
    repeating-linear-gradient(180deg, rgba(244,241,233,0.025) 0 1px, transparent 1px 4px);
}
.phero-fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.phero .wrap { position: relative; z-index: 6; width: 100%; }
.phero-top { position: relative; z-index: 6; margin-top: 102px; }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--nf-mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); flex-wrap: wrap; }
.crumbs a { color: var(--faint); transition: color 120ms ease; }
.crumbs a:hover { color: var(--hero-glow); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: color-mix(in srgb, var(--hero-glow) 80%, #fff); }

.phero .eyebrow { margin-bottom: 20px; }
.phero h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 6.6vw, 96px); line-height: 0.92; letter-spacing: -1px;
  margin: 0; color: var(--ink); text-wrap: balance; text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.phero h1 .ital { color: var(--hero-glow); font-style: italic; }
.phero .sub { font-family: var(--nf-sans); font-size: 17px; line-height: 1.62; color: var(--mute); margin: 26px 0 0; max-width: 540px; }
.phero .phero-meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.phero .phero-meta .pm { font-family: var(--nf-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 9px; }
.phero .phero-meta .pm .d { width: 6px; height: 6px; border-radius: 50%; background: var(--hero-glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hero-glow) 26%, transparent); }
@media (max-width: 720px){ .phero { min-height: 64vh; } }

/* ── generic editorial prose (about, blog posts) ──────────── */
.prose { max-width: 720px; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.55em; }
.prose > p + p { margin-top: 1.45em; }
.prose p { font-family: var(--nf-sans); font-size: 16.5px; line-height: 1.74; color: var(--mute); }
.prose > * + h2 { margin-top: 1.9em; }
.prose > * + h3 { margin-top: 1.7em; }
.prose > p + ul, .prose > p + ol { margin-top: 0.9em; }
.prose p .ital { color: color-mix(in srgb, var(--hero-glow) 90%, #fff); font-style: italic; }
.prose h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.4px; color: var(--ink); margin: 56px 0 4px; line-height: 1.04; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); margin: 40px 0 0; letter-spacing: -0.2px; }
.prose ul, .prose ol { margin: 8px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prose li { font-family: var(--nf-sans); font-size: 16px; line-height: 1.6; color: var(--mute); padding-left: 26px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; background: var(--hero-glow); }
.prose blockquote { margin: 8px 0; padding-left: 26px; border-left: 2px solid var(--hero-glow); font-family: var(--display); font-weight: 600; font-size: clamp(20px,2.6vw,28px); line-height: 1.3; color: var(--ink); }
.prose a { color: color-mix(in srgb, var(--hero-glow) 88%, #fff); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose code { font-family: var(--nf-mono); font-size: 0.86em; color: color-mix(in srgb, var(--hero-glow) 86%, #fff); background: var(--panel); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ring); }

/* two-column content: sticky aside + body */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.split .aside { position: sticky; top: 110px; }
.split .aside .akey { font-family: var(--nf-mono); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.split .aside .aval { font-family: var(--nf-sans); font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 0 22px; }
.split .aside .aval strong { color: var(--ink); font-weight: 600; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; gap: 36px; } .split .aside { position: static; } }

/* ── product / item grid ──────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
@media (max-width: 760px){ .cards { grid-template-columns: 1fr; } }
.pcard { position: relative; background: var(--hero-3); padding: 36px 34px 32px; display: flex; flex-direction: column; min-height: 230px; transition: background 200ms ease; }
.pcard:hover { background: color-mix(in srgb, var(--hero-glow) 6%, var(--hero-3)); }
.pcard .pc-num { font-family: var(--nf-mono); font-size: 11px; letter-spacing: 1.4px; color: var(--faint); }
.pcard .pc-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.4px; color: var(--ink); margin: 16px 0 0; line-height: 1; }
.pcard .pc-name em { font-style: normal; color: var(--hero-glow); }
.pcard .pc-tag { font-family: var(--nf-sans); font-size: 14.5px; line-height: 1.55; color: var(--mute); margin: 12px 0 0; }
.pcard .pc-go { margin-top: auto; padding-top: 22px; font-family: var(--nf-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; transition: color 200ms ease, gap 200ms ease; }
.pcard:hover .pc-go { color: var(--hero-glow); gap: 12px; }
.pcard::after { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--hero-glow); transition: width 240ms ease; }
.pcard:hover::after { width: 100%; }

/* ── feature rows (alternating) for subpages ──────────────── */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 0 0 64px; }
.frow:nth-child(even) .frow-art { order: -1; }
@media (max-width: 860px){ .frow { grid-template-columns: 1fr; gap: 28px; } .frow:nth-child(even) .frow-art { order: 0; } }
.frow h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px,3vw,38px); color: var(--ink); margin: 0 0 14px; letter-spacing: -0.3px; line-height: 1.05; }
.frow p { font-family: var(--nf-sans); font-size: 15.5px; line-height: 1.66; color: var(--mute); margin: 0; }
.frow-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--nf-rad-md); overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--ring); }
.frow-art canvas { width: 100%; height: 100%; display: block; }

/* ── spec / capability chips ──────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { font-family: var(--nf-mono); font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--mute); padding: 8px 13px; border-radius: var(--nf-rad-pill); background: var(--panel); box-shadow: inset 0 0 0 1px var(--ring); }

/* ── blog list ────────────────────────────────────────────── */
.posts { border-top: 1px solid var(--hair); }
.post-row { display: grid; grid-template-columns: 150px 1fr 40px; gap: 30px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--hair); position: relative; transition: padding-left 200ms ease; }
.post-row:hover { padding-left: 12px; }
.post-row .pdate { font-family: var(--nf-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.post-row h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px,2.4vw,30px); color: var(--ink); margin: 0 0 8px; letter-spacing: -0.2px; line-height: 1.1; }
.post-row p { font-family: var(--nf-sans); font-size: 14.5px; line-height: 1.55; color: var(--mute); margin: 0; max-width: 560px; }
.post-row .parrow { font-family: var(--nf-mono); font-size: 18px; color: var(--faint); justify-self: end; transition: transform 200ms ease, color 200ms ease; }
.post-row:hover .parrow { transform: translateX(6px); color: var(--hero-glow); }
.post-row .ptag { font-family: var(--nf-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--hero-glow); margin-bottom: 10px; display: inline-block; }
@media (max-width: 720px){ .post-row { grid-template-columns: 1fr; gap: 8px; } .post-row .parrow { display: none; } }

/* ── careers role list ────────────────────────────────────── */
.roles { border-top: 1px solid var(--hair); }
.role { display: grid; grid-template-columns: 1fr auto auto 40px; gap: 26px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--hair); position: relative; transition: padding-left 200ms ease; }
.role:hover { padding-left: 12px; }
.role h3 { font-family: var(--display); font-weight: 600; font-size: clamp(19px,2.2vw,26px); color: var(--ink); margin: 0; letter-spacing: -0.2px; }
.role .rmeta { font-family: var(--nf-mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); }
.role .parrow { font-family: var(--nf-mono); font-size: 18px; color: var(--faint); justify-self: end; transition: transform 200ms ease, color 200ms ease; }
.role:hover .parrow { transform: translateX(6px); color: var(--hero-glow); }
@media (max-width: 720px){ .role { grid-template-columns: 1fr; gap: 6px; align-items: start; } .role .parrow { display: none; } }

/* active nav link */
.nav-links a.active { color: var(--ink); background: rgba(255,255,255,0.07); }

/* ── capabilities grid (service / product subpages) ───────── */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
@media (max-width: 760px){ .caps { grid-template-columns: 1fr; } }
.cap-item { background: var(--hero-3); padding: 28px 30px; }
.cap-item .ci-n { font-family: var(--nf-mono); font-size: 10px; letter-spacing: 1.4px; color: var(--faint); display: block; margin-bottom: 14px; }
.cap-item .ci-name { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.2px; }
.cap-item .ci-desc { font-family: var(--nf-sans); font-size: 14px; line-height: 1.56; color: var(--mute); margin: 0; }

/* simple section intro for inner pages */
.lead { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.4px; color: var(--ink); max-width: 1000px; margin: 0; text-wrap: pretty; }
.lead .mute { color: var(--faint); }
.kicker { font-family: var(--nf-sans); font-size: 16px; line-height: 1.66; color: var(--mute); max-width: 620px; margin: 28px 0 0; }

/* back / next pager */
.pager { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pager a { font-family: var(--nf-mono); font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--nf-rad-sm); background: var(--panel); box-shadow: inset 0 0 0 1px var(--ring); transition: color 160ms ease, transform 160ms ease; }
.pager a:hover { color: var(--hero-glow); transform: translateY(-1px); }

/* ── featured product spotlight (e.g. a live service powered by this product) ── */
.spotlight { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; border-radius: var(--nf-rad-lg); overflow: hidden; background: var(--hero-3); box-shadow: inset 0 0 0 1px var(--ring); transition: transform 220ms cubic-bezier(0.4,0,0.2,1), box-shadow 220ms ease; }
.spotlight::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--hero-glow); z-index: 4; }
.spotlight:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hero-glow) 36%, var(--ring)), 0 40px 80px -40px rgba(0,0,0,0.7); }
.spotlight-body { padding: 48px 46px 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.spotlight-body h2 { font-family: var(--display); font-weight: 700; text-transform: none; font-size: clamp(30px, 3.6vw, 50px); line-height: 0.98; letter-spacing: -0.6px; color: var(--ink); margin: 0; }
.spotlight-body h2 .ital { color: var(--hero-glow); font-style: italic; }
.spotlight-body p { font-family: var(--nf-sans); font-size: 15.5px; line-height: 1.64; color: var(--mute); margin: 0; max-width: 46ch; }
.spotlight-url { font-family: var(--nf-mono); font-size: 12px; letter-spacing: 0.6px; color: var(--faint); display: inline-flex; align-items: center; gap: 9px; }
.spotlight-url .d { width: 6px; height: 6px; border-radius: 50%; background: #6FE39B; box-shadow: 0 0 0 3px color-mix(in srgb, #6FE39B 24%, transparent); }
.spotlight-fx { position: relative; min-height: 300px; background: linear-gradient(150deg, color-mix(in srgb, var(--hero-glow) 8%, var(--hero-2)) 0%, var(--hero-3) 70%); }
.spotlight-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spotlight-fx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-3) 0%, transparent 26%); pointer-events: none; }
@media (max-width: 820px){ .spotlight { grid-template-columns: 1fr; } .spotlight-fx { min-height: 200px; order: -1; } .spotlight-fx::after { background: linear-gradient(0deg, var(--hero-3) 0%, transparent 40%); } .spotlight-body { padding: 36px 30px 34px; } }

/* stylised mock of the doesaichooseyou.com product screen inside the spotlight panel */
.dac-mock { position: absolute; inset: 30px 30px 30px 16px; border-radius: 13px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, #111a29 0%, #0a111d 100%); box-shadow: 0 34px 64px -34px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(255,255,255,0.08); }
.dac-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07); }
.dac-bar .tl { width: 9px; height: 9px; border-radius: 50%; }
.dac-bar .tl.r { background: #ff5f57; } .dac-bar .tl.y { background: #febc2e; } .dac-bar .tl.g { background: #28c840; }
.dac-url { margin-left: 9px; font-family: var(--nf-mono); font-size: 10.5px; letter-spacing: 0.4px; color: var(--faint); }
.dac-screen { flex: 1; padding: 16px 16px 15px; display: flex; flex-direction: column; gap: 12px; }
.dac-q { font-family: var(--nf-mono); font-size: 11px; color: var(--mute); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 9px 11px; }
.dac-q b { color: color-mix(in srgb, var(--hero-glow) 88%, #fff); font-weight: 400; }
.dac-score { display: flex; align-items: center; gap: 13px; }
.dac-ring { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative; background: conic-gradient(var(--hero-glow) 62%, rgba(255,255,255,0.1) 0); }
.dac-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0c1320; }
.dac-ring span { position: relative; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); }
.dac-score-meta strong { display: block; font-family: var(--nf-sans); font-size: 12.5px; color: var(--ink); }
.dac-score-meta em { font-family: var(--nf-mono); font-style: normal; font-size: 10px; letter-spacing: 0.3px; color: var(--faint); }
.dac-models { display: flex; flex-direction: column; gap: 6px; }
.dac-model { display: flex; align-items: center; justify-content: space-between; padding: 7px 11px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); font-family: var(--nf-sans); font-size: 12px; color: var(--mute); }
.dac-model .pill { font-family: var(--nf-mono); font-size: 9px; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.dac-model .pill.yes { color: #6FE39B; background: color-mix(in srgb, #6FE39B 16%, transparent); }
.dac-model .pill.no { color: var(--hero-glow); background: color-mix(in srgb, var(--hero-glow) 18%, transparent); }
@media (max-width: 820px){ .dac-mock { inset: 16px; } }

/* ── bespoke product-screen mock toolkit (used in product feature rows) ── */
.frow-art .scrn { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
.scrn { position: absolute; inset: 18px; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, #0f1826 0%, #0a111c 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); font-family: var(--nf-sans); }
.scrn-top { flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-bottom: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); }
.scrn-top .sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--hero-glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hero-glow) 24%, transparent); }
.scrn-top .stitle { font-family: var(--nf-mono); font-size: 10px; letter-spacing: 0.9px; text-transform: uppercase; color: var(--faint); }
.scrn-top .stag { margin-left: auto; font-family: var(--nf-mono); font-size: 9px; letter-spacing: 0.5px; color: color-mix(in srgb, #6FE39B 82%, #fff); }
.scrn-b { flex: 1; padding: 14px 14px; display: flex; flex-direction: column; gap: 9px; min-height: 0; justify-content: center; }
.scrn .skey { font-family: var(--nf-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.srow { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.srow .sav { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--nf-mono); font-size: 9px; color: #0a111c; background: linear-gradient(135deg, #ffb682, var(--hero-glow)); font-weight: 700; }
.srow .sav.g { background: linear-gradient(135deg, #9be6b6, #4cc585); }
.srow .smain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srow .sname { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .ssub { font-family: var(--nf-mono); font-size: 9px; color: var(--faint); }
.srow .spill { margin-left: auto; flex: none; }
.spill { font-family: var(--nf-mono); font-size: 8.5px; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.spill.ok { color: #6FE39B; background: color-mix(in srgb, #6FE39B 16%, transparent); }
.spill.warn { color: var(--hero-glow); background: color-mix(in srgb, var(--hero-glow) 18%, transparent); }
.spill.mut { color: var(--mute); background: rgba(255,255,255,0.07); }
.sbar-row { display: flex; align-items: center; gap: 9px; }
.sbar-row .sbl { font-size: 11.5px; color: var(--mute); width: 78px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffb682, var(--hero-glow)); }
.sbar-row .sbv { font-family: var(--nf-mono); font-size: 9.5px; color: var(--faint); width: 28px; text-align: right; flex: none; }
.sring { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative; }
.sring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0c1320; }
.sring span { position: relative; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.shead-big { display: flex; align-items: center; gap: 12px; }
.shead-big .scol .st { font-size: 12.5px; color: var(--ink); }
.shead-big .scol .skey { margin-top: 2px; }
.scrn pre { font-family: var(--nf-mono); font-size: 11px; line-height: 1.75; color: var(--mute); margin: 0; white-space: pre-wrap; }
.scrn pre b { color: color-mix(in srgb, var(--hero-glow) 88%, #fff); font-weight: 400; }
.scrn pre i { color: #6FE39B; font-style: normal; }
.sbars { display: flex; align-items: flex-end; gap: 6px; height: 78px; padding-top: 6px; }
.sbars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255,255,255,0.13); }
.sbars i.on { background: linear-gradient(180deg, var(--hero-glow), color-mix(in srgb, var(--hero-glow) 28%, transparent)); }
.snum { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1; }
.scap { font-family: var(--nf-sans); font-size: 11px; color: var(--mute); }
.sgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stile { padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.stile .snum { font-size: 21px; }
.stile .skey { margin-top: 3px; }
