/* The home page's hero (body.nh.home): the title, the trust line, the play
   button and the animation behind them. Behaviour in hero.js. The frame
   (top bar, drawers, footer) is site.css. */

body.home main { flex: 1; display: flex; }

/* ---------- N2. hero ---------- */
.nh-hero {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 28px;
  text-align: center;
}
.nh-title, .nh-trust, .nh-play { position: relative; z-index: 2; }
.nh-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.nh-trust {
  margin: 16px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 24px);
}
.nh-trust i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #5FAF4E; flex: none; }
.nh-trust i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #5FAF4E; animation: nh-live 2s ease-out infinite; }
@keyframes nh-live { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

.nh-play { margin-top: 36px; display: inline-flex; border: 0; border-radius: 50%; padding: 0; background: none; cursor: pointer; transition: transform 250ms cubic-bezier(.2,.7,.2,1); }
.nh-play:hover { transform: scale(1.04); }
.nh-play:active { transform: scale(.98); }
.nh-play__ic { width: 52px; height: 52px; border-radius: 50%; background: var(--nh-ink); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(20,20,20,.5); }
.nh-play__ic svg { display: block; }

/* The mess: objects drawn at 2x and scaled down, so their text stays crisp. */
.nh-fly {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; perspective: 1200px; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 52%, transparent 40%, #000 100%);
  mask-image: radial-gradient(ellipse 50% 46% at 50% 52%, transparent 40%, #000 100%);
}
.nh-hero { cursor: default; }
.nh-world { position: absolute; inset: 0; } /* flat on purpose: see N2 in hero.js */
.nh-o { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 50% 50%; }
.nh-f { position: relative; background: #fff; border: 1px solid #DDD7CD; border-radius: 8px; font: 400 9px/1.3 var(--sans); color: #1d1d1d; box-shadow: 0 10px 24px -10px rgba(20,20,20,.22), 0 1px 2px rgba(20,20,20,.06); overflow: hidden; text-align: left; }
.nh-f .hd { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-bottom: 1px solid #EFEAE2; font-weight: 600; font-size: 9px; white-space: nowrap; }
.nh-f .hd svg { width: 13px; height: 13px; flex: none; }
.nh-f .hd span { margin-left: auto; font-weight: 400; color: #8A857E; font-size: 7.5px; }
.nh-f .ln { height: 4px; border-radius: 2px; background: #ECE8E1; margin-top: 5px; }
.nh-f .ln.s { width: 58%; }
.nh-f.app { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; }
.nh-f.app svg { width: 32px; height: 32px; display: block; }
.nh-f.app.dark { background: #141414; border-color: #141414; }
.nh-f.xl { width: 160px; }
.nh-f.xl .bar { background: #107C41; color: #fff; font-weight: 600; font-size: 8.5px; padding: 5px 8px; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.nh-f.xl .bar svg { width: 12px; height: 12px; }
.nh-f.xl table { border-collapse: collapse; width: 100%; font-size: 7.5px; }
.nh-f.xl td { border: 1px solid #E6E6E6; padding: 0 5px; height: 14px; white-space: nowrap; }
.nh-f.xl tr:first-child td, .nh-f.xl td:first-child { background: #F5F5F5; color: #8A8A8A; text-align: center; font-size: 6.5px; padding: 0 3px; }
.nh-f.xl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.nh-f.xl td.sel { outline: 1.6px solid #107C41; outline-offset: -1px; background: #F1F8F4; }
.nh-f.xl td.neg { color: #C2543B; }
.nh-f.wa { width: 156px; background: #EFEAE2; }
.nh-f.wa .hd { background: #F7F5F0; }
.nh-f .av { width: 15px; height: 15px; border-radius: 50%; background: #D5CFC5; flex: none; }
.nh-f .bub { margin: 6px 8px; padding: 5px 7px 4px; border-radius: 7px; background: #fff; max-width: 82%; width: fit-content; font-size: 8.5px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nh-f .bub.me { margin-left: auto; background: #D9FDD3; }
.nh-f .bub small { display: block; text-align: right; font-size: 6px; color: #8A8A8A; margin-top: 1px; }
.nh-f.wa .pad { padding-bottom: 3px; }
.nh-f.ol { width: 162px; border-left: 3px solid #0078D4; }
.nh-f.ol .bd { padding: 7px 9px 9px; }
.nh-f.ol .from { font-size: 7.5px; color: #6B6762; }
.nh-f.ol .sub { font-weight: 600; font-size: 9px; margin: 2px 0; }
.nh-f .chip { display: inline-flex; gap: 4px; align-items: center; margin-top: 7px; border: 1px solid #E3DED6; border-radius: 4px; padding: 2px 6px 2px 4px; font-size: 7px; height: auto; }
.nh-f .chip i { width: 8px; height: 10px; background: #E5252A; border-radius: 1px; display: inline-block; }
.nh-f.pdf { width: 86px; height: 112px; padding: 13px 10px; border-radius: 3px; }
.nh-f.pdf::after { content: ""; position: absolute; right: -1px; top: -1px; width: 16px; height: 16px; background: linear-gradient(225deg, var(--nh-bg) 50%, #E7E2DA 50%); }
.nh-f.pdf b { font-size: 8.5px; display: block; margin-bottom: 5px; line-height: 1.2; }
.nh-f.pdf .tag { position: absolute; left: 9px; bottom: 9px; background: #E5252A; color: #fff; font-size: 7px; font-weight: 700; padding: 2px 4px; border-radius: 2px; letter-spacing: .06em; }
.nh-f .t-scan { background: #6B6762 !important; }
.nh-f .t-docx { background: #2B579A !important; }
.nh-f .t-xlsx { background: #107C41 !important; }
.nh-f .t-csv { background: #3E8E63 !important; }
.nh-f .t-zip { background: #B8860B !important; }
.nh-f .t-pdf { background: #E5252A !important; }
/* a file on a desktop: icon, type, name */
.nh-f.fi { width: 92px; padding: 10px 8px 9px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: rgba(255,255,255,.92); }
.nh-f.fi .ic { position: relative; width: 34px; height: 42px; border-radius: 3px; background: #E5252A; clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.nh-f.fi .ic::after { content: ""; position: absolute; right: 0; top: 0; width: 30%; height: 24%; background: rgba(255,255,255,.45); }
.nh-f.fi .ic span { position: absolute; left: 0; right: 0; bottom: 5px; color: #fff; font-size: 7px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.nh-f.fi b { font-size: 7.5px; font-weight: 500; line-height: 1.25; word-break: break-word; }
.nh-f.fi s { text-decoration: none; font-size: 6.5px; color: #8A857E; margin-top: -4px; }
.nh-f.fi .dir { width: 42px; height: 32px; margin-top: 6px; border-radius: 3px; background: #7BA7D9; position: relative; }
.nh-f.fi .dir::before { content: ""; position: absolute; left: 0; top: -5px; width: 18px; height: 7px; border-radius: 3px 3px 0 0; background: #6C98CB; }
/* a photo, drawn: a room, a meter, a lobby */
.nh-f.photo { width: 120px; padding: 5px 5px 7px; }
.nh-f.photo .pic { height: 74px; border-radius: 4px; }
.nh-f.photo .p1 { background: linear-gradient(180deg, #E9E2D6 0 55%, #B9A58B 55% 100%), #ddd; box-shadow: inset 30px -10px 0 -14px #8C7B66; }
.nh-f.photo .p2 { background: radial-gradient(circle at 50% 48%, #222 0 13px, #F2F2F2 14px 19px, #6B6762 20px), #6B6762; }
.nh-f.photo .p3 { background: linear-gradient(180deg, #CBD8E6 0 40%, #F1EFEA 40% 100%); box-shadow: inset 0 -22px 0 0 #A9927A; }
.nh-f.photo b { display: block; margin-top: 5px; font-size: 7.5px; font-weight: 500; }
/* a till receipt */
.nh-f.rcpt { width: 96px; padding: 9px 8px 12px; border-radius: 2px; font-family: ui-monospace, Menlo, monospace; -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 5px) no-repeat, radial-gradient(circle 4px at 4px 100%, transparent 98%, #000) bottom/8px 5px repeat-x; mask: linear-gradient(#000 0 0) top/100% calc(100% - 5px) no-repeat, radial-gradient(circle 4px at 4px 100%, transparent 98%, #000) bottom/8px 5px repeat-x; }
.nh-f.rcpt b { display: block; font-size: 7.5px; text-align: center; margin-bottom: 6px; }
.nh-f.rcpt .row { display: flex; justify-content: space-between; font-size: 7px; margin-top: 2px; }
.nh-f.rcpt .tot { margin-top: 5px; padding-top: 4px; border-top: 1px dashed #BBB; font-weight: 700; }
/* a sticky note */
.nh-f.note { width: 96px; min-height: 80px; padding: 10px 9px; border: 0; border-radius: 2px; background: #FBE7A1; font: 400 10px/1.3 var(--serif); color: #3A3225; box-shadow: 0 10px 20px -10px rgba(20,20,20,.35); }
.nh-f.chat { width: 156px; }
.nh-f.chat .q { margin: 8px 9px 4px auto; background: #F1EFEA; border-radius: 10px; padding: 5px 8px; font-size: 8.5px; width: fit-content; max-width: 82%; }
.nh-f.chat .a { padding: 2px 9px 10px; }
.nh-f.ad { width: 146px; }
.nh-f.ad .bd { padding: 7px 9px 8px; }
.nh-f.ad .k1 { font-size: 7.5px; color: #6B6762; }
.nh-f.ad .k2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 1px 0 4px; font-variant-numeric: tabular-nums; }
.nh-f.ad .k2 small { font-size: 7.5px; font-weight: 500; color: #1E8E3E; margin-left: 4px; }
.nh-f.ad .k2 small.dn { color: #C2543B; }
.nh-f.ad svg.sp { width: 100%; height: 26px; display: block; }
.nh-f.dr { width: 148px; }
.nh-f.dr .row { display: flex; gap: 6px; align-items: center; padding: 4px 9px; font-size: 8px; border-bottom: 1px solid #F2EEE7; white-space: nowrap; }
.nh-f.dr .row:last-child { border-bottom: 0; }
.nh-f.dr .row i { width: 8px; height: 10px; border-radius: 1px; flex: none; }
.nh-f.dr .row span { margin-left: auto; color: #8A857E; font-size: 7px; }
.nh-f.cal { width: 90px; text-align: center; }
.nh-f.cal .m { background: #C2543B; color: #fff; font-size: 7.5px; font-weight: 600; letter-spacing: .14em; padding: 3px; }
.nh-f.cal .d { font: 400 30px/1.05 var(--serif); padding-top: 4px; }
.nh-f.cal .t { font-size: 7.5px; padding: 0 6px 9px; color: #444; }
.nh-f.asst { width: 126px; border-radius: 999px; display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.nh-f.asst .av { width: 22px; height: 22px; }
.nh-f.asst em { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #D9A441; }
.nh-f.xl.gs .bar { background: #0F9D58; }
.nh-f.slk { width: 160px; }
.nh-f.slk .msg { display: flex; gap: 7px; padding: 8px 9px 10px; }
.nh-f.slk .msg b { display: block; font-size: 8.5px; }
.nh-f.slk .msg p { margin: 2px 0 0; font-size: 8.5px; color: #333; }
.nh-f.ol.gm { border-left-color: #EA4335; }
.nh-f.nt { width: 150px; }
.nh-f.nt .bd { padding: 7px 9px 9px; }
.nh-f.nt b { display: block; font-size: 10px; margin-bottom: 4px; }
.nh-f.nt .ck { display: flex; gap: 5px; align-items: center; font-size: 8px; margin-top: 4px; }
.nh-f.nt .ck i { width: 8px; height: 8px; border: 1px solid #999; border-radius: 2px; flex: none; }
.nh-f.nt .ck.on { color: #8A857E; text-decoration: line-through; }
.nh-f.nt .ck.on i { background: #141414; border-color: #141414; }
.nh-f .stage { display: flex; gap: 3px; margin-top: 2px; }
.nh-f .stage i { flex: 1; height: 4px; border-radius: 2px; background: #ECE8E1; }
.nh-f .stage i.on { background: #FF7A59; }
.nh-f.dv { width: 168px; }
.nh-f.dv table { width: 100%; border-collapse: collapse; font-size: 7.5px; }
.nh-f.dv td { padding: 3px 7px; border-bottom: 1px solid #F0ECE5; white-space: nowrap; }
.nh-f.dv tr:last-child td { border-bottom: 0; }
.nh-f.dv td.n { text-align: right; font-variant-numeric: tabular-nums; }
.nh-f.bk { width: 150px; }
.nh-f.bk .bd { padding: 7px 9px 9px; }
.nh-f.bk b { display: block; font-size: 9.5px; }
.nh-f.bk .k1 { font-size: 7.5px; color: #6B6762; margin-top: 2px; }
.nh-f.bk .ok { display: inline-block; margin-top: 6px; font-size: 7px; font-weight: 600; color: #1E7E34; background: #E6F4EA; padding: 2px 5px; border-radius: 3px; }

/* The work done: pills that come out of the play button and drift like the mess. */
.nh-tasks {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 42% at 50% 52%, transparent 58%, #000 80%);
  mask-image: radial-gradient(ellipse 60% 42% at 50% 52%, transparent 58%, #000 80%);
}
.nh-task { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; background: var(--nh-ink); color: var(--nh-bg); border-radius: 999px; padding: 7px 13px 7px 9px; font: 500 11.5px/1 var(--sans); white-space: nowrap; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; box-shadow: 0 12px 26px -14px rgba(20,20,20,.6); }
.nh-task svg { flex: none; display: block; }
/* Once the work is done the pills can be clicked: each one counts. */
.nh-hero.is-done .nh-tasks { pointer-events: none; }
.nh-hero.is-done .nh-task { pointer-events: auto; cursor: pointer; transition: background 150ms, box-shadow 150ms; }
.nh-hero.is-done .nh-task:hover { background: #2E2E2C; box-shadow: 0 0 0 3px rgba(155,208,138,.55), 0 12px 26px -14px rgba(20,20,20,.6); }
.nh-task svg path { stroke-dasharray: 14; stroke-dashoffset: 14; }
/* a low-powered device: flat, cheap shadows (hero.js adds is-lite) */
.nh-hero.is-lite .nh-f { box-shadow: 0 2px 6px rgba(20,20,20,.12); }
.nh-hero.is-lite .nh-task { box-shadow: none; }
.nh-ring { position: absolute; z-index: 1; left: 0; top: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border: 1.5px solid #7DBE6B; border-radius: 50%; opacity: 0; pointer-events: none; }
.nh-ring.is-go { animation: nh-ring 1.1s cubic-bezier(.2,.7,.2,1); }
@keyframes nh-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(9); } }

@media (max-width: 640px) {
  .nh-hero { padding: 64px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .nh-trust i::after { animation: none; }
}

/* Without JavaScript: the plain-text version of the drawers (index.html noscript). */
.nh-plain { max-width: 720px; margin: 0 auto; padding: 24px 28px 48px; font: 400 16px/1.6 var(--sans); }
.nh-plain h2 { font: 500 22px/1.2 var(--serif); margin: 28px 0 10px; }
.nh-plain ul { margin: 0; padding-left: 20px; }
.nh-plain__form { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.nh-plain__form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.nh-plain__form input:not(.capture__trap) { height: 40px; padding: 0 12px; border: 1px solid var(--nh-rule); border-radius: 10px; font: 400 16px/1 var(--sans); }
.nh-plain__form input:focus, .nh-plain__form input:focus-visible { outline: none; border-color: var(--nh-ink); }
.nh-plain__form .nh-pill { align-self: flex-start; }
.nh-plain__form p { margin: 0; font-size: 13px; color: var(--nh-muted); }
