/*
 * zelofinance.app's home (home.js). This first part is what the page sits on: the colors (the app's, light and dark),
 * the corners' controls and every part of a card; the page's own layout and the phone follow it, further down.
 * Some rules here are the first home page's (its 3D field of drifting cards) and no longer match anything.
 */

:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-halo: rgba(245, 246, 248, 0.94);
  --card: #ffffff;
  --card-line: rgba(15, 23, 42, 0.06);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -14px rgba(31, 64, 128, 0.18);
  --chip: rgba(255, 255, 255, 0.92);
  --text: #0b0b0c;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --fill: #eef0f3;
  --track: #e9ecf1;
  --brand: #2065da;
  --accent: #f2643d;
  --positive: #1e8e4e;
  --negative: #d93a3a;
  --warning: #e08a00;
  --button: #0b0b0c;
  --button-text: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-halo: rgba(0, 0, 0, 0.92);
  --card: #131827;
  --card-line: rgba(150, 175, 255, 0.11);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -16px rgba(0, 0, 0, 0.9);
  --chip: rgba(44, 44, 46, 0.92);
  --text: #f5f5f7;
  --text-2: #98989d;
  --text-3: #636366;
  --fill: #232a44;
  --track: #232a44;
  --brand: #5b93f5;
  --accent: #ff8a63;
  --positive: #3dd27a;
  --negative: #ff6464;
  --warning: #ffb23e;
  --button: #f5f5f7;
  --button-text: #0b0b0c;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

/* The page's own color, not just the body's: Safari paints what's behind its toolbars from it, and repaints on a theme switch. */
html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "tnum" 1;
  /* One finger looks around (home.js); two still zoom. */
  touch-action: pinch-zoom;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- The 3D field ---------- */

.scene {
  position: fixed;
  inset: 0;
  perspective: 1000px;
  overflow: hidden;
  pointer-events: none;
  /* Cards dissolve at the top and bottom edges, so they never crowd the corners' controls and links. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 130px, #000 calc(100% - 130px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 130px, #000 calc(100% - 130px), transparent 100%);
}

.world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.item {
  position: absolute;
  left: 0;
  top: 0;
  backface-visibility: hidden;
  opacity: 0;
}

/* Everything far away fades into the page, as fog: a layer of the background's color over the card. */
.fog {
  position: absolute;
  inset: -40px;
  background: var(--bg);
  border-radius: 28px;
  opacity: 0;
  pointer-events: none;
}

/* A card is a piece of the app: white (the app's own navy-black in dark), its corners and hairline, its shadow. */
.card {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  outline: 1px solid var(--card-line);
  outline-offset: -1px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
}

/* ---------- Card parts, after the app's rows ---------- */

.label,
.head {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cap {
  text-transform: capitalize;
}
.big {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 3px;
}
.big small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
}
.mid {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}
.strong {
  color: var(--text);
  font-weight: 650;
}
.up {
  color: var(--positive);
  font-weight: 600;
}
.down {
  color: var(--negative);
  font-weight: 600;
}
.warn {
  color: var(--warning);
  font-weight: 600;
}
.list {
  margin-top: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row + .row {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--card-line);
}
.row .name {
  flex: 1;
  min-width: 0;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .name.wrap,
.row .name.wrap small {
  white-space: normal;
}
/* Cards have a fixed width: a line that still doesn't fit ends in an ellipsis rather than running under the amount. */
.row .name small,
.row .amt small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.row .amt {
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.row .amt small.up {
  color: var(--positive);
  font-weight: 550;
}
.row .amt.debt {
  color: var(--text-2);
}
/* A category's icon in a tile of its own color, as the app's rows have it. */
.ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
}
.ic svg {
  width: 19px;
  height: 19px;
}
.ic.lg {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: var(--c);
}
.ic.lg svg {
  width: 23px;
  height: 23px;
}
.glyph {
  width: 14px;
  height: 14px;
  flex: none;
}
.logo {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.logo.sq {
  border-radius: 10px;
}
/* Banks' logos are drawn for white (some are a dark mark on nothing), so they sit on a white disc in both themes. */
.logo,
.tile img {
  background: #fff;
}
.chart {
  display: block;
  margin: 14px -18px -18px;
  width: calc(100% + 36px);
}
.chart.inset {
  margin-bottom: 0;
}
.chart path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* The chart's periods, the chosen one in the brand's tint. */
.spans {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}
.spans span {
  padding: 4px 11px;
  border-radius: 999px;
}
.spans .on {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.ring {
  display: block;
  flex: none;
}
.ring circle {
  fill: none;
  stroke-linecap: round;
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--fill);
  margin-top: 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.cat {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cat + .cat {
  margin-top: 13px;
}
.cat > div {
  flex: 1;
}
.cat-top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 550;
}
.cat-top span + span {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-2);
}
.cat-top b {
  font-weight: 650;
  color: var(--text);
}
.cat-top b.down {
  color: var(--negative);
}
.cat .bar {
  margin-top: 7px;
}
/* The month's spending under its pace line, with what it's ahead by on a pill at today. */
.pace {
  position: relative;
}
.pace-pill {
  position: absolute;
  top: 22%;
  transform: translateX(-62%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--positive);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
:root[data-theme="dark"] .pace-pill {
  color: #06210f;
}
/* Transactions' calendar: a day is tinted by what was spent on it. */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  font-size: 11.5px;
  font-weight: 550;
  text-align: center;
}
.cal i {
  font-style: normal;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.cal.week {
  margin-bottom: 4px;
  color: var(--text-3);
  font-size: 10.5px;
}
.cal.week i {
  aspect-ratio: auto;
}
.cal .l0 {
  background: var(--fill);
  color: var(--text-2);
}
.cal .l1 {
  background: color-mix(in srgb, var(--brand) 20%, var(--card));
}
.cal .l2 {
  background: color-mix(in srgb, var(--brand) 45%, var(--card));
}
.cal .l3 {
  background: color-mix(in srgb, var(--brand) 78%, var(--card));
  color: #fff;
}
.cal .now {
  background: var(--brand);
  color: #fff;
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 4px var(--brand);
}
.cal .later {
  color: var(--text-3);
}
/* A purchase in installments: one step each, the paid ones filled. */
.steps {
  display: flex;
  gap: 4px;
  margin: 14px 0 10px;
}
.steps i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--fill);
}
.alloc {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-top: 14px;
}
.alloc i {
  border-radius: 4px;
}
/* The watchlist's ticker: one symbol on a pill. */
.quote {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-size: 13.5px;
  white-space: nowrap;
}
.quote .logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.quote b {
  font-weight: 700;
}
.quote span {
  color: var(--text-2);
}
.quote span.up {
  color: var(--positive);
}
.quote span.down {
  color: var(--negative);
}

/* Ask Zelo: the question in the brand's bubble, the answer on a card edged in its coral. */
.bubble {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 10px auto;
  padding: 10px 15px;
  border-radius: 20px 20px 6px 20px;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.3;
  box-shadow: var(--card-shadow);
}
.card.ask {
  outline-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--card);
}
.ask-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 13px;
}
.orb {
  width: 18px;
  height: 18px;
}
.insight {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.insight-t {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.22;
}
.insight-t i {
  font-style: normal;
}
.insight-b {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.36;
  color: var(--text-2);
}

/* Siri answering from Zelo: its card, edged in Siri's colors turning slowly. */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes spin {
  to {
    --spin: 360deg;
  }
}
.siri {
  animation: spin 7s linear infinite;
  border-radius: 26px;
  padding: 2px;
  background: conic-gradient(from var(--spin, 0deg), #5bc8ff, #8b7cff, #ff6fb1, #ffb23e, #5bc8ff);
  box-shadow: var(--card-shadow);
}
.siri > div {
  border-radius: 24px;
  background: var(--card);
  padding: 15px 17px;
}
.siri-q {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
}
.siri-q .glyph {
  color: #8b7cff;
}
.siri-a {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.34;
}
.siri-a b {
  font-weight: 700;
}

/* The household: its people, each with a role, and room for the next. */
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}
.people img,
.people .plus {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
}
.people .plus {
  border: 1.5px dashed var(--text-3);
  color: var(--text-2);
  font-size: 22px;
  font-weight: 300;
}
.people b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.people b.quiet {
  font-weight: 500;
  color: var(--text-2);
}
.people small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--text-2);
}

/* A notification, as the Lock Screen shows it. */
.notif {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 16px 13px 13px;
  font-size: 13.5px;
  line-height: 1.32;
  color: var(--text-2);
}
.notif > div {
  flex: 1;
  min-width: 0;
}
.notif img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}
.notif-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 1px;
}
.notif-head b {
  color: var(--text);
  font-weight: 650;
}
.notif-head span {
  font-size: 12px;
}
.tile {
  padding: 14px;
}
.tile img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

/*
 * The Home Screen's widgets: the app's own, on its navy in both themes (a widget keeps its look on any wallpaper), with
 * the dark palette's colors.
 */
