/* ── app-hero ─────────────────────────────────────────────────────────
   The hero of /app, and ONLY the hero.

   /app is built from landing.css, night.css and soba-app.css, and every
   band from "A small window that connects your AI" down to the footer
   belongs to those. This file adds the opening — the wordmark, the
   tagline, the three fanned app screens and the pair of buttons under
   them — and nothing else. It began as the hero of /app-2, an alternate
   that was compared against the old opening and replaced it.

   EVERY SELECTOR IS SCOPED UNDER .sa-hero, and every token is declared
   ON .sa-hero rather than :root. That is not tidiness, it is the only
   reason two design systems can share one document: landing.css owns
   `.btn`, `.nav`, `.in`, `.h2`, `.hero`, `--ink`, `--line` and `--night`,
   and if this file declared any of them at the top level it would
   silently restyle every band below the fold. The hero's own classes are
   prefixed `sa-` where the name would otherwise collide.

   There is ONE other scope, `.sa-bar`, and it is a class THIS page adds
   to /app's nav element — see the block at the foot. It can no more
   reach /app than .sa-hero can, because /app never carries it.

   So: nothing here may be written as a bare `.class` or on `:root`. If
   you add a rule, scope it to .sa-hero or .sa-bar.

   FILE ORDER: tokens → layout → type → buttons → the fan → the drawn
   window → media queries LAST.
   ───────────────────────────────────────────────────────────── */

.sa-hero {
  /* ── ground ─────────────────────────────────────────────────── */
  --white:  #ffffff;
  --tint:   #f5f5f7;   /* the hero's own ground */
  --ink:    #1d1d1f;
  --ink-3:  #6e6e73;
  --ink-4:  #aeaeb2;
  --line-2: #e5e5ea;

  /* ── the app window's own greys ─────────────────────────────── */
  /* Cooler and a step darker than the page's, because they sit on a
     frame rather than on paper. */
  --mac-lid:   #f3f3f6;
  --mac-lid-2: #e9e9ee;
  --mac-ink:   #3a3a3c;
  --mac-grey:  #8e8e93;
  --mac-line:  #efeff2;
  --mac-pill:  #f0f0f3;

  /* ── type ───────────────────────────────────────────────────── */
  --w-body:   400;
  --w-medium: 500;
  --w-semi:   600;

  --t-wordmark: 80px;
  --t-tag:      30px;
  --t-body:     17px;
  --t-md:       15px;
  --t-sm:       14px;
  --t-xs:       13px;
  --t-micro:    12px;
  --t-2xs:      11px;

  /* Measured off the reference: it tracks -0.0045em at 128px and
     -0.022em at 17px. Almost nothing at display sizes, because an
     optically sized face has already done it; twice as much as feels
     right at reading sizes. */
  --ls-wordmark: -.005em;
  --ls-tag:      -.015em;
  --ls-h3:       -.015em;
  --ls-body:     -.022em;

  /* ── radii ──────────────────────────────────────────────────── */
  --r-xs:   6px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-pill: 999px;

  /* Both measured off the photograph in the middle of the fan: the
     frame's corner, and the corner of every card inside it. */
  --r-win:  34px;
  --r-card: 14px;

  /* ── the fan ────────────────────────────────────────────────── */
  /* The photograph sets the size: 794x1440 at 335px wide is 607 tall, so
     a drawn frame beside it is 602 plus its ring and padding. --fan-h is
     the whole column, screens plus what they stand on. */
  --win-w: 335px;
  --win-h: 602px;
  --fan-h: 648px;

  /* .85, not 1. The three screens at full size dominated a tall window —
     the hero read as a picture of an app with a name above it rather
     than a page. The ceiling comes down and the floor barely moves,
     because the complaint is about big screens; a small one was already
     showing them small.

     Shrinking the fan can only ADD slack to the fit below, never remove
     it, so every height threshold in this file stays valid untouched. */
  --fan-s: .85;

  /* NEGATIVE: the side screens tuck behind the middle one. Spread apart
     they stop being one object seen from three angles and become three
     separate pictures. 14px and no more — deeper, and the middle screen
     eats the card beside it. */
  --fan-sp: -14px;

  /* ── rhythm ─────────────────────────────────────────────────── */
  /* One token per gap, from the reference as a share of viewport height:
     10% above the name, 2.7% under it, 4.5% to the figure, 3.7% to the
     buttons. Fixed per tier so the fit arithmetic stays solvable. */
  --hero-pad-t: 104px;
  --gap-name:    14px;
  --fan-gap:     48px;
  --cta-gap:     40px;
  --sub-gap:     14px;
  --hero-pad-b:  40px;
  --pad-x:       24px;

  /* /app's nav, measured. The one-screen height is figured against it,
     so if landing.css changes the bar's height this has to follow. */
  --nav-h: 72px;

  /* ── motion and depth ───────────────────────────────────────── */
  --ease:     cubic-bezier(.4, 0, .2, 1);        /* a state the reader caused */
  --ease-arrive: cubic-bezier(.16, 1, .3, 1);    /* something arriving on its own */
  --d-fast: .18s;
  --d-base: .28s;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .03);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 16px -6px rgba(0, 0, 0, .07);
  --sh-3: 0 2px 4px -1px rgba(0, 0, 0, .05), 0 12px 24px -8px rgba(0, 0, 0, .07),
          0 32px 56px -20px rgba(0, 0, 0, .1);

  /* ── the hero itself ────────────────────────────────────────── */
  /* One screen tall: the name, the claim, all three app screens and the
     buttons, with nothing of the fan below the fold. `min-height` rather
     than `height` so a short window overflows honestly instead of
     crushing, and `center` so spare room on a tall screen falls above
     and below rather than all underneath.

     `overflow: hidden` is load-bearing — the side screens are rotated in
     3D and reach past the viewport on the way out of the fan. */
  /* The extra pixel is for rounding, not for looks. --nav-h is a whole
     number and the bar measures 71.996 at this zoom; subtract only the
     token and the hero's box lands half a pixel past the fold. Nothing
     inside it is ever cut — the fan clears by 139px — but "one screen"
     should be true to the pixel, not to within one. */
  min-height: calc(100svh - var(--nav-h) - 1px);
  box-sizing: border-box;
  padding: var(--hero-pad-t) var(--pad-x) var(--hero-pad-b);
  background: var(--tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  font-family: Geist, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--t-body);
  font-weight: var(--w-body);
  letter-spacing: var(--ls-body);
  color: var(--ink);
}

