/* ============================================================
   NorthPack Studios — shared site styles
   Used by: index.html, <app>/privacy.html
   ============================================================ */

:root {
  --bg:         #060D1A;
  --bg-card:    #09141F;
  --bg-card-hv: #0D1B2A;
  --accent:     #5aabff;
  --accent-dim: rgba(90,171,255,0.09);
  --ring:       #1E3F7A;
  --t1:         #EDF3FF;
  --t2:         #8BA3C7;
  --t3:         #4A6280;
  --border:     rgba(90,171,255,0.10);
  --border-hv:  rgba(90,171,255,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--t1);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 0; top: 0;
  padding: .75rem 1rem;
  background: var(--accent); color: var(--bg);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  border-radius: 0 0 6px 0;
  transform: translateY(-110%);
  transition: transform .2s ease;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); outline: none; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.fade { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade { opacity: 1; transform: none; }
}

/* ---------- Nav (shared) ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,13,26,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logotype { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; line-height: 1; }
.logotype-np {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem; font-weight: 400; letter-spacing: .16em;
  color: var(--t1); text-transform: lowercase;
}
.logotype-st {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: .7rem; font-weight: 400; letter-spacing: .32em;
  color: #1475f5; text-transform: lowercase;
}
.nav-contact, .nav-back {
  font-size: .8125rem; font-weight: 300; color: var(--t2);
  text-decoration: none; transition: color .2s;
}
.nav-contact:hover, .nav-back:hover { color: var(--accent); }

/* ============================================================
   INDEX (landing page)
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 2.5rem 5rem; max-width: 1100px; margin: 0 auto;
}
.eyebrow {
  font-size: .72rem; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .7s ease forwards .15s;
}
.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -0.025em;
  color: var(--t1); max-width: 18ch; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .7s ease forwards .3s;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.0625rem; font-weight: 300; color: var(--t2);
  max-width: 52ch; line-height: 1.8; margin-bottom: 2.75rem;
  opacity: 0; animation: fadeUp .7s ease forwards .45s;
}
/* ---------- Layout helpers ---------- */
.wrap { padding: 5.5rem 2.5rem; max-width: 1100px; margin: 0 auto; }
.divider { width: 100%; height: 1px; background: var(--border); }
.section-label {
  font-size: .68rem; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase; color: var(--t2); margin-bottom: 3rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}

/* ---------- App cards ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.25rem; }
.app-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.25rem 2.5rem;
  position: relative; overflow: hidden; transition: border-color .3s, background .3s;
}
.app-card::after {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,171,255,.4), transparent);
  opacity: 0; transition: opacity .35s;
}
.app-card:hover { border-color: var(--border-hv); background: var(--bg-card-hv); }
.app-card:hover::after { opacity: 1; }
.app-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.app-icon {
  width: 58px; height: 58px; border-radius: 13px; flex-shrink: 0;
  border: 1px solid var(--border-hv);
  overflow: hidden;
}
.app-icon img, .policy-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem; font-weight: 400; letter-spacing: -0.02em; color: var(--t1); line-height: 1.1;
}
.app-cat { font-size: .79rem; font-weight: 300; color: var(--t2); margin-top: .2rem; }
.app-tagline { font-size: .9375rem; font-weight: 300; color: var(--t2); line-height: 1.72; margin-bottom: 1.5rem; }
.features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .5rem; }
.features li { font-size: .875rem; font-weight: 300; color: var(--t2); display: flex; align-items: flex-start; gap: .7rem; }
.check { width: 15px; height: 15px; margin-top: 3px; color: var(--accent); flex-shrink: 0; }
.app-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.badge {
  font-size: .72rem; font-weight: 300; color: var(--t2);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px; padding: .27rem .6rem;
}
.availability {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 400;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--border); border-radius: 6px; padding: .27rem .6rem .27rem .5rem;
  letter-spacing: .01em;
}
.availability::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
}
a.availability { text-decoration: none; transition: background .2s, border-color .2s; }
a.availability:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
a.availability:hover::before { background: #fff; }
.privacy-link {
  font-size: .75rem; font-weight: 300; color: var(--t2);
  text-decoration: none; transition: color .2s;
}
.privacy-link:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5rem; align-items: start; }
.about-h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem); font-weight: 300;
  line-height: 1.2; letter-spacing: -0.025em; color: var(--t1); margin-bottom: 1.5rem;
}
.about-p { font-size: .9375rem; font-weight: 300; color: var(--t2); line-height: 1.8; }
.about-p + .about-p { margin-top: 1rem; }
.stat { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem; font-weight: 300; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: .3rem;
}
.stat-label { font-size: .8rem; font-weight: 300; color: var(--t2); }

/* ---------- Site footer (index) ---------- */
.site-footer {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 2.5rem 3.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.footer-wordmark { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; }
.footer-bottom {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.footer-tagline { font-size: .8rem; font-weight: 300; color: var(--t2); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: .8rem; font-weight: 300; color: var(--t2); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  width: 100%; font-size: .72rem; font-weight: 300; color: var(--t2); line-height: 1.6; text-align: center;
}

/* ============================================================
   POLICY PAGES
   ============================================================ */

main.policy { max-width: 760px; margin: 0 auto; padding: 8rem 2.5rem 5rem; }

.policy-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.policy-icon { width: 52px; height: 52px; border-radius: 11px; overflow: hidden; border: 1px solid var(--border-hv); flex-shrink: 0; }
.policy-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem; font-weight: 400; letter-spacing: -0.02em; color: var(--t1);
}
.policy-cat { font-size: .79rem; font-weight: 300; color: var(--t2); margin-top: .15rem; }

main.policy h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--t1); margin-bottom: .75rem;
}
.updated {
  font-size: .85rem; font-weight: 300; color: var(--t2);
  margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
main.policy section { margin-bottom: 2.5rem; }
main.policy h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.01em;
  color: var(--t1); margin-bottom: .75rem;
}
main.policy p { font-size: .9375rem; font-weight: 300; color: var(--t2); line-height: 1.8; }
main.policy p + p { margin-top: .9rem; }
main.policy a { color: var(--accent); text-decoration: none; }
main.policy a:hover { text-decoration: underline; }