.widget {
  --w-brand: #5b93f5;
  --w-green: #3dd27a;
  --w-amber: #ffb23e;
  --w-red: #ff6464;
  --track: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(155deg, #2a3f78 0%, #141b33 46%, #0f1a3a 100%);
  box-shadow:
    var(--card-shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.25;
}
.widget.small {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
}
.w-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.w-left {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.w-left b {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.w-sub,
.w-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 3px;
}
.w-sub.center {
  text-align: center;
  margin-top: auto;
}
.w-label {
  margin: 0;
  font-weight: 550;
}
.w-ring,
.w-gauge {
  position: relative;
  flex: none;
}
.w-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.w-thirds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.w-cat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  filter: brightness(1.25) saturate(1.1);
}
.w-cat span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-amt {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
}
.w-amt b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.w-amt.over b {
  color: var(--w-red);
}
.w-fig {
  margin-top: 3px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.w-chip {
  margin-top: 5px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.58);
}
.w-chip span {
  display: inline-block;
  margin-right: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 650;
  color: var(--w-green);
  background: rgba(61, 210, 122, 0.16);
}
.widget .chart {
  margin: auto -16px -16px;
  width: calc(100% + 32px);
  height: 54px;
}
.w-gauge {
  margin: 8px auto 0;
  width: 104px;
  height: 86px;
}
.w-gauge > div {
  position: absolute;
  inset: 26px 0 0;
  text-align: center;
}
.w-gauge small {
  display: block;
  font-size: 11px;
  color: var(--w-amber);
  font-weight: 650;
}
.w-gauge b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- The front: wordmark, line, button ---------- */

.halo {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(1100px, 120vw);
  height: min(640px, 90vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--bg-halo) 0%, var(--bg-halo) 42%, transparent 100%);
  pointer-events: none;
}

.hero {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px));
  text-align: center;
  perspective: 800px;
}