.sa-hero *,
.sa-hero *::before,
.sa-hero *::after { box-sizing: border-box; }

.sa-hero img,
.sa-hero svg { display: block; }

/* Every state change inside the hero eases. Scoped, and zero
   specificity, so anything below can still say what it likes. */
.sa-hero :where(a, button) {
  transition:
    color var(--d-fast) var(--ease),
    background-color var(--d-fast) var(--ease),
    border-color var(--d-fast) var(--ease),
    opacity var(--d-fast) var(--ease),
    transform var(--d-fast) var(--ease),
    box-shadow var(--d-base) var(--ease);
}

.sa-hero :where(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ── the wordmark ───────────────────────────────────────────────── */

/* The mark sits inside the <h1> as a sibling of the word, not as an
   image of it: the heading announced is "Soba". Gap and tracking are in
   em so they hold their ratio as the height queries take the size from
   80px down to 54px. */
.sa-h1 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .22em;
  font-size: var(--t-wordmark);
  font-weight: var(--w-semi);
  letter-spacing: var(--ls-wordmark);
  line-height: 1;
  color: var(--ink);
}

/* 1.169 is the mark's own proportion — its viewBox is 388x332, so a
   square box letterboxes it and it renders a sixth short of the word. */
.sa-h1 svg {
  width: calc(var(--t-wordmark) * 1.169);
  height: var(--t-wordmark);
  flex-shrink: 0;
}

.sa-tag {
  margin: var(--gap-name) 0 0;
  font-size: var(--t-tag);
  font-weight: var(--w-semi);
  letter-spacing: var(--ls-tag);
  line-height: 1.15;
  text-wrap: balance;
}

/* Under the buttons, where the reference puts its price lines: the same
   words doing a different job. It was a lede introducing the figure; it
   is the small print under the thing you press. */
.sa-sub {
  margin: var(--sub-gap) 0 0;
  font-size: var(--t-md);
  color: var(--ink-3);
}

.sa-cta {
  margin-top: var(--cta-gap);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ── the buttons ────────────────────────────────────────────────── */

/* 36px is the reference's button, and on a mouse that is the right
   size. A coarse pointer gets the 44px a finger needs — see the media
   query at the foot. */
.sa-hero .sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sh-2);
}

.sa-hero .sa-btn svg { flex-shrink: 0; }

/* A millimetre, and no more. The press takes it back under where it
   started, because a button that rises on hover and stays there when
   clicked never feels like it went down. */
.sa-hero .sa-btn:hover {
  background: #000;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--sh-3);
}

.sa-hero .sa-btn:active {
  transform: translateY(0) scale(.985);
  box-shadow: var(--sh-1);
  transition-duration: 60ms;
}

/* The second of the pair. It filled solid on hover once, which made it
   shout louder than the first; a tint is enough to say it is live. */
.sa-hero .sa-btn-o {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  box-shadow: none;
}

.sa-hero .sa-btn-o:hover {
  background: rgba(0, 0, 0, .045);
  color: var(--ink);
  box-shadow: none;
}

.sa-hero .sa-btn-o:active { background: rgba(0, 0, 0, .075); box-shadow: none; }

/* ── the fan ────────────────────────────────────────────────────── */

/* TWO ELEMENTS, and the split is what lets it fit. A transform does not
   change layout, so scaling the screens alone would leave the hero
   reserving all 648px of their natural height and the fit would be a
   lie. `.fan` is a box whose height is the scaled height — the space
   actually taken — and `.fan-in` is the content scaled into it from its
   top edge. Both read --fan-s; if they stop agreeing the fan leaves a
   gap under itself.

   Scaling rather than resizing is deliberate: every size inside those
   screens is the app's own, and shrinking the boxes while leaving the
   type would be a picture of an app nobody is running. */
