/* NIVIRUN homepage, Hybrid V2. Loaded only by views/home.ejs. The visual system:
   docs/brand/concepts/identity.html. Blue only means Connect, orange only Report. */
html, body { background: #F7F1E7; }
.v2 {
  --paper: #F7F1E7; --stage: #EEE3D0; --ink: #16191F; --mute: #625A4E; --line: #E0D5C2;
  --connect: #1F5BD8; --connect-tint: #E2E9F6;
  --report: #E2761B; --report-tint: #F6E4CF; --report-text: #B5530A; /* text orange: 4.6:1 on paper */
  --navy: var(--ink); --brand: var(--connect); --accent: var(--ink); --muted: var(--mute);
  background: var(--paper); color: var(--ink); font: 400 17px/1.55 Sora, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.v2 h1, .v2 h2, .v2 h3 { margin: 0; font-family: Sora, system-ui, sans-serif; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; color: var(--ink); }
.v2 p { margin: 0 0 12px; }
.v2 a { color: inherit; }
.v2 a:focus-visible, .v2 .btn:focus-visible, .v2 summary:focus-visible, .v2 button:focus-visible { outline: 3px solid var(--connect); outline-offset: 3px; border-radius: 6px; }
.v2 .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; letter-spacing: -.01em; }
.v2 .wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.v2 img { display: block; max-width: 100%; height: auto; }
.v2 .tapmark { width: .5em; height: .72em; vertical-align: .02em; margin-left: .08em; }
.v2 .tapmark.sm { width: 14px; height: 20px; margin: 0; vertical-align: -4px; }

/* buttons */
.v2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: #fff; font: 700 16px/1 Sora, sans-serif; padding: 17px 24px; border-radius: 14px; border: 0; text-decoration: none; min-height: 48px; }
.v2 .btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.v2 .btn.block { width: 100%; }

/* nav */
.v2 .nav { max-width: 1280px; margin: 0 auto; padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; }
.v2 .nav .logo img { height: 30px; width: auto; }
.v2 .nav .links { display: flex; gap: 26px; align-items: center; font-weight: 500; font-size: 15px; }
.v2 .nav .links a { text-decoration: none; }
.v2 .nav .links a:not(.btn):hover { text-decoration: underline; }
.v2 .nav .btn { padding: 12px 18px; font-size: 15px; min-height: 44px; }
.v2 .nav .signin { color: var(--mute); }

/* hero: the promise in words, the two real tags beside it */
.v2 .hero { max-width: 1280px; margin: 0 auto; padding: 30px 48px 88px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; background: none; }
.v2 .eyebrow { font: 700 13px/1 Sora; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 26px; }
.v2 .hero h1 { font-size: 80px; line-height: 1.08; letter-spacing: -.045em; } /* room for the descender in "Tap" above "Wi-Fi" */
.v2 .hero h1 .tap { white-space: nowrap; }
.v2 .hero h1 .c { color: var(--connect); white-space: nowrap; }
.v2 .hero h1 .r { color: var(--report-text); }
.v2 .sub { font-size: 21px; line-height: 1.45; color: #3A352E; max-width: 32ch; margin: 28px 0 30px; }
.v2 .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.v2 .price-line { margin: 22px 0 0; font-size: 15px; color: var(--mute); }
.v2 .price-line .mono { color: var(--ink); }
.v2 .photo { margin: 0; overflow: hidden; border-radius: 24px; background: var(--stage); }
.v2 .photo img, .v2 .photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2 .hero-photo { aspect-ratio: 1 / 1; border-radius: 32px; width: 100%; justify-self: stretch; }

/* where it lives */
.v2 .place-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: stretch; }
.v2 .s-place .photo { aspect-ratio: 4 / 3; }
.v2 .why { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: 6px; }
.v2 .why .big { font-size: 24px; line-height: 1.35; margin: 0; max-width: 22ch; }
.v2 .who { display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 18px; }
.v2 .who b { display: block; font-weight: 700; } .v2 .who span { color: var(--mute); font-size: 15px; }

/* sections */
.v2 section { padding: 104px 0 0; }
.v2 .s-place { padding-top: 0; }
.v2 section h2 { font-size: 60px; margin-bottom: 14px; }
.v2 .intro { color: var(--mute); font-size: 19px; max-width: 42ch; margin: 0 0 40px; }
.v2 .fine { color: var(--mute); font-size: 14px; margin: 12px 0 0; }
.v2 .center { text-align: center; }

/* products: the object on its stage, then what it does */
.v2 .prod { border: 0; padding: 0; display: grid; grid-template-columns: 1.05fr .95fr; border-radius: 32px; overflow: hidden; margin-bottom: 28px; }
.v2 .prod.connect { background: var(--connect-tint); }
.v2 .prod.report { background: var(--report-tint); grid-template-columns: .95fr 1.05fr; }
.v2 .prod.report .obj { order: 2; }
.v2 .prod .obj { display: flex; align-items: center; justify-content: center; padding: 40px; min-height: 520px; }
.v2 .prod .obj img { width: min(78%, 420px); filter: drop-shadow(0 30px 28px rgba(40,30,10,.25)) drop-shadow(0 5px 7px rgba(40,30,10,.18)); }
.v2 .prod .txt { padding: 52px 48px; display: flex; flex-direction: column; background: rgba(255,255,255,.55); }
.v2 .ask { align-self: flex-start; position: relative; border: 3px solid currentColor; border-radius: 14px; padding: 6px 14px 7px; font: 800 18px/1.1 Sora; background: #fff; margin: 0 0 4px; }
.v2 .ask::after { content: ""; position: absolute; left: 18px; bottom: -11px; width: 14px; height: 14px; background: #fff; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: skewY(30deg) rotate(45deg); }
.v2 .connect .ask { color: var(--connect); } .v2 .report .ask { color: var(--report-text); }
.v2 .prod h3 { font-size: 60px; margin: 24px 0 10px; }
.v2 .band { align-self: flex-start; background: var(--ink); color: #fff; font: 800 12px/1 Sora; letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; margin: 0; }
.v2 .lead { font-size: 20px; line-height: 1.42; margin: 18px 0 18px; max-width: 28ch; }
.v2 .prod ul { list-style: none; padding: 0; margin: 0 0 28px; }
.v2 .prod li { padding: 11px 0; border-top: 1px solid rgba(22,25,31,.12); font-size: 16px; }
.v2 .buy { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v2 .price { font-size: 30px; margin-right: auto; }
.v2 .price small { display: block; font: 500 13px Sora; color: var(--mute); letter-spacing: 0; }
.v2 .bundle { display: grid; grid-template-columns: auto 1fr auto auto; gap: 32px; align-items: center; background: #fff; border-radius: 28px; padding: 26px 36px; border: 2px solid var(--ink); }
.v2 .bundle .duo { display: flex; }
.v2 .bundle .duo img { width: 100px; filter: drop-shadow(0 10px 12px rgba(40,30,10,.25)); }
.v2 .bundle .duo img + img { margin-left: -22px; transform: rotate(6deg); }
.v2 .bundle h3 { font-size: 32px; } .v2 .bundle p { margin: 4px 0 0; color: var(--mute); }
.v2 .bundle .price { font-size: 32px; margin: 0; }
.v2 .bundle .price small { font: 700 12px Sora; letter-spacing: .12em; text-transform: uppercase; }

/* in real life */
.v2 .moments { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.v2 .moments .photo { aspect-ratio: 4 / 5; position: relative; }
.v2 .moments figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(247,241,231,.94); color: var(--ink); padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 600; }

/* try it: on a phone, buttons open the real pages; the QR codes are for a big screen */
.v2 .try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.v2 .trycard { border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; }
.v2 .trycard.connect { background: var(--connect-tint); } .v2 .trycard.report { background: var(--report-tint); }
.v2 .trycard h3 { font-size: 30px; margin-bottom: 8px; } .v2 .trycard p { color: #3A352E; }
.v2 .trycard .qr { display: block; background: #fff; border-radius: 16px; padding: 10px; }
.v2 .trycard .qr svg { display: block; width: 100%; height: auto; }
.v2 .compat { margin: 24px 0 0; font-size: 15px; color: #3A352E; max-width: 70ch; }

/* packaging: the seals live here, because that's where they really are */
.v2 .pack-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.v2 .s-pack ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.v2 .s-pack li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: #fff; border-radius: 20px; padding: 16px 20px; }
.v2 .s-pack li img { width: 96px; height: auto; } .v2 .s-pack li img.round { border-radius: 50%; }
.v2 .s-pack .seal.blue { display: block; width: 96px; height: 96px; border-radius: 50%; background: #2D6BFF; overflow: hidden; }
.v2 .s-pack .seal.blue img { mix-blend-mode: multiply; width: 96px; }
.v2 .s-pack li b { display: block; font-weight: 700; } .v2 .s-pack li span { color: var(--mute); font-size: 15px; }

/* order: exactly how it works today */
.v2 .order-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.v2 .how { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.v2 .how li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.v2 .how li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 15px/36px Sora; text-align: center; }
.v2 .how b { display: block; } .v2 .how span { color: var(--mute); font-size: 15px; }
.v2 .order-panel { background: #fff; border-radius: 28px; padding: 30px; box-shadow: none; border: 0; }
.v2 .pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2 .pick.two { grid-template-columns: 1fr 1fr; }
.v2 legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.v2 legend .opt { font-weight: 400; color: var(--mute); }
.v2 .pick-card span { border: 2px solid var(--line); border-radius: 16px; padding: 14px; }
.v2 .pick-card b { color: var(--ink); } .v2 .pick-card em { color: var(--ink); font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.v2 .pick-card input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.v2 .pick-card input:focus-visible + span { outline: 3px solid var(--connect); outline-offset: 2px; }
.v2 .pick-card.wide { grid-column: 1 / -1; }
.v2 .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-bottom: 4px; }
.v2 .dot.c { background: var(--connect); } .v2 .dot.r { background: var(--report); } .v2 .dot.both { background: linear-gradient(90deg, var(--connect) 50%, var(--report) 50%); }
.v2 .chips { border: 0; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.v2 .chip { padding: 0; border: 0; background: none; }
.v2 .chip input { position: absolute; opacity: 0; }
.v2 .chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: 14px; background: #fff; cursor: pointer; }
.v2 .chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.v2 .chip input:focus-visible + span { outline: 3px solid var(--connect); outline-offset: 2px; }
.v2 .qty-row { color: var(--ink); } .v2 .qty-row .total { font-size: 22px; }
.v2 .stepper { border: 2px solid var(--line); border-radius: 14px; }
.v2 .stepper button, .v2 .stepper input { color: var(--ink); }
.v2 .field label { color: #4A443B; font-size: 14px; }
.v2 .field input, .v2 .field textarea, .v2 select { font: inherit; font-size: 16px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; background: #fff; color: var(--ink); box-sizing: border-box; }
.v2 .field input:focus, .v2 .field textarea:focus, .v2 select:focus { outline: 3px solid var(--connect); outline-offset: 1px; border-color: var(--ink); }
.v2 details.more { margin: 4px 0 6px; } .v2 details.more summary { color: var(--mute); font-size: 14px; }
.v2 details.more select { margin-top: 8px; }
.v2 .order-panel .btn.block { margin-top: 14px; padding: 19px; font-size: 17px; }
.v2 .thanks .big { background: var(--connect-tint); color: var(--connect); }

/* footer */
.v2 .foot { padding: 0; margin-top: 110px; border-top: 2px solid var(--ink); background: none; }
.v2 .foot-row { display: flex; align-items: center; gap: 24px; padding-top: 36px; padding-bottom: 52px; font-size: 14px; color: var(--mute); flex-wrap: wrap; }
.v2 .foot .sign { font: 800 22px Sora; color: var(--ink); letter-spacing: -.02em; }
.v2 .foot img { height: 24px; width: auto; }
.v2 .foot .fl { margin-left: auto; } .v2 .foot a { color: var(--ink); }

@media (max-width: 820px) {
  .v2 { font-size: 16px; }
  .v2 .wrap, .v2 .nav, .v2 .hero { padding-left: 20px; padding-right: 20px; }
  .v2 .nav { padding-top: 14px; padding-bottom: 8px; }
  .v2 .nav .logo img { height: 24px; }
  .v2 .nav .links a:not(.btn) { display: none; }
  .v2 .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 14px; padding-bottom: 56px; }
  .v2 .hero-photo { order: -1; border-radius: 24px; }
  .v2 .eyebrow { font-size: 11px; margin: 14px 0 14px; }
  .v2 .hero h1 { font-size: 44px; }
  .v2 .sub { font-size: 17px; margin: 18px 0 22px; }
  .v2 .btn { padding: 15px 20px; font-size: 15px; }
  .v2 .place-grid, .v2 .moments, .v2 .try-grid, .v2 .pack-grid, .v2 .order-wrap { grid-template-columns: 1fr; }
  .v2 .s-place .photo { aspect-ratio: 4 / 5; }
  .v2 .why .big { font-size: 20px; }
  .v2 section { padding-top: 72px; }
  .v2 section h2 { font-size: 38px; }
  .v2 .intro { font-size: 17px; margin-bottom: 26px; }
  .v2 .prod, .v2 .prod.report { grid-template-columns: 1fr; border-radius: 26px; }
  .v2 .prod.report .obj { order: 0; }
  .v2 .prod .obj { min-height: 0; padding: 30px 20px 10px; }
  .v2 .prod .obj img { width: 64%; }
  .v2 .prod .txt { padding: 26px 22px 28px; }
  .v2 .prod h3 { font-size: 42px; }
  .v2 .lead { font-size: 18px; }
  .v2 .bundle { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .v2 .trycard { grid-template-columns: 1fr; padding: 24px; }
  .v2 .trycard .qr { display: none; } /* on a phone, scanning a code on the same phone isn't possible: the buttons open it */
  .v2 .pick { grid-template-columns: 1fr; }
  .v2 .order-panel { padding: 22px; }
  .v2 .foot .fl { margin-left: 0; }
}

/* ---- fixes that hold at every width ---- */
/* site.css also has a .stepper (the order progress pills) that wraps; the quantity stepper must stay one row */
.v2 .stepper { display: flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; background: #fff; }
.v2 .stepper button { width: 46px; height: 46px; flex: none; }
.v2 .stepper input { width: 52px; height: 46px; flex: none; }
/* a selected choice gets a filled check, not only a darker border */
.v2 .pick-card span { position: relative; }
.v2 .pick-card input:checked + span { background: #FBF7EF; }
.v2 .pick-card input:checked + span::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 13px/24px Sora, sans-serif; text-align: center; }

/* ---- phones and small tablets ---- */
@media (max-width: 820px) {
  /* nav: logo + Order on the first row, the four links on a second row with 44 px targets */
  .v2 .nav { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; row-gap: 8px; padding-bottom: 0; }
  .v2 .nav .logo { grid-column: 1 / 3; }
  .v2 .nav .links { display: contents; }
  .v2 .nav .links .btn { grid-column: 3 / 5; grid-row: 1; justify-self: end; }
  .v2 .nav .links a:not(.btn) { display: flex; grid-row: 2; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: 600; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .v2 .nav .signin { color: var(--mute); }

  /* hero: headline, then the tags, then what it is and the two buttons */
  .v2 .hero { gap: 0; padding-top: 22px; }
  .v2 .hero-copy { display: contents; }
  .v2 .eyebrow { order: 1; margin: 0 0 14px; }
  .v2 .hero h1 { order: 2; }
  .v2 .hero-photo { order: 3; margin-top: 24px; aspect-ratio: 5 / 4; }
  .v2 .sub { order: 4; max-width: none; margin: 22px 0 20px; }
  .v2 .ctas { order: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .v2 .ctas .btn { width: 100%; padding-left: 12px; padding-right: 12px; }
  .v2 .price-line { order: 6; margin-top: 16px; }

  /* products: price on its own line, two equal buttons under it */
  .v2 .prod .obj img { width: min(64%, 280px); }
  .v2 .prod li { font-size: 16px; }
  .v2 .buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .v2 .buy .price { grid-column: 1 / -1; margin: 0 0 6px; }
  .v2 .buy .btn { width: 100%; }
  .v2 .bundle .btn { width: 100%; }

  /* real life: one photo per row, captions inside */
  .v2 .moments { gap: 20px; }
  .v2 .moments figcaption { font-size: 16px; }

  /* try it: full-width buttons, no QR codes */
  .v2 .trycard .btn { width: 100%; }
  .v2 .compat { font-size: 16px; }

  /* arrives ready: each item a full-width card, picture above the words */
  .v2 .s-pack ol { gap: 16px; }
  .v2 .s-pack li { grid-template-columns: 1fr; gap: 14px; padding: 22px; justify-items: start; }
  .v2 .s-pack li img { width: 112px; } .v2 .s-pack li img[src*="bundle"] { width: 136px; }
  .v2 .s-pack .seal.blue, .v2 .s-pack .seal.blue img { width: 112px; height: 112px; }
  .v2 .s-pack li b { font-size: 19px; margin-bottom: 4px; }
  .v2 .s-pack li span { font-size: 16px; line-height: 1.5; }

  /* order: the steps, then the form; every field full width */
  .v2 .order-wrap { gap: 28px; }
  .v2 .how span { font-size: 16px; }
  .v2 .order-panel { padding: 22px 18px; border-radius: 24px; }
  .v2 .pick-card span { padding: 16px 44px 16px 16px; }
  .v2 .pick-card small { font-size: 14px; }
  .v2 .pick.two { grid-template-columns: 1fr; }
  .v2 legend { font-size: 16px; }
  .v2 .chip span { padding: 11px 16px; font-size: 15px; min-height: 44px; box-sizing: border-box; }
  .v2 .qty-row { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 4px 0 20px; }
  .v2 .qty-row > span:first-child { grid-column: 1 / -1; font-size: 16px; }
  .v2 .order-wrap > * { min-width: 0; }

  .v2 .row { flex-direction: column; align-items: stretch; gap: 0; }
  .v2 .row .field { min-width: 0; width: 100%; }
  .v2 .field { margin-bottom: 16px; }
  .v2 .field label { font-size: 15px; margin-bottom: 6px; display: block; }
  .v2 .field input, .v2 select { min-height: 50px; }
  .v2 #contact-hint { margin: -6px 0 16px; font-size: 14px; }
  .v2 details.more summary { font-size: 15px; padding: 11px 0; cursor: pointer; }
  .v2 .order-panel .btn.block { min-height: 56px; }

  .v2 .foot-row { gap: 14px; }
  .v2 .foot-row a { display: inline-block; padding: 6px 0; }
}

/* ---- tablets (portrait): one column, but nothing blown up to full width ---- */
@media (min-width: 560px) and (max-width: 820px) {
  .v2 .hero { max-width: 640px; }
  .v2 .wrap { max-width: 680px; }
  .v2 .hero h1 { font-size: 56px; }
  .v2 .prod .obj img { width: 300px; }
  .v2 .s-place .photo { aspect-ratio: 4 / 3; }
  .v2 .moments { grid-template-columns: 1fr 1fr; }
  .v2 .s-pack ol { grid-template-columns: 1fr 1fr; }
}

/* the order form: products first, then a clear break before "just a question" */
.v2 .pick-sep { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink); }
.v2 .fine + .fine { margin-top: 4px; }
.v2 .s-real .fine { margin-top: 16px; }
@media (max-width: 820px) {
  /* products: a shorter stage so the words and buttons come sooner */
  .v2 .prod .obj { padding: 22px 20px 0; }
  .v2 .prod .obj img { width: min(46%, 190px); }
  .v2 .prod h3 { margin-top: 18px; }
}
@media (min-width: 560px) and (max-width: 820px) { .v2 .prod .obj img { width: 220px; } }
