/* The hn2u page's own sheet (hn2u.css is shared with the privacy and support pages; this one
   loads after it on /hn2u/). It follows hup's page (hup/home.css): a hero in one centered
   column, then the features as tabs on one navy stage in the app's own colors (Expanse's
   navy ground and mint accent), and no white tiles. The hero has a film (made in
   planning/hn2u-clips/), and the tabs' pictures are stills of the app. Both show its demo:
   made-up people and stories.

   Alignment: the bar at the top, the hero, the stage and the foot share one grid's two edges
   (they are all .wrap--wide). What is centered is centered on the page's middle: the icon, the
   line, the tabs. On the stage every tab has the same two columns: its words hang from the top
   on the left, and its picture sits in one frame on the right that keeps its place and its
   size from tab to tab. Pictures side by side have one height. */

:root {
  --navy: #0b1625;
  --navy-in: #08111e;
  --navy-up: #14243a;
  --navy-rim: #2b3d57;
  --navy-line: rgba(150, 163, 179, 0.2);
  --navy-ink: #e6ecf3;
  --navy-text: #a3afbe;
  --navy-dim: #7f8c9d;
  /* Expanse's hues, one for each list's symbol in the app (Top, New, Best, Ask, Show, Jobs) */
  --coral: #f78166;
  --sky: #89cff0;
  --sand: #c5a070;
  --magenta: #db61a2;
  --leaf: #56d364;
  --cyan: #6b9eac;
}

/* Hero: one centered column (the icon, the line, what hn2u is, the download, and the film,
   as hup's page has it), small enough that all of it is on the first screen: the film's
   width gives way to a short window. */

