/* The Netro app page (/netro-app/). Built by build-pages.py app_page().
   The phone screens are the app's own dark palette in BOTH site themes
   (the app looks the same whatever the page does); everything around them
   reads the site tokens from styles.css. Fictional data only. */

.na-store { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 26px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); font-size: .92rem; font-weight: 600; max-width: 100%; }
.na-store-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--accent-text); flex: none; }

/* stages behind the phones */
.na-stage { display: grid; place-items: center; padding: 28px 0; position: relative; }
.na-stage::before { content: ""; position: absolute; inset: 6% 12%; border-radius: 40px; background: radial-gradient(60% 60% at 50% 45%, rgba(28,162,126,.28), rgba(28,162,126,0) 70%); pointer-events: none; }

/* ── the phone ─────────────────────────────────────────── */
.na-phone {
  --np-bg: #0a1310; --np-card: #0f1c18; --np-card-2: #122420; --np-line: #1f3b34;
  --np-ink: #dfeae6; --np-dim: #7e948c; --np-brand: #3cc596; --np-fill: #178669; --np-on-fill: #fff;
  position: relative; margin: 0; width: 272px; max-width: 100%; aspect-ratio: 9 / 18.6;
  border-radius: 42px; padding: 9px; background: #050a08;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset, 0 30px 60px rgba(5,20,15,.35), 0 8px 20px rgba(5,20,15,.2);
}
.na-screen {
  height: 100%; border-radius: 34px; overflow: hidden; background: var(--np-bg); color: var(--np-ink);
  font-family: var(--ff-body); font-size: 12.5px; line-height: 1.35; padding: 0 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.na-status { display: flex; align-items: center; justify-content: space-between; height: 34px; font-size: 12px; font-weight: 700; flex: none; }
.na-notch { width: 78px; height: 22px; border-radius: 12px; background: #000; }
.na-sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.na-sig i { width: 3px; background: var(--np-ink); border-radius: 1px; }
.na-sig i:nth-child(1) { height: 4px; } .na-sig i:nth-child(2) { height: 6px; } .na-sig i:nth-child(3) { height: 8px; } .na-sig i:nth-child(4) { height: 10px; }

.na-top { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 2px 0 2px; }
.na-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #1fa883, #0b4a39); }
.na-back { color: var(--np-brand); font-size: 20px; line-height: 1; }
.na-card { background: var(--np-card); border: 1px solid var(--np-line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.na-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--np-brand); }
.na-big { font-size: 17px; font-weight: 800; margin: 2px 0; }
.na-dim { color: var(--np-dim); }
.na-hint { text-align: center; color: var(--np-dim); margin: 4px 0 0; }
.na-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.na-nums span { display: grid; place-items: center; height: 54px; border-radius: 14px; background: var(--np-card-2); border: 1px solid var(--np-line); font-size: 22px; font-weight: 800; }
.na-nums .is-pick { border-color: var(--np-brand); box-shadow: 0 0 0 2px rgba(60,197,150,.3); color: var(--np-brand); }
.na-bio { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--np-dim); margin-top: auto; }
.na-face { width: 18px; height: 18px; border: 2px solid var(--np-brand); border-radius: 6px; }
.na-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.na-btn { display: grid; place-items: center; height: 40px; border-radius: 12px; background: var(--np-card-2); border: 1px solid var(--np-line); font-weight: 700; }
.na-btn.is-fill { background: var(--np-fill); border-color: var(--np-fill); color: var(--np-on-fill); }

.na-input { background: var(--np-card); border: 1px solid var(--np-line); border-radius: 12px; padding: 10px 12px; font-family: var(--ff-mono); font-size: 12px; }
.na-tabs { display: flex; gap: 4px; background: var(--np-card); border-radius: 10px; padding: 3px; }
.na-tabs span { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; color: var(--np-dim); font-size: 11px; font-weight: 600; }
.na-tabs .is-on { background: var(--np-fill); color: var(--np-on-fill); }
.na-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.na-stats div { background: var(--np-card); border: 1px solid var(--np-line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.na-stats b { font-size: 14px; font-weight: 800; }
.na-stats span { font-size: 10.5px; color: var(--np-dim); }
.na-list { list-style: none; margin: 0; padding: 0 12px; background: var(--np-card); border: 1px solid var(--np-line); border-radius: 14px; }
.na-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--np-line); }
.na-list li:first-child { border-top: 0; }
.na-list span { color: var(--np-dim); white-space: nowrap; }
.na-list b { font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.na-mono b { font-family: var(--ff-mono); font-size: 11.5px; }
.na-sub { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--np-dim); margin-top: 2px; }
.na-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.na-chips span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--np-line); background: var(--np-card); font-size: 11px; }
.na-site { border-color: rgba(60,197,150,.45); }
.na-site b { font-size: 14px; }
.na-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.na-tiles span { display: grid; place-items: center; text-align: center; height: 44px; border-radius: 12px; background: var(--np-card-2); border: 1px solid var(--np-line); font-size: 11px; font-weight: 700; color: var(--np-brand); }

