/* Rislix concept 08c: shared parts of the inner pages. Loaded after styles.css. */

.nav a[aria-current="page"] { background-size: 100% 1px; }

/* ---------- page hero (night) ---------- */
.pg-hero {
  position: relative; overflow: hidden; color: var(--ink-l);
  background: radial-gradient(120% 90% at 80% 0%, #1B3A58 0%, var(--night) 60%);
  padding: calc(var(--head-h) + clamp(56px, 8vw, 110px)) 0 clamp(64px, 9vw, 120px);
}
.pg-hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pg-hero-in.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.pg-hero .kicker { color: var(--lantern); font-weight: 600; font-size: .9375rem; }
.pg-hero h1 {
  margin-top: 14px; font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 3.9vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em; max-width: 22ch;
}
.pg-hero .lede { margin-top: 20px; max-width: 52ch; font-size: 1.0625rem; color: var(--ink-l-soft); }
.pg-hero .hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.pg-hero-art { position: relative; min-height: 320px; }

/* hero line mask reveal, same move as the home page */
.pg-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.pg-hero h1 .ln > span { display: block; animation: lnUp 1.1s var(--ease-out) both; }
.pg-hero h1 .ln + .ln > span { animation-delay: .12s; }

/* ---------- jump links under the hero ---------- */
.jump { position: sticky; top: var(--head-h); z-index: 50; background: rgba(243, 246, 241, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-d); }
.jump ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: inline-block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-d-soft); transition: background-color .25s, color .25s; }
.jump a:hover { background: rgba(16, 32, 48, .06); color: var(--ink-d); }

/* ---------- sections ---------- */
.pg-sec { padding: clamp(80px, 10vw, 140px) 0; }
.pg-sec[data-tone="night"] { background: var(--night); color: var(--ink-l); }
.pg-sec[data-tone="night"] .sec-head p, .pg-sec[data-tone="night"] .copy p { color: var(--ink-l-soft); }
.pg-sec.tint { background: #EAF0EB; }
.pg-sec.paper { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .copy { order: 2; }
.copy h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; max-width: 20ch; }
.copy > p { margin-top: 16px; max-width: 48ch; color: var(--ink-d-soft); }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--verd); border-bottom: 2px solid var(--verd); transform: rotate(-45deg); }
[data-tone="night"] .ticks li::before { border-color: var(--lantern); }

/* ---------- "on the roadmap" marker, easy to strip before launch ---------- */
.soon { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--lantern-d); background: #FCF0D6; }
[data-tone="night"] .soon { color: var(--lantern); background: rgba(242, 181, 68, .14); }

/* ---------- product window ---------- */
.pane {
  position: relative; border-radius: 16px; background: #fff; color: var(--ink-d); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16, 32, 48, .08), 0 40px 80px -40px rgba(16, 32, 48, .45);
}
.pane-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #F4F6F8; border-bottom: 1px solid var(--line-d); font-size: .8125rem; color: var(--ink-d-soft); }
.pane-bar .app-dots i { background: rgba(16, 32, 48, .18); }
.pane-bar b { color: var(--ink-d); font-weight: 600; }
.pane-body { padding: clamp(16px, 2.2vw, 26px); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pill.ok { background: #DDF1EA; color: var(--verd-d); }
.pill.warn { background: #FCF0D6; color: var(--lantern-d); }
.pill.bad { background: #F8DEDB; color: #9E2F28; }
.pill.info { background: #E1EAF3; color: #24496E; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- next pages ---------- */
.next { padding: clamp(64px, 8vw, 100px) 0; background: var(--day); border-top: 1px solid var(--line-d); }
.next ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.next li + li { border-left: 1px solid var(--line-d); }
.next a { display: grid; gap: 6px; padding: 8px 24px 8px 0; text-decoration: none; }
.next li + li a { padding-left: 24px; }
.next b { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.next span { color: var(--ink-d-soft); font-size: .9375rem; }
.next a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 900px) {
  .pg-hero-in, .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .copy { order: 0; }
  .next li + li { border-left: 0; border-top: 1px solid var(--line-d); }
  .next li + li a { padding-left: 0; }
  .next a { padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
}

/* the roadmap badge keeps its own colour inside .copy and .sec-head */
.copy > .soon, .sec-head > .soon { margin-top: 0; color: var(--lantern-d); }
[data-tone="night"] .copy > .soon, .pg-sec[data-tone="night"] .copy > .soon, [data-tone="night"] .sec-head > .soon { color: var(--lantern); }