.policy-footer {
  max-width: 760px; margin: 0 auto;
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-link { font-size: .8rem; font-weight: 300; color: var(--t2); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--accent); }
.policy-footer .footer-copy { width: auto; font-size: .72rem; text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  nav { padding: 1rem 1.5rem; }
  .hero { padding: 7.5rem 1.5rem 4rem; }
  .wrap { padding: 4rem 1.5rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .site-footer { padding: 3rem 1.5rem 2.5rem; }
  main.policy { padding: 7rem 1.5rem 4rem; }
  .policy-footer { padding: 2.5rem 1.5rem; }
}


/* ============================================================
   LANDING PAGE REFRESH (2026-06) — index.html only
   Hero atmosphere + product artifact, north-star motif,
   editorial app rows w/ disclosure, light display headings,
   warm aurora, larger stats. Privacy pages are unaffected
   (they use none of these classes).
   ============================================================ */

/* ===== VARIANT 1B: product-led ===== */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.aurora::before {
  width: 60vw; height: 60vw; top: -18vw; left: -10vw;
  background: radial-gradient(circle at 30% 30%, rgba(90,171,255,.34), transparent 62%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora::after {
  width: 52vw; height: 52vw; top: -8vw; right: -14vw; left: auto;
  background: radial-gradient(circle at 70% 30%, rgba(30,63,122,.55), transparent 60%);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 9vw, 0) scale(1.08); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero h1 { animation: none; opacity: 1; }
.kin-line { display: block; overflow: hidden; }
.kin-line .w {
  display: inline-block; transform: translateY(112%);
  animation: kinRise .9s cubic-bezier(.22,.8,.2,1) forwards;
}
@keyframes kinRise { to { transform: translateY(0); } }

/* Two-column hero: copy left, floating artifact right */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 3rem; max-width: 1100px;
}
.hero-copy { display: flex; flex-direction: column; }
.hero-art { position: relative; height: 360px; }

/* Fanned stack of the three real app-icon tiles */
.tile {
  position: absolute; width: 124px; height: 124px; border-radius: 28px;
  overflow: hidden; border: 1px solid var(--border-hv);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
  left: 50%; top: 50%;
  opacity: 0; animation: tileIn .8s cubic-bezier(.22,.8,.2,1) forwards;
  transition: transform .3s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-0 { --x:-150px; --y:-30px; --r:-13deg; animation-delay:.45s; z-index: 1; }
.tile-1 { --x:-62px;  --y:30px;  --r:-1deg; animation-delay:.58s; z-index: 3; }
.tile-2 { --x:34px;   --y:-10px; --r:11deg; animation-delay:.71s; z-index: 2; }
@keyframes tileIn {
  from { opacity: 0; transform: translate(-50%,-50%) translate(var(--x), calc(var(--y) + 24px)) rotate(var(--r)) scale(.94); }
  to   { opacity: 1; transform: translate(-50%,-50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none; }
  .kin-line .w { transform: none; animation: none; }
  .tile { opacity: 1; animation: none; transform: translate(-50%,-50%) translate(var(--x), var(--y)) rotate(var(--r)); }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero-art { height: 220px; order: -1; }
  .tile { width: 92px; height: 92px; }
}

/* ===== VARIANT 2B: north-star / compass mark ===== */
/* The mark, as a recolorable mask (4-point compass star) */
.np-star {
  display: inline-block; background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 C13 9 15 11 24 12 C15 13 13 15 12 24 C11 15 9 13 0 12 C9 11 11 9 12 0 Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 C13 9 15 11 24 12 C15 13 13 15 12 24 C11 15 9 13 0 12 C9 11 11 9 12 0 Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* As the section-label marker */
.section-label { display: flex; align-items: center; gap: .55rem; }
.section-label .np-star { width: .7rem; height: .7rem; background-color: var(--t2); flex-shrink: 0; }
/* Divider with a centered star sitting on the hairline */
.divider {
  height: 28px; background: none; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--border);
}
.divider .np-star {
  width: 13px; height: 13px; position: relative; z-index: 1;
  background-color: var(--accent);
  box-shadow: 0 0 0 7px var(--bg);
  border-radius: 50%;
}

/* ===== VARIANT 3B: editorial rows + ghost numerals (single accent) ===== */
.apps-grid { display: flex; flex-direction: column; gap: 0; }
.app-card {
  background: none; border: none; border-radius: 0; overflow: visible;
  padding: 3.25rem 0; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 0.92fr 1.08fr; column-gap: 4rem; row-gap: 1rem;
  align-items: start; position: relative;
}
.apps-grid > .app-card:first-of-type { border-top: none; padding-top: .5rem; }
.app-header  { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.app-tagline { grid-column: 1; grid-row: 2; margin-bottom: 0; max-width: 34ch; }
.features    { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 1.5rem; }
.app-foot    { grid-column: 2; grid-row: 3; }
/* big faint editorial numeral */
.app-card::before {
  content: "01"; position: absolute; top: 1.25rem; right: 0; pointer-events: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 300;
  font-size: 5rem; line-height: 1; letter-spacing: -.04em;
  color: var(--accent); opacity: .10;
}
.app-card:nth-of-type(2)::before { content: "02"; }
.app-card:nth-of-type(3)::before { content: "03"; }
.app-card::after { display: none; } /* no card hover line in editorial mode */
@media (max-width: 800px) {
  .app-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 2.5rem 0; }
  .app-card::before { font-size: 3.25rem; top: .25rem; }
}

/* ===== VARIANT 4A: editorial scale (on-brand light) ===== */
/* Promote the tiny eyebrow section labels into large light display headings.
   Hierarchy from scale, weight stays light — consistent with the apps. */
.section-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 300; letter-spacing: -0.025em; text-transform: none;
  color: var(--t1);
  border-bottom: none; padding-bottom: 0; margin-bottom: 2.75rem;
  gap: .75rem;
}
.section-label .np-star { width: 1rem; height: 1rem; background-color: var(--accent); }
/* a touch more presence in the hero */
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.25rem); }

/* ===== VARIANT 5B: warmth in atmosphere only (UI stays blue) ===== */
/* Tint the right-side aurora blob warm — a faint sunrise glow.
   No UI element changes color; the warmth lives only in the ground. */
.aurora::after {
  background: radial-gradient(circle at 70% 30%, rgba(227,177,106,0.20), transparent 60%);
}

/* ===== VARIANT 8B: enlarge stats in place ===== */
.stat { padding: 2rem 0; }
.stat-num { font-size: clamp(3rem, 5vw, 4.25rem); letter-spacing: -0.045em; margin-bottom: .5rem; }
.stat-label { font-size: .85rem; line-height: 1.6; }

/* ===== EXTRA: short list + "view all features" disclosure ===== */
/* two independent column stacks so the tagline stays tight under the title,
   regardless of how tall the feature list in the right column gets */
.ed-left, .ed-right { display: flex; flex-direction: column; min-width: 0; }
.ed-left .app-header { margin-bottom: .9rem; }
.ed-left .app-tagline { margin-bottom: 0; }
.ed-right .features { margin-bottom: .25rem; }
.ed-right .app-foot { margin-top: 1.6rem; }
/* kill the leftover card-era hover fill/border — these rows are card-less */
.app-card:hover { background: none; border: none; }

.features-more { border: none; }
.features-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 400; color: var(--accent);
  padding: .35rem 0; transition: gap .2s ease;
}
.features-more > summary::-webkit-details-marker { display: none; }
.features-more > summary:hover { gap: .6rem; }
.features-more > summary .more-chev {
  width: 12px; height: 12px; transition: transform .25s ease;
}
.features-more[open] > summary .more-chev { transform: rotate(180deg); }
.features-more > summary .lbl-less { display: none; }
.features-more[open] > summary .lbl-more { display: none; }
.features-more[open] > summary .lbl-less { display: inline; }
.features-extra { margin-top: .85rem; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .features-more > summary .more-chev { transition: none; } }
/* on mobile the article is already flex-column; wrappers just stack naturally */