/* ── toolbox section ───────────────────────────────────── */
.na-toolbox { background: var(--bg-soft); }
.na-tool-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.na-tool-grid .lead { margin-top: 14px; }
.na-tools { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.na-tools li { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.na-tools h3 { font-size: 1rem; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.na-tools p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.na-soon { font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); }
.na-pair { display: flex; justify-content: center; gap: 22px; position: relative; padding: 20px 0; }
.na-pair::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 40px; background: radial-gradient(60% 60% at 50% 50%, rgba(28,162,126,.22), rgba(28,162,126,0) 70%); pointer-events: none; }
.na-pair .na-phone + .na-phone { margin-top: 56px; }

@media (max-width: 1100px) {
  .na-tool-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .na-tools { grid-template-columns: 1fr; gap: 18px; }
  .na-pair { flex-direction: column; align-items: center; gap: 28px; }
  .na-pair .na-phone + .na-phone { margin-top: 0; }
  .na-store { font-size: .86rem; border-radius: 18px; }
}

/* ── the hero: the app icon (the Inetro mark), no phone around it ──
   Same motion as the site logo (styles.css ib-* keyframes): plays when the
   page opens, on hover and every 6 s. Nothing moves with reduced motion. */
.na-stage.is-logo { padding: 48px 0; }
.na-logo { margin: 0; position: relative; width: 240px; max-width: 70%; }
.na-logo .inetro-logo { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 26px 40px rgba(5,20,15,.28)); }
@media (prefers-reduced-motion: no-preference) {
  .na-logo .ib-left { animation: ib-left .75s cubic-bezier(.3,1.4,.4,1) .5s, na-ib-left 6s cubic-bezier(.3,1.4,.4,1) 1.25s infinite; }
  .na-logo .ib-right { animation: ib-right .75s cubic-bezier(.3,1.4,.4,1) .56s, na-ib-right 6s cubic-bezier(.3,1.4,.4,1) 1.31s infinite; }
  .na-logo .ib-dot { animation: ib-jump .8s cubic-bezier(.3,.9,.4,1) .6s, na-ib-jump 6s cubic-bezier(.3,.9,.4,1) 1.4s infinite; }
  .na-logo .ib-stem { animation: ib-squash .8s ease-out .6s, na-ib-squash 6s ease-out 1.4s infinite; }
  .na-logo:hover .ib-left { animation: ib-left .75s cubic-bezier(.3,1.4,.4,1); }
  .na-logo:hover .ib-right { animation: ib-right .75s .06s cubic-bezier(.3,1.4,.4,1); }
  .na-logo:hover .ib-dot { animation: ib-jump .8s .1s cubic-bezier(.3,.9,.4,1); }
  .na-logo:hover .ib-stem { animation: ib-squash .8s .1s ease-out; }
}
/* the same moves squeezed into the last 13 % of a 6 s loop (still in between) */
@keyframes na-ib-left { 0%, 87%, 100% { transform: none; opacity: 1; } 91.5% { transform: translate(-12px, 40px); opacity: .4; } 94% { transform: translate(2px, -6px); opacity: 1; } }
@keyframes na-ib-right { 0%, 87%, 100% { transform: none; opacity: 1; } 91.5% { transform: translate(12px, -40px); opacity: .4; } 94% { transform: translate(-2px, 6px); opacity: 1; } }
@keyframes na-ib-jump { 0%, 86.7%, 100% { transform: none; } 88% { transform: translateY(4px) scale(1.12, .82); } 92% { transform: translateY(-46px); } 95.3% { transform: translateY(3px) scale(1.14, .84); } 97.3% { transform: translateY(-12px); } }
@keyframes na-ib-squash { 0%, 86.7%, 100% { transform: none; } 95% { transform: scaleY(.9); } }

/* ── "how it works" on the toolbox screens (assets/netro-app.js adds .is-play
   while a phone is on screen and replays it every 11 s). Without .is-play the
   screen is the sequence's last frame. Check a host: the name is typed, Ping
   is tapped, the replies arrive one by one, then the averages. This network:
   the app looks the site up in Netro IQ, finds it, reads the network facts,
   then Speed test is tapped. ── */