.hero { padding: 18px 0 0; text-align: center; }
.hero__icon { width: 64px; height: 64px; margin: 0 auto 10px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.lede { max-width: 760px; margin: 12px auto 0; font-size: clamp(1.1rem, 1.6vw, 1.2rem); line-height: 1.45; color: var(--ink-2); }
/* the name in the lede, as the icon writes it: lowercase, bold, in the icon's black */
.wordmark { font-weight: 700; color: var(--mark); }

/* The download: hup's App Store box (hup/home.css's .store--mobile), on its own, in the hero
   and again under "Get hn2u". A thin mint box with a faint wash that deepens toward the
   bottom and a glow, and a small label set into its top edge. The badge is Apple's,
   unaltered, and keeps Apple's clear space inside the box. hup's boxes have a version pill
   set into the bottom edge, so theirs is 11px deep there; this box has none until hn2u is
   on the App Store. The owner asked for this box a bit smaller than hup's (about a seventh):
   the badge is 46px tall where hup's is 54, and never under Apple's 40. */
.get { display: grid; grid-template-columns: minmax(0, 186px); justify-content: center; align-items: stretch; gap: 20px; margin-top: 24px; }
.store { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 10px 11px; border: 1px solid var(--line); border-radius: 18px; }
.store--mobile {
  border-color: var(--mint);
  background: linear-gradient(180deg, rgba(var(--mint-rgb), 0.05), rgba(var(--mint-rgb), 0.24));
  /* a second hairline outside the border, and a wider glow: the ring reads brighter */
  box-shadow: 0 0 0 1px rgba(var(--mint-rgb), 0.6), 0 0 26px rgba(var(--mint-rgb), 0.5);
}
.store__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--mint-rgb), 0.7);
  color: var(--accent);
  font: 600 11.5px/1 var(--sans);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.store p { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.store p svg { width: 16px; height: 16px; color: var(--ink-2); }
.store p b { color: var(--ink); font-weight: 600; }
.badge { display: inline-block; border-radius: 10px; line-height: 0; }
.badge img { height: 46px; width: auto; }
.badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* The film is as wide as the card under it (both fill .wrap--wide). Its owner found a film
   narrower than that card "really weird" (2026-11-27), so it does not take hup's 680px rule,
   and it is never made smaller to fit what is above it. It plays muted with a button for its
   sound and one to pause it (hn2u.js). Its ground is hn2u's navy, the film's own first frame,
   where hup's is its night. */
.hero__film {
  width: 100%;
  margin: 22px auto 0;
}
.stage {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 30px 70px -36px rgba(12, 16, 22, 0.7);
}
.stage__video { width: 100%; height: 100%; object-fit: cover; }
.stage__toggle, .stage__sound {
  position: absolute;
  bottom: 16px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 16, 22, 0.62);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stage__toggle { right: 16px; width: 40px; display: grid; place-items: center; }
.stage__toggle svg { width: 15px; height: 15px; fill: currentColor; }
.stage__sound { right: 64px; display: flex; align-items: center; gap: 8px; padding: 0 15px 0 12px; font: 600 14px/1 var(--sans); }
.stage__sound svg { width: 17px; height: 17px; fill: currentColor; }
.stage__sound.is-on span { display: none; }
.stage__sound.is-on { width: 40px; padding: 0; justify-content: center; }
.stage__toggle:focus-visible, .stage__sound:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
/* Without scripts, the buttons stay hidden (the rules above would otherwise show them). */
.stage__toggle[hidden], .stage__sound[hidden] { display: none; }

/* A screen: the picture is the whole screen, square cut, so it gets the device's corners
   and a hairline here (as hup's manual does its pictures). */
.screen { display: block; width: 100%; height: auto; background: var(--navy); box-shadow: 0 0 0 1px rgba(150, 163, 179, 0.3), 0 18px 34px -20px rgba(0, 0, 0, 0.75); }
.screen--phone { aspect-ratio: 1206 / 2622; border-radius: 13.7% / 6.3%; }
.screen--pad { aspect-ratio: 1668 / 2420; border-radius: 3% / 2.1%; }

/* The features: one stage, a row of tabs, one panel at a time */

.section { padding: 52px 0 0; }
.deck {
  padding: 22px 34px 34px;
  border-radius: var(--r);
  background: var(--navy) radial-gradient(110% 80% at 50% -30%, rgba(var(--mint-rgb), 0.13), transparent 62%);
  color: var(--navy-text);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 30px 70px -40px rgba(11, 22, 37, 0.7);
  scroll-margin-top: 68px;
}

.deck__tabs { display: none; flex-wrap: wrap; justify-content: center; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--navy-line); }
.js .deck__tabs { display: flex; }
.deck__tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--navy-text);
  font: 600 14.5px/1 var(--sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.deck__tabs svg { flex: none; width: 17px; height: 17px; }
.deck__tabs button:hover { color: var(--navy-ink); background: rgba(255, 255, 255, 0.05); }
/* the open tab, as the app lights the list that is showing: the accent as a tint, an edge and a soft glow */
.deck__tabs button[aria-selected="true"] {
  color: var(--mint);
  background: rgba(var(--mint-rgb), 0.13);
  border-color: rgba(var(--mint-rgb), 0.42);
  box-shadow: 0 0 14px rgba(var(--mint-rgb), 0.2);
}
.deck__tabs button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Without scripts the panels are a list. With them, they share one place, so the stage, the
   words' top line and the frame keep one size and one place whichever is open. */
.deck__panels { display: grid; gap: 44px; }
.js .deck__panels { margin-top: 30px; gap: 0; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: stretch; min-width: 0; }
.js .panel { grid-area: 1 / 1; }
.js .panel:not(.is-on) { visibility: hidden; }
.js .panel.is-on { animation: panel-in 0.26s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .js .panel.is-on { animation: none; } }

/* the words: from the frame's top line down */
.say { display: grid; gap: 24px; align-content: start; min-width: 0; padding-top: 4px; }
.pt { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; }
.pt > * { grid-column: 2; }
.pt > .glyph { grid-column: 1; grid-row: 1; align-self: start; width: 28px; height: 28px; margin: 0; color: var(--mint); }
.pt h3 { font-size: 23px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 700; color: #fff; }
.pt p { margin-top: 7px; font-size: 16px; line-height: 1.5; color: var(--navy-text); }
.pt + .pt { padding-top: 24px; border-top: 1px solid var(--navy-line); }
.pt p.fine { margin-top: 12px; font-size: 13px; color: var(--navy-dim); }
.pt p.fine a { color: var(--mint); text-decoration: none; }
.pt p.fine a:hover { text-decoration: underline; }
.deck kbd { border-color: var(--navy-rim); background: var(--navy-up); color: var(--navy-ink); }

/* the frame: one place for every tab's picture, which sits in its middle */
.show {
  container-type: inline-size;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--navy-in);
  box-shadow: inset 0 0 0 1px var(--navy-line);
}
.show > * { min-width: 0; }

/* An iPad and an iPhone side by side, one height, each with its name under it: the columns
   are as wide as the screens' shapes make them at one height (width over height, 0.6893 for
   the iPad Pro 11-inch's screen and 0.46 for the iPhone 17's). */
.shots {
  display: grid;
  grid-template-columns: minmax(0, 0.6893fr) minmax(0, 0.46fr);
  align-items: end;
  column-gap: 16px;
  row-gap: 9px;
  width: min(100%, 500px);
  margin: 0 auto;
}
.shots__label { font-size: 13px; font-weight: 600; line-height: 17px; color: var(--navy-dim); text-align: center; }

/* The six lists, each with its symbol's hue in the app */
.lists { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.lists li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-ink);
}
.lists li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.lists .h-top { --hue: var(--coral); }
.lists .h-new { --hue: var(--sky); }
.lists .h-best { --hue: var(--sand); }
.lists .h-ask { --hue: var(--magenta); }
.lists .h-show { --hue: var(--leaf); }
.lists .h-jobs { --hue: var(--cyan); }