.sa-hero .fan {
  margin-top: var(--fan-gap);
  width: 100%;
  height: calc(var(--fan-h) * var(--fan-s));
}

/* Bottom-aligned, so the rotated screens hang off the middle one by
   their feet rather than their heads and the cast shadows line up. */
.sa-hero .fan-in {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: scale(var(--fan-s));
  transform-origin: top center;
}

.sa-hero .fan-mid {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  width: var(--win-w);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sa-hero .fan-mid img {
  width: 100%;
  height: auto;
  border-radius: var(--r-win);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 2px 6px rgba(0, 0, 0, .04),
    0 18px 36px -12px rgba(0, 0, 0, .14),
    0 50px 90px -40px rgba(0, 0, 0, .45);
}

/* Turned away from the reader rather than merely scaled down, which is
   what keeps the middle screen reading as the one in front. The origin
   is the inner edge, so each side screen hinges off its neighbour. .94
   because at 602 x .94 it is still shorter than the 608px photograph —
   wider fan, same --fan-h. */
.sa-hero .fan-side {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sa-hero .fan-l {
  margin-right: var(--fan-sp);
  transform: perspective(1600px) rotateY(24deg) scale(.94);
  transform-origin: right center;
}

.sa-hero .fan-r {
  margin-left: var(--fan-sp);
  transform: perspective(1600px) rotateY(-24deg) scale(.94);
  transform-origin: left center;
}

/* What each screen stands on. An ellipse rather than a blur under the
   box, so it stays an ellipse when the box above it is rotated. */
.sa-hero .fan-cast {
  margin-top: 18px;
  width: 74%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0));
}

.sa-hero .fan-mid .fan-cast {
  background: radial-gradient(closest-side, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0));
}

/* ── the app window, drawn ──────────────────────────────────────── */

/* The middle screen is a photograph; these two are markup, because they
   show states no screenshot of a running app can be posed into on
   demand.

   The sizes inside these frames are the app's own — 12.5px rows, a 28px
   figure, a 16px question — not this hero's type scale, and they stay
   literal for that reason.

   The gutter is CONCENTRIC and that is why it is a calc: a 34px frame
   corner with a 14px card corner inside it only nests if the gap is
   34 - 14. At the 8px it once was, the grey pinched to nothing at the
   corner while staying 8px along the straight edges. */
.sa-hero .win {
  width: var(--win-w);
  height: var(--win-h);
  padding: calc(var(--r-win) - var(--r-card));
  border-radius: var(--r-win);
  background: linear-gradient(180deg, var(--mac-lid), var(--mac-lid-2));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    -8px 16px 32px -14px rgba(0, 0, 0, .12),
    -30px 50px 80px -40px rgba(0, 0, 0, .36);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  overflow: hidden;
}

/* Light falls from the middle of the fan outwards, so the right-hand
   screen throws its shadow the other way. */
.sa-hero .fan-r .win {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    8px 16px 32px -14px rgba(0, 0, 0, .12),
    30px 50px 80px -40px rgba(0, 0, 0, .36);
}

.sa-hero .win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 4px;
}

.sa-hero .win-bar > span:first-child {
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
  color: var(--mac-ink);
}

.sa-hero .win-btns {
  display: flex;
  gap: 8px;
}

.sa-hero .win-btns > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  color: var(--mac-ink);
}

.sa-hero .win-btns .win-more { gap: 2.5px; }

.sa-hero .win-more i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--mac-ink);
  display: block;
}

/* The two surfaces inside the frame: a card with one thing on it, and a
   list of rows. One radius, because the app gives them one. */