.mark {
  display: block;
  width: clamp(200px, 30vw, 400px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.06)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.05));
}
:root[data-theme="dark"] .mark-a {
  stop-color: #5b93f5;
}
:root[data-theme="dark"] .mark-b {
  stop-color: #7fb0ff;
}
:root[data-theme="dark"] .mark {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

h1 {
  margin: clamp(20px, 3.4vh, 34px) 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}

.cta {
  margin-top: clamp(22px, 3.6vh, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.6vh, 24px);
}

.store {
  display: block;
  border-radius: 9px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.store:hover {
  transform: translateY(-2px);
}
.store:active {
  transform: scale(0.98);
}
.store img {
  display: block;
  height: 54px;
  width: auto;
}
.store .badge-dark,
:root[data-theme="dark"] .store .badge-light {
  display: none;
}
:root[data-theme="dark"] .store .badge-dark {
  display: block;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-2);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.trust svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

/* ---------- Corners ---------- */

.bar-top,
.bar-bottom {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* A phone on its side has the camera's cutout at one edge: the corners keep clear of it. */
  padding: 0 max(clamp(16px, 2.6vw, 32px), env(safe-area-inset-right)) 0 max(clamp(16px, 2.6vw, 32px), env(safe-area-inset-left));
  font-size: 13px;
  color: var(--text-2);
}
.bar-top {
  top: max(16px, env(safe-area-inset-top));
}
.bar-bottom {
  bottom: max(18px, env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marks {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seg {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--chip);
  outline: 1px solid var(--card-line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.seg button,
.icon-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.seg button {
  padding: 6px 12px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.seg button[aria-pressed="true"] {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  outline: 1px solid var(--card-line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.icon-btn:hover {
  transform: rotate(-14deg) scale(1.06);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}
.icon-btn .moon,
:root[data-theme="dark"] .icon-btn .sun {
  display: none;
}
:root[data-theme="dark"] .icon-btn .moon {
  display: block;
}

.links {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
}
.links a:hover,
.made:hover {
  color: var(--text);
}
.made b {
  font-weight: 600;
  color: var(--text);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- Arrival ---------- */

.hero > * {
  animation: rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero > :nth-child(2) {
  animation-delay: 0.12s;
}
.hero > :nth-child(3) {
  animation-delay: 0.2s;
}
.hero > :nth-child(4) {
  animation-delay: 0.3s;
}
.bar-top,
.bar-bottom {
  animation: fade 1.2s 0.5s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(6px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* The theme switch: a circle of the new theme grows from the button (View Transitions, where supported). */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* ---------- Tablets held upright: tall, with room for a bigger wordmark ---------- */

@media (min-width: 700px) and (orientation: portrait) {
  .mark {
    width: clamp(280px, 42vw, 440px);
  }
  h1 {
    font-size: clamp(26px, 3.8vw, 36px);
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .foot {
    flex-direction: column-reverse;
    gap: 8px;
    font-size: 12px;
  }
  .store img {
    height: 48px;
  }
}

/* A phone on its side, or a small one upright (home.js's noRoom()): too short for cards around the words, so no field. */
@media (max-height: 499px), (max-width: 699px) and (max-height: 739px) {
  .scene,
  .halo {
    display: none;
  }
}

/* A phone held upright: the cards pass above and below the words (home.js's narrow()), fading sooner at the edges. */
@media (max-width: 699px) {
  .scene {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 84px, #000 calc(100% - 150px), transparent calc(100% - 70px));
    mask-image: linear-gradient(to bottom, transparent 0, #000 84px, #000 calc(100% - 150px), transparent calc(100% - 70px));
  }
  /* The words fill the width: nothing passes behind them to soften (home.js fades what comes near). */
  .halo {
    display: none;
  }
}

/* A finger needs more than the words: the footer's links get a taller target without moving. */
@media (pointer: coarse) {
  .links a,
  .made {
    padding: 10px 4px;
    margin: -10px -4px;
  }
}

/* A phone on its side, or a page with little height left over: the trust line goes before anything overlaps. */
@media (max-height: 500px) {
  .trust {
    display: none;
  }
  .mark {
    width: clamp(160px, 24vw, 260px);
  }
  h1 {
    margin-top: 14px;
  }
  .cta {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *,
  .bar-top,
  .bar-bottom,
  .siri {
    animation: none;
  }
}

/*
 * The page's own layout and the phone: words down one side and, pinned beside them, a phone whose screen changes to
 * what each section is about (home.js). It sits on everything above: the colors, the corners' controls and every part
 * of a card.
 */

:root {
  --screen: #ffffff;
  --panel: #f3f5f8;
}
:root[data-theme="dark"] {
  /* The app's own dark: its navy, so the page and the screen in the phone are one color. */
  --bg: #0b1020;
  --screen: #0b1020;
  --panel: #151b30;
  --card: #151b30;
  --chip: rgba(30, 38, 66, 0.92);
}

/* home.css is one fixed screen; this page scrolls. */
html,
body {
  height: auto;
  overflow: visible;
  overflow-x: clip;
}
body {
  touch-action: auto;
}

.on-dark,
:root[data-theme="dark"] .on-light {
  display: none;
}
:root[data-theme="dark"] .on-dark {
  display: block;
}

/* ---------- The bar ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* The sides clear a phone's notch or Dynamic Island when it's held on its side. */
  padding: max(12px, env(safe-area-inset-top)) max(clamp(16px, 3vw, 40px), env(safe-area-inset-right)) 12px
    max(clamp(16px, 3vw, 40px), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.top-mark img {
  height: 26px;
  width: auto;
}
.get {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
:root[data-theme="dark"] .get {
  color: #06122b;
}

/* ---------- The story: words, and the phone beside them ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 80px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 max(clamp(20px, 4vw, 48px), env(safe-area-inset-right)) 0 max(clamp(20px, 4vw, 48px), env(safe-area-inset-left));
}
.part {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.copy {
  max-width: 480px;
}
.part h1,
.part h2,
.closing h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.part h1 {
  font-size: clamp(42px, 5.2vw, 68px);
}
.part br.narrow,
.part .narrow-only {
  display: none;
}
@media (max-width: 859px) {
  .part br.narrow {
    display: inline;
  }
  .part h1 span {
    display: block;
  }
}
/* Beside the pinned phone the opening sets as English's does in every language: the headline in two lines, split at
   its comma, and the line under it in one, past the words' width if it has to (Portuguese's and Spanish's are longer). */
@media (min-width: 1000px) {
  .part h1 span {
    display: block;
    white-space: nowrap;
  }
  .part .lede {
    width: max-content;
    max-width: none;
    white-space: nowrap;
  }
}
.part h2,
.closing h2 {
  margin-top: 12px;
  font-size: clamp(32px, 3.7vw, 48px);
}
.part p,
.promises {
  margin: 20px 0 0;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.eyebrow {
  font-size: 14px;
  font-weight: 650;
  color: var(--brand);
}
.eyebrow.coral {
  color: var(--accent);
}
.part .cta {
  align-items: flex-start;
  margin-top: 32px;
}
.part .trust {
  justify-content: flex-start;
}
/* One line beside the pinned phone, past the words' width if it has to (Portuguese's and Spanish's are longer than
   English's); a narrow screen still wraps it. */
@media (min-width: 1000px) {
  .part .trust {
    flex-wrap: nowrap;
    width: max-content;
    gap: 6px 14px;
    white-space: nowrap;
  }
}
/* The region's banks under the opening: an overlapping row of white circles, every mark fitted to the
   same box (scripts/gen-bank-tiles.py cuts them to their marks), and how many more there are. */
.banks {
  margin-top: 26px;
}
.banks .stack {
  display: flex;
}
.banks .stack i + i {
  margin-left: -8px;
}
.banks .stack i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 40, 90, 0.07),
    0 0 0 3px var(--bg),
    0 3px 8px -3px rgba(20, 40, 90, 0.22);
}
.banks .stack img {
  max-width: 58%;
  max-height: 50%;
  object-fit: contain;
}
/* A block of color reads heavier than a mark on white: a little smaller, with rounded corners. */
.banks .stack .badge img {
  max-width: 56%;
  max-height: 56%;
  border-radius: 22%;
}
.part .banks p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-2);
}
.banks p b {
  font-weight: 600;
  color: var(--text);
}
/* Privacy's promises as the App Store's frame sets them: an icon on a tinted tile, a bold title, a line under it. */
.promises {
  max-width: 470px;
  margin-top: 26px;
  padding: 6px 22px;
  border-radius: 26px;
  background: var(--panel, #fff);
  box-shadow:
    0 0 0 1px var(--card-line),
    0 18px 40px -26px rgba(20, 40, 90, 0.35);
  list-style: none;
}
.promises li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
}
.promises li + li {
  border-top: 1px solid var(--card-line);
}
.promises .pi {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}
.promises .pi .glyph {
  width: 22px;
  height: 22px;
}
.promises li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.promises li b {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.promises li span {
  font-size: 15px;
  line-height: 1.4;
}
.promises .lockup {
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--card-line);
  font-size: 13px;
  font-style: normal;
}
.promises .lockup b {
  font-size: 13px;
}

.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
}
/* A soft light of the brand behind the phone. */
.pin::before {
  content: "";
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 20%, transparent), transparent);
  pointer-events: none;
}
/*
 * Net worth's line going on behind the phone (home.js's backline()), while the phone shows Accounts: drawn out to the
 * right once the line in the phone has been (the opening), gone when the story moves on.
 */
.backline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.backline.on {
  opacity: 1;
}
.backline path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.backline .back-right {
  stroke: #2065da;
  stroke-dasharray: 1;
  animation: back-draw 1.3s cubic-bezier(0.4, 0, 0.2, 1) 1.55s both;
}
.backline .back-area {
  animation: back-in 1s ease 2s both;
}
.backline .back-left {
  animation: back-in 0.8s ease 0.1s both;
}
.backline .b0 {
  stop-color: #2065da;
  stop-opacity: 0.2;
}
.backline .b1 {
  stop-color: #2065da;
  stop-opacity: 0;
}
.backline .b2 {
  stop-color: #2065da;
  stop-opacity: 1;
}
:root[data-theme="dark"] .backline .b0 {
  stop-opacity: 0.34;
}
@keyframes back-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes back-in {
  from {
    opacity: 0;
  }
}
.phone {
  position: relative;
}
.phone .device {
  height: min(80vh, 780px);
}

/* ---------- The phone ---------- */

/* Apple's own artwork of the iPhone (scripts/gen-screens.py), over the screen, which sits in the artwork's hole. */
.device {
  position: relative;
  aspect-ratio: 1318 / 2717;
}
/* Its shadow, cast by a plain shape of the phone's outline behind it rather than a filter on the whole phone: a filter
   made Safari redraw the phone and every animation in it offscreen each frame, and on a phone it dropped layers. */
.device::before {
  content: "";
  position: absolute;
  inset: 0.4% 1.2%;
  border-radius: 15% / 7.3%;
  box-shadow:
    0 34px 44px rgba(10, 30, 80, 0.3),
    0 8px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.device::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/assets/device/iphone-18-pro-black.webp) center / 100% 100% no-repeat;
  pointer-events: none;
}
.glass {
  position: absolute;
  left: 4.249%;
  top: 1.767%;
  width: 91.502%;
  height: 96.503%;
  overflow: hidden;
  /* Just inside the artwork's own corners, which cover the rest. */
  border-radius: 11.5% / 5.3%;
  background: var(--screen);
}
/* A screen is drawn at an iPhone's size in points and scaled to the phone it's in (home.js sets --fit). */
.screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 402px;
  height: 874px;
  transform-origin: 0 0;
  transform: scale(var(--fit, 1));
  display: flex;
  flex-direction: column;
  background: var(--screen);
  color: var(--text);
  font-size: 15px;
  text-align: left;
}
/* The halo of a chart's last dot, as the app animates it: out to 3.4 times the dot and gone, every 1.8 seconds. */
.pulse {
  position: absolute;
  width: 2.239%;
  aspect-ratio: 1;
  margin: -1.12% 0 0 -1.12%;
  border-radius: 50%;
  background: #2065da;
  opacity: 0;
  /* After the line has been drawn in (.wipe). */
  animation: pulse 1.8s ease-out 1.8s infinite;
  pointer-events: none;
}
@keyframes pulse {
  from {
    opacity: 0.45;
  }
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
    transform: scale(2);
    opacity: 0.22;
  }
}

/*
 * The watchlist's ticker, over the captured one (62 to 1143 of the capture's 1206 across, 2205 to 2348 of its 2622 down):
 * the same pill, blurring the capture under it as the app's glass does, with the quotes moving. Type is sized from the
 * phone's width (15 points of its 402).
 */
.glass {
  container-type: inline-size;
}
.ticker {
  position: absolute;
  /* The app's own accessory, empty (scripts/gen-screens.py's pill): 58 to 1148 of the capture's 1206 across, 2200 to
     2354 of its 2622 down, so its rim and glass are the capture's exactly. */
  left: 4.809%;
  top: 83.905%;
  width: 90.381%;
  height: 5.873%;
  background: url(/assets/screens/pill-light.webp) 0 0 / 100% 100% no-repeat;
  color: #0b0b0c;
  font-size: 3.731cqw;
  line-height: 1;
  pointer-events: none;
}
:root[data-theme="dark"] .ticker {
  background-image: url(/assets/screens/pill-dark.webp);
  color: #f5f5f7;
}
/* The strip is cut off inside the pill's padding, as in the app. */
.ticker > div {
  position: absolute;
  inset: 0 4.73%;
  overflow: hidden;
}
.ticker > div > div {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: ticker 38s linear infinite;
}
.ticker span {
  padding-right: 6.2cqw;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.ticker b {
  font-weight: 650;
}
.ticker i,
.ticker u {
  font-style: normal;
  text-decoration: none;
}
.ticker .up {
  color: var(--positive);
  font-weight: 400;
}
.ticker .down {
  color: var(--negative);
  font-weight: 400;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker > div > div {
    animation: none;
  }
}

/*
 * Accounts, the page's first screen (home.js's worth()). The list showing through beside the ticker and under the tab
 * bar is painted out; the chart is covered and uncovered from the left, which draws its line in; the figure is the
 * page's own while it counts up or is read off the chart, the capture's the rest of the time.
 */
.patch,
.wipe,
.figure {
  position: absolute;
  background: var(--screen);
  pointer-events: none;
}
/* The line from its dot to the screen's edge, where the one behind the phone takes over. */
.tail {
  position: absolute;
  left: 95.94%;
  right: 0;
  height: 0.75cqw;
  margin-top: -0.375cqw;
  background: #2065da;
  pointer-events: none;
}
/* The chart's fill under it, from the line down to where the app's fades out, so the screen's edge isn't left white. */
.tail-fill {
  position: absolute;
  /* Where the capture's own fill stops (771.5 of its 804 pixels), so the two neither overlap nor part. */
  left: 96%;
  right: 0;
  bottom: 44.7%;
  background: linear-gradient(rgb(32 101 218 / var(--a)), rgb(32 101 218 / 0));
  pointer-events: none;
}
.patch.beside {
  inset: 85% 0 auto;
  height: 4.7%;
}
.patch.under {
  inset: 97.7% 0 0;
}
.wipe {
  inset: 26% 0 auto;
  height: 31%;
  transform-origin: right;
  animation: wipe 1.5s cubic-bezier(0.5, 0, 0.2, 1) 0.2s both;
}
@keyframes wipe {
  to {
    transform: scaleX(0);
  }
}
.figure {
  left: 2%;
  top: 16%;
  width: 80%;
  height: 4.2%;
  display: flex;
  align-items: center;
  padding-left: 2.25%;
  color: #000;
  /* The size is fitted to the capture's figure when the page is drawn (home.js's countUp). */
  font-size: 8.458cqw;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 0.25s;
}
:root[data-theme="dark"] .figure {
  color: #fff;
}
.figure.done {
  opacity: 0;
}
.reading .figure {
  opacity: 1;
  transition: none;
}
/* The chart read with a pointer or a finger: a marker on the line, a rule through it, the day above. */
.scrub {
  position: absolute;
  inset: 26% 0 auto;
  height: 31%;
  cursor: crosshair;
  touch-action: pan-y;
}
.rule,
.knob,
.when {
  position: absolute;
  left: var(--at-x, 50%);
  opacity: 0;
  pointer-events: none;
}
.reading .rule,
.reading .knob,
.reading .when {
  opacity: 1;
}
.rule {
  top: 28.5%;
  width: 1px;
  height: 28%;
  background: color-mix(in srgb, var(--text-2) 55%, transparent);
}
.knob {
  top: var(--at-y, 40%);
  width: 2.6cqw;
  height: 2.6cqw;
  margin: -1.3cqw 0 0 -1.3cqw;
  border-radius: 50%;
  background: #2065da;
  box-shadow: 0 0 0 0.6cqw var(--screen);
}
.when {
  top: 26%;
  transform: translateX(clamp(-90%, calc(-1 * var(--at-x, 50%)), -10%));
  font-style: normal;
  font-size: 3.1cqw;
  font-weight: 550;
  color: var(--text-2);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .wipe {
    animation: none;
    transform: scaleX(0);
  }
  .backline path {
    animation: none !important;
  }
}

/*
 * Ask Zelo's orb over the captured one, moving as the app's does (HeaderOrb): its colors across the diagonal, turning
 * once in six seconds, and two soft patches of them drifting round inside.
 */
.orbit {
  position: absolute;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  pointer-events: none;
}
.orbit::before {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: linear-gradient(to top right, #f2643d, #ffb23e, #ff8a63, #2065da, #5b93f5);
  animation: orbit-turn 6s linear infinite;
}
.orbit i {
  position: absolute;
  left: 15%;
  top: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(1cqw);
}
.orbit i:first-child {
  background: #f2643d;
  animation: orbit-a 5.4s linear infinite;
}
.orbit i:last-child {
  background: #2065da;
  animation: orbit-b 7.4s linear infinite;
}
@keyframes orbit-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes orbit-a {
  0%,
  100% {
    transform: translate(37%, 0);
  }
  25% {
    transform: translate(0, 17%);
  }
  50% {
    transform: translate(-37%, 0);
  }
  75% {
    transform: translate(0, -17%);
  }
}
@keyframes orbit-b {
  0%,
  100% {
    transform: translate(20%, 0);
  }
  25% {
    transform: translate(0, -40%);
  }
  50% {
    transform: translate(-20%, 0);
  }
  75% {
    transform: translate(0, 40%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbit::before,
  .orbit i {
    animation: none;
  }
}

/* A capture of the app fills the glass as it is: no scaling to do. */
.screen.shot {
  width: 100%;
  height: 100%;
  transform: none;
}
.screen.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Every section's screens are stacked in the one phone. A screen that isn't showing is hidden once it has faded out,
   not just transparent: Safari kept painting all of them, each with its full-size captures, and on a phone it ran out of
   room and dropped parts of the one showing (the frame, Upcoming's list, Investments' tab bar). */
.phone .screen {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0s 0.5s;
}
.phone .screen.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.sb {
  flex: none;
  height: 58px;
  background: var(--status-light) top / 402px auto no-repeat;
}
:root[data-theme="dark"] .sb,
.s-native .sb {
  background-image: var(--status-dark);
}
.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
}
.title b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.me,
.round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.round {
  display: grid;
  place-items: center;
  background: var(--fill);
  font-size: 17px;
}
.round .glyph {
  width: 18px;
  height: 18px;
}
.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 8px;
}
.sheet-bar b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 650;
}
.sheet-bar .orb {
  width: 20px;
  height: 20px;
}
.sheet-bar span:last-child {
  width: 36px;
}

/* Inside the phone a card lies flat: the app draws that part straight on the screen. */
.screen .card {
  background: none;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  overflow: visible;
  padding: 8px 20px 12px;
  font-size: 15px;
}
.screen .chart {
  margin: 14px -20px 0;
  width: calc(100% + 40px);
}
.screen .big {
  font-size: 34px;
}
.screen .head {
  margin-bottom: 12px;
  font-size: 14px;
}
.screen .ic,
.screen .logo {
  width: 36px;
  height: 36px;
}

.tabbar {
  position: absolute;
  inset: auto 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tabs,
.tab-orb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--screen) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px var(--card-line);
}
.tabs {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 5px;
}
.tabs span {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 2px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 550;
  color: var(--text-2);
}
.tabs .on {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.tabs .glyph {
  width: 22px;
  height: 22px;
}
.tab-orb {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}
.tab-orb .orb {
  width: 28px;
  height: 28px;
}

/*
 * Ask Zelo, drawn (home.js's SCREENS.ask) and played as a conversation (playTalk): each piece waits out of sight and
 * comes in when it's its turn (`in`). In the screen's own points (402 across), which the phone scales.
 */
.screen.s-ask {
  background:
    radial-gradient(70% 34% at 85% 22%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    radial-gradient(80% 40% at 10% 60%, color-mix(in srgb, var(--brand) 14%, transparent), transparent), var(--screen);
}
/* Its surfaces are glass over the screen's glow, not the page's flat panel: they take the color behind them. */
.s-ask {
  --panel: rgba(255, 255, 255, 0.72);
  --card-line: rgba(20, 40, 90, 0.07);
}
:root[data-theme="dark"] .s-ask {
  --panel: rgba(255, 255, 255, 0.06);
  --card-line: rgba(255, 255, 255, 0.09);
}
.s-ask .reply,
.s-ask .card.ask,
.s-ask .chips span,
.s-ask .field {
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    inset 0 0 0 1px var(--card-line),
    0 6px 18px -10px rgba(20, 40, 90, 0.18);
}
.talk {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ask-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
}
.ask-top b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
}
/* The app's own ✕ on this screen: iOS's glass close button, 44 points round, its xmark drawn as SF Symbols draws it. */
.ask-top .round.close {
  position: absolute;
  right: 16px;
  width: 44px;
  height: 44px;
  background: linear-gradient(#f8f8f8, #ededed);
  box-shadow:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.07),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04),
    0 2px 10px -2px rgba(0, 0, 0, 0.1);
  color: #111;
}
.ask-top .round.close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
}
:root[data-theme="dark"] .ask-top .round.close {
  background: linear-gradient(#323b55, #262d44);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 2px 10px -2px rgba(0, 0, 0, 0.4);
  color: #fcfffe;
}
.orbit.small {
  position: relative;
  flex: none;
  width: 20px;
}
.orbit.small i {
  filter: blur(4px);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
}
.chat > * {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat .bubble {
  margin: 0 0 4px auto;
  padding: 10px 16px;
  font-size: 16px;
  box-shadow: none;
  /* Sent: up from the ask bar's corner, with a little spring. */
  transform-origin: 100% 100%;
  transform: translateY(40px) scale(0.8);
  transition:
    opacity 0.2s ease,
    transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.chat > .in,
.chat .bubble.in {
  opacity: 1;
  transform: none;
}
.reply {
  align-self: flex-start;
  max-width: 84%;
  min-width: 96px;
  padding: 12px 15px 13px;
  border-radius: 20px 20px 20px 6px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--card-line);
}
.reply .ask-head {
  margin-bottom: 6px;
  font-size: 13.5px;
}
.reply p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.36;
}
.reply .dots {
  display: none;
  gap: 5px;
  padding: 5px 0 3px;
}
.reply.thinking .dots {
  display: flex;
}
.reply.thinking p {
  display: none;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  animation: thinking 1s ease-in-out infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes thinking {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-35%);
  }
}
.screen .card.ask {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--card-line);
}
.s-ask .insight-t {
  font-size: 17px;
}
.s-ask .insight-b {
  font-size: 14px;
}
/* Over a budget is a warning here, as on the App Store's screenshot, not a loss. */
.s-ask .insight-t .down {
  color: var(--warning);
}
.composer {
  position: absolute;
  inset: auto 16px 26px;
}
.composer .chips {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.composer .chips.in {
  opacity: 1;
}
.composer .chips span {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--card-line);
  font-size: 13.5px;
  font-weight: 550;
}
.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 7px 0 20px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--card-line);
  color: var(--text-2);
  font-size: 16px;
}
.field em {
  font-style: normal;
  white-space: nowrap;
}
.typing .field em {
  color: var(--text);
}
/* The caret, while typing. */
.typing .field em::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  border-radius: 1px;
  background: var(--accent);
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.field i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2643d, #ff8a63);
  color: #fff;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.typing .field i {
  opacity: 1;
}
.field .glyph {
  width: 20px;
  height: 20px;
}

/* Investments' watchlist, as pills along the bottom. */
.quotes {
  display: flex;
  gap: 8px;
  padding: 6px 20px;
  overflow: hidden;
}
.screen .card.quote {
  flex: none;
  padding: 6px 13px 6px 6px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 12.5px;
}
.screen .quote .logo {
  width: 26px;
  height: 26px;
}

/* A member of the household: their role, and the accounts they may see. */
.screen .card.member {
  margin: 8px 16px 0;
  padding: 16px;
  border-radius: 22px;
  background: var(--panel);
}
.segment {
  display: flex;
  margin-top: 16px;
  padding: 3px;
  border-radius: 11px;
  background: var(--fill);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.segment span {
  flex: 1;
  padding: 7px;
  border-radius: 9px;
  color: var(--text-2);
}
.segment .on {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--text-3);
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.tick.on {
  border-color: var(--brand);
  background: var(--brand);
}

/*
 * On your iPhone (home.js's SCREENS.native, playFlow's "native"): a wallpaper and Zelo's widgets, the Lock Screen, Control
 * Center and Siri as layers over it, each brought up as iOS brings it. Drawn at the phone's 402 points.
 */
.screen.s-native {
  background:
    radial-gradient(80% 50% at 15% 10%, rgba(120, 140, 255, 0.55), transparent 60%),
    radial-gradient(70% 45% at 95% 55%, rgba(170, 90, 220, 0.45), transparent 65%),
    radial-gradient(90% 50% at 30% 100%, rgba(40, 120, 200, 0.5), transparent 70%), linear-gradient(170deg, #2b3e9e 0%, #1a2266 45%, #0b0f33 100%);
  color: #fff;
  overflow: hidden;
}
.s-native .sb {
  position: relative;
  z-index: 10;
}
.s-native .glyph {
  color: inherit;
}
.s-native .layer {
  position: absolute;
  inset: 0;
}
.s-native .hs {
  padding: 66px 25px 0;
}
.wgrid {
  display: grid;
  gap: 16px;
}
.wgrid .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* The widgets come alive: rings filling, the line drawn, the gauge swept (their figures count up in home.js's replayDrawn). */
.hs.play .ring circle:last-child {
  animation: ringfill 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s both;
}
@keyframes ringfill {
  from {
    stroke-dasharray: 0 1000;
  }
}
.hs.play .widget .chart path {
  stroke-dasharray: 400;
  animation: drawline 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}
@keyframes drawline {
  from {
    stroke-dashoffset: 400;
  }
}
.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  text-align: center;
}
.apps span {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.apps small {
  height: 14px;
  font-size: 12px;
  font-weight: 500;
}
.s-native .app {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 15px;
}
/* Other apps' places: plain frosted squares, no one's icon. */
.s-native .app.blank {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hdots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 124px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hdots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.hdots i.on {
  background: #fff;
}
.hdock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 96px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.hdock .app.blank {
  background: rgba(255, 255, 255, 0.2);
}

/* The Lock Screen: down over the Home Screen from the top, and back up. */
.s-native .ls {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 92px;
  background:
    radial-gradient(80% 50% at 20% 5%, rgba(120, 140, 255, 0.5), transparent 60%),
    radial-gradient(70% 45% at 90% 60%, rgba(170, 90, 220, 0.4), transparent 65%), linear-gradient(170deg, #26368c 0%, #151b55 50%, #080b26 100%);
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
.s-native.lockscreen .ls {
  transform: none;
}
.ls-date {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.85;
}
.ls-time {
  margin-top: -6px;
  font-size: 104px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ls-widgets {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.ls-circ,
.ls-rect {
  position: relative;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ls-circ {
  display: grid;
  place-items: center;
  width: 72px;
  border-radius: 50%;
  --track: rgba(255, 255, 255, 0.25);
}
.ls-circ > div {
  position: absolute;
  display: grid;
  justify-items: center;
}
.s-native .ls-circ .glyph {
  width: 14px;
  height: 14px;
}
.ls-circ b {
  font-size: 13px;
  font-weight: 700;
}
.ls-rect {
  display: grid;
  align-content: center;
  justify-items: start;
  text-align: left;
  width: 170px;
  padding: 0 14px;
}
.ls-cat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}
.s-native .ls-cat .glyph {
  width: 14px;
  height: 14px;
}
.ls-rect b {
  font-size: 19px;
  font-weight: 700;
}
.ls-rect small {
  font-size: 13px;
  opacity: 0.75;
}
.ls-bottom {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 52px;
  display: flex;
  justify-content: space-between;
}
.ls-bottom i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.s-native .ls-bottom .glyph,
.s-native .cc .glyph {
  width: 22px;
  height: 22px;
}
.ls-bar {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 140px;
  height: 5px;
  margin-left: -70px;
  border-radius: 3px;
  background: #fff;
}

/* Control Center: pulled down from the top right over the blurred Home Screen. */
.s-native .cc {
  padding: 92px 25px 0;
  background: rgba(10, 14, 40, 0.38);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.s-native.center .cc {
  opacity: 1;
}
.cc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 78px;
  gap: 16px;
  transform: translate(20px, -60px) scale(0.92);
  transform-origin: top right;
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}
.s-native.center .cc-grid {
  transform: none;
}
.cc-block,
.cc-ctl,
.cc-slider,
.cc-round {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
}
.cc-block {
  grid-column: span 2;
  grid-row: span 2;
}
.cc-block.conn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  padding: 12px;
}
.cc-block.conn i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.cc-block.conn i.on {
  background: #f79a2e;
}
.cc-block.conn i.green {
  background: #34c759;
}
.cc-block.conn i.blue {
  background: #2f7cf6;
}
.cc-block.media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}
.cc-block.media b {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.6;
}
.cc-block.media i {
  align-self: center;
}
/* Zelo's two controls, as medium controls show them: the symbol and its name. */
.cc-ctl {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.cc-ctl i {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.cc-ctl i.orbish {
  background: linear-gradient(140deg, #ff8a5c, #ef4f5f);
}
.cc-ctl b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}
.cc-slider {
  grid-row: span 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}
.cc-slider > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
}
.cc-slider .glyph {
  position: relative;
  color: #8a8f9e;
}
.cc-round {
  display: grid;
  place-items: center;
  border-radius: 50%;
  aspect-ratio: 1;
  height: 78px;
  justify-self: center;
}

/*
 * Siri on iOS 27, from outside the app: it lives in the Dynamic Island. Listening, the island stretches into a glowing
 * pill with the words heard; answered, it opens down into Siri's results card, always dark, with Siri's sentence and the
 * card Zelo hands it (siri/ZeloSiriCards.swift's NetWorthCard: what's owned and what's owed, not the figure just said).
 * The island here sits under the phone artwork's own (152 to 250 across, 13 to 51 down), so it grows out of it.
 */
.s-native .siri-on {
  z-index: 11;
  pointer-events: none;
}
.isle {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 98px;
  height: 38px;
  margin-left: -49px;
  border-radius: 19px;
  background: #000;
  color: #fff;
  transition:
    width 0.5s cubic-bezier(0.32, 1.15, 0.5, 1),
    height 0.5s cubic-bezier(0.32, 1.15, 0.5, 1),
    margin-left 0.5s cubic-bezier(0.32, 1.15, 0.5, 1),
    border-radius 0.5s;
}
/* Listening: wide enough for the orb beside the camera, deep enough for the words heard under it. */
.s-native.asking .isle {
  width: 340px;
  height: 92px;
  margin-left: -170px;
  border-radius: 38px;
}
.s-native.answered .isle {
  width: 382px;
  height: 278px;
  margin-left: -191px;
  border-radius: 46px;
}
/* The glow round the pill while Siri listens and thinks: Siri's colors turning, swelling with the voice. */
@property --siri-turn {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.isle-glow {
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--siri-turn), #ff9f0a, #ff375f, #bf5af2, #5e5ce6, #64d2ff, #ffd60a, #ff9f0a);
  filter: blur(9px);
  opacity: 0;
  transition: opacity 0.35s;
  animation: siriturn 2.6s linear infinite;
}
@keyframes siriturn {
  to {
    --siri-turn: 360deg;
  }
}
.s-native.asking .isle-glow {
  opacity: 1;
  animation:
    siriturn 2.6s linear infinite,
    sirivoice 0.7s ease-in-out infinite alternate;
}
@keyframes sirivoice {
  to {
    inset: -9px;
    filter: blur(13px);
  }
}
.s-native.answered .isle-glow {
  opacity: 0;
}
.isle-listen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 22px 16px;
  opacity: 0;
  transition: opacity 0.25s;
}
.s-native.asking:not(.answered) .isle-listen {
  opacity: 1;
  transition-delay: 0.2s;
}
.siri-heard {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
/* Under the camera, which sits in the island's middle. */
.isle-card {
  position: absolute;
  inset: 0;
  padding: 52px 22px 20px;
  opacity: 0;
  transition: opacity 0.25s;
}
.s-native.answered .isle-card {
  opacity: 1;
  transition-delay: 0.25s;
}
.isle-card .sa {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.isle-card .snip {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border-radius: 26px;
  background: #1c1c1e;
}
.snip-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(235, 235, 245, 0.6);
}
.s-native .snip-head img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.snip .parts {
  display: flex;
  gap: 28px;
}
.snip .parts small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.6);
}
.snip .parts small i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.snip .parts .brand {
  background: #5b93f5;
}
.snip .parts .warn {
  background: #ffb23e;
}
.snip .parts b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
}
.snip .split {
  display: flex;
  gap: 3px;
  height: 6px;
  margin-top: 14px;
}
.snip .split i {
  min-width: 6px;
  border-radius: 3px;
  background: #5b93f5;
}
.snip .split i + i {
  background: #ffb23e;
}
@media (prefers-reduced-motion: reduce) {
  .isle-glow,
  .s-native.asking .isle-glow {
    animation: none;
  }
}
.screen .widget {
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Locked. */
.locked {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding-bottom: 90px;
  text-align: center;
}
.locked img {
  width: 88px;
  height: 88px;
  margin-bottom: 26px;
  border-radius: 21px;
  box-shadow: 0 14px 30px -12px rgba(10, 30, 80, 0.5);
}
.locked .glyph {
  width: 46px;
  height: 46px;
  color: var(--brand);
}
.locked b {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 650;
}
.locked small {
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- The close, the foot ---------- */

.closing {
  padding: clamp(80px, 14vh, 150px) 24px clamp(60px, 10vh, 110px);
  text-align: center;
}
.closing > img {
  height: 46px;
  width: auto;
  margin: 0 auto 26px;
}
.closing p {
  max-width: 520px;
  margin: 18px auto 30px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.closing .store {
  display: inline-block;
}
.end {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px clamp(16px, 3vw, 40px) max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--card-line);
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Narrow: nothing pinned; each section brings its own phone ---------- */

/*
 * A narrow screen: one column that scrolls freely, each section its words and then a phone of its own (home.js's own()),
 * big, cut off two thirds of the way down and fading into the page. The pinned phone shared the window with the words,
 * which left both cramped, and hung on the window's exact height (Safari's floating bar, a closed iPhone Duo).
 */
@media (max-width: 859px) {
  .story {
    display: block;
  }
  .pin {
    display: none;
  }
  .part {
    display: block;
    min-height: 0;
    padding: clamp(56px, 12vw, 88px) 0 0;
  }
  /* Clear of the fixed bar. */
  .part.opening {
    padding-top: calc(max(12px, env(safe-area-inset-top)) + 88px);
  }
  .copy {
    max-width: 560px;
  }
  .part h1 {
    font-size: min(42px, 10.5vw);
  }
  .part h2 {
    margin-top: 8px;
    font-size: min(36px, 9vw);
  }
  .part p {
    margin-top: 14px;
    font-size: 17px;
  }
  .part .cta {
    margin-top: 24px;
  }
  .part .trust {
    gap: 6px 14px;
  }
  .banks {
    margin-top: 22px;
  }
  .banks .stack i {
    width: 38px;
    height: 38px;
  }
  .banks .stack i + i {
    margin-left: -7px;
  }
  .part .banks p {
    margin-top: 8px;
    font-size: 14px;
  }
  .get {
    padding: 8px 14px;
  }
  /* The phone, two thirds of it: cut off at its box's foot (the sides and top left open for its shadow), the page's
     ground coming up over the cut. */
  .own {
    position: relative;
    width: min(76vw, 340px);
    aspect-ratio: 1318 / 1790;
    margin: 32px auto 0;
    clip-path: inset(-60px -60px 0 -60px);
  }
  /* A soft light of the brand behind it, as behind the pinned phone. */
  .own::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 40%;
    width: 150%;
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
    pointer-events: none;
  }
  .own::after {
    content: "";
    position: absolute;
    left: -60px;
    right: -60px;
    bottom: 0;
    height: 34%;
    background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent), var(--bg));
    pointer-events: none;
  }
  /* Whole, where the screen's story happens at its foot: Household's sheet coming up, Control Center and Siri. */
  .own[data-own="household"],
  .own[data-own="native"] {
    aspect-ratio: 1318 / 2717;
  }
  .own[data-own="household"]::after,
  .own[data-own="native"]::after {
    display: none;
  }
  /* Out of the flow, so the box keeps its ratio (it would grow to the whole phone) and cuts it. */
  .own .phone {
    position: absolute;
    inset: 0 0 auto;
  }
  .own .phone .device {
    width: 100%;
    height: auto;
  }
}

/* A phone on its side: wide enough for the words beside the phone, but short. The phone keeps clear of the bar (it was
   80% of the window, centered, and the bar hid its top), and the words are set smaller to fit the height. */
@media (min-width: 860px) and (max-height: 560px) {
  .pin {
    box-sizing: border-box;
    padding: 64px 0 12px;
  }
  /* svh: the window with Safari's bars out, which on a phone on its side take a third of it. */
  .pin {
    height: 100svh;
  }
  .phone .device {
    height: calc(100svh - 84px);
  }
  .part {
    box-sizing: border-box;
    padding: 64px 0 12px;
  }
  .part h1 {
    font-size: clamp(30px, 4vw, 40px);
  }
  .part h2 {
    margin-top: 8px;
    font-size: clamp(26px, 3.2vw, 34px);
  }
  .part p {
    margin-top: 12px;
    font-size: 16px;
  }
  .part .cta {
    margin-top: 18px;
  }
  .banks {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone .screen {
    transition: none;
  }
}

/*
 * Budgets (home.js's flowScreen): the list and Groceries' page side by side as iOS pushes one over the other, the status
 * bar and tab bar held still above both. What draws the list in (.play) runs each time the section comes into view.
 */
.flow {
  --track: rgb(234, 233, 238);
}
:root[data-theme="dark"] .flow {
  --track: rgb(34, 42, 70);
}
.flow .page,
.flow .dock,
.flow .still {
  position: absolute;
  inset: 0;
}
.flow .page {
  background: var(--screen);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.flow .detail {
  transform: translateX(100%);
  box-shadow: -2cqw 0 6cqw rgba(10, 20, 50, 0.12);
}
.flow.pushed .roster {
  transform: translateX(-30%);
}
.flow.pushed .detail {
  transform: none;
}
.flow .dock,
.flow .still {
  pointer-events: none;
}
/* Nothing of the list below its last whole row: the tab bar's glass and the ticker float over the screen's color. */
.flow .below {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--screen);
}
.flow .still > img {
  clip-path: inset(0 0 94% 0);
}
/* The tab bar's pill and Ask Zelo's circle beside it, cut from the list's capture. */
.flow .dock > img {
  clip-path: inset(90.45% 22.39% 2.35% 4.975% round 7.84cqw);
}
.flow .orb-glass {
  position: absolute;
  inset: 0;
  background: var(--shot) 0 0 / 100% 100%;
  clip-path: circle(7.9cqw at 87.13% 94.11%);
}

/* At rest (and with Reduce Motion) the captures show as they are; these only come on to draw them in. */
.flow .count,
.flow .track,
.flow .fill,
.flow .pill,
.flow .pill-cover,
.flow .bwipe {
  position: absolute;
  display: none;
  pointer-events: none;
}
.flow .play .count,
.flow .play .track,
.flow .play .fill,
.flow .play .pill,
.flow .play .pill-cover,
.flow .play .bwipe {
  display: block;
}
.flow .count {
  background: var(--screen);
  color: #000;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s;
}
:root[data-theme="dark"] .flow .count {
  color: #fff;
}
.flow .play .count {
  display: flex;
  align-items: center;
}
.flow .count.flush {
  justify-content: flex-end;
}
.flow .count.done {
  opacity: 0;
}
.flow .track {
  border-radius: 999px;
  background: var(--track);
}
.flow .fill {
  border-radius: 999px;
  background-image: var(--shot);
  background-size: 100cqw auto;
  background-repeat: no-repeat;
  animation: fill 1s cubic-bezier(0.3, 0.7, 0.2, 1) var(--d, 0ms) both;
}
@keyframes fill {
  from {
    clip-path: inset(0 100% 0 0 round 3cqw);
  }
  to {
    clip-path: inset(0 0 0 0 round 3cqw);
  }
}
/* The month's spending drawn in along its pace, then the pill saying where it stands. */
.flow .bwipe {
  left: 0;
  right: 0;
  top: 27.5%;
  height: 14.4%;
  background: var(--screen);
  transform-origin: right;
  animation: wipe 1.4s cubic-bezier(0.5, 0, 0.2, 1) 0.15s both;
}
/* The pill's own shape and no larger: the line passes close by its right end. It pops in as the wipe reaches it (0.7s
   in, in both languages), over the wipe, so its cover, a blank over the pace line, never shows for longer than the pop. */
.flow .pill-cover {
  border-radius: 999px;
  background: var(--screen);
  animation: gone 0s linear 1.05s both;
}
.flow .pill {
  z-index: 1;
  border-radius: 999px;
  background-image: var(--shot);
  background-size: 100cqw auto;
  background-repeat: no-repeat;
  animation: pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) 0.7s both;
}
@keyframes gone {
  to {
    visibility: hidden;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
.flow .pulse.pace {
  background: var(--positive);
  animation: none;
}
.flow .play .pulse.pace {
  animation: pulse 1.8s ease-out 1.7s infinite;
}
/* Groceries tapped: the row darkens under a fingertip, as a list row does. */
.flow .lift {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.07);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
:root[data-theme="dark"] .flow .lift {
  background: rgba(255, 255, 255, 0.09);
}
.flow.tapping .lift {
  opacity: 1;
  transition: opacity 0.08s;
}
.flow .touch {
  position: absolute;
  width: 11cqw;
  aspect-ratio: 1;
  margin: -5.5cqw 0 0 -5.5cqw;
  border-radius: 50%;
  background: rgba(20, 30, 60, 0.22);
  box-shadow: 0 0 0 0.5cqw rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: scale(1.4);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}
.flow.tapping .touch:not(.on-row):not(.later),
.flow.choosing .touch.on-row {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.12s,
    transform 0.15s;
}

/*
 * Transactions (home.js's sheetScreen): the month filled in, then a row's sheet slid up over the list, dimmed as iOS dims
 * it (the captures' own: black at a fifth in light, half in dark), and down again once its ✓ is tapped.
 */
.flow .month,
.flow .day {
  position: absolute;
  display: none;
  pointer-events: none;
}
.flow .play .month,
.flow .play .day {
  display: block;
}
.flow .month {
  background: var(--screen);
}
.flow .day {
  background-image: var(--shot);
  background-size: 100cqw auto;
  background-repeat: no-repeat;
  animation: day 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) var(--d, 0ms) both;
}
@keyframes day {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
}
.flow .count.review {
  color: #2563db;
}
:root[data-theme="dark"] .flow .count.review {
  color: #6091f9;
}
/* Laid out from the start, unseen until the row's reviewed, so it's fitted to the capture's number like the others. */
.flow .play .count.review {
  opacity: 0;
  transition: opacity 0.3s;
}
.flow.reviewed .play .count.review {
  opacity: 1;
}
/* The reviewed row's dot, painted out. */
.flow .seen {
  position: absolute;
  border-radius: 50%;
  background: var(--screen);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.flow.reviewed .seen {
  opacity: 1;
}
.flow .dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.flow.open .dim {
  opacity: 0.2;
}
:root[data-theme="dark"] .flow.open .dim {
  opacity: 0.5;
}
.flow .sheet {
  position: absolute;
  inset: 0;
  transform: translateY(62%);
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s 0.5s;
  pointer-events: none;
}
.flow.open .sheet {
  transform: none;
  visibility: visible;
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}
/* The sheet alone, cut from its capture: inset from the screen's sides and bottom, its corners the phone's. */
.flow .sheet > img {
  clip-path: inset(41.02% 1.99% 0.97% 1.99% round 9.95cqw 9.95cqw 13.93cqw 13.93cqw);
}
/* Rent's sheet: a sheet over Upcoming's in the app, so higher up and a little narrower than a transaction's. */
.flow .sheet.bill > img {
  clip-path: inset(11.594% 1.824% 0.915% 1.824% round 9.95cqw 9.95cqw 13.93cqw 13.93cqw);
}
/* Its ✓, pressed. */
.flow .okay {
  position: absolute;
  /* Just inside the button's edge, so pressing darkens only its blue. */
  left: 5.97%;
  top: 43.02%;
  width: 9.7cqw;
  height: 9.7cqw;
  border-radius: 50%;
  background-image: var(--shot);
  background-size: 100cqw auto;
  background-repeat: no-repeat;
  transition: filter 0.25s;
}
/* No fingertip here (one as big as the button reads as a ring round it), and no shrinking (the capture's own button
   would show round it): it darkens, as a pressed button does. */
.flow.ticking .okay {
  filter: brightness(0.8);
  transition: filter 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .flow .page {
    transition: none;
  }
}

/*
 * Upcoming's push (home.js's note): one notification banner as iOS draws one, frosted and rounded, dropping in under the
 * Dynamic Island while the flow has it (.noted), and back up.
 */
.note {
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  top: 6.4%;
  pointer-events: none;
  transform: translateY(-150%) scale(0.96);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.6, 1),
    opacity 0.45s;
}
.flow.noted .note {
  transform: none;
  opacity: 1;
  transition:
    transform 0.6s cubic-bezier(0.32, 1.25, 0.5, 1),
    opacity 0.3s;
}
.note .banner {
  border-radius: 6.5cqw;
  background: rgba(246, 246, 248, 0.84);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.05),
    0 2cqw 6cqw -1cqw rgba(20, 30, 60, 0.22);
}
:root[data-theme="dark"] .note .banner {
  background: rgba(44, 46, 56, 0.88);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 2cqw 6cqw -1cqw rgba(0, 0, 0, 0.5);
}
.note .banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3.2cqw;
  padding: 3.4cqw 4cqw;
  color: #0b0b0c;
}
:root[data-theme="dark"] .note .banner {
  color: #f5f5f7;
}
.screen.shot .note img {
  flex: none;
  object-fit: cover;
  width: 9.5cqw;
  height: 9.5cqw;
  border-radius: 2.2cqw;
}
.note .banner > div {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.note small {
  display: flex;
  justify-content: space-between;
  font-size: 2.9cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8e;
}
.note small span {
  text-transform: none;
  letter-spacing: 0;
}
.note b {
  display: block;
  margin-top: 0.4cqw;
  font-size: 3.73cqw;
  font-weight: 650;
}
.note p {
  margin: 0.2cqw 0 0;
  font-size: 3.73cqw;
}

/*
 * Investments (home.js's coverScreen): Stocks slides up over the whole screen, as the app's accessory opens it, with
 * the page's live figures over the capture's.
 */
.flow .iwipe {
  top: 36.04%;
  height: 21.85%;
}
.flow .sheet.cover {
  transform: translateY(100%);
}
.flow.open .sheet.cover {
  transform: none;
}
.flow .sheet.cover > img {
  clip-path: none;
}
.flow .figs {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.6cqw;
  border-radius: 1.4cqw;
  background: var(--screen);
  color: #000;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
:root[data-theme="dark"] .flow .figs {
  color: #fff;
}
.flow .figs.live {
  display: flex;
}
.flow .figs.lead {
  justify-content: flex-start;
  padding-left: 0.5cqw;
}
.flow .figs.move.up,
.flow .figs.gain.up,
.flow .figs.day.up,
.flow .figs.trend.up,
.flow .figs.today.up,
.flow .figs.overall.up {
  color: var(--positive);
}
.flow .figs.move.down,
.flow .figs.gain.down,
.flow .figs.day.down,
.flow .figs.trend.down,
.flow .figs.today.down,
.flow .figs.overall.down {
  color: var(--negative);
}
.flow .figs em {
  font-style: normal;
}
.flow .figs small {
  margin-left: 0.3em;
  font-size: inherit;
  color: var(--text-2);
}
.flow .figs .arrow {
  width: 0.78em;
  height: 0.78em;
  margin-right: 0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* A figure that moved since it was last shown, tinted the way it went and fading back. */
.flow .figs.flash-up {
  animation: flash-up 1.6s ease-out;
}
.flow .figs.flash-down {
  animation: flash-down 1.6s ease-out;
}
@keyframes flash-up {
  from {
    background: color-mix(in srgb, var(--positive) 28%, var(--screen));
  }
}
@keyframes flash-down {
  from {
    background: color-mix(in srgb, var(--negative) 28%, var(--screen));
  }
}
/* Stocks' search bar, clean: the app's own glass (the accessory's pill, the same height) with its icon and words. */
.flow .search {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding-left: 5.6cqw;
  background: url(/assets/screens/pill-light.webp) 0 0 / 100% 100% no-repeat;
  color: rgba(60, 60, 67, 0.6);
  font-size: 4.229cqw;
  pointer-events: none;
}
:root[data-theme="dark"] .flow .search {
  background-image: url(/assets/screens/pill-dark.webp);
  color: rgba(235, 235, 245, 0.6);
}
.flow .search svg {
  width: 4cqw;
  height: 4cqw;
  fill: none;
  stroke: #000;
  stroke-width: 1.9;
  stroke-linecap: round;
}
:root[data-theme="dark"] .flow .search svg {
  stroke: #fff;
}

/* Within Stocks: a holding tapped (its row darkens under the fingertip) and its page pushed over the list. */
.flow .sheet .layer {
  position: absolute;
  inset: 0;
  background: var(--screen);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.flow .sheet .push {
  transform: translateX(100%);
  box-shadow: -2cqw 0 6cqw rgba(10, 20, 50, 0.12);
}
.flow.deep .sheet .stocks {
  transform: translateX(-30%);
}
.flow.deep .sheet .push {
  transform: none;
}
.flow .pick {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.07);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
:root[data-theme="dark"] .flow .pick {
  background: rgba(255, 255, 255, 0.09);
}
.flow.choosing .pick {
  opacity: 1;
  transition: opacity 0.08s;
}

/*
 * Household (home.js's SCREENS.household): Settings' cards on its grey, as the app's appearance has them (ui/appearance's
 * light and cobalt surfaces), and a member's sheet over it. Drawn at the phone's 402 points.
 */
.s-household {
  --grouped: #f4f4f6;
  --cardbg: #ffffff;
  --fill: #e9e9ee;
  --faint: #c7c7cc;
  background: var(--grouped);
}
:root[data-theme="dark"] .s-household {
  --grouped: #070b16;
  --cardbg: #161d33;
  --fill: #222b47;
  --faint: #3d4a6e;
}
.s-household .sb {
  background-color: var(--grouped);
}
.fam,
.fam-sheet {
  padding: 0 16px;
}
.fam-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  margin-bottom: 10px;
}
.fam-nav b {
  font-size: 17px;
  font-weight: 600;
}
.fam-nav span {
  width: 44px;
}
.fam-nav .round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cardbg);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 2px 8px -4px rgba(20, 30, 60, 0.18);
  font-size: 17px;
}
.fam-nav .round.ok {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.fam .chev,
.fam-nav .chev {
  width: 8px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fam-nav .chev {
  transform: scaleX(-1);
}
.fam-card {
  margin-bottom: 18px;
  padding: 0 16px;
  border-radius: 26px;
  background: var(--cardbg);
}
.fam-h {
  margin: 4px 16px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}
.fam-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}
/* Dividers inset to the text, as iOS draws them. */
.fam-row + .fam-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 48px;
  right: -16px;
  height: 0.5px;
  background: var(--faint);
}
.fam-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fam-row b {
  font-size: 17px;
  font-weight: 400;
}
.fam-row small {
  font-size: 13px;
  color: var(--text-2);
}
.fam-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.fam-row .chev {
  color: var(--faint);
}
.fam-row .fhome,
.fam-row .fadd {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}
.fam-row .fhome svg,
.fam-row .fadd svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fam-row.invite b {
  color: var(--brand);
}
.fam-row.leave {
  min-height: 52px;
}
.fam-row.leave b {
  color: var(--negative);
}
.s-household .lift {
  top: 0;
  bottom: 0;
  left: -16px;
  right: -16px;
}
/* A member's sheet: up from the bottom over the dimmed screen, as the app's form sheet. */
.fam-sheet {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 6px 16px 14px;
  border-radius: 38px 38px 52px 52px;
  background: var(--grouped);
  box-shadow: 0 -10px 30px -12px rgba(10, 20, 50, 0.25);
  transform: translateY(115%);
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s 0.5s;
}
.s-household.open .fam-sheet {
  transform: none;
  visibility: visible;
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}
.fam-sheet .grab {
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto 2px;
  border-radius: 3px;
  background: var(--faint);
}
.fam-sheet .fam-nav {
  margin-bottom: 6px;
}
.seg-card {
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 8px;
}
.fseg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 34px;
  border-radius: 10px;
  background: var(--fill);
}
.fseg span {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
}
.fseg .fknob {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 8px;
  background: var(--cardbg);
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
:root[data-theme="dark"] .fseg .fknob {
  background: #3a4566;
}
.s-household.edit .fseg .fknob {
  transform: translateX(100%);
}
.fam-foot {
  position: relative;
  min-height: 54px;
  margin: 0 16px 14px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-2);
}
.fam-foot span {
  position: absolute;
  inset: 0 0 auto;
  transition: opacity 0.3s;
}
.fam-foot .e,
.s-household.edit .fam-foot .v {
  opacity: 0;
}
.s-household.edit .fam-foot .e {
  opacity: 1;
}
.fam-row .bank {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.fam-row .check {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fam-row .check path {
  stroke: #fff;
  stroke-width: 2.2;
  opacity: 0;
}
.fam-row.on .check,
.s-household.acct .fam-row.share .check {
  fill: var(--brand);
  stroke: var(--brand);
}
.fam-row.on .check path,
.s-household.acct .fam-row.share .check path {
  opacity: 1;
}
.s-household.acct .fam-row.share .check {
  animation: checked 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes checked {
  from {
    transform: scale(0.6);
  }
}
/* The fingertip, in points here (the screen is scaled as a whole): on Ellie's row, then the account, then Editor. */
.s-household .touch {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.s-household .t1 {
  left: 150px;
  top: 374px;
}
.s-household .t2 {
  left: 50px;
  top: 746px;
}
.s-household .t3 {
  left: 288px;
  top: 533px;
}
.flow.t-acct .touch.t2,
.flow.t-seg .touch.t3 {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.12s,
    transform 0.15s;
}

/* The side button held for Siri: the artwork's own button (873 to 879 across, 564 to 780 down, of 879 by 1811) lit and
   pressed in. */
.sidepress {
  position: absolute;
  z-index: 2;
  left: 98.9%;
  top: 31.3%;
  width: 1.4%;
  height: 11.6%;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
  opacity: 0;
  transform: translateX(2px);
  transition:
    opacity 0.25s,
    transform 0.2s;
  pointer-events: none;
}
.device.pressing .sidepress {
  opacity: 1;
  transform: none;
  animation: sidehold 1s ease-out infinite;
}
@keyframes sidehold {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent);
  }
  to {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 0%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .device.pressing .sidepress {
    animation: none;
  }
}

/*
 * Privacy (home.js's lockScreen): Zelo's lock cover (the launch screen's logo on its ground, under the status bar) with
 * iOS's Face ID over it, lifting off Accounts; then Accounts' amounts hidden, crossfading to the app's masked capture.
 */
.flow .masked {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.flow .masked img {
  display: block;
  width: 100%;
  height: 100%;
}
.flow.hiding .masked {
  opacity: 1;
}
.flow .lock-cover {
  position: absolute;
  inset: 6.64% 0 0;
  display: grid;
  place-items: center;
  background: var(--screen);
  transition: opacity 0.45s;
}
.flow.unlocked .lock-cover {
  opacity: 0;
}
.flow .lock-cover img {
  width: 24.9%;
  height: auto;
  margin-top: -6.64%;
}
.flow .lock-cover .on-dark,
:root[data-theme="dark"] .flow .lock-cover .on-light {
  display: none;
}
:root[data-theme="dark"] .flow .lock-cover .on-dark {
  display: block;
}
/* iOS's Face ID: a small frosted square mid-screen, its glyph scanning, then a check. */
.flow .fid-hud {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36cqw;
  height: 36cqw;
  margin: -18cqw 0 0 -18cqw;
  display: grid;
  place-items: center;
  border-radius: 8cqw;
  background: rgba(120, 120, 128, 0.32);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.3, 1.3, 0.5, 1);
}
:root[data-theme="dark"] .flow .fid-hud {
  background: rgba(60, 60, 70, 0.6);
}
.flow.scanning:not(.unlocked) .fid-hud {
  opacity: 1;
  transform: none;
}
.flow .fid {
  width: 16cqw;
  height: 16cqw;
  fill: none;
  stroke: #2f7cf6;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="dark"] .flow .fid {
  stroke: #fff;
}
.flow .fid > path:first-child {
  transform-origin: center;
}
.flow.scanning:not(.passed) .fid > path:first-child {
  animation: fidscan 0.6s ease-in-out infinite alternate;
}
@keyframes fidscan {
  to {
    transform: scale(0.9);
  }
}
.flow .fid .ok {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.35s 0.1s;
}
.flow .fid .face {
  transition: opacity 0.15s;
}
.flow.passed .fid .face {
  opacity: 0;
}
.flow.passed .fid .ok {
  stroke-dashoffset: 0;
}
.flow.passed .fid > path:first-child {
  opacity: 0;
  transition: opacity 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .flow .lock-cover,
  .flow .fid-hud {
    display: none;
  }
}

/* Touch: the header's controls are drawn small (a 28-point language pill, a 36-point theme button) but take a finger
   as far as the bar reaches above and below them, nearer the 44 points iOS asks of a tap target. */
@media (pointer: coarse) {
  .seg button,
  .icon-btn,
  .get {
    position: relative;
  }
  .seg button::after,
  .get::after {
    content: "";
    position: absolute;
    inset: -10px 0;
  }
  .icon-btn::after {
    content: "";
    position: absolute;
    inset: -6px -4px;
  }
}