.na-type { display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; max-width: 100%; }
.na-caret { display: none; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -2px; background: var(--np-brand); }
.na-tap { position: relative; overflow: hidden; }
.na-tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255,255,255,.4); opacity: 0; pointer-events: none; }
.na-site { position: relative; min-height: 70px; }
.na-found { display: flex; flex-direction: column; gap: 3px; }
.na-find { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--np-dim); font-weight: 600; opacity: 0; pointer-events: none; }
.na-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--np-line); border-top-color: var(--np-brand); }

@media (prefers-reduced-motion: no-preference) {
  /* Check a host */
  .na-phone.is-play .na-type { animation: na-type 1.5s steps(19) .4s both; }
  .na-phone.is-play .na-caret { display: inline-block; animation: na-blink .5s steps(2) .2s 4, na-gone 0s 2.2s forwards; }
  .na-phone.is-play .na-tabs .na-tap { animation: na-tab-on .25s ease-out 2.4s both; }
  .na-phone.is-play .na-tabs .na-tap::after { animation: na-ripple .6s ease-out 2.3s both; }
  .na-phone.is-play .na-list.na-mono li { animation: na-row .35s ease-out both; }
  .na-phone.is-play .na-list.na-mono li:nth-child(1) { animation-delay: 3s; }
  .na-phone.is-play .na-list.na-mono li:nth-child(2) { animation-delay: 3.7s; }
  .na-phone.is-play .na-list.na-mono li:nth-child(3) { animation-delay: 4.4s; }
  .na-phone.is-play .na-list.na-mono li:nth-child(4) { animation-delay: 5.1s; }
  .na-phone.is-play .na-stats b { animation: na-pop .4s ease-out both; }
  .na-phone.is-play .na-stats div:nth-child(1) b { animation-delay: 5.7s; }
  .na-phone.is-play .na-stats div:nth-child(2) b { animation-delay: 5.85s; }
  .na-phone.is-play .na-stats div:nth-child(3) b { animation-delay: 6s; }
  /* This network */
  .na-phone.is-play .na-find { animation: na-out .3s ease-in 2.4s both; }
  .na-phone.is-play .na-spin { animation: na-turn .8s linear infinite; }
  .na-phone.is-play .na-found { animation: na-in .4s ease-out 2.6s both; }
  .na-phone.is-play .na-site { animation: na-glow 1.2s ease-out 2.6s both; }
  .na-phone.is-play .na-list:not(.na-mono) li { animation: na-row .35s ease-out both; }
  .na-phone.is-play .na-list:not(.na-mono) li:nth-child(1) { animation-delay: 1s; }
  .na-phone.is-play .na-list:not(.na-mono) li:nth-child(2) { animation-delay: 1.2s; }
  .na-phone.is-play .na-list:not(.na-mono) li:nth-child(3) { animation-delay: 1.4s; }
  .na-phone.is-play .na-list:not(.na-mono) li:nth-child(4) { animation-delay: 1.6s; }
  .na-phone.is-play .na-list:not(.na-mono) li:nth-child(5) { animation-delay: 1.8s; }
  .na-phone.is-play .na-list:not(.na-mono) li:nth-child(6) { animation-delay: 2s; }
  .na-phone.is-play .na-tiles .na-tap { animation: na-tile-press .5s ease-out 5.2s both; }
  .na-phone.is-play .na-tiles .na-tap::after { animation: na-ripple .6s ease-out 5.2s both; }
}
@keyframes na-type { from { width: 0; } to { width: 19ch; } }
@keyframes na-blink { 50% { opacity: 0; } }
@keyframes na-gone { to { visibility: hidden; } }
@keyframes na-tab-on { from { background: transparent; color: var(--np-dim); } to { background: var(--np-fill); color: var(--np-on-fill); } }
@keyframes na-ripple { 0% { opacity: 0; } 1% { opacity: .55; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes na-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes na-pop { 0% { opacity: 0; transform: scale(.85); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes na-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes na-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes na-turn { to { transform: rotate(360deg); } }
@keyframes na-glow { 0% { box-shadow: 0 0 0 0 rgba(60,197,150,.5); } 100% { box-shadow: 0 0 0 10px rgba(60,197,150,0); } }
@keyframes na-tile-press { 0%, 100% { transform: none; } 35% { transform: scale(.94); background: rgba(60,197,150,.22); } }