/* What hn2u does not have, each with a mint tick */
.survive { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.survive li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-ink);
}
.survive li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3l2.3 2.3 4.9-5' fill='none' stroke='%230b1625' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Private: the two ends, and nothing between them but HTTPS */
.direct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(76px, 0.6fr) minmax(0, 1fr); align-items: center; }
.direct__end { display: grid; justify-items: center; gap: 12px; padding: 26px 14px; border-radius: 16px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--navy-line); text-align: center; }
.direct__end span { display: inline-flex; gap: 8px; color: var(--mint); }
.direct__end svg { width: 32px; height: 32px; }
.direct__end b { font-size: 14.5px; font-weight: 600; color: var(--navy-ink); }
.direct__wire { position: relative; height: 2px; background: linear-gradient(90deg, rgba(var(--mint-rgb), 0.25), var(--mint), rgba(var(--mint-rgb), 0.25)); }
.direct__wire span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--navy-in); box-shadow: 0 0 0 1px rgba(var(--mint-rgb), 0.45); color: var(--mint); font: 600 12.5px/1 var(--mono); }
.direct__wire svg { width: 13px; height: 13px; }

/* Get it, with what it needs: on the page's own ground, with no tile (hup/home.css): the icon,
   the line, the download again, and what hn2u needs under a hairline */

.getit { padding: 60px 0 64px; }
.getit__panel { text-align: center; }
.getit__icon { width: 72px; height: 72px; margin: 0 auto 14px; }
.getit h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.getit .get { grid-template-columns: minmax(0, 304px); }
.specs { list-style: none; max-width: 720px; margin: 32px auto 0; padding: 24px 0 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; text-align: left; }
.specs svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.specs b { display: block; font-size: 15px; font-weight: 650; }
.specs span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.more { margin-top: 28px; text-align: center; font-size: 16px; }
.more a { text-decoration: none; font-weight: 500; }
.more a:hover { text-decoration: underline; }

/* Narrower screens: each panel in one column, its frame under its words */

@media (max-width: 999px) {
  .hero h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
  .lede { max-width: 620px; }
  .deck { padding: 18px 24px 24px; }
  .js .deck__panels { margin-top: 26px; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .js .panel:not(.is-on) { display: none; }
  .say { padding-top: 0; }
}

@media (max-width: 680px) {
  .lede { font-size: 16px; }
  .get { gap: 8px; }
  .store { padding: 13px 8px 11px; border-radius: 15px; }
  .badge img { height: 42px; }
  /* in the hero, the badge and its line as hup's two boxes side by side have them */
  .hero .badge img { height: 40px; }
  .hero .store p { flex-wrap: wrap; justify-content: center; row-gap: 1px; }
  .stage { border-radius: 14px; }
  .stage__sound span { display: none; }
  .stage__sound { width: 40px; padding: 0; justify-content: center; }
  .section { padding-top: 40px; }
  .deck { padding: 14px; border-radius: 22px; }
  .deck__tabs { gap: 4px; padding-bottom: 14px; }
  .deck__tabs button { height: 32px; padding: 0 11px; font-size: 13.5px; }
  .deck__tabs svg { display: none; }
  .js .deck__panels { margin-top: 20px; }
  .panel { gap: 20px; }
  .pt { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; }
  .pt > .glyph { width: 24px; height: 24px; }
  .pt h3 { font-size: 20px; }
  .pt p { font-size: 15.5px; }
  .show { padding: 14px; border-radius: 14px; }
  .shots { column-gap: 10px; }
  .shots__label { font-size: 12px; }
  .direct { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .direct__end { width: 100%; padding: 20px 14px; }
  .direct__wire { width: 2px; height: 46px; background: linear-gradient(180deg, rgba(var(--mint-rgb), 0.25), var(--mint), rgba(var(--mint-rgb), 0.25)); }
  .getit { padding: 48px 0 52px; }
  .specs { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* The narrowest phones */
@media (max-width: 380px) {
  .store p { gap: 5px; font-size: 12px; }
  .store p svg { width: 15px; height: 15px; }
}
