/* /apps/ (the apps Sozou builds and runs) and /apps/notaito/ (its first app). Built in .publish/apps-page.
   Everything is under .ap and prefixed ap-, so nothing here can reach another page. Type and card values follow the
   /demos/ page (h1/h2 sizes, the Cormorant italic accent, white hairline cards); Notaito's page uses Notaito's own
   colours (forest, young bamboo, washi paper) for its accent and buttons. */

.ap { --ap-accent: #264F8F; --ap-btn: var(--navy); --ap-btn-hover: #17377a; --ap-tint: var(--bg-2); --ap-tint-ink: var(--navy);
      --ap-forest: #1F3A2E; --ap-bamboo: #5FA37E; --ap-paper: #FBFAF4; --ap-line: #E2E9E5; padding-bottom: clamp(40px, 6vw, 80px); }
.ap-notaito { --ap-accent: #2E6B4C; --ap-btn: var(--ap-forest); --ap-btn-hover: #2C5140; --ap-tint: #E8F2EC; --ap-tint-ink: var(--ap-forest); }
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.ap :focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
.ap svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ap a { color: inherit; }

/* headings and copy */
.ap h1, .ap h2, .ap h3 { margin: 0; font-family: var(--sans); font-weight: 500; color: var(--ink); text-wrap: balance; }
.ap h1 { font-size: clamp(2.3rem, 4.9vw, 3.78rem); line-height: 1.06; letter-spacing: -.055em; }
.ap h2 { font-size: clamp(1.75rem, 3.1vw, 2.4rem); line-height: 1.13; letter-spacing: -.05em; }
.ap h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.ap h1 em, .ap h2 em { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.13em; line-height: 1;
                       letter-spacing: -.03em; color: var(--ap-accent); }
.ap-kicker { margin: 0 0 16px; font-size: .78rem; line-height: 1.65; letter-spacing: var(--ls); color: var(--ink-2);
             display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.ap-kicker a { text-decoration: none; color: var(--ink-3); }
.ap-kicker a:hover { color: var(--ink); text-decoration: underline; }
.ap-kicker span { color: var(--ink-3); }
.ap-lede { margin: 18px auto 0; max-width: 37rem; font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.ap-small { margin: 18px auto 0; max-width: 34rem; font-size: .8rem; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.ap-center { text-align: center; justify-content: center; }

/* hero */
.ap-hero { padding: clamp(52px, 7vw, 100px) var(--pad) clamp(24px, 3vw, 40px); text-align: center; }
.ap-hero-copy { display: flex; flex-direction: column; align-items: center; }
.ap-hero-copy .ap-app-icon { margin-bottom: 22px; }

/* buttons */
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 28px; justify-content: center; }
.ap-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 100px;
          font-size: .92rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
          transition: background var(--mid) var(--ease), border-color var(--mid) var(--ease), transform var(--mid) var(--ease); }
.ap .ap-btn-primary { background: var(--ap-btn); color: #fff; }
.ap .ap-btn-primary:hover { background: var(--ap-btn-hover); transform: translateY(-1px); }
.ap .ap-btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--hair-2); }
.ap .ap-btn-quiet:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.ap-btn svg { font-size: 1.05em; }
.ap-signin { order: 3; display: block; flex-basis: 100%; margin-top: 4px; text-align: center; font-size: .84rem; color: var(--ink-3); }
.ap-signin a { color: var(--ink-2); }

/* the app icon (Notaito's own mark, as its Home Screen tile) */
.ap-app-icon { display: inline-grid; width: 72px; height: 72px; flex: none; border-radius: 18px; filter: drop-shadow(0 14px 22px rgba(31, 58, 46, .14)); }
.ap-app-icon svg { width: 100%; height: 100%; stroke: none; }
.ap-app-icon-lg { width: 88px; height: 88px; border-radius: 22px; }

/* the hub's app card */
.ap-list { max-width: 900px; margin-top: clamp(16px, 3vw, 32px); }
.ap-app { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 28px; align-items: start; padding: clamp(22px, 3.4vw, 36px);
          background: var(--surface); border: 1px solid var(--hair); border-radius: 22px; box-shadow: 0 28px 60px -46px rgba(12, 36, 84, .45); }
.ap-app .ap-app-icon { width: 96px; height: 96px; border-radius: 24px; text-decoration: none; }
.ap-app-meta { margin: 2px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .78rem; color: var(--ink-3); letter-spacing: var(--ls); }
.ap-pill { padding: 2px 11px; border-radius: 100px; background: #E8F2EC; color: #1F3A2E; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.ap-app h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.ap-app h2 a { text-decoration: none; }
.ap-app h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ap-app-line { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: #2E6B4C; }
.ap-app-text { margin: 12px 0 0; max-width: 38rem; font-size: .96rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.ap-app .ap-actions { justify-content: flex-start; margin-top: 22px; }
.ap-app .ap-signin { text-align: left; margin-top: 2px; }
.ap-more { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 22px 0 0; padding: 18px; border: 1px dashed var(--hair-2);
           border-radius: 18px; font-size: .9rem; color: var(--ink-3); }

/* the tour */
.ap-tour { max-width: 1120px; }
.ap-video { margin: clamp(8px, 2vw, 20px) 0 0; }
.ap-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ap-paper); border-radius: 18px;
                  border: 1px solid var(--ap-line); box-shadow: 0 40px 80px -56px rgba(31, 58, 46, .55); }
/* The tour's subtitles (5 Nov 2026: one English film, its words in the page's language), UNDER the picture (owner: "feels it is blocking
   video"; apps-subtitles.js writes the cue here): light weight, room for two lines so the page never jumps, Kiki's name as a tag. */
.ap-subtitle { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: calc(2 * 1.5em + 16px); margin: 14px 0 0;
               padding: 8px 16px; text-align: center; font-weight: 400; font-size: clamp(.95rem, 1.5vw, 1.06rem); line-height: 1.5;
               letter-spacing: .005em; color: var(--ink); text-wrap: balance; }
.ap-sub-who { flex: none; padding: 2px 10px; border-radius: 999px; background: rgba(95, 163, 126, .14); color: #2f7a52; font-size: .75rem;
              font-weight: 500; letter-spacing: .03em; }
.ap-sub-who:empty { display: none; }  /* the caption under the video was taken out on 5 Nov 2026 (owner) */
/* full screen has no room below: the browser draws the cue on the picture, in the same light weight */
.ap-video video::cue { font-weight: 400; font-size: 80%; background: rgba(0, 0, 0, .55); color: #fff; line-height: 1.4; }

/* sections */
.ap-section { margin-top: clamp(64px, 9vw, 120px); }
.ap-section > h2 { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-card { padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; }
.ap-card > svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ap-tint); color: var(--ap-tint-ink); margin-bottom: 16px; stroke-width: 1.7; }
.ap-card p { margin: 7px 0 0; font-size: .9rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

.ap-promise { max-width: 860px; }
.ap-checks { list-style: none; margin: 0; padding: clamp(22px, 3.4vw, 34px); background: var(--ap-paper); border: 1px solid var(--ap-line); border-radius: 20px; display: grid; gap: 14px; }
.ap-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; font-size: .98rem; line-height: 1.6; color: var(--ink); }
.ap-checks li > svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: #E8F2EC; color: #1F3A2E; stroke-width: 2.4; margin-top: -1px; }
.ap-checks a { color: #2E6B4C; text-underline-offset: 3px; white-space: nowrap; }

.ap-faq { max-width: 760px; }
.ap-faq details { border-bottom: 1px solid var(--hair); }
.ap-faq details:first-of-type { border-top: 1px solid var(--hair); }
.ap-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
                  padding: 18px 2px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--ink-3); transition: transform var(--mid) var(--ease); }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq details p { margin: 0 0 20px; padding-right: 32px; font-size: .95rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.ap-faq details a { color: #2E6B4C; text-underline-offset: 3px; }

.ap-end { margin-top: clamp(64px, 9vw, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.ap-end h2 { margin-top: 20px; }
.ap-legal { margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .82rem; }
.ap-legal a { color: var(--ink-3); text-underline-offset: 3px; }
.ap-legal a:hover { color: var(--ink); }

.ap-built { margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.ap-built p { margin: 0; font-size: .9rem; color: var(--ink-3); }
.ap-built a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 980px) { .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-app { grid-template-columns: minmax(0, 1fr); }
  .ap-app .ap-app-icon { width: 72px; height: 72px; border-radius: 18px; }
  .ap-btn { white-space: normal; }
  .ap-checks a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .ap-btn, .ap-faq summary::after { transition: none; } }
/* Free and Plus (Sozou 2, 20 Oct 2026: Notaito Plus is on sale) */
.ap .ap-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:22px 0 14px}
.ap .ap-plan{padding:22px 22px 16px;border:1px solid var(--ap-line,#dce7e0);border-radius:16px;background:#fff}
.ap .ap-plan-plus{border-color:#5fa37e;box-shadow:0 10px 30px rgba(31,58,46,.08)}
.ap .ap-plan h3{margin:0 0 6px;font-size:20px}
.ap .ap-price{margin:0;font-size:30px;font-weight:600;color:#1f3a2e}
.ap .ap-price span{font-size:15px;font-weight:400;color:#607c6c}
.ap .ap-price-alt{margin:2px 0 12px;color:#607c6c;font-size:14px}
.ap .ap-plan .ap-checks li > svg { width: 32px; height: 32px; padding: 7px; stroke-width: 2; margin-top: -4px; }

/* Currency button in the site header (apps-currency.js): flag, symbol, chevron, like the pricing page's. */
.ac-picker{position:relative;font-family:inherit}
.ac-button{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 8px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--ink,#1a2a22);font:inherit;font-size:13px;font-weight:600;letter-spacing:.01em;line-height:1;cursor:pointer;transition:background-color .15s ease}
.ac-button:hover,.ac-button[aria-expanded="true"]{background:rgba(31,58,46,.07)}
.ac-button:focus-visible,.ac-option:focus-visible{outline:2px solid #2E6B4C;outline-offset:2px}
.ac-symbol{font-variant-numeric:tabular-nums}
.ac-chevron{flex:none;margin-left:1px;color:var(--ink-3,#5d6b64);transition:transform .18s ease}
.ac-button[aria-expanded="true"] .ac-chevron{transform:rotate(180deg)}
.ac-flag{display:inline-flex;flex:none;width:24px;height:16px}
.ac-flag svg{display:block;width:100%;height:100%;border-radius:3.5px;box-shadow:0 0 0 1px rgba(16,37,82,.16),0 1px 2px rgba(16,37,82,.1)}
.ac-menu{position:absolute;inset-inline-end:0;top:calc(100% + 10px);z-index:60;width:250px;display:flex;flex-direction:column;padding:8px;border:1px solid rgba(12,36,84,.08);border-radius:16px;background:#fff;color:var(--ink,#1a2a22);box-shadow:0 24px 48px -12px rgba(16,24,40,.24),0 4px 14px rgba(16,24,40,.08);animation:ac-pop .14s ease-out}
.ac-menu[hidden]{display:none}
@keyframes ac-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
.ac-option{display:grid;grid-template-columns:28px minmax(0,1fr) auto 16px;align-items:center;gap:12px;width:100%;padding:9px 10px;border:0;border-radius:11px;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:background .12s ease}
.ac-option .ac-flag{width:28px;height:18.67px}
.ac-option:hover{background:rgba(46,107,76,.08)}
.ac-option[aria-selected="true"]{background:rgba(46,107,76,.13)}
.ac-words{display:flex;flex-direction:column;gap:3px;min-width:0}
.ac-name{font-size:13.5px;font-weight:550;line-height:1.15}
.ac-code{font-size:10.5px;font-weight:500;letter-spacing:.08em;line-height:1;color:var(--ink-3,#5d6b64)}
.ac-sym{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink-3,#5d6b64);white-space:nowrap}
.ac-check{color:#2E6B4C;opacity:0;transform:scale(.7);transition:opacity .12s ease,transform .12s ease}
.ac-option[aria-selected="true"] .ac-check{opacity:1;transform:none}
@media(max-width:760px){.ac-menu{position:fixed;left:12px;right:12px;top:62px;width:auto}}
@media(max-width:420px){.ac-button{padding:0 6px;gap:6px}}
/* Phones and portrait tablets: the picker takes the music button's place beside the burger, flag and symbol only (as on the pricing page). */
@media(max-width:1023.98px),(orientation:portrait) and (max-width:1100px){header.bar .bar-actions .music-btn{display:none}header.bar .bar-actions .ac-picker{position:absolute;inset-inline-start:calc(clamp(16px,2.4vw,30px) + 33px);top:calc(50% - 17px)}[dir=rtl] header.bar .bar-actions .ac-picker{inset-inline-start:calc(clamp(16px,2.4vw,30px) + 41px)}header.bar .ac-button{height:34px;padding:0 6px;gap:5px}header.bar .ac-chevron{display:none}}
@media(prefers-reduced-motion:reduce){.ac-button,.ac-chevron,.ac-option,.ac-check{transition:none}.ac-menu{animation:none}}

/* Plan buttons and the sign-up pop-up (apps-signup.js), and the currency note (apps-currency.js). */
.ap .ap-plan { display: flex; flex-direction: column; }
.ap .ap-plan .ap-checks { flex: 1; }
.ap .ap-plan-cta { margin: 16px 0 6px; justify-content: center; text-align: center; }
.ap .ap-cur-note { margin-top: 4px; text-align: center; }
.ap .ap-cur-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ap .ap-dialog { width: min(520px, calc(100% - 32px)); padding: 30px 28px 26px; border: 1px solid var(--hair-2, #dce7e0); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(16,24,20,.45); }
.ap .ap-dialog::backdrop { background: rgba(16,24,20,.45); }
.ap .ap-dialog h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; padding-inline-end: 36px; }
.ap .ap-dialog p, .ap .ap-dialog li { font-size: .98rem; line-height: 1.6; color: var(--ink-2, var(--ink)); }
.ap .ap-dialog p { margin: 0 0 18px; }
.ap .ap-steps { margin: 0 0 20px; padding-inline-start: 22px; display: grid; gap: 10px; }
.ap .ap-steps li::marker { font-weight: 600; color: #2E6B4C; }
.ap .ap-dialog .ap-btn { width: 100%; justify-content: center; }
.ap .ap-dialog-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3, #5d6b64); cursor: pointer; }
.ap .ap-dialog-close:hover { background: #E8F2EC; color: var(--ink); }
.ap .ap-dialog-close svg { width: 18px; height: 18px; }
.ac-menu { width: 300px; max-height: min(74vh, 520px); overflow: auto; }

/* Monthly or yearly in the paid plans' pop-up (apps-signup.js). */
.ap .ap-period { margin: 0 0 18px; padding: 0; border: 0; display: grid; gap: 8px; }
.ap .ap-period legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.ap .ap-period label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hair-2, #dce7e0); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ap .ap-period label:hover { border-color: var(--ink-3, #5d6b64); }
.ap .ap-period label:has(input:checked) { border-color: #2E6B4C; background: #F2F8F4; }
.ap .ap-period input { accent-color: #1F3A2E; margin: 0; width: 18px; height: 18px; min-width: 18px; padding: 0; opacity: 1; position: static; appearance: auto; -webkit-appearance: radio; }
.ap .ap-period-name { font-weight: 550; }
.ap .ap-period-price { font-variant-numeric: tabular-nums; color: var(--ink-2, var(--ink)); }

/* ===== 8 Nov 2026: the visual refresh (owner: "make it pop 3d motion effects, animations, scroll animations", "as visual as possible").
   apps-motion.js adds .ap-js (and .ap-still when the device asks for reduced motion), reveals [data-reveal] once (.is-in), runs the
   looping pieces only while their [data-live] section is on screen (.is-live), writes scroll progress --p on [data-scroll] scenes,
   pointer position --mx/--my on the hero stage and --rx/--ry/--gx/--gy/--glare on [data-tilt]. Without JavaScript, or with reduced
   motion, everything is simply shown, flat and still. Screenshots: the tour film's frames (made-up shops) and the public /try demo. */

.ap-notaito { overflow-x: clip; --ap-ease: cubic-bezier(.2, .7, .2, 1); }
.ap-notaito [id] { scroll-margin-top: calc(var(--bar-h, 52px) + 20px); }

/* hero: drifting light, a faint dot grid, and the words arriving one after another */
.ap-hero { position: relative; isolation: isolate; }
.ap-hero::before { content: ""; position: absolute; inset: -40px -40px 0; z-index: -1; pointer-events: none;
                   background-image: radial-gradient(rgba(31, 58, 46, .10) 1px, transparent 1.3px); background-size: 22px 22px;
                   -webkit-mask-image: radial-gradient(ellipse 55% 65% at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 55% 65% at 50% 35%, #000 25%, transparent 75%); }
.ap-aurora { position: absolute; inset: -110px -40px auto; height: 820px; z-index: -2; pointer-events: none; overflow: hidden;
             -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 35%, transparent 100%); }
.ap-aurora span { position: absolute; width: 640px; height: 640px; border-radius: 50%; left: 4%; top: -6%;
                  background: radial-gradient(circle, rgba(95, 163, 126, .30), transparent 64%); animation: ap-drift 22s ease-in-out infinite alternate; }
.ap-aurora span:nth-child(2) { left: auto; right: 2%; top: 8%; background: radial-gradient(circle, rgba(59, 111, 216, .17), transparent 64%); animation-duration: 27s; animation-delay: -9s; }
.ap-aurora span:nth-child(3) { left: 36%; top: 32%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(242, 181, 68, .20), transparent 64%); animation-duration: 31s; animation-delay: -15s; }
@keyframes ap-drift { from { transform: translate3d(-50px, -10px, 0) scale(1); } to { transform: translate3d(70px, 40px, 0) scale(1.18); } }
@keyframes ap-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ap-pop { 0% { opacity: 0; transform: scale(.6) rotate(-12deg); } 60% { opacity: 1; transform: scale(1.06) rotate(3deg); } 100% { opacity: 1; transform: none; } }
.ap-hero .ap-kicker, .ap-hero h1, .ap-hero .ap-lede, .ap-hero .ap-actions, .ap-hero .ap-small { animation: ap-rise .95s var(--ap-ease) both; }
.ap-hero .ap-app-icon { animation: ap-pop .9s var(--ap-ease) .05s both; }
.ap-hero h1 { animation-delay: .14s; }
.ap-hero .ap-lede { animation-delay: .28s; }
.ap-hero .ap-actions { animation-delay: .4s; }
.ap-hero .ap-small { animation-delay: .5s; }
.ap-hero h1 em { padding: 0 .06em; background: linear-gradient(transparent 80%, rgba(95, 163, 126, .32) 80% 95%, transparent 95%) no-repeat 0 0 / 0% 100%;
                 animation: ap-mark 1.1s cubic-bezier(.6, 0, .2, 1) .95s forwards; }
@keyframes ap-mark { to { background-size: 100% 100%; } }

/* the tour in a window that lies back and stands up as you scroll */
.ap-stage-wrap { max-width: 1180px; margin: clamp(10px, 2vw, 26px) auto 0; padding: 0 var(--pad); }
.ap-stage { position: relative; --p: 1; --mx: 0; --my: 0; perspective: 2200px; perspective-origin: 50% 0%; }
.ap .ap-window { position: relative; z-index: 1; margin: 0 auto; max-width: 1120px; border-radius: 20px; overflow: hidden; background: #fff;
                 border: 1px solid rgba(31, 58, 46, .12);
                 box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 60px 110px -50px rgba(31, 58, 46, .55), 0 26px 50px -30px rgba(31, 58, 46, .28);
                 transform-origin: 50% 0%;
                 transform: translate3d(0, calc((1 - var(--p)) * 36px), 0) rotateX(calc((1 - var(--p)) * 30deg + var(--my) * -2.5deg)) rotateY(calc(var(--mx) * 4deg)) scale(calc(.9 + var(--p) * .1));
                 will-change: transform; }
.ap .ap-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
                        background: linear-gradient(118deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 38%); opacity: calc(1 - var(--p)); }
.ap-window-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
                 background: linear-gradient(#fdfdfb, #f3f6f2); border-bottom: 1px solid rgba(31, 58, 46, .08); }
.ap-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #F1786E; }
.ap-window-bar i:nth-child(2) { background: #F4C55B; }
.ap-window-bar i:nth-child(3) { background: #6CC78A; }
.ap-window-bar span { position: absolute; left: 50%; transform: translateX(-50%); padding: 3px 16px; border-radius: 8px; background: rgba(31, 58, 46, .05);
                      font-size: .72rem; letter-spacing: .02em; color: var(--ink-3); direction: ltr; }
.ap .ap-window video { border: 0; border-radius: 0; box-shadow: none; }
@keyframes ap-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -11px, 0); } }

/* numbers */
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 7vw, 100px); }
.ap-stat { padding: 26px 18px 24px; border-radius: 22px; text-align: center; background: linear-gradient(165deg, #fff 40%, var(--ap-paper));
           border: 1px solid var(--ap-line); box-shadow: 0 30px 60px -52px rgba(31, 58, 46, .55); }
.ap-num { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(3rem, 6vw, 4.7rem); line-height: 1;
          letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; color: #2E6B4C;
          background: linear-gradient(120deg, #1F3A2E, #4F9A70 55%, #3B6FD8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ap-stat > span { display: block; margin-top: 10px; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }

/* reveal once, rising and tipping forward */
.ap-js:not(.ap-still) [data-reveal] { opacity: 0; transform: perspective(1000px) translate3d(0, 46px, 0) rotateX(12deg); transform-origin: 50% 100%;
                                      transition: opacity .9s var(--ap-ease), transform 1.1s var(--ap-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.ap-js:not(.ap-still) [data-reveal].is-in { opacity: 1; transform: none; }

/* "You write it. Notaito files it.": the notes fly into their projects as the page scrolls (the section is tall; its board stays) */
.ap-file { position: relative; margin-top: clamp(72px, 10vw, 140px); }
.ap-js:not(.ap-still) .ap-file { height: 290vh; }
.ap-file-sticky { display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3vw, 38px); }
.ap-js:not(.ap-still) .ap-file-sticky { position: sticky; top: calc(var(--bar-h, 52px) + 6px); min-height: calc(100vh - var(--bar-h, 52px) - 12px); min-height: calc(100svh - var(--bar-h, 52px) - 12px); }
.ap-file-head { text-align: center; }
.ap-file-head .ap-lede { margin-top: 12px; }
.ap-file-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 18px; align-items: start; }
.ap-file-inbox { padding: 16px 14px 8px; border-radius: 22px; border: 1px solid var(--ap-line);
                 background: repeating-linear-gradient(var(--ap-paper) 0 43px, rgba(31, 58, 46, .05) 43px 44px); box-shadow: 0 34px 60px -46px rgba(31, 58, 46, .55); }
.ap-file-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .76rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.ap-file-label > svg { width: 16px; height: 16px; }
.ap-file-pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 99px;
                background: #E8F2EC; color: #2E6B4C; font-size: .72rem; letter-spacing: 0; text-transform: none; }
.ap-file-pill svg { width: 13px; height: 13px; animation: ap-twinkle 1.4s ease-in-out infinite; }
@keyframes ap-twinkle { 0%, 100% { transform: scale(.8) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
.ap-fnote { position: relative; z-index: 1; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px;
            background: #fff; border: 1px solid rgba(31, 58, 46, .09); box-shadow: 0 1px 2px rgba(31, 58, 46, .05); font-size: .9rem; line-height: 1.42;
            color: var(--ink); transform-origin: 0 0; will-change: transform; transition: box-shadow .3s, border-color .3s; }
[dir=rtl] .ap-fnote { transform-origin: 0 0; }
.ap-fnote > i { flex: none; width: 7px; height: 7px; margin-top: .48em; border-radius: 50%; background: #9DB8A8; transition: background .3s; }
.ap-fnote.is-flying { z-index: 6; box-shadow: 0 26px 44px -18px rgba(31, 58, 46, .45); border-color: rgba(95, 163, 126, .4); }
.ap-fnote.is-filed > i { background: var(--fc, #5FA37E); }
.ap-fnote.is-filed::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px var(--fc, #5FA37E); opacity: 0; animation: ap-land .7s ease-out; pointer-events: none; }
@keyframes ap-land { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
.ap-file-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-fproj { padding: 16px 14px 8px; border-radius: 22px; background: #fff; border: 1px solid var(--ap-line); box-shadow: 0 34px 60px -50px rgba(31, 58, 46, .6); }
.ap .ap-fproj h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 1rem; }
.ap-fproj h3 > i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.ap-fcount { margin-inline-start: auto; min-width: 26px; padding: 2px 8px; border-radius: 99px; background: #F1F4F2; font-size: .74rem; font-weight: 650;
             text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ap-fcount.is-bump { animation: ap-bump .55s var(--ap-ease); background: color-mix(in srgb, var(--c) 20%, #fff); }
@keyframes ap-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.ap-fcat { margin: 12px 0 6px; font-size: .74rem; font-weight: 650; letter-spacing: .02em; color: var(--ink-3); }
.ap-fslot { min-height: 44px; margin-bottom: 8px; border-radius: 12px; border: 1.5px dashed rgba(31, 58, 46, .14); transition: border-color .4s, background-color .4s; }
.ap-fslot.is-full { border-color: transparent; }

/* the spaces: a bento of rooms, real screenshots that tilt to the pointer, and small live scenes */
.ap-eyebrow { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .76rem; font-weight: 650;
              letter-spacing: .08em; text-transform: uppercase; color: #2E6B4C; }
.ap-eyebrow > svg { width: 16px; height: 16px; }
.ap .ap-spaces > h2 { margin-bottom: 0; }
.ap-section-lede { text-align: center; margin: 14px auto clamp(28px, 4vw, 46px); }
.ap-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
            grid-template-areas: "fin fin fin fin mail mail" "fin fin fin fin kit kit" "cal cal cal off off off" "tools tools tools tools study study" "tools tools tools tools lib lib"; }
.ap-space { --sp: clamp(20px, 2.4vw, 28px); perspective: 1400px; position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: var(--sp);
            border-radius: 26px; background: #fff; border: 1px solid var(--ap-line); box-shadow: 0 40px 80px -64px rgba(31, 58, 46, .55); overflow: hidden;
            transition: box-shadow .45s var(--ap-ease), border-color .45s; }
.ap-space:hover { box-shadow: 0 50px 90px -52px rgba(31, 58, 46, .55); border-color: rgba(95, 163, 126, .35); }
.ap .ap-space h3 { font-size: 1.32rem; letter-spacing: -.02em; }
.ap-space p { margin: 8px 0 0; font-size: .93rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.ap-space-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 15px; background: var(--c); color: #fff;
                 box-shadow: 0 12px 24px -12px var(--c); }
.ap-space-icon > svg { width: 22px; height: 22px; stroke-width: 1.9; }
.ap-space-fin { grid-area: fin; background: linear-gradient(170deg, #fff 35%, #EDF6F0); }
.ap-space-mail { grid-area: mail; background: linear-gradient(170deg, #fff 40%, #EEF3FC); }
.ap-space-kit { grid-area: kit; background: linear-gradient(170deg, #fff 40%, #FFF5E8); }
.ap-space-cal { grid-area: cal; }
.ap-space-off { grid-area: off; }
.ap-space-tools { grid-area: tools; background: linear-gradient(170deg, #fff 40%, #ECF6F4); }
.ap-space-study { grid-area: study; justify-content: center; }
.ap-space-lib { grid-area: lib; justify-content: center; }
.ap-space-study .ap-space-icon, .ap-space-lib .ap-space-icon { margin-bottom: 0; }
.ap-space-study, .ap-space-lib { gap: 6px; }
.ap-shot { position: relative; margin-top: auto; border-radius: 14px; overflow: hidden; background: var(--ap-paper); border: 1px solid rgba(31, 58, 46, .1);
           box-shadow: 0 34px 54px -32px rgba(31, 58, 46, .5); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-origin: 50% 100%;
           transition: transform .6s var(--ap-ease), rotate 1.4s var(--ap-ease) .25s, translate 1.4s var(--ap-ease) .25s; }
/* a screenshot lies back until its card arrives, then stands up (individual rotate/translate, so the pointer tilt still works) */
.ap-js:not(.ap-still) .ap-space:not(.is-in) .ap-shot { rotate: x 30deg; translate: 0 60px; }
.ap-space-fin .ap-shot { flex: 1; min-height: 300px; }
.ap-space-fin .ap-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.ap-shot img { display: block; width: 100%; height: auto; }
.ap-shot::after, .ap-card-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: var(--glare, 0); transition: opacity .45s;
                                      background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .42), transparent 42%); }
.ap-shot-bleed { margin-inline-end: calc(-1 * var(--sp)); margin-block-end: calc(-1 * var(--sp)); border-end-end-radius: 0; border-start-end-radius: 0; border-end-start-radius: 0; border-inline-end: 0; border-block-end: 0; }
.ap-space-off .ap-shot { flex: 1; min-height: 200px; }
.ap-space-off .ap-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }

/* Email in: three emails arrive and each is told where it goes */
.ap-mailflow { display: grid; gap: 9px; margin-top: auto; }
.ap-mail { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 12px; border-radius: 14px;
           background: rgba(255, 255, 255, .85); border: 1px solid rgba(59, 111, 216, .14); font-size: .8rem; line-height: 1.35; color: var(--ink);
           box-shadow: 0 10px 24px -18px rgba(59, 111, 216, .5); }
.ap-mail > svg { grid-row: span 2; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: #EEF3FC; color: #3B6FD8; }
.ap-mail em { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 6px; border-radius: 99px; font-style: normal;
              font-size: .7rem; font-weight: 650; background: #E8F2EC; color: #2E6B4C; }
.ap-mail em > svg { width: 13px; height: 13px; }
@keyframes ap-mail-in { 0% { opacity: 0; transform: translate3d(0, -16px, 0) scale(.96); } 9%, 84% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.98); } }
@keyframes ap-pill { 0%, 12% { opacity: 0; transform: translate3d(-10px, 0, 0) scale(.7); } 19%, 84% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.ap-js:not(.ap-still) .ap-mail { animation: ap-mail-in 8s var(--ap-ease) infinite both; animation-delay: calc(var(--k) * .85s); animation-play-state: paused; }
.ap-js:not(.ap-still) .ap-mail em { animation: ap-pill 8s var(--ap-ease) infinite both; animation-delay: calc(var(--k) * .85s); animation-play-state: paused; }
.ap-js .is-live .ap-mail, .ap-js .is-live .ap-mail em { animation-play-state: running; }

/* Kitchen: the shopping list ticks itself off */
.ap-kitchen { margin-top: auto; }
.ap .ap-shop { list-style: none; margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(217, 130, 43, .2);
               display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; box-shadow: 0 10px 24px -18px rgba(217, 130, 43, .55); }
.ap-shop li { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: .86rem; color: var(--ink); }
.ap-shop li > svg { width: 20px; height: 20px; padding: 3px; border-radius: 6px; border: 1.5px solid rgba(217, 130, 43, .55); color: transparent; stroke-width: 3.2; }
.ap-shop li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 1.5px; }
@keyframes ap-tick { 0%, 14% { background: transparent; color: transparent; border-color: rgba(217, 130, 43, .55); } 20%, 86% { background: #D9822B; color: #fff; border-color: #D9822B; } 94%, 100% { background: transparent; color: transparent; border-color: rgba(217, 130, 43, .55); } }
@keyframes ap-strike { 0%, 14% { opacity: 1; text-decoration-color: transparent; } 20%, 86% { opacity: .55; text-decoration-color: currentColor; } 94%, 100% { opacity: 1; text-decoration-color: transparent; } }
.ap-js:not(.ap-still) .ap-shop li > svg { animation: ap-tick 7s ease infinite both; animation-delay: calc(var(--k) * .8s + .4s); animation-play-state: paused; }
.ap-js:not(.ap-still) .ap-shop li > span { animation: ap-strike 7s ease infinite both; animation-delay: calc(var(--k) * .8s + .4s); animation-play-state: paused; }
.ap-js .is-live .ap-shop li > svg, .ap-js .is-live .ap-shop li > span { animation-play-state: running; }
.ap-pantry { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ap-tag { padding: 4px 11px; border-radius: 99px; background: #F2EEE6; font-size: .74rem; font-weight: 650; color: #6B5B45; }
.ap-tag-hot { background: #FCE3D8; color: #B4401A; animation: ap-glow 2.4s ease-in-out infinite; }
.ap-tag-ok { background: #E8F2EC; color: #2E6B4C; }
@keyframes ap-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 64, 26, .0); } 50% { box-shadow: 0 0 0 5px rgba(180, 64, 26, .12); } }

/* Hey Kiki: the characters take turns, the voice rings and the conversation */
.ap-kiki { position: relative; margin-top: clamp(80px, 11vw, 150px); padding: clamp(60px, 8vw, 116px) 0; overflow: hidden;
           background: radial-gradient(1100px 520px at 85% 0%, rgba(59, 111, 216, .12), transparent 62%), radial-gradient(900px 520px at 5% 100%, rgba(95, 163, 126, .2), transparent 62%), linear-gradient(180deg, #F3F8F5, #EDF3F8); }
.ap-kiki-grid, .ap-lock-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 76px); align-items: center; }
.ap .ap-kiki h2, .ap .ap-lock h2 { text-align: start; }
.ap-kiki .ap-eyebrow, .ap-lock .ap-eyebrow { justify-content: flex-start; }
.ap-kiki .ap-lede, .ap-lock .ap-lede, .ap-lock .ap-small { margin-inline-start: 0; text-align: start; }
.ap .ap-mini { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ap-mini li { display: flex; gap: 12px; align-items: center; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.ap-mini li > svg { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: #fff; color: #2E6B4C; box-shadow: 0 8px 18px -10px rgba(31, 58, 46, .45); }
.ap-kiki-stage { position: relative; min-height: clamp(360px, 36vw, 460px); display: grid; place-items: center; }
.ap-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ap-rings i { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 2px solid rgba(95, 163, 126, .4); opacity: 0;
              animation: ap-ring 3.6s cubic-bezier(.2, .7, .2, 1) infinite; animation-play-state: paused; }
.ap-rings i:nth-child(2) { animation-delay: 1.2s; }
.ap-rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ap-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.ap-avatars { position: relative; width: 176px; height: 176px; perspective: 700px; }
.ap-avatar { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; opacity: 0; transform: rotateY(-100deg) scale(.8);
             box-shadow: 0 34px 60px -26px rgba(31, 58, 46, .55), 0 0 0 7px #fff; transition: transform .8s cubic-bezier(.2, .9, .25, 1.25), opacity .45s; backface-visibility: hidden; }
.ap-avatar.is-on { opacity: 1; transform: none; }
.ap-avatar.was-on { transform: rotateY(100deg) scale(.8); }
.ap-avatar svg { display: block; width: 100%; height: 100%; }
.ap-wave { position: absolute; left: 50%; top: calc(50% + 112px); transform: translateX(-50%); display: flex; gap: 5px; align-items: center; height: 30px; }
.ap-wave i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(#6FBF93, #2E6B4C); transform: scaleY(.22); animation: ap-wave 1.15s ease-in-out infinite; animation-play-state: paused; }
.ap-wave i:nth-child(2) { animation-delay: -.95s; } .ap-wave i:nth-child(3) { animation-delay: -.3s; } .ap-wave i:nth-child(4) { animation-delay: -.75s; }
.ap-wave i:nth-child(5) { animation-delay: -.1s; } .ap-wave i:nth-child(6) { animation-delay: -.6s; } .ap-wave i:nth-child(7) { animation-delay: -.45s; }
.ap-wave i:nth-child(8) { animation-delay: -.85s; } .ap-wave i:nth-child(9) { animation-delay: -.2s; }
@keyframes ap-wave { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
.ap .ap-bubble { position: absolute; z-index: 2; max-width: min(270px, 62%); margin: 0; padding: 12px 16px; border-radius: 18px; font-size: .92rem; line-height: 1.42;
                 box-shadow: 0 20px 44px -22px rgba(31, 58, 46, .45); }
.ap-bubble-you { top: 4%; inset-inline-start: 0; background: #fff; color: var(--ink); border-end-start-radius: 6px; }
.ap-bubble-kiki { bottom: 2%; inset-inline-end: 0; background: #1F3A2E; color: #fff; border-end-end-radius: 6px; }
@keyframes ap-say { 0% { opacity: 0; transform: translate3d(0, 16px, 0) scale(.9); } 8%, 82% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translate3d(0, -8px, 0); } }
.ap-js:not(.ap-still) .ap-bubble { animation: ap-say 7s var(--ap-ease) infinite both; animation-play-state: paused; }
.ap-js:not(.ap-still) .ap-bubble-kiki { animation-delay: 2.1s; }
.ap-js .is-live .ap-bubble, .ap-js .is-live .ap-rings i, .ap-js .is-live .ap-wave i { animation-play-state: running; }

/* Lock Finances and Email in: a receipt is encrypted, locked, and opened again with Face ID, Touch ID or Windows Hello */
.ap-lock { position: relative; padding: clamp(66px, 9vw, 124px) 0; overflow: hidden; color: #E8F2EC;
           background: radial-gradient(900px 500px at 12% 18%, rgba(95, 163, 126, .28), transparent 62%), radial-gradient(760px 440px at 92% 92%, rgba(59, 111, 216, .2), transparent 62%), #12251C; }
.ap-lock::before { content: ""; position: absolute; inset: 0; pointer-events: none;
                   background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 46px 46px;
                   -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 75%); }
.ap-lock-grid { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ap .ap-lock h2 { color: #fff; }
.ap .ap-lock h2 em { color: #8FD3AC; }
.ap-lock .ap-lede { color: rgba(232, 242, 236, .84); }
.ap-lock .ap-small { color: rgba(232, 242, 236, .62); }
.ap-lock .ap-eyebrow { color: #8FD3AC; }
.ap-lock-stage { position: relative; display: grid; justify-items: center; gap: 24px; perspective: 1100px; }
.ap-receipt { position: relative; width: min(100%, 390px); padding: 20px 22px 14px; border-radius: 20px; background: #FBFAF4; color: #1F3A2E;
              box-shadow: 0 60px 90px -44px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); transform: rotateY(-16deg) rotateX(9deg); }
.ap-js .is-live .ap-receipt { animation: ap-turn 9s ease-in-out infinite; }
@keyframes ap-turn { 0%, 100% { transform: rotateY(-16deg) rotateX(9deg) translate3d(0, 0, 0); } 50% { transform: rotateY(-5deg) rotateX(4deg) translate3d(0, -12px, 0); } }
.ap-receipt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
                     background: linear-gradient(105deg, transparent 38%, rgba(143, 211, 172, .55) 50%, transparent 62%) no-repeat; background-size: 260% 100%; }
.ap-receipt.is-sweep::after { animation: ap-sweep .8s ease-out; }
@keyframes ap-sweep { 0% { opacity: 1; background-position: 110% 0; } 100% { opacity: 1; background-position: -30% 0; } }
.ap-receipt-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding-bottom: 12px; border-bottom: 1px dashed rgba(31, 58, 46, .22); font-weight: 700; }
.ap-receipt-head > svg { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: #E8F2EC; color: #2E6B4C; }
.ap-receipt-lock { margin-inline-start: auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1F3A2E; color: #8FD3AC;
                   transform: scale(0) rotate(-30deg); transition: transform .55s cubic-bezier(.2, .9, .25, 1.4); }
.ap-receipt-lock svg { width: 19px; height: 19px; stroke-width: 2.2; }
.ap-receipt.is-locked .ap-receipt-lock { transform: none; }
.ap-receipt-line { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 7px 0; font-size: .9rem; transition: color .4s; }
.ap-receipt-line + .ap-receipt-line { border-top: 1px solid rgba(31, 58, 46, .07); }
.ap-receipt-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-receipt-line > b { flex: none; font-variant-numeric: tabular-nums; }
.ap-receipt.is-locked .ap-receipt-line { color: #3E8A62; }
.ap-unlocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ap-unlocks > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 9px; border-radius: 99px; font-size: .8rem; color: rgba(232, 242, 236, .86);
                     background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); transition: background .45s, color .45s, box-shadow .45s; }
.ap-unlocks > span > svg { width: 18px; height: 18px; }
.ap-unlocks > span.is-on { color: #fff; background: rgba(143, 211, 172, .2); box-shadow: 0 0 0 1px rgba(143, 211, 172, .55), 0 0 34px rgba(143, 211, 172, .3); }

/* the feature cards: they tip toward the pointer and catch the light */
.ap .ap-card { padding: 0; background: none; border: 0; border-radius: 0; }
.ap-card-in { position: relative; height: 100%; padding: 22px 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--hair);
              transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .55s var(--ap-ease), box-shadow .45s, border-color .45s; }
.ap-card-in:hover { box-shadow: 0 32px 60px -42px rgba(31, 58, 46, .55); border-color: rgba(95, 163, 126, .4); }
.ap-card-in > svg { width: 44px; height: 44px; padding: 11px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(140deg, #E8F2EC, #D2E8DA);
                    color: #1F3A2E; stroke-width: 1.7; transition: transform .55s var(--ap-ease); }
.ap-card-in:hover > svg { transform: rotate(-7deg) scale(1.08); }
.ap-card-in p { margin: 7px 0 0; font-size: .9rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

/* languages, gliding past in their own scripts */
.ap-langs { margin-top: clamp(80px, 11vw, 150px); }
.ap .ap-langs h2 { text-align: center; }
.ap-marquee { display: flex; overflow: hidden; padding: 8px 0; direction: ltr;
              -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ap-marquee-track { display: flex; flex: none; gap: 14px; padding-inline-end: 14px; animation: ap-marquee 48s linear infinite; }
.ap-marquee-back .ap-marquee-track { animation-direction: reverse; animation-duration: 56s; }
.ap-marquee span { flex: none; padding: 12px 24px; border-radius: 99px; background: #fff; border: 1px solid var(--ap-line); white-space: nowrap;
                   font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 500; color: var(--ink); box-shadow: 0 14px 30px -26px rgba(31, 58, 46, .55); }
.ap-marquee span:nth-child(3n+1) { background: #E8F2EC; }
.ap-marquee span:nth-child(4n+2) { background: #F4F1EA; }
.ap-marquee:hover .ap-marquee-track { animation-play-state: paused; }
@keyframes ap-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* plans: Plus wears a slowly turning ring; the closing icon floats */
@property --ap-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ap .ap-plan-plus { border: 1.5px solid transparent;
                    background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--ap-angle), #5FA37E, #3B6FD8, #F2B544, #5FA37E) border-box;
                    animation: ap-spin 7s linear infinite; box-shadow: 0 30px 60px -36px rgba(31, 58, 46, .45); }
@keyframes ap-spin { to { --ap-angle: 360deg; } }
.ap .ap-plan { transition: box-shadow .45s var(--ap-ease); }
.ap .ap-plan:hover { box-shadow: 0 34px 64px -40px rgba(31, 58, 46, .5); }
.ap .ap-end-icon { width: 92px; height: 92px; border-radius: 23px; animation: ap-bob 5.5s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(31, 58, 46, .25)); }
.ap .ap-promise .ap-checks li:nth-child(4) > svg { background: #1F3A2E; color: #8FD3AC; stroke-width: 2.2; }

/* smaller screens */
@media (max-width: 980px) {
  .ap-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "fin fin" "mail kit" "cal cal" "off off" "tools tools" "study lib"; }
  .ap-space-fin .ap-shot { flex: none; min-height: 0; }
  .ap-space-fin .ap-shot img { position: static; height: auto; }
  .ap-kiki-grid, .ap-lock-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-lock-stage { order: 2; }
}
@media (max-width: 760px) {
  .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ap-stat { padding: 20px 12px 18px; border-radius: 18px; }
  .ap-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fin" "mail" "kit" "cal" "off" "tools" "study" "lib"; }
  .ap .ap-window { border-radius: 14px; transform: translate3d(0, calc((1 - var(--p)) * 20px), 0) rotateX(calc((1 - var(--p)) * 20deg)) scale(calc(.94 + var(--p) * .06)); }
  .ap-window-bar { height: 28px; padding: 0 11px; gap: 5px; }
  .ap-window-bar i { width: 8px; height: 8px; }
  .ap-window-bar span { font-size: .62rem; padding: 2px 10px; }
  /* phones: the projects become three small tiles above the notes, and each note flies into its tile */
  .ap-file-board { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ap-file-projects { order: -1; gap: 8px; }
  .ap-fproj { padding: 10px 10px 10px; border-radius: 16px; }
  .ap .ap-fproj h3 { margin: 0; font-size: .82rem; gap: 6px; }
  .ap-fproj h3 > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ap-fcat, .ap-fslot { display: none; }
  .ap-fnote { font-size: .86rem; padding: 9px 11px; margin-bottom: 7px; }
  .ap-file-inbox { padding: 12px 12px 6px; border-radius: 18px; }
  .ap-js:not(.ap-still) .ap-file { height: 240vh; }
  .ap-kiki-stage { min-height: 380px; }
  .ap .ap-bubble { font-size: .86rem; max-width: 72%; }
  .ap-avatars { width: 150px; height: 150px; }
  .ap-wave { top: calc(50% + 98px); }
  .ap-receipt { transform: rotateY(-8deg) rotateX(6deg); }
}

/* reduced motion: everything flat, still and shown */
@media (prefers-reduced-motion: reduce) {
  .ap-notaito *, .ap-notaito *::before, .ap-notaito *::after { animation: none !important; transition: none !important; }
  .ap .ap-window, .ap-shot, .ap-card-in, .ap-receipt { transform: none !important; rotate: none !important; translate: none !important; }
  .ap .ap-window::after { display: none; }
  .ap-hero h1 em { background-size: 100% 100%; }
}