.sa-hero .win-card,
.sa-hero .win-rows {
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.sa-hero .win-rows {
  display: flex;
  flex-direction: column;
}

/* A quiet label over a list, and nothing more. It was mono, uppercase
   and tracked a tenth of an em — a machine-ish micro-caps treatment that
   belongs to a developer tool, not to the app this is a picture of. The
   words are sentence case in the markup too, so no transform is dressing
   up text that reads differently from how it is written.

   12px rather than 11: caps read larger than lowercase at the same size,
   so dropping them costs legibility that has to be paid back. */
.sa-hero .win-cap {
  padding: 2px 8px 0;
  font-size: var(--t-micro);
  font-weight: var(--w-medium);
  color: var(--mac-grey);
}

.sa-hero .win-cap-n {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

/* Indented past the icon column, the way a grouped list does it. */
.sa-hero .win-sep {
  height: 1px;
  margin-left: 46px;
  background: var(--mac-line);
}

.sa-hero .win-sep-w { margin-left: 56px; }

.sa-hero .win-cta {
  margin-top: 2px;
  padding: 12px 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  text-align: center;
}

.sa-hero .win-cta-g {
  font-size: var(--t-xs);
  color: var(--ink-3);
  text-align: center;
}

/* `margin-top: auto` holds it to the bottom of the frame whatever the
   screen above it is. */
.sa-hero .win-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  font-size: var(--t-2xs);
  color: var(--mac-grey);
}

.sa-hero .win-tabs > * {
  flex: 1;
  padding: 7px 0;
  text-align: center;
}

.sa-hero .win-tabs b {
  border-radius: var(--r-pill);
  background: var(--mac-pill);
  font-weight: var(--w-semi);
  color: var(--ink);
}

/* ── the left screen: an app asking ─────────────────────────────── */

/* Tighter inside than it looks like it wants to be, and the frame is
   why: all three screens are locked to the photograph's 602px so they
   stand on one line, and this is the densest of them. The 20px gutter
   and the 12px between cards are the spacing a reader sees, so the 9px
   they cost comes out of here. */
.sa-hero .ask {
  padding: 15px 16px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.sa-hero .ask-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-hero .ask-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* The asking app is invented, and its icon has to look like a real
   product's without being one: a colour no provider on this page uses. */
.sa-hero .ask-icon-app {
  background: radial-gradient(120% 120% at 25% 15%, #ff8a5b 0%, #e0408a 38%, #6a3df0 72%, #24125e 100%);
  box-shadow: 0 6px 14px -6px rgba(106, 61, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.sa-hero .ask-icon-soba {
  background: #111;
  color: var(--white);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5);
}

/* Three dots that darken towards Soba: the direction of the ask. */
.sa-hero .ask-dots {
  display: flex;
  gap: 3px;
}

.sa-hero .ask-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: block;
}

.sa-hero .ask-dots i:nth-child(1) { background: #c7c7cc; }
.sa-hero .ask-dots i:nth-child(2) { background: var(--ink-4); }
.sa-hero .ask-dots i:nth-child(3) { background: var(--mac-grey); }

.sa-hero .ask b {
  font-size: 16px;
  letter-spacing: var(--ls-h3);
  line-height: 1.25;
}

.sa-hero .ask em {
  font-style: normal;
  font-size: var(--t-micro);
  line-height: 1.4;
  color: var(--ink-3);
}

.sa-hero .grant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.sa-hero .grant-tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-hero .grant > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sa-hero .grant b { font-size: 12.5px; }
.sa-hero .grant em { font-style: normal; font-size: var(--t-2xs); color: var(--mac-grey); }

/* ── the right screen: what has used it ─────────────────────────── */

.sa-hero .act {
  padding: var(--r-lg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--r-md);
}

.sa-hero .act-n {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sa-hero .act-n > span:first-child {
  font-size: var(--t-micro);
  font-weight: var(--w-medium);
  color: var(--mac-grey);
}

.sa-hero .act-n b {
  font-size: 28px;
  letter-spacing: var(--ls-tag);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sa-hero .act-ok {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--t-micro);
  color: var(--ink-3);
}

.sa-hero .act-ok i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  display: block;
}

/* The one bar that is today is the only one filled; the rest are the
   days behind it. Heights are per-bar data, so they stay in the markup. */
.sa-hero .act-bars {
  width: 72px;
  height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.sa-hero .act-bars i {
  flex: 1;
  border-radius: 3px;
  background: var(--line-2);
  display: block;
}

.sa-hero .act-bars i.is-now { background: var(--ink); }

.sa-hero .chips {
  display: flex;
  gap: 6px;
  padding: 0 2px;
}

.sa-hero .chips > * {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--t-micro);
}

.sa-hero .chips b {
  background: var(--ink);
  color: var(--white);
  font-weight: var(--w-medium);
}

.sa-hero .chips span {
  background: var(--white);
  color: var(--mac-ink);
}

.sa-hero .run {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.sa-hero .run-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #111;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* An app with no mark of its own gets its initial on the same plate the
   window frame is made of. */
.sa-hero .run-icon-i {
  background: linear-gradient(180deg, #f2f2f5, #e3e3e8);
  color: var(--mac-ink);
  font-size: var(--t-2xs);
  font-weight: var(--w-semi);
}

.sa-hero .run-t {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sa-hero .run-t b {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-hero .run-t em { font-style: normal; font-size: var(--t-2xs); color: var(--mac-grey); }

/* The four times form a right-hand column, so they take tabular figures;
   a proportional 1 is narrow and makes the column look ragged. */
.sa-hero .run-at {
  font-size: var(--t-2xs);
  color: var(--mac-grey);
  font-variant-numeric: tabular-nums;
}

/* ── the arrival ────────────────────────────────────────────────────
   The hero assembles once, on load: the name, then the claim, then the
   three screens fanning out from behind the middle one, then the
   buttons. Six elements, one curve, small gaps.

   WHY THE FAN AT ALL. It is a sequence and nothing was saying so — an
   app asks on the left, Soba answers in the middle, the right is what
   has used it. Starting them stacked and letting them part is the one
   piece of motion that explains the composition rather than decorating
   it: they read as three views of one thing because you watched them
   come apart.

   ONCE, and never again. A carousel cycling while you read the copy
   beside it is the thing this hero, otherwise still, should not borrow;
   /app's four-screen figure further down does that job where the reader
   has chosen to look.

   THE CURVE IS THE WHOLE THING. cubic-bezier(.16, 1, .3, 1) spends most
   of its travel in the first third and then takes a very long time to
   stop. That long settle is what reads as weight — an object with mass
   arriving — where a symmetrical ease reads as a slide. It is the single
   biggest difference between this and the version before it, which moved
   twice as far in two thirds of the time and read as four things
   sliding in.

   Everything that moves, moves on it. Nothing has a curve of its own.

   GATED ON `.js`, which the inline script in <head> sets before the
   first paint. These keyframes fade from zero, and a fade from zero is
   only safe if the no-animation path shows the resting state: without
   the class there is no animation and the hero is simply there. That is
   also why each block has a `from` frame and no `to` — the implicit `to`
   is the element's own computed value, so every animation lands exactly
   on the resting state and cannot drift from it. */

@keyframes sa-rise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes sa-arrive-mid {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
}

/* The sides start nearly face-on, a little small, and tucked a quarter
   of their width towards the middle — behind it, which is where they
   have to appear to come from. transform-origin is already their inner
   edge, so the rotation reads as a hinge rather than a spin. */
@keyframes sa-arrive-l {
  from { opacity: 0; transform: perspective(1600px) rotateY(4deg) scale(.9) translateX(24%); }
}

@keyframes sa-arrive-r {
  from { opacity: 0; transform: perspective(1600px) rotateY(-4deg) scale(.9) translateX(-24%); }
}

/* The order the picture is read in, and the gaps are small relative to
   the durations on purpose: 60-100ms apart over 900-1150ms reads as one
   gesture with internal order, not as six separate entrances. The
   buttons come last because they are what you act on once you have read
   the rest. */
.js .sa-h1       { animation: sa-rise      .9s  var(--ease-arrive)       backwards; }
.js .sa-tag      { animation: sa-rise      .9s  var(--ease-arrive) .06s  backwards; }
.js .sa-hero .fan-mid { animation: sa-arrive-mid 1.15s var(--ease-arrive) .12s backwards; }
.js .sa-hero .fan-l   { animation: sa-arrive-l   1.15s var(--ease-arrive) .2s  backwards; }
.js .sa-hero .fan-r   { animation: sa-arrive-r   1.15s var(--ease-arrive) .2s  backwards; }
.js .sa-cta      { animation: sa-rise      .9s  var(--ease-arrive) .3s   backwards; }
.js .sa-sub      { animation: sa-rise      .9s  var(--ease-arrive) .36s  backwards; }

/* ── responsive ─────────────────────────────────────────────────
   LAST in the file. Nothing goes below this line.
   ───────────────────────────────────────────────────────────── */

/* 36px is under the 44px a finger needs. The look is the same; only the
   target grows. */
@media (pointer: coarse) {
  .sa-hero .sa-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: var(--t-md);
  }
}

/* The fan is three 335px screens. Below this the side ones are slivers
   turned 24 degrees away from a reader who cannot see what is on them,
   so they go and the photograph stands alone. */
@media (max-width: 820px) {
  .sa-hero .fan-side { display: none; }
}

@media (max-width: 640px) {
  .sa-hero {
    --t-wordmark: 52px;
    --t-tag: 24px;
    --hero-pad-t: 48px;
    --fan-gap: 28px;
    --cta-gap: 28px;
    --pad-x: 20px;
  }

  .sa-cta { width: 100%; flex-direction: column; gap: 14px; }
  .sa-hero .sa-btn { width: 100%; }
}

/* ── the hero's fit ─────────────────────────────────────────────
   HEIGHT queries. The hero claims one screen, and whether it can keep
   that claim depends on how tall the window is, not how wide.

   The numbers are measured, not guessed. The hero is a fixed block of
   chrome — padding, the name, the tagline, the buttons, the gaps — plus
   the fan, and the fan is the only part that can give:

     fits when  nav + chrome + 648 x --fan-s  <=  the viewport

   TRIM THE TYPE BEFORE THE FAN: the first step down is all type and
   rhythm and leaves the fan alone, because the name is still the largest
   thing on the page either way and the screens are what the hero is for.

   min-width is on every one of them on purpose. Below 821px the side
   screens are already gone and width is the binding constraint, and a
   phone held upright gets a hero that scrolls — which is what a phone
   does — rather than a tiny picture of an app.
   ───────────────────────────────────────────────────────────── */

@media (max-height: 1149px) and (min-width: 821px) {
  .sa-hero {
    --t-wordmark: 64px;
    --t-tag: 26px;
    --hero-pad-t: 64px;
    --gap-name: 12px;
    --fan-gap: 36px;
    --cta-gap: 30px;
    --hero-pad-b: 32px;
  }
}

@media (max-height: 1056px) and (min-width: 821px) {
  .sa-hero { --fan-s: .76; }
}

@media (max-height: 965px) and (min-width: 821px) {
  .sa-hero {
    --t-wordmark: 54px;
    --t-tag: 22px;
    --hero-pad-t: 40px;
    --gap-name: 10px;
    --fan-gap: 26px;
    --cta-gap: 22px;
    --sub-gap: 10px;
    --hero-pad-b: 24px;
    --fan-s: .78;
  }
}

@media (max-height: 908px) and (min-width: 821px) {
  .sa-hero { --fan-s: .7; }
}

@media (max-height: 818px) and (min-width: 821px) {
  .sa-hero { --fan-s: .58; }
}

/* THE FLOOR. Below roughly 660px of window the hero stops fitting: half
   size puts the app's screens at 167px wide and its 12.5px rows under
   7px, and shrinking further would buy a hero that fits by showing three
   grey rectangles. It overflows instead, honestly. */
@media (max-height: 727px) and (min-width: 821px) {
  .sa-hero { --fan-s: .5; }
}


/* ── the bar ────────────────────────────────────────────────────────
   /app's nav, on this page only, in the hero's own grey.

   landing.css paints `.navwrap` with --night, and night.css makes that
   a near-black, so on /app the bar is dark because the whole page is.
   Here it sat as a hard dark horizon across the top of a composition
   whose subject is three pale screens floating in light — the heaviest
   object in the frame, so the eye landed on the nav before it landed on
   the product's name. The reference puts its bar at the same near-white
   as the hero under it, and that is the detail that makes a hero read as
   opening into space rather than starting under a lid.

   `.sa-bar` is a class this page puts on the nav element; /app never
   carries it, so none of this can reach /app.

   The bar is `position: relative` in landing.css, not sticky, so it
   scrolls away with the hero and there is no hairline-on-scroll to
   manage. It is simply the hero's top margin with the links in it —
   which is also why --nav-h in the hero's fit calculation is 72px.

   Seven declarations, because a light bar needs every one of them: the
   ground, the link grey, the brand, two hovers, the burger and the
   pill — which inverts, since landing.css's .b-lime is a WHITE pill and
   would vanish here. Dark now, matching the hero's own Download. */

.sa-bar { background: #f5f5f7; }
.sa-bar .nav { color: #424245; }
.sa-bar .nav .brand { color: #1d1d1f; }
.sa-bar .nav .links a:hover,
.sa-bar .nav .sign-in:hover { color: #000; }
.sa-bar .nav-burger i { background: #1d1d1f; }
.sa-bar .nav .btn.b-lime { background: #1d1d1f; color: #fff; }
.sa-bar .nav .btn.b-lime:hover { background: #000; }

/* ── the bar, collapsed ─────────────────────────────────────────────
   AT 860px landing.css folds the links into a panel the burger opens,
   and paints that panel with --night. Against /app's dark bar that is
   invisible joinery; against this one it was a black drawer hanging off
   a white bar, with the link grey set for light ground sitting on it —
   dark on dark, unreadable. The bar's own bottom border goes the same
   way: --night3 is a hairline you only see on a dark ground.

   The bar also becomes 62px tall there, from 72, and STICKY. So --nav-h
   has to follow or the hero's one-screen sum is 10px out between 821px —
   where its own height queries start — and 860px. */
@media (max-width: 860px) {
  .sa-hero { --nav-h: 62px; }

  .sa-bar .nav .links {
    background: #f5f5f7;
    border-bottom-color: rgba(0, 0, 0, .08);
  }

  .sa-bar { border-bottom-color: rgba(0, 0, 0, .08); }
}

/* Asked for less motion: the hero is simply there. Nothing needs
   restating — with no forwards fill, dropping the animation hands
   straight back to each element's resting state. */
@media (prefers-reduced-motion: reduce) {
  .js .sa-h1,
  .js .sa-tag,
  .js .sa-cta,
  .js .sa-sub,
  .js .sa-hero .fan-mid,
  .js .sa-hero .fan-l,
  .js .sa-hero .fan-r { animation: none; }
}

/* ── /app in the home page's language ──────────────────────────────────
   The same frame as the landing: a floating glass nav that stays with you
   (landing.css .sky-nav, light over light ground and dark over night), the
   hero as a light card inset 12px from the window with 24px corners, the
   page itself white, and every night section its own inset night card. */
body:has(.sa-hero) { background: #fff; }
.sa-bar.sky-nav { background: transparent; border-bottom: 0; }
/* over a night card the bar is dark glass, so its type turns light */
.sa-bar.sky-nav:not(.is-light) .nav { color: #C4C7D0; }
.sa-bar.sky-nav:not(.is-light) .nav .brand { color: #fff; }
.sa-bar.sky-nav:not(.is-light) .nav .links a:hover,
.sa-bar.sky-nav:not(.is-light) .nav .sign-in:hover { color: #fff; }
.sa-bar.sky-nav:not(.is-light) .nav .btn.b-lime { background: #fff; color: #1d1d1f; }
.sa-bar.sky-nav:not(.is-light) .nav-burger i { background: #fff; }

.sa-hero {
  margin: -70px 12px 0; padding-top: calc(var(--hero-pad-t) + 70px);
  border-radius: 24px; overflow: hidden;
}
body:has(.sa-hero) #cost,
body:has(.sa-hero) #privacy,
body:has(.sa-hero) #get,
body:has(.sa-hero) > .w.dk {
  margin: 12px 12px 0; border-radius: 24px; overflow: hidden;
  background: #F7F7F9; border-top: 0;
}
/* THE ONE NIGHT CARD. cost, privacy and the download step stay dark, for
   contrast against the light hero and close. night.css is not loaded on
   this page any more, so its scale is set here, on the card alone. */
body:has(.sa-hero) #cost,
body:has(.sa-hero) #privacy,
body:has(.sa-hero) #get {
  color-scheme: dark;
  --ink: #F5F6FA; --ink2: #C3C7D1; --ink3: #858B9C;
  --line: #2A2E3A; --line2: #20242E; --soft: #0E1018;
  --dline: #292D3A; --dink: #9298A8; --dink2: #D0D4DE;
  background: var(--night); color: var(--ink);
}
body:has(.sa-hero) > .w.dk { margin-bottom: 12px; }
@media (max-width: 600px) {
  .sa-hero { margin-inline: 8px; border-radius: 20px; }
  body:has(.sa-hero) #cost,
  body:has(.sa-hero) #privacy,
  body:has(.sa-hero) #get,
  body:has(.sa-hero) > .w.dk { margin: 8px 8px 0; border-radius: 20px; }
  body:has(.sa-hero) > .w.dk { margin-bottom: 8px; }
}
/* no stepped shoulders: the night sections are cards now */
body:has(.sa-hero) .step { display: none !important; }

/* ── the download hero ─────────────────────────────────────────────────
   Icon, name, line, one button, the rest in one quiet line. The fan's
   markup stays in the page for the phone layout below 640px — it is the
   one screen there — and is hidden above it. */
.sa-hero .sa-h1-dl { font-size: 64px; letter-spacing: -.045em; }
.sa-hero .sa-tag-dl { margin-top: 16px; font-size: 20px; font-weight: 400; color: #6e6e73; letter-spacing: -.01em; max-width: 30ch; }
.sa-hero .sa-cta { margin-top: 32px; }
.sa-hero #sa-dl { height: 48px; padding: 0 22px; font-size: 16px; gap: 9px; }
.sa-hero .sa-sub { margin-top: 16px; font-size: 14px; color: #8e8e93; }
.sa-hero .sa-sub a { color: #424245; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.2); }
.sa-hero .sa-sub a:hover { color: #000; }
.sa-hero .fan { display: none; }
@media (max-width: 640px) {
  .sa-hero .sa-h1-dl { font-size: 44px; }
  .sa-hero .sa-tag-dl { font-size: 17px; }
}
.sa-hero { min-height: 0; padding-bottom: 96px; }
@media (min-width: 641px) { .sa-hero { padding-top: calc(70px + 88px); } }

/* cost, privacy and get run back to back: one card, not three slabs */
body:has(.sa-hero) #privacy,
body:has(.sa-hero) #get { margin-top: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
body:has(.sa-hero) #cost,
body:has(.sa-hero) #privacy { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }

/* the card is the home hero's size: the whole first screen, a 12px rim below */
body:has(.sa-hero) .sa-hero { min-height: calc(100svh - 28px); padding-bottom: 70px; }
@media (max-width: 640px) { body:has(.sa-hero) .sa-hero { min-height: calc(100svh - 128px); } }

/* a desktop for the two windows: clean white behind the type, and a soft
   wallpaper of sky, sand and coral rising from the foot of the card */
body:has(.sa-hero) .sa-hero {
  background:
    radial-gradient(60% 55% at 18% 100%, rgba(120, 178, 230, .55), transparent 70%),
    radial-gradient(55% 50% at 50% 104%, rgba(246, 214, 160, .55), transparent 70%),
    radial-gradient(55% 55% at 84% 100%, rgba(240, 150, 120, .42), transparent 70%),
    linear-gradient(#F7F7F9 30%, #F2F3F6);
}
body:has(.sa-hero) .sa-hero { position: relative; isolation: isolate; }
body:has(.sa-hero) .sa-hero > * { position: relative; z-index: 1; }

/* ── the pairing ───────────────────────────────────────────────────────
   The Soba window asking to authorize on the right, the card an app shows
   on the left, side by side on the card's wallpaper. */
.sa-hero .sa-pair {
  position: relative; width: 720px; height: 520px; margin: auto auto -170px; flex-shrink: 0;
  order: 10; /* under the button line */
}
.sa-pair-mac { position: absolute; right: 0; top: 0; width: 400px; height: 600px; }
.sa-pair-mac .app {
  border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(16,18,28,.22), 0 1px 2px rgba(16,18,28,.06),
              0 40px 70px -36px rgba(16,18,28,.30);
}
.sa-pair-mac .app { text-align: left; }
.sa-pair-mac .app-ask > h3, .sa-pair-mac .app-ask > p { text-align: center; }
.sa-pair-mac .app-bar { background: #FAFAFB; border-bottom-color: rgba(16, 17, 25, .06); }
.sa-pair-mac .app-gi-ph { background: transparent; }
.sa-pair-mac .app-ph > rect:first-child { fill: #fff; }
.sa-pair-web { position: absolute; left: 0; top: 96px; width: 342px; height: 430px; z-index: 2; }
.sa-pair .modal { display: block; border-radius: 16px; }
.sa-pair-web .modal {
  box-shadow: 0 0 0 .5px rgba(16,18,28,.16), 0 1px 2px rgba(16,18,28,.06),
              0 12px 24px -8px rgba(16,18,28,.12), 0 48px 80px -32px rgba(16,18,28,.35);
}
.sa-pair .modal-orbit circle { animation: none; }
@media (max-width: 760px) {
  .sa-hero .sa-pair { zoom: .46; margin-top: 88px; }
}
/* the card is the first screen exactly; the windows run off its foot */
@media (min-width: 641px) {
  body:has(.sa-hero) .sa-hero {
    height: max(calc(100svh - 28px), 800px); min-height: 0;
    padding-top: calc(70px + 22px); padding-bottom: 0; justify-content: flex-start;
  }
  /* spare height splits evenly: above the headline, and above the windows */
  body:has(.sa-hero) .sa-hero .sa-h1-dl { margin-top: auto; }
  body:has(.sa-hero) .sa-hero .sa-sub { margin-bottom: 34px; }
}

/* ── the tile ──────────────────────────────────────────────────────────
   Soba's mark on a white slab, turned isometric: an edge (its thickness,
   offset down) and a face, bobbing gently over a soft shadow. */
.sa-slab {
  position: relative; width: 132px; height: 100px; flex-shrink: 0;
  margin: 0 auto 30px;
}
.sa-hero .sa-slab {
  margin: auto auto 20px;
  animation: sa-bob 5s ease-in-out infinite;
}
.sa-slab > span {
  position: absolute; left: 0; top: -16px; width: 132px; height: 132px; border-radius: 34px;
  transform: rotateX(58deg) rotateZ(45deg);
}
.sa-slab .edge {
  top: -4px;
  background: linear-gradient(90deg, #C9CED6, #E6E9EE 50%, #C9CED6);
  box-shadow: 0 26px 40px -6px rgba(95, 179, 232, .40), 0 16px 28px -8px rgba(242, 154, 92, .32), 0 10px 20px rgba(20, 24, 36, .10);
}
.sa-slab .face {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff 30%, #F1F3F6);
  border: 1px solid #fff;
  box-shadow: inset 0 -2px 0 rgba(20, 24, 36, .05);
  color: #141414;
}
.sa-slab svg { width: 44%; transform: rotateZ(-45deg) scaleY(1.55); filter: drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1px 0 rgba(20,24,36,.18)); }
@keyframes sa-bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .sa-slab { animation: none; } }
@media (min-width: 641px) { body:has(.sa-hero) .sa-hero .sa-h1-dl { margin-top: 0; } }
@media (max-width: 640px) { .sa-hero .sa-slab { zoom: .8; margin: 8px auto 22px; } }

/* the download step: the tile stands in for the drawn laptop, and the
   button is the hero's dark one */
body:has(.sa-hero) #get .dl-mac { display: none; }
body:has(.sa-hero) #get .sa-slab { margin-top: 22px; }
body:has(.sa-hero) > .w.dk .b-lime { background: #1d1d1f; color: #fff; }
body:has(.sa-hero) > .w.dk .b-lime:hover { background: #000; }

/* the closing card: the hero's wallpaper behind the last line, the tile
   over it, and the footer on the same pale ground. The night art is gone. */
body:has(.sa-hero) > .w.dk {
  color: #16171D;
  background:
    radial-gradient(40% 30% at 22% 46%, rgba(120, 178, 230, .40), transparent 70%),
    radial-gradient(36% 28% at 50% 50%, rgba(246, 214, 160, .40), transparent 70%),
    radial-gradient(40% 30% at 80% 46%, rgba(240, 150, 120, .32), transparent 70%),
    #F7F7F9;
}
body:has(.sa-hero) > .w.dk .art-wide { display: none; }
body:has(.sa-hero) > .w.dk .close { padding-bottom: 120px; }
body:has(.sa-hero) > .w.dk .h1 { color: #16171D; }
body:has(.sa-hero) > .w.dk .close-k { color: #55565F; }
body:has(.sa-hero) > .w.dk .ft { border-top: 1px solid rgba(16, 17, 25, .08); }
body:has(.sa-hero) > .w.dk .ft-brand,
body:has(.sa-hero) > .w.dk .ft b { color: #16171D; }
body:has(.sa-hero) > .w.dk .ft p,
body:has(.sa-hero) > .w.dk .ft a { color: #6E6F79; }
body:has(.sa-hero) > .w.dk .ft a:hover { color: #16171D; }
body:has(.sa-hero) > .w.dk .fine { color: #8E8F98; border-top-color: rgba(16, 17, 25, .08); }
body:has(.sa-hero) > .w.dk .fine a { color: #6E6F79; }
/* the window wears the card's bar: back, name, close; no traffic lights */
.sa-pair-mac .modal-bar { flex-shrink: 0; }
