/* NxtDue page (body.clay). Generated markup: tools/nxtdue-page.mjs.
   Colours, shadows, radii and type are NxtDue v1.0's own clay tokens
   (NXTDue main:mobile/components/clay/tokens.ts). Phone sizes are in iPhone
   points (393 x 852), measured from the real v1.0 screenshots. */

@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url(/fonts/fredoka-500.ttf) format("truetype"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-600.ttf) format("truetype"); }

body.clay {
  --bg: #e7e3f7; --surface: #f0edfb; --sunk: #e2ddf2;
  --ink: #2c2748; --ink2: #6e6795; --ink3: #948db8; --muted: #6e6795;
  --violet: #6c4ef6; --line: rgba(88, 78, 140, .14);
  --grad: linear-gradient(158deg, #8c74ff, #6c4ef6);
  --fred: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  --up: 9px 9px 20px rgba(88,78,140,.22), -7px -7px 16px rgba(255,255,255,.92), inset -4px -4px 9px rgba(88,78,140,.09), inset 4px 4px 9px rgba(255,255,255,.72);
  --up-sm: 5px 5px 12px rgba(88,78,140,.22), -4px -4px 10px rgba(255,255,255,.92), inset -2px -2px 5px rgba(88,78,140,.08), inset 2px 2px 5px rgba(255,255,255,.7);
  --in: inset 6px 6px 13px rgba(88,78,140,.19), inset -6px -6px 13px rgba(255,255,255,.9);
  --in-sm: inset 4px 4px 8px rgba(88,78,140,.16), inset -3px -3px 7px rgba(255,255,255,.85);
  --flush: 3px 3px 8px rgba(88,78,140,.16), -2px -2px 6px rgba(255,255,255,.8), inset -2px -2px 6px rgba(88,78,140,.1), inset 2px 2px 6px rgba(255,255,255,.6);
  --tile: 6px 6px 13px rgba(88,78,140,.22), -4px -4px 10px rgba(255,255,255,.72), inset -3px -3px 7px rgba(0,0,0,.1), inset 3px 3px 7px rgba(255,255,255,.55);
  --v-xs: 6px 7px 14px rgba(108,78,246,.34), -3px -3px 9px rgba(255,255,255,.5), inset -2px -2px 6px rgba(58,28,150,.3), inset 2px 2px 6px rgba(255,255,255,.35);
  --v-sm: 7px 8px 16px rgba(108,78,246,.36), -4px -4px 10px rgba(255,255,255,.55), inset -3px -3px 7px rgba(58,28,150,.32), inset 3px 3px 7px rgba(255,255,255,.4);
  --v-md: 9px 11px 22px rgba(108,78,246,.38), -6px -6px 15px rgba(255,255,255,.6), inset -4px -4px 9px rgba(58,28,150,.34), inset 4px 4px 9px rgba(255,255,255,.42);
  --v-lg: 8px 12px 22px rgba(108,78,246,.45), -5px -5px 13px rgba(255,255,255,.6), inset -4px -4px 9px rgba(58,28,150,.35), inset 4px 4px 9px rgba(255,255,255,.42);
  --loop: 7s;
  background: var(--bg);
  color: var(--ink);
}
body.clay .facts div { background: var(--surface); }

/* ---------------------------------------------------------------- Page */
.cl-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.cl-hero .tag.live { background: var(--surface); color: #0a7059; box-shadow: var(--up-sm); }
.cl-hero .tag.live::before { background: #12be92; }
.cl-hero h1 { font-family: var(--fred); font-weight: 600; font-size: clamp(52px, 9.4vw, 128px); line-height: .98; letter-spacing: -.02em; margin: 22px 0 30px; color: var(--ink); }
.cl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 28px; border-radius: 20px; background: var(--grad); box-shadow: var(--v-md); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s; }
.cl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cl-btn:hover { transform: translateY(-2px); }
.cl-btn:active { transform: scale(.972); }
.ph-hero { margin-top: clamp(40px, 6vw, 72px); animation: cl-rise 1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes cl-rise { from { opacity: 0; transform: translateY(60px); } }

.cl-demo { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 7vw, 110px) 0; }
.cl-demo h2 { font-family: var(--fred); font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 0 0 32px; color: var(--ink); }
.cl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 520px; }
.cl-steps li { position: relative; overflow: hidden; padding: 22px 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--up-sm); font-family: var(--fred); font-weight: 500; font-size: 24px; color: var(--ink3); animation: var(--loop) linear infinite both; }
.cl-steps li i { position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); animation: var(--loop) linear infinite both; }
.cl-steps li:nth-child(1) { animation-name: st1; } .cl-steps li:nth-child(2) { animation-name: st2; } .cl-steps li:nth-child(3) { animation-name: st3; }
@keyframes st1 { 0%, 60.714% { color: var(--ink); } 60.81%, 100% { color: var(--ink3); } }
@keyframes st2 { 0%, 60.714% { color: var(--ink3); } 60.81%, 69.714% { color: var(--ink); } 69.8%, 100% { color: var(--ink3); } }
@keyframes st3 { 0%, 69.714% { color: var(--ink3); } 69.8%, 99.929% { color: var(--ink); } 100% { color: var(--ink3); } }
.cl-steps li:nth-child(1) i { animation-name: bar1; } .cl-steps li:nth-child(2) i { animation-name: bar2; } .cl-steps li:nth-child(3) i { animation-name: bar3; }
@keyframes bar1 { 0% { transform: scaleX(0); } 60.714% { transform: scaleX(1); } 60.81%, 100% { transform: scaleX(0); } }
@keyframes bar2 { 0%, 60.714% { transform: scaleX(0); } 69.714% { transform: scaleX(1); } 69.8%, 100% { transform: scaleX(0); } }
@keyframes bar3 { 0%, 69.714% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

@media (max-width: 860px) {
  .cl-demo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cl-demo-copy { display: contents; }
  .cl-demo h2 { margin: 0; }
  .cl-steps { grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; order: 2; }
  .cl-steps li { padding: 12px 6px; font-size: 14px; border-radius: 16px; }
  .cl-demo-phone { order: 1; }
}

/* --------------------------------------------------------------- Phone */
/* Drawn at 1:1 iPhone points, then scaled. */
.phone-box { --s: .82; width: calc(413px * var(--s)); height: calc(872px * var(--s)); flex: none; }
@media (max-width: 860px) { .phone-box { --s: .7; } }
@media (max-width: 380px) { .phone-box { --s: .66; } }
.phone { width: 413px; height: 872px; padding: 10px; border-radius: 58px; background: #1c1930; box-shadow: 0 40px 80px -20px rgba(44, 39, 72, .45), 0 0 0 2px #3a3554 inset; transform: scale(var(--s)); transform-origin: 0 0; }
.screen { position: relative; width: 393px; height: 852px; border-radius: 48px; overflow: hidden; background: var(--bg); font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); text-align: left; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 20px; background: var(--bg); }
.ic { flex: none; display: block; }

/* status bar */
.sb { position: relative; height: 54px; flex: none; margin: 0 -20px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 52px; font: 600 17px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; color: #000; }
.sb-island { position: absolute; left: 50%; top: 14px; width: 123px; height: 36px; margin-left: -61.5px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; align-items: center; gap: 6px; fill: currentColor; }
.sb-batt { position: relative; width: 26px; height: 12.5px; border-radius: 4px; border: 1.2px solid currentColor; opacity: .9; }
.sb-batt i { position: absolute; inset: 1.5px; border-radius: 2px; background: #34c759; }
.sb-light { color: #fff; }

/* app bar */
.abar { display: flex; align-items: center; gap: 12px; margin-top: 21px; min-height: 42px; }
.av { width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); box-shadow: 6px 7px 14px rgba(88,78,140,.28), -4px -4px 10px rgba(255,255,255,.6), inset -3px -3px 7px rgba(0,0,0,.18), inset 3px 3px 7px rgba(255,255,255,.35); color: #fff; font: 600 15px/18px var(--fred); }
.abar-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.abar-tt b { font: 500 21px/26px var(--fred); letter-spacing: -.21px; }
.abar-tt span { font-size: 11.5px; line-height: 15px; color: var(--ink2); }
.ibtn { width: 40px; height: 40px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--up-sm); color: var(--ink2); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 11px; }
.stat { height: 108px; border-radius: 24px; background: var(--surface); box-shadow: var(--up-sm); padding: 14px 12px 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.stat i { width: 30px; height: 30px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 5px; }
.stat b { font: 600 26px/26px var(--fred); }
.stat span { font-size: 10.5px; line-height: 14px; font-weight: 700; letter-spacing: .11px; color: var(--ink3); }
.st-soon i { background: #ffe0b0; color: #ef9a1e; } .st-soon b { color: #ef9a1e; }
.st-dead i { background: #ffc9d1; color: #f4536b; } .st-dead b { color: #f4536b; }
.st-ok i { background: #b7eedf; color: #12be92; } .st-ok b { color: #12be92; }

/* section header + rows */
.hdr { display: flex; justify-content: space-between; align-items: center; height: 16px; margin: 10px 2px 10px; }
.hdr b { font-size: 12.5px; font-weight: 800; letter-spacing: .25px; color: var(--ink2); }
.hdr s { text-decoration: none; font-size: 11.5px; font-weight: 700; color: var(--violet); }
.rrow { flex: none; height: 72px; margin-bottom: 10px; border-radius: 24px; background: var(--surface); box-shadow: var(--up-sm); display: flex; align-items: center; gap: 13px; padding: 0 14px; }
.tile { width: 46px; height: 46px; border-radius: 17px; display: grid; place-items: center; box-shadow: var(--tile); }
.t-vehicle { background: #bfe7f7; color: #1b7ca3; } .t-insurance { background: #b7eedf; color: #0a7d61; }
.t-subscriptions { background: #ffc9d1; color: #c42744; } .t-birthday { background: #ffd6e4; color: #c02a5e; }
.rrow-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rrow-tt b { font-size: 13.5px; line-height: 18px; font-weight: 700; letter-spacing: -.14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow-tt span { font-size: 11px; line-height: 15px; color: var(--ink3); }
.rrow-tt em { font: normal 600 11px var(--fred); color: var(--ink2); }
.days { width: 54px; height: 54px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--surface); }
.days b { font: 600 19px/19px var(--fred); }
.days s { text-decoration: none; font-size: 8.5px; line-height: 11px; font-weight: 700; letter-spacing: .85px; text-transform: uppercase; color: var(--ink3); }
.days.soon { box-shadow: var(--flush); } .days.soon b { color: #ef9a1e; }
.days.ok { box-shadow: var(--up-sm); } .days.ok b { color: #12be92; }

/* tab bar: tokens sizes.navBar 82, inset 14, bottom 34 */
.nav { position: absolute; left: 14px; right: 14px; bottom: 34px; height: 82px; border-radius: 28px; background: var(--surface); box-shadow: var(--up); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.nav-it { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 9.5px; line-height: 12px; font-weight: 700; letter-spacing: .19px; color: var(--ink3); }
.nav-it .slot { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; }
.nav-it.on { color: var(--violet); } .nav-it.on .slot { box-shadow: var(--in-sm); }
.fab { width: 56px; height: 56px; border-radius: 21px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--v-lg); margin-top: -26px; }

/* ----------------------------------------------- New reminder, step 1 */
.save { align-self: center; font-size: 12.5px; font-weight: 700; color: var(--violet); padding-right: 6px; }
.scr-add .abar { margin-top: 21px; gap: 12px; }
.scr-add .abar .ibtn { color: var(--ink2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.steps i { height: 8px; border-radius: 8px; box-shadow: var(--in-sm); }
.steps i.on { background: var(--grad); box-shadow: inset -2px -2px 5px rgba(0,0,0,.14), inset 2px 2px 5px rgba(255,255,255,.4), 0 3px 8px rgba(108,78,246,.3); }
.flab { position: relative; margin: 17px 5px 6px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .88px; text-transform: uppercase; color: var(--ink3); }
.field { position: relative; height: 43px; border-radius: 18px; box-shadow: var(--in-sm); background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 14px; color: var(--ink3); }
.field .val { position: absolute; left: 16px; font-weight: 600; color: var(--ink); }
.f-date .val, .f-date .ph { left: 46px; }
.f-date .ph { position: absolute; }
.f-date { color: var(--ink2); }
.f-date .ph { color: var(--ink3); }
.chips { display: flex; flex-wrap: wrap; gap: 9px 8px; margin-top: 1px; }
.chip { position: relative; height: 32px; padding: 0 13px; border-radius: 15px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); box-shadow: var(--up-sm); font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.chip-new { background: var(--bg); box-shadow: var(--in-sm); padding-left: 14px; }
.chip-on { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 15px; background: var(--grad); box-shadow: var(--v-xs); color: #fff; opacity: 0; }
.pair { display: grid; grid-template-columns: 194px 149px; gap: 10px; }
.pair .flab { margin-top: 17px; }
.lab-renew { position: absolute; left: 0; opacity: 0; }
.card { margin-top: 16px; padding: 15px 16px 14px; border-radius: 26px; background: var(--surface); box-shadow: var(--up); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 0 0 0; }
.card-top > span { display: flex; flex-direction: column; gap: 2px; }
.card-top b { font-size: 13.5px; line-height: 18px; font-weight: 700; }
.card-top span span { font-size: 11px; line-height: 15px; color: var(--ink2); }
.tog { position: relative; width: 46px; height: 27px; border-radius: 14px; background: var(--grad); box-shadow: inset 3px 3px 7px rgba(58,28,150,.3), inset -2px -2px 6px rgba(255,255,255,.28); margin-top: 0; }
.tog i { position: absolute; top: 3.5px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 3px 3px 6px rgba(88,78,140,.3), -1px -1px 4px rgba(255,255,255,.9); }
.seg { margin-top: 13px; height: 40px; border-radius: 18px; box-shadow: var(--in); display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; }
.seg span { display: grid; place-items: center; border-radius: 15px; font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.seg .on { background: var(--surface); box-shadow: var(--up-sm); color: var(--violet); }
.btn-next { margin-top: 20px; height: 54px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--v-md); color: #fff; font-size: 14.5px; font-weight: 700; }

/* ------------------------------------------------------------ Lock screen */
/* Nio wallpaper: soft mint #ebf7f5 and ink #024235 sampled from the founder's Nio picture. Not mirrored. */
.scr-lock { background: #ebf7f5; align-items: center; }
.scr-lock .sb-time { visibility: hidden; }
.lock-time { position: relative; z-index: 1; margin-top: 40px; font: 600 88px/1 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -2px; color: #024235; }
.lock-nio { position: absolute; left: 50%; top: 196px; width: 300px; height: auto; margin-left: -150px; filter: drop-shadow(0 18px 22px rgba(2, 66, 53, .14)); pointer-events: none; }
.notif { position: absolute; left: 12px; right: 12px; bottom: 120px; display: flex; gap: 11px; align-items: center; padding: 13px 14px; border-radius: 24px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; color: #000; box-shadow: 0 10px 30px rgba(2, 66, 53, .16); }
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif b { font-size: 15px; line-height: 20px; font-weight: 600; }
.notif span span { font-size: 15px; line-height: 20px; }

/* ------------------------------------------------------------ The loop, --loop (7 s; change round 2: slow enough to read)
   0-1.2 s Home, tap +   1.2-1.6 s New reminder slides up   1.75-2.85 s type title
   3.4 s Insurance on, "Due on" -> "Renews on"   4 s date set   4.3-4.65 s tap Save
   4.7-5 s lock screen   5.1-5.5 s notification in   5.5-6.8 s hold   6.8-7 s back to Home */
.ph-demo .scr-add, .ph-demo .scr-lock, .ph-demo .notif, .ph-demo .fab, .ph-demo .save,
.ph-demo .typed, .ph-demo .ph-title, .ph-demo .chip-on, .ph-demo .lab-due, .ph-demo .lab-renew,
.ph-demo .ph-date, .ph-demo .val-date, .tap { animation: var(--loop) linear infinite both; }
.ph-hero .scr-add, .ph-hero .scr-lock { display: none; }
.ph-demo .scr-add { animation-name: a-add; transform: translateY(100%); }
@keyframes a-add { 0%, 17.143% { transform: translateY(100%); animation-timing-function: cubic-bezier(.22,1,.36,1); } 22.857%, 97.143% { transform: translateY(0); } 97.214%, 100% { transform: translateY(100%); } }
.ph-demo .fab { animation-name: a-fab; }
@keyframes a-fab { 0%, 11.429% { transform: scale(1); } 14.286% { transform: scale(.9); } 17.143%, 100% { transform: scale(1); } }
.ph-demo .typed { animation-name: a-type; animation-timing-function: steps(1); }
@keyframes a-type { 0%, 25% { clip-path: inset(0 100% 0 0); } 26.209% { clip-path: inset(0 92% 0 0); } 27.418% { clip-path: inset(0 85% 0 0); } 28.626% { clip-path: inset(0 77% 0 0); } 29.835% { clip-path: inset(0 69% 0 0); } 31.044% { clip-path: inset(0 62% 0 0); } 32.253% { clip-path: inset(0 54% 0 0); } 33.462% { clip-path: inset(0 46% 0 0); } 34.67% { clip-path: inset(0 38% 0 0); } 35.879% { clip-path: inset(0 31% 0 0); } 37.088% { clip-path: inset(0 23% 0 0); } 38.297% { clip-path: inset(0 15% 0 0); } 39.505% { clip-path: inset(0 8% 0 0); } 40.714%, 100% { clip-path: inset(0 0 0 0); } }
.ph-demo .ph-title { animation-name: a-out20; }
@keyframes a-out20 { 0%, 25% { opacity: 1; } 25.101%, 100% { opacity: 0; } }
.ph-demo .chip-on, .ph-demo .lab-renew { animation-name: a-in41; }
@keyframes a-in41 { 0%, 45.918% { opacity: 0; } 48.98%, 100% { opacity: 1; } }
.ph-demo .lab-due { animation-name: a-out41; }
@keyframes a-out41 { 0%, 45.918% { opacity: 1; } 48.98%, 100% { opacity: 0; } }
.ph-demo .ph-date { animation-name: a-out50; }
@keyframes a-out50 { 0%, 54.49% { opacity: 1; } 56.531%, 100% { opacity: 0; } }
.ph-demo .val-date { animation-name: a-in50; opacity: 0; }
@keyframes a-in50 { 0%, 54.49% { opacity: 0; } 57.551%, 100% { opacity: 1; } }
.ph-demo .save { animation-name: a-save; }
@keyframes a-save { 0%, 61.667% { transform: scale(1); } 64.048% { transform: scale(.88); } 66.429%, 100% { transform: scale(1); } }
.ph-demo .scr-lock { animation-name: a-lock; opacity: 0; }
@keyframes a-lock { 0%, 67.143% { opacity: 0; } 71.429%, 97.143% { opacity: 1; } 100% { opacity: 0; } }
.ph-demo .notif { animation-name: a-notif; }
@keyframes a-notif { 0%, 72.857% { opacity: 0; transform: translateY(60px) scale(.96); animation-timing-function: cubic-bezier(.22,1,.36,1); } 78.571%, 100% { opacity: 1; transform: none; } }

/* the finger: + (196,771), Insurance (244,270), date field (117,427), Save (360,96) */
.tap { position: absolute; z-index: 5; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(44, 39, 72, .22); border: 2px solid rgba(255, 255, 255, .85); opacity: 0; animation-name: a-tap; pointer-events: none; }
@keyframes a-tap {
  0% { left: 196px; top: 771px; opacity: 0; transform: scale(1.3); }
  10% { left: 196px; top: 771px; opacity: 1; transform: scale(1); }
  16.19% { left: 196px; top: 771px; opacity: 0; transform: scale(.8); }
  16.286%, 42.857% { left: 244px; top: 270px; opacity: 0; transform: scale(1.3); }
  45.918% { left: 244px; top: 270px; opacity: 1; transform: scale(1); }
  50% { left: 244px; top: 270px; opacity: 0; transform: scale(.8); }
  50.071%, 51.429% { left: 117px; top: 427px; opacity: 0; transform: scale(1.3); }
  54.49% { left: 117px; top: 427px; opacity: 1; transform: scale(1); }
  58.571% { left: 117px; top: 427px; opacity: 0; transform: scale(.8); }
  58.643%, 60.714% { left: 360px; top: 96px; opacity: 0; transform: scale(1.3); }
  63.571% { left: 360px; top: 96px; opacity: 1; transform: scale(1); }
  66.429%, 100% { left: 360px; top: 96px; opacity: 0; transform: scale(.8); }
}

/* Reduced motion: no loop, no entrance. The demo shows its end: the notification. */
@media (prefers-reduced-motion: reduce) {
  .ph-hero, .cl-steps li, .cl-steps li i, .ph-demo *, .tap { animation: none !important; }
  .ph-demo .scr-add { transform: none; }
  .ph-demo .scr-lock, .ph-demo .notif { opacity: 1; transform: none; }
  .tap { display: none; }
  .cl-steps li:nth-child(3) { color: var(--ink); }
  .cl-steps li:nth-child(3) i { transform: none; }
}

/* =============================================== Full page (T-20261118-02) */
/* Shared parts, after the v1.0 clay components (see nxtdue-page.mjs). */
.abar-tt.h3 b { font-size: 19px; line-height: 24px; letter-spacing: 0; }
.ibtn-on { box-shadow: var(--in-sm); background: var(--bg); }
.cbtn { flex: none; height: 54px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; font-size: 14.5px; line-height: 19px; font-weight: 700; color: var(--ink); background: var(--surface); box-shadow: var(--up-sm); }
.cb-primary { background: var(--grad); box-shadow: var(--v-md); color: #fff; }
.cb-ghost { background: transparent; box-shadow: none; color: var(--ink2); font-weight: 600; }
.cb-sm { height: 44px; border-radius: 16px; font-size: 13px; line-height: 17px; }
.pill { flex: none; padding: 4px 9px; border-radius: 9px; font-size: 9.5px; line-height: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.pl-new { background: #cfc4ff; color: #4527be; } .pl-ok { background: #b7eedf; color: #0a7059; } .pl-soon { background: #ffe0b0; color: #93590a; }
.ccard { flex: none; border-radius: 26px; background: var(--surface); box-shadow: var(--up); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.cc-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-tt b, .rt { font-size: 13.5px; line-height: 18px; font-weight: 700; letter-spacing: -.14px; color: var(--ink); }
.cc-tt span, .rs { font-size: 11px; line-height: 15px; color: var(--ink2); }
.fnote { margin: 6px 5px 0; font-size: 10.5px; line-height: 16px; color: var(--ink3); }
.tile-sm { width: 38px; height: 38px; border-radius: 14px; }
.t-documents { background: #cfc4ff; color: #4b2fc4; } .t-services { background: #ffd3be; color: #b65a2e; }
.t-warranty { background: #dce3fb; color: #3d51a8; } .t-finance { background: #ffe0b0; color: #a2650a; }
.sheet-wrap { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(44, 39, 72, .34); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px 54px; border-radius: 34px 34px 0 0; background: var(--bg); box-shadow: 0 -10px 30px rgba(44, 39, 72, .18); display: flex; flex-direction: column; gap: 8px; }
.grab { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--sunk); box-shadow: var(--in-sm); margin-bottom: 6px; }
.sheet-hd { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.sheet-hd b { font: 500 19px/24px var(--fred); }
.sheet-hd span { font-size: 12.5px; line-height: 19.5px; color: var(--ink2); }
.cl-note { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 9px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--up-sm); font-size: 14px; font-weight: 700; color: var(--ink2); }

/* phone left, words right */
.cl-rev { grid-template-columns: auto 1fr; }
.cl-rev .cl-demo-phone { order: -1; }

/* ------------------------------------------------------------- Family */
.scr-fam .abar, .scr-doc .abar { margin-bottom: 16px; }
.own { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 8px; }
.av-ring { width: 52px; height: 52px; padding: 3px; border-radius: 22px; background: linear-gradient(135deg, #8c74ff, #6c4ef6 30%, #f4536b 65%, #ef9a1e); flex: none; }
.av-52 { width: 46px; height: 46px; border-radius: 17px; border: 2px solid var(--surface); box-sizing: border-box; }
.scr-fam .hdr { margin: 14px 2px 10px; }
.fam-invite { margin-top: 16px; }
.scr-inv .flab { margin-top: 16px; margin-bottom: 7px; }
.scr-inv .abar, .scr-ready .abar { margin-bottom: 0; }
.scr-inv .field { height: 45px; gap: 11px; }
.scr-inv .field .val { left: 47px; font-weight: 600; }
.scr-inv .field .ph { position: absolute; left: 47px; }
.roles { display: flex; flex-direction: column; gap: 10px; }
.role { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 24px; background: var(--surface); box-shadow: var(--up-sm); }
.role-on { background: #cfc4ff; }
.role-ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--sunk); flex: none; }
.role-on .role-ic { background: var(--violet); }
.scr-inv .fnote:last-of-type { margin-top: 12px; }
.inv-send { margin-top: 20px; }
.scr-ready .abar { margin-bottom: 16px; }
.sent { flex-direction: row; align-items: center; gap: 12px; }
.sent-badge { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: #12be92; flex: none; }
.rd-wa { margin-top: 20px; } .rd-f { margin-top: 8px; }

/* Family loop, --loop-f (7.05 s).
   0-1.2 s Family, tap "Invite a family member"   1.2-1.65 s Invite someone slides up
   2.2-3.4 s type email   3.6-4.2 s type name   4.55-5.15 s tap Send invite
   5.15-5.6 s Invite ready slides in   5.6-6.8 s hold   6.8-7.05 s back to Family */
body.clay { --loop-f: 7.05s; }
.ph-fam .scr-inv, .ph-fam .scr-ready, .ph-fam .fam-invite, .ph-fam .inv-send, .ph-fam .inv-v1, .ph-fam .inv-v2,
.ph-fam .inv-ph1, .ph-fam .inv-ph2, .ph-fam .tap, .cl-fam .cl-steps li, .cl-fam .cl-steps li i { animation-duration: var(--loop-f); animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; }
.ph-fam .scr-inv { animation-name: f-inv; transform: translateY(100%); }
@keyframes f-inv { 0%, 17.021% { transform: translateY(100%); animation-timing-function: cubic-bezier(.22,1,.36,1); } 23.404%, 96.454% { transform: translateY(0); opacity: 1; } 99.291% { transform: translateY(0); opacity: 0; } 99.36%, 100% { transform: translateY(100%); opacity: 0; } }
.ph-fam .scr-ready { animation-name: f-ready; transform: translateX(100%); }
@keyframes f-ready { 0%, 73.05% { transform: translateX(100%); animation-timing-function: cubic-bezier(.22,1,.36,1); } 79.433%, 96.454% { transform: translateX(0); opacity: 1; } 99.291% { transform: translateX(0); opacity: 0; } 99.36%, 100% { transform: translateX(100%); opacity: 0; } }
.ph-fam .fam-invite { animation-name: f-press1; }
@keyframes f-press1 { 0%, 11.348% { transform: scale(1); } 14.178% { transform: scale(.96); } 17.021%, 100% { transform: scale(1); } }
.ph-fam .inv-send { animation-name: f-press2; }
@keyframes f-press2 { 0%, 68.26% { transform: scale(1); } 70.689% { transform: scale(.96); } 73.05%, 100% { transform: scale(1); } }
.ph-fam .inv-ph1 { animation-name: f-out18; } .ph-fam .inv-ph2 { animation-name: f-out34; }
@keyframes f-out18 { 0%, 31.206% { opacity: 1; } 31.321%, 100% { opacity: 0; } }
@keyframes f-out34 { 0%, 51.064% { opacity: 1; } 51.172%, 100% { opacity: 0; } }
.ph-fam .inv-v1 { animation-name: f-type1; animation-timing-function: steps(1); }
@keyframes f-type1 { 0%, 31.206% { clip-path: inset(0 100% 0 0); } 33.637% { clip-path: inset(0 86% 0 0); } 36.069% { clip-path: inset(0 72% 0 0); } 38.501% { clip-path: inset(0 58% 0 0); } 40.932% { clip-path: inset(0 43% 0 0); } 43.364% { clip-path: inset(0 29% 0 0); } 45.795% { clip-path: inset(0 14% 0 0); } 48.227%, 100% { clip-path: inset(0 0 0 0); } }
.ph-fam .inv-v2 { animation-name: f-type2; animation-timing-function: steps(1); }
@keyframes f-type2 { 0%, 51.064% { clip-path: inset(0 100% 0 0); } 53.185% { clip-path: inset(0 75% 0 0); } 55.319% { clip-path: inset(0 50% 0 0); } 57.441% { clip-path: inset(0 25% 0 0); } 59.574%, 100% { clip-path: inset(0 0 0 0); } }
.ph-fam .tap { animation-name: f-tap; }
@keyframes f-tap {
  0% { left: var(--t1x); top: var(--t1y); opacity: 0; transform: scale(1.3); }
  11.348% { left: var(--t1x); top: var(--t1y); opacity: 1; transform: scale(1); }
  17.021% { left: var(--t1x); top: var(--t1y); opacity: 0; transform: scale(.8); }
  17.111%, 64.539% { left: var(--t2x); top: var(--t2y); opacity: 0; transform: scale(1.3); }
  69.504% { left: var(--t2x); top: var(--t2y); opacity: 1; transform: scale(1); }
  73.05%, 100% { left: var(--t2x); top: var(--t2y); opacity: 0; transform: scale(.8); }
}
.ph-fam { --t1x: 197px; --t1y: 393px; --t2x: 197px; --t2y: 612px; }
.cl-fam .cl-steps li:nth-child(1) { animation-name: fs1; } .cl-fam .cl-steps li:nth-child(2) { animation-name: fs2; } .cl-fam .cl-steps li:nth-child(3) { animation-name: fs3; }
@keyframes fs1 { 0%, 65.783% { color: var(--ink); } 65.905%, 100% { color: var(--ink3); } }
@keyframes fs2 { 0%, 65.783% { color: var(--ink3); } 65.905%, 75.18% { color: var(--ink); } 75.285%, 100% { color: var(--ink3); } }
@keyframes fs3 { 0%, 75.18% { color: var(--ink3); } 75.285%, 99.93% { color: var(--ink); } 100% { color: var(--ink3); } }
.cl-fam .cl-steps li:nth-child(1) i { animation-name: fb1; } .cl-fam .cl-steps li:nth-child(2) i { animation-name: fb2; } .cl-fam .cl-steps li:nth-child(3) i { animation-name: fb3; }
@keyframes fb1 { 0% { transform: scaleX(0); } 65.783% { transform: scaleX(1); } 65.905%, 100% { transform: scaleX(0); } }
@keyframes fb2 { 0%, 65.783% { transform: scaleX(0); } 75.18% { transform: scaleX(1); } 75.285%, 100% { transform: scaleX(0); } }
@keyframes fb3 { 0%, 75.18% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

@media (max-width: 860px) {
  .cl-rev { grid-template-columns: 1fr; }
  .cl-rev .cl-demo-phone { order: 1; }
  .cl-note { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-fam *, .cl-fam .cl-steps li, .cl-fam .cl-steps li i { animation: none !important; }
  .ph-fam .scr-inv, .ph-fam .scr-ready { transform: none; }
  .cl-fam .cl-steps li:nth-child(3) { color: var(--ink); }
  .cl-fam .cl-steps li:nth-child(3) i { transform: none; }
}

/* ---------------------------------------------------------- Documents */
/* two texts in one place: .d0 before, .d1 after (stacked, swapped by opacity) */
.scr-doc .abar-tt > span, .st-row .rs, .scr-docd .det b { position: relative; }
.d1 { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
.st-row .d1 { left: auto; right: 0; }
.det .d1 { left: auto; right: 0; width: 100%; white-space: normal; }
.chips.doc-chips { gap: 4px; margin-top: 8px; }
.doc-chips .chip { height: auto; padding: 9px 14px; }
.chip-sel { background: var(--grad); box-shadow: var(--v-xs); color: #fff; }
.doc-body { position: relative; margin-top: 8px; }
.doc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 16px 0; }
.doc-empty .rs { margin-bottom: 12px; }
.doc-empty .cbtn { align-self: stretch; }
.doc-list { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
.doc-list .hdr { margin: 6px 2px 4px; }
.doc-row { flex-direction: row; align-items: center; gap: 12px; margin: 2px 0; }
.cc-tt .unlinked { color: #ef9a1e; }
.storage { margin-top: 16px; gap: 8px; }
.st-row { display: flex; justify-content: space-between; align-items: center; }
.st-row b.rs { font-weight: 600; }
.track { height: 12px; border-radius: 8px; box-shadow: var(--in-sm); background: var(--bg); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--violet); box-shadow: inset -2px -2px 4px rgba(0,0,0,.12), inset 2px 2px 4px rgba(255,255,255,.35); }
.doc-sheet .cbtn + .cbtn, .link-list .cbtn + .cbtn { margin-top: 0; }
.scr-docd .abar-tt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-prev { margin-top: 8px; height: 322px; align-items: center; justify-content: center; gap: 12px; }
.doc-acts { display: flex; gap: 8px; margin-top: 16px; }
.doc-acts .cbtn { flex: 1; padding: 0 8px; }
.doc-det { margin-top: 16px; gap: 0; padding-top: 4px; padding-bottom: 4px; }
.det { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; }
.det b { font-size: 11px; line-height: 15px; font-weight: 600; color: var(--ink); text-align: right; max-width: 200px; }
.det .muted { color: var(--ink3); }
.div { display: block; height: 1px; background: var(--line); }
.link-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: hidden; }
.link-sheet .sheet { padding-bottom: 40px; }

/* Documents loop, --loop-d (8.15 s).
   0-0.9 s Documents, tap +   0.9-1.35 s "Add a document" up   2.1-2.4 s tap Browse files   2.4-2.7 s down
   2.8-3.2 s the file lands   3.9-4.2 s tap it   4.1-4.6 s the document opens   5.2-5.5 s tap Link
   5.4-5.9 s "Link to a reminder" up   6.4-6.75 s tap Car insurance   6.7-7 s down, linked   7.9-8.15 s back */
body.clay { --loop-d: 8.15s; }
.ph-doc .doc-sheet, .ph-doc .doc-sheet .sheet, .ph-doc .link-sheet, .ph-doc .link-sheet .sheet, .ph-doc .doc-empty, .ph-doc .doc-list,
.ph-doc .scr-doc .d0, .ph-doc .scr-doc .d1, .ph-doc .scr-docd .d0, .ph-doc .scr-docd .d1, .ph-doc .track i, .ph-doc .scr-docd,
.ph-doc .doc-row, .ph-doc .doc-browse, .ph-doc .doc-link, .ph-doc .link-car, .ph-doc .tap, .cl-doc .cl-steps li, .cl-doc .cl-steps li i { animation-duration: var(--loop-d); animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; }
.ph-hero .sheet-wrap, .sheet-wrap { opacity: 0; }
.ph-doc .doc-sheet { animation-name: d-sh1; }
@keyframes d-sh1 { 0%, 11.043% { opacity: 0; } 13.252%, 29.448% { opacity: 1; } 33.129%, 100% { opacity: 0; } }
.ph-doc .doc-sheet .sheet { animation-name: d-sh1b; }
@keyframes d-sh1b { 0%, 11.043% { transform: translateY(100%); animation-timing-function: cubic-bezier(.22,1,.36,1); } 16.564%, 28.221% { transform: translateY(0); animation-timing-function: ease-in; } 33.129%, 100% { transform: translateY(100%); } }
.ph-doc .link-sheet { animation-name: d-sh2; }
@keyframes d-sh2 { 0%, 66.258% { opacity: 0; } 68.466%, 82.822% { opacity: 1; } 85.89%, 100% { opacity: 0; } }
.ph-doc .link-sheet .sheet { animation-name: d-sh2b; }
@keyframes d-sh2b { 0%, 66.258% { transform: translateY(100%); animation-timing-function: cubic-bezier(.22,1,.36,1); } 72.393%, 82.209% { transform: translateY(0); animation-timing-function: ease-in; } 85.89%, 100% { transform: translateY(100%); } }
.ph-doc .doc-empty { animation-name: d-empty; }
@keyframes d-empty { 0%, 34.356% { opacity: 1; } 35.992%, 99.387% { opacity: 0; } 100% { opacity: 1; } }
.ph-doc .doc-list { animation-name: d-list; }
@keyframes d-list { 0%, 34.356% { opacity: 0; transform: translateY(-14px); animation-timing-function: cubic-bezier(.22,1,.36,1); } 39.264%, 99.387% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ph-doc .scr-doc .d0 { animation-name: d-sw0a; } .ph-doc .scr-doc .d1 { animation-name: d-sw1a; }
@keyframes d-sw0a { 0%, 35.906% { opacity: 1; } 35.992%, 99.941% { opacity: 0; } }
@keyframes d-sw1a { 0%, 35.906% { opacity: 0; } 35.992%, 99.941% { opacity: 1; } }
.ph-doc .scr-docd .d0 { animation-name: d-sw0b; } .ph-doc .scr-docd .d1 { animation-name: d-sw1b; }
@keyframes d-sw0b { 0%, 83.738% { opacity: 1; } 83.845%, 100% { opacity: 0; } }
@keyframes d-sw1b { 0%, 83.738% { opacity: 0; } 83.845%, 100% { opacity: 1; } }
.ph-doc { --t1x: 353px; --t1y: 96px; --t2x: 197px; --t2y: 772px; --t3x: 197px; --t3y: 291px; --t4x: 196px; --t4y: 491px; --t5x: 197px; --t5y: 705px; }
.ph-cat { --t1x: 106px; --t1y: 198px; }
.ph-doc .track i { animation-name: d-track; }
@keyframes d-track { 0%, 35.906% { width: 0; } 35.992%, 99.941% { width: 3px; } }
.ph-doc .scr-docd { animation-name: d-detail; transform: translateX(100%); }
@keyframes d-detail { 0%, 50.307% { transform: translateX(100%); animation-timing-function: cubic-bezier(.22,1,.36,1); } 56.442%, 96.933% { transform: translateX(0); opacity: 1; } 99.387% { transform: translateX(0); opacity: 0; } 99.445%, 100% { transform: translateX(100%); opacity: 0; } }
.ph-doc .doc-row { animation-name: d-p1; } .ph-doc .doc-browse { animation-name: d-p2; } .ph-doc .doc-link { animation-name: d-p3; } .ph-doc .link-car { animation-name: d-p4; }
@keyframes d-p1 { 0%, 46.626% { transform: scale(1); } 49.08% { transform: scale(.97); } 51.534%, 100% { transform: scale(1); } }
@keyframes d-p2 { 0%, 22.699% { transform: scale(1); } 26.994% { transform: scale(.96); } 29.448%, 100% { transform: scale(1); } }
@keyframes d-p3 { 0%, 61.35% { transform: scale(1); } 65.031% { transform: scale(.94); } 67.485%, 100% { transform: scale(1); } }
@keyframes d-p4 { 0%, 78.528% { transform: scale(1); background: var(--surface); color: var(--ink); } 80.982%, 85.89% { transform: scale(.96); background: var(--violet); color: #fff; } 86.215%, 100% { transform: scale(1); background: var(--surface); color: var(--ink); } }
.ph-doc .tap { animation-name: d-tap; }
@keyframes d-tap {
  0% { left: var(--t1x); top: var(--t1y); opacity: 0; transform: scale(1.3); }
  7.362% { left: var(--t1x); top: var(--t1y); opacity: 1; transform: scale(1); }
  11.043% { left: var(--t1x); top: var(--t1y); opacity: 0; transform: scale(.8); }
  11.149%, 16.564% { left: var(--t2x); top: var(--t2y); opacity: 0; transform: scale(1.3); }
  25.767% { left: var(--t2x); top: var(--t2y); opacity: 1; transform: scale(1); }
  29.448% { left: var(--t2x); top: var(--t2y); opacity: 0; transform: scale(.8); }
  29.576%, 44.172% { left: var(--t3x); top: var(--t3y); opacity: 0; transform: scale(1.3); }
  47.853% { left: var(--t3x); top: var(--t3y); opacity: 1; transform: scale(1); }
  51.534% { left: var(--t3x); top: var(--t3y); opacity: 0; transform: scale(.8); }
  51.636%, 56.442% { left: var(--t4x); top: var(--t4y); opacity: 0; transform: scale(1.3); }
  63.804% { left: var(--t4x); top: var(--t4y); opacity: 1; transform: scale(1); }
  67.485% { left: var(--t4x); top: var(--t4y); opacity: 0; transform: scale(.8); }
  67.579%, 75.46% { left: var(--t5x); top: var(--t5y); opacity: 0; transform: scale(1.3); }
  79.755% { left: var(--t5x); top: var(--t5y); opacity: 1; transform: scale(1); }
  82.822%, 100% { left: var(--t5x); top: var(--t5y); opacity: 0; transform: scale(.8); }
}
.cl-doc .cl-steps li:nth-child(1) { animation-name: ds1; } .cl-doc .cl-steps li:nth-child(2) { animation-name: ds2; } .cl-doc .cl-steps li:nth-child(3) { animation-name: ds3; }
@keyframes ds1 { 0%, 45.399% { color: var(--ink); } 45.516%, 100% { color: var(--ink3); } }
@keyframes ds2 { 0%, 45.399% { color: var(--ink3); } 45.516%, 65.031% { color: var(--ink); } 65.148%, 100% { color: var(--ink3); } }
@keyframes ds3 { 0%, 65.031% { color: var(--ink3); } 65.148%, 99.941% { color: var(--ink); } 100% { color: var(--ink3); } }
.cl-doc .cl-steps li:nth-child(1) i { animation-name: db1; } .cl-doc .cl-steps li:nth-child(2) i { animation-name: db2; } .cl-doc .cl-steps li:nth-child(3) i { animation-name: db3; }
@keyframes db1 { 0% { transform: scaleX(0); } 45.399% { transform: scaleX(1); } 45.516%, 100% { transform: scaleX(0); } }
@keyframes db2 { 0%, 45.399% { transform: scaleX(0); } 65.031% { transform: scaleX(1); } 65.148%, 100% { transform: scaleX(0); } }
@keyframes db3 { 0%, 65.031% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* --------------------------------------------------------- Categories */
.scr-cats .abar, .scr-veh .abar { margin-bottom: 16px; }
.tiny { font-size: 10.5px; line-height: 16px; color: var(--ink2); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat { position: relative; padding: 14px; border-radius: 26px; background: var(--surface); box-shadow: var(--up); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cat .rt { margin-top: 11px; }
.cat-x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 15px; display: grid; place-items: center; background: var(--sunk); box-shadow: var(--in); color: var(--ink2); }
.cat-new { min-height: 112px; padding: 14px; border-radius: 26px; box-shadow: var(--in); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.cat-new-ic { width: 40px; height: 40px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--up-sm); color: var(--ink2); }
.veh-sum { gap: 12px; }
.track-ok i { width: 100%; background: #12be92; }
.veh-hdr { margin-top: 20px; }

/* Categories loop, --loop-c (6 s): tap Vehicle (0.5-1.35 s), Vehicle opens (1.35-1.8 s), hold to 4.6 s, back by 5.1 s, grid holds. */
body.clay { --loop-c: 6s; }
.ph-cat .scr-veh, .ph-cat .cat-veh, .ph-cat .tap { animation-duration: var(--loop-c); animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; }
.ph-cat .scr-veh { animation-name: c-veh; transform: translateX(100%); }
@keyframes c-veh { 0%, 22.5% { transform: translateX(100%); animation-timing-function: cubic-bezier(.22,1,.36,1); } 30%, 76.667% { transform: translateX(0); animation-timing-function: cubic-bezier(.55,0,.45,1); } 85%, 100% { transform: translateX(100%); } }
.ph-cat .cat-veh { animation-name: c-press; }
@keyframes c-press { 0%, 15.833% { transform: scale(1); } 19.167% { transform: scale(.95); } 22.5%, 100% { transform: scale(1); } }
.ph-cat .tap { animation-name: c-tap; }
@keyframes c-tap { 0%, 8.333% { left: var(--t1x); top: var(--t1y); opacity: 0; transform: scale(1.3); } 16.667% { left: var(--t1x); top: var(--t1y); opacity: 1; transform: scale(1); } 22.5%, 100% { left: var(--t1x); top: var(--t1y); opacity: 0; transform: scale(.8); } }

/* bento: the phone card plus one card per seeded category, each tile bobbing in turn */
.cl-cats, .cl-plans { padding: clamp(40px, 7vw, 110px) 0 0; }
.cl-cats h2, .cl-plans h2, .cl-end h2 { font-family: var(--fred); font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 0 0 32px; color: var(--ink); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 16px; }
.bento-card { border-radius: 30px; background: var(--surface); box-shadow: var(--up); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.bento-card > b { font-family: var(--fred); font-weight: 500; font-size: 22px; color: var(--ink); }
.bento-card > .tile { transform: scale(1.5); margin: 12px 0 8px; animation: c-bob 6.4s cubic-bezier(.45,0,.55,1) infinite both; animation-delay: calc(var(--k) * .8s - 6.4s); }
@keyframes c-bob { 0%, 30%, 100% { transform: scale(1.5) translateY(0); } 12% { transform: scale(1.5) translateY(-7px) rotate(-4deg); } 22% { transform: scale(1.5) translateY(0) rotate(0); } }
.bento-new { box-shadow: var(--in); background: transparent; }
.bento-new > b { color: var(--ink2); font-size: 18px; }
.bento-phone { grid-column: span 2; grid-row: span 2; padding: 28px 0; background: linear-gradient(160deg, var(--surface), #e2dcfb); }
.bento-phone .phone-box { --s: .56; }

/* ---------------------------------------------------------------- Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border-radius: 30px; padding: 30px 32px 22px; background: var(--surface); box-shadow: var(--up); }
.plan h3 { font-family: var(--fred); font-weight: 600; font-size: 32px; margin: 0 0 12px; color: var(--ink); }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink2); }
.plan li span { flex: 1; }
.plan li b { font-family: var(--fred); font-weight: 600; font-size: 22px; color: var(--ink); }
.plan-premium { background: var(--grad); box-shadow: var(--v-md); }
.plan-premium h3, .plan-premium li b { color: #fff; }
.plan-premium li { color: rgba(255,255,255,.86); border-top-color: rgba(255,255,255,.22); }

/* ------------------------------------------------------------ The close */
.cl-end { display: flex; flex-direction: column; align-items: center; text-align: center; margin: clamp(60px, 8vw, 120px) 0 clamp(20px, 4vw, 60px); padding: clamp(40px, 6vw, 80px) 24px; border-radius: 40px; background: var(--surface); box-shadow: var(--up); }
.cl-end img { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--v-md); }
.cl-end h2 { margin: 28px 0 28px; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(140px, auto); gap: 12px; }
  .bento-phone .phone-box { --s: .56; }
  .bento-card > b { font-size: 17px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px 22px 14px; }
  .cl-cats h2, .cl-plans h2 { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-doc *, .ph-cat *, .cl-doc .cl-steps li, .cl-doc .cl-steps li i, .bento-card > .tile { animation: none !important; }
  /* the Documents demo ends linked; Categories shows the Vehicle page */
  .ph-doc .scr-docd, .ph-cat .scr-veh { transform: none; }
  .ph-doc .scr-docd .d0 { opacity: 0; } .ph-doc .scr-docd .d1 { opacity: 1; }
  .cl-doc .cl-steps li:nth-child(3) { color: var(--ink); }
  .cl-doc .cl-steps li:nth-child(3) i { transform: none; }
}
