/* ===== NEWDAY APP, NATIVE (Arash, 2026-11-15: "I want this mobile stuff properly done please! not just images").
   His 2019 Aqua app as live HTML (tools/builder/kits/newday.py). Sizes are in --q, one pixel of his 750-wide board
   screens: a phone sets it to its screen width / 750, the system library to a fixed half pixel. Product UI type is sized
   in the screen's own pixels, the documented exception to the six site sizes. Brand tokens live on [data-brand], so the
   same screen re-skins for Aqua, Laura Ashley and Amazon. */
.na-feed { --q: var(--u); --na-font: 'Avenir Next', 'Avenir', 'Nunito Sans', 'Segoe UI', system-ui, sans-serif; background: var(--na-ground); font-family: var(--na-font); }
/* on the iOS layer (assets/css/ios.css, 2026-11-26): one point is two of his board pixels; the brand drives its tokens */
.na-feed, .nd-lib-col.ios { --pt: calc(2 * var(--q)); --ios-font: var(--na-font); --ios-tint: var(--na-action); --ios-tint2: var(--na-action2); --ios-label: var(--na-ink, #2B3B3D);
  --ios-label2: #7C898C; --ios-label3: #B4BDBF; --ios-sep: #E1E7E8; --ios-fill: rgba(43, 59, 61, 0.07); --ios-group: var(--na-hist); --ios-cell: #fff;
  --ios-lift: 0 calc(1 * var(--pt)) calc(2 * var(--pt)) rgba(0, 30, 50, 0.05), 0 calc(8 * var(--pt)) calc(24 * var(--pt)) rgba(0, 30, 50, 0.12); }
.nd-lib-col.ios { --pt: 1px; --na-font: 'Avenir Next', 'Avenir', 'Nunito Sans', 'Segoe UI', system-ui, sans-serif; }
[data-brand="aqua"] { --na-ground: linear-gradient(165deg, #16B19C 0%, #0FA4A7 36%, #0A93C2 74%, #028CC9 100%); --na-action: #0F88C9; --na-action2: #1DB59A;
  --na-accent: linear-gradient(90deg, #13AB9B, #058EC6); --na-amt: #0A8FD8; --na-ink: #2B3B3D; --na-you: #0C3550; --na-hist: #EEF3F7; }
[data-brand="la"] { --na-ground: linear-gradient(180deg, #F6F8F5 0%, #E7EEE8 13%, #A9C3AB 50%, #6F9A74 100%); --na-action: #4C8751; --na-action2: #4C8751;
  --na-accent: linear-gradient(90deg, #9AA021, #4C8751); --na-amt: #3E7B45; --na-ink: #2E3B2F; --na-you: #23432A; --na-hist: #EEF2EC; }
[data-brand="amazon"] { --na-ground: linear-gradient(180deg, #4A5767, #424E5C); --na-action: #FF9901; --na-action2: #FF9901;
  --na-accent: #FF9901; --na-amt: #2B3B3D; --na-ink: #1F2A30; --na-you: #232F3E; --na-hist: #F6F6F6; }
.na-feed[data-brand="la"]:not(.na-histscr)::before { content: ""; position: absolute; inset: auto 0 0; height: calc(560 * var(--q)); pointer-events: none;
  background: url(../images/work/aqua/n-la-floral.png) center bottom / cover; mix-blend-mode: multiply; opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }

/* header and nav, his marks and icons */
.na-hdr { position: absolute; z-index: 3; left: calc(32 * var(--q)); top: calc(120 * var(--q)); display: flex; align-items: center; gap: calc(22 * var(--q)); height: calc(80 * var(--q)); }
.ph-hero-in .na-feed img, .na-feed img { position: static; display: block; }
.na-hcard { width: calc(112 * var(--q)); height: auto; border-radius: calc(8 * var(--q)); box-shadow: 0 calc(3 * var(--q)) calc(10 * var(--q)) rgba(0, 40, 60, 0.18); }
.na-hword { height: calc(50 * var(--q)); width: auto; }
[data-brand="la"] .na-hword { height: calc(40 * var(--q)); }
.na-hdr-amazon { right: calc(32 * var(--q)); height: auto; padding: calc(20 * var(--q)) calc(28 * var(--q)); background: #fff; border-radius: calc(24 * var(--q)); }
.na-hdr-amazon img { height: calc(64 * var(--q)); width: auto; }
.na-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(64 * var(--q)); height: calc(130 * var(--q)); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.na-nav-i { display: grid; justify-items: center; gap: calc(4 * var(--pt)); color: #fff; font: 500 calc(11 * var(--pt)) / 1 var(--na-font); letter-spacing: 0.01em; }   /* an iOS tab bar's labels, his icons */
.na-feed .na-nav-i img { height: calc(26 * var(--pt)); width: auto; }
.nd-page .nd-ip .na-feed .nd-feed-win { top: calc(224 * var(--q)); bottom: calc(194 * var(--q)); }
/* the scroll edge, as iOS draws it: cards soften into the header and the tab bar as they pass, never a hard cut */
.nd-page .nd-ip .na-feed .nd-feed-win { --edge: linear-gradient(180deg, transparent 0, #000 calc(18 * var(--pt)), #000 calc(100% - 10 * var(--pt)), transparent 100%);
  -webkit-mask-image: var(--edge); mask-image: var(--edge); }

/* the cards */
.na-card { box-sizing: border-box; background: #fff; border-radius: calc(20 * var(--pt)); padding: var(--s5); color: var(--na-ink, #2B3B3D);
  font: 500 calc(15 * var(--pt)) / calc(21 * var(--pt)) var(--na-font); letter-spacing: -0.01em; box-shadow: var(--ios-lift); }
@supports (corner-shape: squircle) { .na-card { corner-shape: superellipse(1.6); } }
.na-card p { margin: 0; }
.na-card b { font-weight: 700; }
.na-bar { position: relative; height: calc(8 * var(--pt)); margin: var(--s4) 0 var(--s3); border-radius: calc(4 * var(--pt)); background: #E9EDEE; overflow: hidden; }   /* a gauge, not a slab */
.na-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--na-accent); transform-origin: left; transition: transform 1.3s var(--nx-out, ease) 0.25s; }
.na-tiny { display: flex; justify-content: space-between; font-size: calc(12 * var(--pt)); line-height: calc(16 * var(--pt)); font-weight: 500; color: var(--ios-label2); }
.na-big { margin-top: var(--s1) !important; font-size: calc(28 * var(--pt)); line-height: calc(34 * var(--pt)); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.na-card .na-amt { color: var(--na-amt); font-weight: 700; font-variant-numeric: tabular-nums; }
.na-btns { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5) !important; }   /* a narrow column wraps the second action, never clips it */
.na-btn { --h: 36; --fs: 15; --px: 16; }   /* the iOS layer's capsule (.ios-btn); the chevron and bell take the label's weight */
.na-btn .ios-ic { margin-right: calc(-2 * var(--pt)); }
.na-opts li.press, .na-nav-i.press { transform: scale(0.94); }
.na-link { display: inline-flex; vertical-align: middle; color: var(--na-amt); --ic: 15; --ic-w: 2.6; }
.na-buy .na-link { --ic: 16; }

/* the spending chart: one palette with the limit card, lit from above, coloured by how heavy the day was */
/* the week: the bars are the content, sized to read at a glance; paging is two quiet round buttons either side */
.na-chart { display: grid; grid-template-columns: calc(28 * var(--pt)) 1fr calc(28 * var(--pt)); column-gap: var(--s3); align-items: center; margin-top: var(--s5); }
.na-chart .na-link { display: grid; place-items: center; width: calc(28 * var(--pt)); height: calc(28 * var(--pt)); border-radius: 50%; background: var(--ios-fill); --ic: 13; --ic-w: 2.6; }
.na-bars { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; height: calc(88 * var(--pt)); }
.na-cb { justify-self: center; width: calc(16 * var(--pt)); height: calc(var(--v) * 1.1 * var(--pt)); border-radius: calc(8 * var(--pt));
  background-color: var(--c, #49D5B6); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 55%); transform-origin: 50% 100%;
  transition: transform 0.8s var(--nx-spring, ease) calc(0.2s + var(--i) * 0.09s), background-color 0.45s ease calc(0.55s + var(--i) * 0.09s); }
.na-cb.nd-mint { --c: #49D5B6; } .na-cb.nd-amber { --c: #F5A623; } .na-cb.nd-red { --c: #D15060; }
.na-days { grid-column: 2; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: var(--s3); text-align: center; color: var(--ios-label2); font-size: calc(12 * var(--pt)); line-height: calc(16 * var(--pt)); font-weight: 600; }

/* the credit score: his five-colour dial, the number, the stars */
/* the score is the hero of its card: a dial that fills the card's width, the number set large inside it, the knob at
   650 on his five colours, then one line of news and its action, all on the centre line */
.na-scorec { text-align: center; }
.na-dial { position: relative; width: calc(176 * var(--pt)); margin: var(--s2) auto var(--s4); }
.na-gauge { display: block; width: 100%; height: auto; overflow: visible; }
.na-gauge path { fill: none; stroke-width: 7; stroke-linecap: round; }
.na-gauge .na-knob { fill: #fff; stroke-width: 2.6; filter: drop-shadow(0 0.6px 1.2px rgba(0, 30, 50, 0.3)); }
.na-score { position: absolute; left: 0; right: 0; top: 33%; text-align: center; line-height: 1; }
.na-score b { display: block; font-size: calc(44 * var(--pt)); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ios-label); }
.na-score span { display: block; margin-top: var(--s2); font-size: calc(15 * var(--pt)); font-weight: 600; color: #5FA83A; }
.na-scorec > p:not(.na-more) { font-size: calc(17 * var(--pt)); line-height: calc(22 * var(--pt)); font-weight: 600; }
.na-scorec .na-more { justify-content: center; }
.na-star { position: absolute; color: #F5A623; transition: transform 0.6s var(--nx-spring, ease) calc(0.9s + var(--d, 0s)); }
.na-star svg { display: block; width: 100%; fill: currentColor; }
.na-s0 { left: calc(-74 * var(--q)); top: calc(30 * var(--q)); width: calc(34 * var(--q)); --d: 0s; }
.na-s1 { left: calc(-104 * var(--q)); top: calc(96 * var(--q)); width: calc(44 * var(--q)); --d: 0.08s; }
.na-s2 { right: calc(-84 * var(--q)); top: calc(8 * var(--q)); width: calc(52 * var(--q)); --d: 0.16s; }
.na-s3 { right: calc(-70 * var(--q)); top: calc(104 * var(--q)); width: calc(28 * var(--q)); --d: 0.24s; }
.na-gauge g { transition: clip-path 1.2s cubic-bezier(.45, 0, .2, 1) 0.2s; clip-path: inset(0 0 0 0); }
.na-more { display: flex; align-items: center; gap: calc(3 * var(--pt)); margin-top: calc(4 * var(--pt)) !important; color: var(--na-amt); font-size: calc(15 * var(--pt)); font-weight: 600; --ic: 12; --ic-w: 2.6; }

/* the new limit */
/* the new limit as an iOS slider: a 6pt track, the filled part in his amber, a white 28pt knob lifted by a soft shadow */
.na-slider { position: relative; height: calc(6 * var(--pt)); margin: var(--s6) 0 var(--s4); border-radius: calc(3 * var(--pt)); background: #E6EBEC; }
.na-slider i { position: absolute; inset: 0 auto 0 0; width: 42%; border-radius: inherit; background: #F5A623; transform-origin: left; transition: transform 1.3s var(--nx-out, ease) 0.3s; }
.na-slider b { position: absolute; left: 42%; top: 50%; width: calc(28 * var(--pt)); height: calc(28 * var(--pt)); margin: calc(-14 * var(--pt)) 0 0 calc(-14 * var(--pt)); border-radius: 50%;
  background: #fff; box-shadow: 0 calc(0.5 * var(--pt)) calc(1 * var(--pt)) rgba(0, 0, 0, 0.12), 0 calc(3 * var(--pt)) calc(8 * var(--pt)) rgba(0, 0, 0, 0.16); transition: left 1.3s var(--nx-out, ease) 0.3s; }

/* each card's move, played when it arrives (.prep holds the start) */
.nd-card.prep .na-bar i, .nd-card.prep .na-slider i { transform: scaleX(0); transition: none; }
.nd-card.prep .na-slider b { left: 0; transition: none; }
.nd-card.prep .na-cb { transform: scaleY(0); background-color: #49D5B6; transition: none; }
.nd-card.prep .na-star { transform: scale(0); transition: none; }
.nd-card.prep .na-gauge g { clip-path: inset(0 100% 0 0); transition: none; }

/* bubbles, pills, tips */
.na-ask { box-sizing: border-box; padding: calc(10 * var(--pt)) calc(16 * var(--pt)); border-radius: calc(20 * var(--pt)); background: var(--na-you); color: #fff; font: 500 calc(15 * var(--pt)) / calc(20 * var(--pt)) var(--na-font); letter-spacing: -0.01em; box-shadow: none; }
:is(.ph, .ph-hero) .nd-feed .nd-msg.na-ask { left: auto; right: calc(36 * var(--q)); width: auto; white-space: nowrap; }
.na-pill { border-radius: calc(20 * var(--pt)); padding: calc(10 * var(--pt)) calc(16 * var(--pt)); }
.na-tips { padding: 0; overflow: hidden; }
.na-tips p { padding: calc(24 * var(--q)) calc(28 * var(--q)); }
.na-feed .na-photo, .na-photo { display: block; width: 100%; height: auto; }

/* the repay conversation */
.na-optc { background: rgba(255, 255, 255, 0.94); }
.na-card .na-q { margin-bottom: calc(18 * var(--q)); font-size: calc(var(--a-caption) * 2 * var(--q)); }
.na-opts { display: grid; gap: calc(20 * var(--q)); margin: 0; padding: 0; list-style: none; }
.na-opts li { display: grid; grid-template-columns: calc(40 * var(--q)) 1fr; align-items: center; gap: calc(18 * var(--q)); transition: transform 0.15s ease; }
.na-radio { box-sizing: border-box; display: grid; place-items: center; width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); border-radius: 50%; border: calc(1.5 * var(--pt)) solid var(--ios-label3); color: #fff; transition: background 0.25s ease, border-color 0.25s ease; }
.na-radio .na-tick { --ic: 11; --ic-w: 3.2; opacity: 0; transition: opacity 0.2s ease; }
.na-opts li.on .na-radio { background: var(--na-action); border-color: var(--na-action); }
.na-opts li.on .na-radio .na-tick { opacity: 1; }
.na-opts li p span { display: block; font-size: calc(var(--a-caption) * 2 * var(--q)); color: #8B9799; }
.na-opts li p b { display: block; font-size: calc(var(--a-body) * 2 * var(--q)); font-weight: 400; line-height: 1.25; }
.na-line { display: block; height: calc(5 * var(--q)); margin-top: calc(8 * var(--q)); border-radius: 3px; background: linear-gradient(90deg, var(--na-action) calc(var(--v) * 100%), #E3E8E9 0); }
.na-big2 { margin: calc(4 * var(--q)) 0 calc(20 * var(--q)) !important; font-size: calc(var(--a-large) * 2 * var(--q)); }
.na-pay { display: flex; align-items: center; gap: calc(20 * var(--q)); margin: 0 calc(-32 * var(--q)) calc(-28 * var(--q)) !important; padding: calc(24 * var(--q)) calc(32 * var(--q)); border-top: 1px solid #E6EAEB; }
.na-feed .na-pay img, .na-pay img { width: calc(80 * var(--q)); height: auto; }
.na-pay span { flex: 1; color: #8B9799; font-size: calc(var(--a-caption) * 2 * var(--q)); }
.na-pay b { color: var(--na-amt); font-size: calc(15 * var(--pt)); font-weight: 600 !important; }
.na-paidc { padding-bottom: 0; overflow: hidden; }
.na-green { position: relative; display: flex; align-items: center; justify-content: space-between; margin: calc(24 * var(--q)) calc(-32 * var(--q)) 0; padding: calc(30 * var(--q)) calc(32 * var(--q)) calc(24 * var(--q)); background: #5FB12A; color: #fff; }
.na-green::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--q)); height: calc(10 * var(--q));
  background: radial-gradient(circle at 50% 0, #fff calc(5 * var(--q)), transparent calc(5.6 * var(--q))) 0 0 / calc(16 * var(--q)) calc(10 * var(--q)) repeat-x; }
.na-green b { display: block; font-size: calc(var(--a-body) * 2 * var(--q)); font-weight: 600 !important; line-height: 1.2; }
.na-green span { display: block; font-size: calc(var(--a-caption) * 2 * var(--q)); opacity: 0.85; }
.na-green .na-tick { --ic: 28; --ic-w: 2.4; color: #fff; }
.na-obtn { --h: 44; --fs: 16; --px: 20; display: flex; }   /* the chat's own buttons: solid white pills on his gradient (.ios-btn.ios-white) */
:is(.ph, .ph-hero) .nd-feed .nd-msg.na-obtn { filter: none; }

/* the login: a hello and a fingerprint */
.na-login { position: absolute; inset: 0; z-index: 6; background: var(--na-ground); transition: opacity 0.5s ease; }
.na-login.gone { opacity: 0; pointer-events: none; }
.na-login .na-hdr { top: 46%; transition: top 0.8s var(--nx-out, ease); }
.na-login.up .na-hdr { top: calc(120 * var(--q)); }
.na-hello, .na-loginb, .na-other { position: absolute; opacity: 0; transform: translateY(calc(18 * var(--q))); transition: opacity 0.4s ease, transform 0.6s var(--nx-spring, ease); }
.na-hello { left: calc(36 * var(--q)); top: calc(520 * var(--q)); width: calc(400 * var(--q)); }
.na-loginb { right: calc(72 * var(--q)); top: calc(720 * var(--q)); width: calc(230 * var(--q)); }
.na-other { right: calc(72 * var(--q)); top: calc(816 * var(--q)); color: rgba(255, 255, 255, 0.85); font: 400 calc(24 * var(--q)) / 1 var(--na-font); }
.na-login.up .na-hello { opacity: 1; transform: none; transition-delay: 0.45s; }
.na-login.up .na-loginb { opacity: 1; transform: none; transition-delay: 0.85s; }
.na-login.up .na-other { opacity: 1; transform: none; transition-delay: 1s; }
.na-finger { display: none; width: calc(40 * var(--q)); height: calc(40 * var(--q)); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.na-loginb.scan .na-finger { display: block; animation: na-scan 0.75s ease 2; }
.na-loginb.scan > span { display: none; }
.na-loginb.ok { background: rgba(255, 255, 255, 0.22); }
@keyframes na-scan { 50% { transform: scale(1.12); opacity: 0.6; } }

/* card history, as a sheet in the prototype and a screen in the system */
.na-sheet { position: absolute; inset: calc(96 * var(--q)) 0 0; z-index: 5; overflow: hidden; background: var(--na-hist); border-radius: calc(30 * var(--q)) calc(30 * var(--q)) 0 0;
  transform: translateY(104%); transition: transform 0.55s var(--nx-sheet, ease); box-shadow: 0 calc(-8 * var(--q)) calc(30 * var(--q)) rgba(0, 30, 50, 0.25); }
.na-sheet.on { transform: none; }
.na-histscr { background: var(--na-hist); }
.na-hist { position: relative; padding: var(--s2) var(--s5) 0; color: #2B3B3D; font-family: var(--na-font); }
.na-histscr .na-hist { padding-top: calc(54 * var(--pt)); }   /* under the status bar */
.na-navrow { display: flex; align-items: center; justify-content: space-between; height: calc(44 * var(--pt)); margin: 0 !important; }
.na-x { position: static; }   /* the iOS close (.ios-close): a grey disc in the nav bar, never a tinted one */
.na-back { color: var(--na-action); --ic: 24; --ic-w: 2.4; }
.na-back .ios-ic { display: block; margin-left: calc(-6 * var(--pt)); }
.na-h-t { margin: var(--s2) 0 0; color: var(--ios-label); }
.na-filter { color: var(--na-action); }
.na-hist .na-bar { margin-top: var(--s6); }
.na-hist .na-tiny { margin: 0; }
.na-h-amt { margin: calc(2 * var(--pt)) 0 0; }
/* the rows: one inset grouped list, a status dot leading, the amount trailing in tabular figures */
.na-list { margin: var(--s6) 0 0; padding: 0; list-style: none; transition: transform 3.2s cubic-bezier(.45, 0, .3, 1); --inset: calc(36 * var(--pt)); }
.na-list li { align-items: flex-start; gap: var(--s4); padding: calc(11 * var(--pt)) var(--s5); }
.na-dot { flex: none; width: calc(8 * var(--pt)); height: calc(8 * var(--pt)); margin-top: calc(6 * var(--pt)); border-radius: 50%; background: var(--na-action); }
.na-list .na-r-pend .na-dot { background: transparent; box-shadow: inset 0 0 0 calc(1.5 * var(--pt)) #A3AEB0; }
.na-list .na-r-pay .na-dot { background: #4CB24A; }
.na-list .na-r-fee .na-dot { background: #E02020; }
.na-list .na-r-fee b { color: #E02020; }
.na-list p { margin: 0; }
.na-list b { display: block; font-size: calc(15 * var(--pt)); line-height: calc(20 * var(--pt)); font-weight: 500; letter-spacing: -0.01em; }
.na-list span { display: block; font-size: calc(13 * var(--pt)); line-height: calc(18 * var(--pt)); color: var(--ios-label2); }
.na-list p:last-child { text-align: right; }

/* the home screen in every brand (system 01) */
.na-home .na-stack { position: absolute; left: calc(32 * var(--q)); right: calc(32 * var(--q)); top: calc(224 * var(--q)); display: grid; gap: calc(22 * var(--q)); justify-items: start; }
[data-brand="amazon"].na-home .na-stack { top: calc(270 * var(--q)); }
.na-home .na-card { width: 100%; }
.na-home .na-buy { width: 82%; }
.na-home .na-reward { width: 92%; }
.na-reward { display: flex; align-items: center; gap: calc(22 * var(--q)); }
.na-reward p { flex: 1; }
.na-pts { display: grid; place-items: center; flex: none; width: calc(84 * var(--q)); height: calc(84 * var(--q)); border-radius: 50%; border: calc(3 * var(--q)) dashed var(--na-action); color: var(--na-action); font-size: calc(var(--a-subhead) * 2 * var(--q)); font-weight: 600; }
[data-brand="aqua"] .na-reward, [data-brand="la"] .na-buy, [data-brand="amazon"] .na-buy { display: none; }

/* the system library: the modules at a fixed half pixel, then a screen composed from them */
.nd-lib-col > .na-card, .nd-lib-col > .na-ask { --q: 0.5px; --na-font: 'Avenir Next', 'Avenir', 'Nunito Sans', 'Segoe UI', system-ui, sans-serif; width: calc(var(--w) * var(--q)); max-width: 100%; }
.nd-lib .nd-lib-col { --na-ground: none; }
.nd-lib .nd-lib-col > .na-ask { align-self: flex-end; width: auto; }
.nd-lib .nd-lib-col { --na-action: #0F88C9; --na-action2: #1DB59A; --na-accent: linear-gradient(90deg, #13AB9B, #058EC6); --na-amt: #0A8FD8; --na-ink: #2B3B3D; --na-you: #0C3550; }
.na-static .nd-feed-col { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: calc(22 * var(--q)); padding-top: calc(28 * var(--q)); }
.na-static .nd-msg { position: relative !important; left: auto !important; top: auto !important; opacity: 1 !important; transform: none !important; margin-left: calc(32 * var(--q)); width: calc(var(--w) * var(--q)) !important; }
.na-static .nd-msg.na-ask { align-self: flex-end; margin: 0 calc(32 * var(--q)) 0 0; width: auto !important; }
@media (prefers-reduced-motion: reduce) { .na-feed *, .na-feed *::before { transition: none !important; animation: none !important; } }
/* the site's own image rules (.ph img and the hero's) must not resize his marks: sizes pinned here */
.na-feed .na-hdr .na-hcard { width: calc(112 * var(--q)) !important; height: auto !important; max-width: none !important; }
.na-feed .na-hdr .na-hword { height: calc(50 * var(--q)) !important; width: auto !important; max-width: none !important; }
.na-feed[data-brand="la"] .na-hdr .na-hword { height: calc(40 * var(--q)) !important; }
.na-feed .na-hdr-amazon img { height: calc(64 * var(--q)) !important; width: auto !important; max-width: none !important; }
.na-feed .na-nav-i img { height: calc(54 * var(--q)) !important; width: auto !important; max-width: none !important; }
.na-pay img { width: calc(80 * var(--q)) !important; height: auto !important; }
/* the old image skins' rule (.nd-skin img hides every image but the shown one) must not touch the native screens */
:is(.ph, .ph-hero) .nd-skin .na-feed img { position: static; opacity: 1; left: auto; top: auto; }
/* the home in every brand carries all three headers; the brand shows its own */
.na-home .na-hdr { display: none; }
[data-brand="aqua"] .na-hb-aqua, [data-brand="la"] .na-hb-la { display: flex; }
[data-brand="amazon"] .na-hb-amazon { display: block; }
/* the outline buttons in the chat (PAY, Show me new balance): the chat's own height: auto must not squash them */
:is(.ph, .ph-hero) .nd-feed .nd-msg.na-obtn { box-sizing: border-box; height: calc(44 * var(--pt)); padding: 0 calc(20 * var(--pt)); line-height: 1; border-radius: calc(22 * var(--pt)); }

/* card history, as in his recording: tapping the balance card grows it into the screen (a shared-element expand from
   the card's own rectangle, the amount and bar holding still), the list arriving under it; closing folds it back */
.na-proto .na-sheet { inset: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 0; pointer-events: none;
  clip-path: inset(var(--ct, 30%) var(--cr, 4%) var(--cb, 55%) var(--cl, 4%) round calc(24 * var(--q)));
  transition: clip-path 0.5s cubic-bezier(.32, .72, 0, 1), opacity 0.22s ease; }
.na-proto .na-sheet.on { opacity: 1; clip-path: inset(0 0 0 0 round 0); }
.na-proto .na-sheet .na-hist { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding-top: calc(54 * var(--pt)); }
.na-hist-top { position: relative; z-index: 2; background: var(--na-hist); padding-bottom: 0; }
.na-listwin { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: hidden; }   /* the opaque header above covers the scroll: no fade, the group keeps its corners */
.na-proto .na-sheet .na-list li { opacity: 0; transform: translateY(calc(16 * var(--q))); transition: opacity 0.35s ease, transform 0.5s var(--nx-out, ease); }
.na-proto .na-sheet.on .na-list li { opacity: 1; transform: none; }
.na-proto .na-sheet.on .na-list li:nth-child(1) { transition-delay: 0.16s; } .na-proto .na-sheet.on .na-list li:nth-child(2) { transition-delay: 0.2s; }
.na-proto .na-sheet.on .na-list li:nth-child(3) { transition-delay: 0.24s; } .na-proto .na-sheet.on .na-list li:nth-child(4) { transition-delay: 0.28s; }
.na-proto .na-sheet.on .na-list li:nth-child(5) { transition-delay: 0.32s; } .na-proto .na-sheet.on .na-list li:nth-child(n+6) { transition-delay: 0.36s; }
.na-proto .na-sheet .na-hist-top > :not(.na-bar):not(.na-h-amt):not(.na-tiny) { opacity: 0; transition: opacity 0.3s ease; }
.na-proto .na-sheet.on .na-hist-top > :not(.na-bar):not(.na-h-amt):not(.na-tiny) { opacity: 1; transition-delay: 0.18s; }
/* the login ends as his did: a tick, "Security checked", then the chat with the hello kept at the top */
.na-secure { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: calc(18 * var(--q)); color: #fff; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.na-secure .na-tick { --ic: 72; --ic-w: 1.8; color: #fff; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 0.5s ease 0.1s; }
.na-secure p { margin: 0; font: 600 calc(17 * var(--pt)) / 1 var(--na-font); }
.na-login.ok .na-secure { opacity: 1; }
.na-login.ok .na-secure .na-tick { stroke-dashoffset: 0; }
.na-login.ok .na-hello, .na-login.ok .na-loginb, .na-login.ok .na-other { opacity: 0.25; transition-delay: 0s; }

/* the score lands as a celebration (Arash, 2026-11-15: no stars): the dial sweeps, 650 counts up, GOOD pops, and one
   burst of confetti in the dial's colours leaves the top of the dial and settles away */
.na-burst { position: absolute; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.na-burst i { position: absolute; left: calc(-4 * var(--q)); top: calc(-9 * var(--q)); width: calc(8 * var(--q)); height: calc(18 * var(--q)); border-radius: calc(4 * var(--q));
  background: var(--c); opacity: 0; transform: rotate(var(--a)) translateY(calc(-70 * var(--q))); }
.na-scorec.on .na-burst i, .nd-card.na-scorec:not(.prep).go .na-burst i { animation: na-burst 1.1s cubic-bezier(.15, .7, .3, 1) calc(1.35s + var(--d)) both; }
@keyframes na-burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-70 * var(--q))) scale(0.4); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1 * var(--q))) rotate(160deg) scale(1); }
}
.na-scorec.on .na-score span { animation: na-pop 0.55s var(--nx-spring, ease) 1.3s both; }
@keyframes na-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.na-scorec .na-dial { overflow: visible; }
.nd-lib .na-scorec .na-burst { display: none; }
/* the customer's questions read as theirs: Aqua's deep navy (white text well over 4.5:1), a quiet top light so the bubble
   sits on the ground rather than in it (Arash, 2026-11-15: the mid blue on teal had terrible contrast) */
.na-ask { background: var(--na-you); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)); box-shadow: 0 calc(4 * var(--q)) calc(14 * var(--q)) rgba(0, 30, 50, 0.22); }

/* ===== MOTION ON GSAP (Arash, 2026-11-15: "the animations look like shitty CSS"). assets/js/newday.js drives every
   arrival, scroll, press, expand and sweep with GSAP springs and curves; .nd-gs (set on <html> by that script, never
   under reduced motion) hands those properties over, so no CSS transition fights a tween frame by frame. */
.nd-gs :is(.ph, .ph-hero) .nd-feed :is(.nd-msg, .nd-typing, .nd-feed-col),
.nd-gs .na-feed :is(.na-bar i, .na-cb, .na-slider i, .na-slider b, .na-gauge g, .na-sheet, .na-list, .na-list li, .na-hist-top > *, .na-login, .na-login .na-hdr,
  .na-hello, .na-loginb, .na-other, .na-secure, .na-secure .na-tick, .na-btn, .na-obtn, .na-x, .na-opts li, .na-score b, .na-score span, .na-big),
.nd-gs .nd-talk-stage .nx-track i, .nd-gs .nd-feed-stage .nx-track i, .nd-gs .nd-kb-send { transition: none !important; }
.nd-gs .na-feed :is(.na-burst i, .na-score span, .na-finger), .nd-gs .nd-typing i, .nd-gs .ph-hero-in .nd-feed .nd-msg.nudge { animation: none !important; }
.nd-gs .na-login .na-hdr { top: calc(120 * var(--q)); }   /* GSAP carries it down from the centre and back up */
.nd-gs .na-proto .na-sheet { clip-path: none; }
.na-burst i { will-change: transform, opacity; }
.nd-gs .nd-typing i { opacity: 0.45; }
/* the brand switch: the outgoing skin dissolves over the incoming one */
.nd-xfade { position: absolute !important; inset: 0; z-index: 4; height: 100%; pointer-events: none; }
/* iOS's key callout: the pressed letter rises in a balloon above its key */
.nd-key { position: relative; }
.nd-key[data-c]:not(.nd-key-fn):not(.nd-key-space).hit::after { content: attr(data-c); position: absolute; left: 50%; bottom: 72%; width: 150%; height: 118%; translate: -50% 0;
  display: grid; place-items: center; border-radius: calc(12 * var(--u)); background: #fff; color: #000; font-size: calc(var(--a-large) * 2 * var(--u)); line-height: 1;
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.25); z-index: 2; }
.nd-key[data-c]:not(.nd-key-fn).hit { background: #fff; }

/* ===== THE PHONES READ LARGER (Arash: "all the text does seem small"). The app keeps its own type scale; the stage phone
   grows to about 385px at 1440 x 900, held to the viewport's height so the whole phone stays on screen. */
@media (min-width: 1000px) {
  .nd-page .nx-stage:is(.nd-talk-stage, .nd-feed-stage) { --ndw: min(390px, calc((100svh - 96px) / 2.09)); grid-template-columns: minmax(0, 340px) var(--ndw); column-gap: clamp(56px, calc(var(--cw) * 0.1), 128px); }
  .nd-page .nx-stage:is(.nd-talk-stage, .nd-feed-stage) .nd-ip { width: var(--ndw); padding: calc(var(--ndw) * 0.034); }
  .nd-page .nd-pair, .nd-page .nd-dsys .nd-ch-brands .nd-pair { grid-template-columns: repeat(2, minmax(0, 350px)); }
}
@media (max-width: 999px) {   /* on phones and tablets the stage phone takes most of the column, so the app reads */
  .nd-page .nx-stage:is(.nd-talk-stage, .nd-feed-stage) .nd-ip { width: min(340px, 90%); padding: calc(min(340px, 90%) * 0.034); }
}
