/* Cadmium shared page styles (moved out of each page so phones download them once) */

  /* app-frame (sections-library.md, app-frame) */
  .app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
  .app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
  .app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
  @media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  @media (max-width: 1023px) {
    .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .app > .app__pane--list { max-height: 252px; }
    .app > .app__pane--list::after { display: none; }
    .app .ui-win__side { display: none; }
    .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
    .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  }
  @media (max-width: 639px) {
    .app.ui { grid-template-rows: minmax(0, 1fr); }
    .app > .app__pane--list { display: none; }
    .app > .app__pane + .app__pane { border-top: 0; }
  }

  /* the open course in the app-frame: Cadmium's own course view, drawn in the kit's UI tokens */
  .course { padding: 20px 24px; display: grid; gap: 16px; font-size: 13px; color: var(--u-ink); }
  .course__head { display: flex; align-items: center; gap: 10px; }
  .course__title { font-weight: 500; font-size: 15px; }
  .course__meta { color: var(--u-muted); font-size: 12px; }
  .course__player { position: relative; border-radius: var(--u-r2); background: #1d2433; color: #f4f2ee; aspect-ratio: 16 / 7; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px 14px; overflow: hidden; }
  .course__slide-label { font-size: 12px; color: #c9ccd3; }
  .course__slide-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; max-width: 18ch; }
  .course__plan { position: absolute; right: 20px; top: 18px; width: 38%; height: 58%; }
  .course__plan path, .course__plan rect { fill: none; stroke: #8d93a1; stroke-width: 1.5; }
  .course__plan .exit { stroke: var(--u-accent); stroke-width: 2.5; }
  .course__bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #c9ccd3; font-variant-numeric: tabular-nums; }
  .course__play { width: 26px; height: 26px; border-radius: 50%; background: #f4f2ee; display: grid; place-items: center; flex: none; }
  .course__play svg { width: 10px; height: 10px; fill: #1d2433; }
  .course__track { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .22); overflow: hidden; }
  .course__track i { display: block; height: 100%; width: 64%; background: var(--u-accent); }
  .course .ui-checks { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .course__cert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--u-border); border-radius: var(--u-r2); background: var(--u-fill); }
  .course__cert b { font-weight: 500; }
  .course__cert span { color: var(--u-muted); font-size: 12px; display: block; }

  /* the certificate and its check, in the proof section's frame */
  .cert { width: 100%; background: var(--u-bg); color: var(--u-ink); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); padding: 28px 32px; font-size: 13px; display: grid; gap: 14px; }
  @media (min-width: 1024px) and (max-width: 1279px) { .proof-frame { --ratio: 100%; } .proof-frame .at-corner { --ay: 32px !important; --ax: 32px !important; width: calc(100% - 56px) !important; } .cert__course, .cert__proof { display: none; } }
  .cert__top { display: flex; align-items: center; gap: 10px; color: var(--u-muted); font-size: 12px; }
  .cert__top .mark { width: 18px; height: 18px; }
  .cert__kind { color: var(--u-muted); font-size: 12px; }
  .cert__name { font-size: 30px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
  .cert__course { font-size: 15px; }
  .cert__rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--u-line); }
  .cert__rows dt { color: var(--u-muted); font-size: 12px; }
  .cert__rows dd { margin: 2px 0 0; font-weight: 500; }
  .cert__proof { font-family: var(--font-mono); font-size: 12px; color: var(--u-text-2); background: var(--u-fill); border-radius: var(--u-r3); padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
  .cert__proof em { font-style: normal; color: var(--u-muted); font-family: var(--font-text); }
  .check { width: 300px; background: var(--u-bg); color: var(--u-ink); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); padding: 16px 18px; font-size: 13px; display: grid; gap: 6px; }
  .check__row { display: flex; align-items: center; gap: 8px; font-weight: 500; }
  .check__ok { width: 20px; height: 20px; border-radius: 50%; background: #1f7a4d; display: grid; place-items: center; flex: none; }
  .check__ok svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .check p { margin: 0; color: var(--u-text-2); }

  .cert, .check { --u-bg: #ffffff; --u-ink: #1a2b4a; --u-muted: #5e6577; --u-border: rgb(26 43 74 / .12); --u-line: rgb(26 43 74 / .09); --u-fill: #f3f3f1; --u-text-2: #2c3343; }
  .proof-frame { --ratio: 96%; }
  @media (max-width: 1023px) { .proof-frame { --ratio: 62%; } }
  @media (max-width: 639px) { .proof-frame { --ratio: 84%; } #proof .proof-points, .cert__proof { display: none; } .cert { padding: 20px; gap: 12px; } .cert__name { font-size: 24px; } .cert__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cert__rows > div:nth-child(3) { display: none; } }
  @media (max-width: 1023px) { .app .ui-win__row:nth-child(n+5) { display: none; } }
  @media (max-width: 639px) { .course .ui-check:nth-child(n+4), .course__cert { display: none; } }
  #proof .proof-points { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
  .course > * { min-width: 0; }
  .course .ui-checks { width: 100%; max-width: none; }
  @media (max-width: 639px) { #faq .grid + .grid { display: none; } }
  #faq .grid + .grid .faq > .faq__item:first-child { padding-top: var(--s-5); }
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
  /* status pills */
  .pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 0; vertical-align: middle; }
  .pill--live { background: #dcefe3; color: #12502f; }
  .pill--soon { background: #f3e7d3; color: #6b4a12; }
  .card__tag { margin: 0 0 var(--s-2); }
  #proof .card__tag { margin-top: var(--s-4); margin-bottom: 0; }

  /* Today panel in the hero */
  .today { padding: 20px 22px; display: grid; align-content: start; gap: 14px; font-size: 13px; color: var(--u-ink); }
  .today__head { display: flex; align-items: center; gap: 12px; }
  .today__hi { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
  .today__date { color: var(--u-muted); font-size: 12px; }
  .today__group { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--u-line); }
  .today__label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--u-text-2); }
  .today__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
  .today__row:has(.today__time) { grid-template-columns: auto 18px minmax(0, 1fr) auto; }
  .today__row:has(.today__box) { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .today__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .today__meta, .today__time { color: var(--u-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
  .today__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--u-fill); overflow: hidden; }
  .today__bar i { display: block; height: 100%; width: calc(var(--k) * 100%); background: var(--u-accent); border-radius: 2px; }
  .today__app { width: 18px; height: 18px; }
  .today__join { font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: var(--r-btn); background: var(--p-action); color: var(--p-action-ink); }
  .today__box { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--u-border); }
  .today__group.is-soon .today__row { opacity: .72; }

  /* meetings card */
  .meet { padding: 16px 18px; display: grid; gap: 10px; font-size: 13px; color: var(--u-ink); }
  .meet__row { display: grid; grid-template-columns: 40px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--u-line); }
  .meet__row img { width: 22px; height: 22px; }
  .meet__time { color: var(--u-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
  .meet__what { display: grid; min-width: 0; }
  .meet__what b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .meet__what span { color: var(--u-muted); font-size: 12px; }
  .meet__join { font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: var(--r-btn); background: var(--p-action); color: var(--p-action-ink); border: 1px solid transparent; }
  .meet__join.is-quiet { background: var(--p-bg); color: var(--p-ink); border-color: var(--line-strong); }
  .meet__row.is-next .meet__join { animation: meet-pulse 2.4s ease-out 2; }
  .card:hover .meet__row.is-next .meet__join { animation: meet-pulse 2.4s ease-out 2; animation-name: meet-pulse-b; }
  @keyframes meet-pulse { 0% { box-shadow: 0 0 0 0 rgb(122 31 43 / .55); } 70%, 100% { box-shadow: 0 0 0 10px rgb(122 31 43 / 0); } }
  @keyframes meet-pulse-b { 0% { box-shadow: 0 0 0 0 rgb(122 31 43 / .55); } 70%, 100% { box-shadow: 0 0 0 10px rgb(122 31 43 / 0); } }

  /* roadmap board */
  .board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); font-size: 13px; color: var(--u-ink); }
  .board__col { display: grid; align-content: start; gap: 8px; }
  .board__h { font-weight: 500; font-size: 13px; display: flex; gap: 6px; align-items: baseline; padding: 2px 2px 6px; }
  .board__h em { font-style: normal; color: var(--u-muted); font-size: 12px; font-weight: 400; }
  .board__card { padding: 9px 2px 9px 16px; position: relative; border-top: 1px solid var(--u-line); line-height: 1.3; }
  .board__card::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--u-border); }
  .board__col.is-now .board__card::before { background: #2f8a57; }
  .board__col:not(.is-now):not(.is-later) .board__card::before { background: var(--p-accent); }
  .board__col.is-later .board__card { color: var(--u-muted); }
  .board--mini { grid-template-columns: 1fr; width: 220px; }
  .board-frame { --ratio: 96%; }
  @media (min-width: 1024px) and (max-width: 1279px) { .board-frame { --ratio: 100%; } }
  @media (max-width: 1023px) { .board-frame { --ratio: 64%; } }
  @media (max-width: 639px) { .board-frame { --ratio: 84%; } .board { grid-template-columns: 1fr 1fr; } .board__col.is-later, .board__col .board__card:nth-child(n+4) { display: none; } }

  /* certificate assembly */
  .cert { position: relative; }
  .cert__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; display: none; }
  .cert.is-armed:not(.s-done) .cert__frame { display: block; }
  .cert__frame rect { fill: none; stroke: var(--p-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
  .cert__seal { position: absolute; top: 24px; right: 26px; width: 44px; height: 44px; color: var(--p-accent); }
  .cert__seal svg { width: 100%; height: 100%; }
  .cert__seal path { fill: var(--p-accent); }
  .cert__seal path.tick { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cert .check__row { color: #145c37; }
  .cert.is-armed .cert__frame rect { opacity: 1; stroke-dashoffset: 1; }
  .cert.is-armed .cert__seal { opacity: 0; transform: scale(1.7) rotate(-14deg); }
  .cert.is-armed .check__row { opacity: 0; transform: scale(1.35) rotate(-3deg); }
  .cert.is-armed .cert__name::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 2px; background: currentColor; vertical-align: -0.08em; animation: caret .8s steps(1) infinite; }
  .cert.s-draw .cert__frame rect { transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1), opacity .4s 1.6s; stroke-dashoffset: 0; }
  .cert.s-done .cert__frame rect { opacity: 0; }
  .cert.s-done .cert__name::after { display: none; }
  .cert.s-seal .cert__seal { opacity: 1; transform: none; transition: transform .38s cubic-bezier(.3, 1.5, .5, 1), opacity .2s; }
  .cert.s-stamp .check__row { opacity: 1; transform: none; transition: transform .32s cubic-bezier(.3, 1.6, .5, 1), opacity .15s; }
  .cert__proof [data-decode] { font-variant-numeric: tabular-nums; }
  @keyframes caret { 50% { opacity: 0; } }

  /* the dock */
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dock { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; background: rgb(250 248 244 / .86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgb(26 43 74 / .10); border-radius: var(--r-xl); box-shadow: var(--sh-2); transform: translate(-50%, 28px); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility 0s .35s; }
  .dock.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility 0s; }
  .dock.is-mini { transform: translate(-50%, 0) scale(.86); }
  .dock__item { --s: 1; position: relative; flex: none; width: calc(44px * var(--s)); height: calc(44px * var(--s)); display: grid; place-items: center; border-radius: var(--r-btn); color: var(--p-ink); text-decoration: none; transition: width .16s ease-out, height .16s ease-out, background-color .2s, color .2s; }
  .dock__item svg { width: calc(21px * var(--s)); height: calc(21px * var(--s)); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: width .16s ease-out, height .16s ease-out; }
  .dock__item:hover { color: var(--p-accent); }
  .dock__item.is-active { color: var(--p-accent); }
  .dock__item.is-active::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--p-accent); }
  .dock__item.is-bounce { animation: dock-bounce .5s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes dock-bounce { 40% { transform: translateY(-8px); } }
  .dock__item:focus-visible, .dock__cta:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
  .dock__tip { position: absolute; bottom: calc(100% + 12px); left: var(--tx, 50%); transform: translate(-50%, 4px); opacity: 0; visibility: hidden; pointer-events: none; white-space: nowrap; background: var(--p-ink); color: #faf8f4; font-size: 12px; font-weight: 500; line-height: 1.2; padding: 7px 10px; border-radius: var(--r-sm); display: flex; gap: 6px; align-items: center; transition: opacity .15s, transform .15s; }
  .dock__tip.is-on { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
  .dock__tip i { font-style: normal; font-weight: 400; color: #b9bcc4; }
  .dock__tip b { font-weight: 500; font-size: 11px; background: #f3e7d3; color: #6b4a12; padding: 2px 7px; border-radius: 999px; }
    .dock__sep { width: 1px; height: 28px; align-self: center; background: rgb(26 43 74 / .14); margin: 0 4px; }
  .dock__cta { flex: none; height: 44px; gap: 0; }
  @media (max-width: 639px) {
    .dock { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; transform: translateY(28px); border-radius: var(--r-lg); padding: 6px 8px; }
    .dock.is-on, .dock.is-mini { transform: none; }
    .dock__item--wide, .dock__tip, .dock__sep, .dock__cta-long { display: none; }
    .dock__item { width: 44px; height: 44px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .dock, .dock.is-on, .dock__item, .dock__item svg, .dock__tip { transition: none; }
    .dock { transform: translate(-50%, 0); }
    .dock__item.is-bounce, .meet__row.is-next .meet__join { animation: none; }
  }
  @media (max-width: 639px) {
    .proof-frame { --ratio: 70%; }
    #features .card .panel { --p-h: 116px; }
    .cert__seal { width: 30px; height: 30px; top: 18px; right: 18px; }
  }
  .footer__col .wide-only { }
  @media (max-width: 639px) { .footer__col .wide-only { display: none; } #features .wrap > .grid .card .panel { --p-h: 168px; } }
  @media (min-width: 640px) and (max-width: 1023px) { #features .card .panel { --p-h: clamp(420px, calc(100vh - 500px), 640px); } }
  .close-note { margin-top: var(--s-4); }
  @media (max-width: 639px) { .close-note, .closing .footer__lede { display: none; } }
  @media (min-width: 640px) and (max-width: 1023px) { #features .wrap > .grid .at-rise { --ay: calc(100% - 330px) !important; } }
  @media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) { .board-frame { --ratio: 92%; } }

  em.serif { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--p-accent); }
  .mo-lt__type em.serif { color: inherit; }
  [data-inv] em.serif, .is-inverse em.serif { color: var(--p-inv-accent); }
  #proof em.serif { color: #c9a96e; }

  /* ---- Phase 2: liquid glass. Frost is the baseline everywhere; blur sits on four things only: nav, dock, Today panel, certificate ---- */
  .nav { background: transparent; border-bottom-color: transparent; transition: background-color .3s, box-shadow .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; }
  .nav.is-glass { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .55), transparent 70%), rgb(250 248 244 / .85);
    -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
    border-bottom-color: rgb(26 43 74 / .08); box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), var(--sh-2); }
  .nav.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line); }
  .dock { background: radial-gradient(170px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .6), transparent 65%), rgb(250 248 244 / .76);
    -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
    border-color: rgb(255 255 255 / .55);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(26 43 74 / .05), var(--sh-2); }
  .hero__media .today, .proof-frame .cert { background: linear-gradient(160deg, rgb(255 253 249 / .92), rgb(255 253 249 / .8));
    -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgb(255 255 255 / .7); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), var(--sh-2); }
  /* fallbacks: no blur support, or the visitor asked for less transparency -> solid ivory, nothing see-through */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav.is-glass { background: #faf8f4; }
    .dock { background: #faf8f4; }
    .hero__media .today, .proof-frame .cert { background: #fffdf9; }
  }
  @media (prefers-reduced-transparency: reduce) {
    .nav.is-glass { background: #faf8f4; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .dock { background: #faf8f4; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .hero__media .today, .proof-frame .cert { background: #fffdf9; -webkit-backdrop-filter: none; backdrop-filter: none; }
  }
  .hero__media .today { --u-muted: var(--muted); }
  .proof-frame .cert { --u-muted: var(--muted); }
  @media (max-width: 639px) { .cert__top { padding-right: 40px; } }

  /* ---- Phase 3: dock 2.0 (app-style tiles, hover previews) ---- */
  .dock { --ds: 56px; --dg: 26px; padding: 10px 12px 14px; gap: 8px; border-radius: var(--r-xl); }
  .dock__item { width: calc(var(--ds) * var(--s)); height: calc(var(--ds) * var(--s)); border-radius: calc(var(--ds) * .29 * var(--s)); color: #faf8f4; background: linear-gradient(160deg, var(--c2, #3a4a6a), var(--c1, #1a2b4a)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), inset 0 -1px 0 rgb(0 0 0 / .12), var(--sh-1); }
  .dock__item svg { width: calc(var(--dg) * var(--s)); height: calc(var(--dg) * var(--s)); stroke-width: 1.8; }
  .dock__item[data-c="maroon"] { --c1: #7a1f2b; --c2: #a3414d; }
  .dock__item[data-c="navy"] { --c1: #1a2b4a; --c2: #3e5380; }
  .dock__item[data-c="green"] { --c1: #0f5c4a; --c2: #2f8a73; }
  .dock__item[data-c="ink"] { --c1: #3a3f4d; --c2: #6a7080; }
  .dock__item[data-c="gold"] { --c1: #c9a96e; --c2: #e4cf9f; color: var(--ink); }
  .dock__item:hover { color: #faf8f4; }
  .dock__item[data-c="gold"]:hover { color: var(--ink); }
  .dock__item.is-active { color: #faf8f4; }
  .dock__item[data-c="gold"].is-active { color: var(--ink); }
  .dock__item.is-active::after { bottom: -9px; background: var(--p-ink); }
  .dock__cta { height: 44px; align-self: center; }
  .dock__sep { height: 36px; }
  .dock__tip { bottom: calc(100% + 14px); }
  .dock__tip.is-card { display: grid; gap: 4px; white-space: normal; width: 252px; padding: 12px 14px 13px; border-radius: var(--r-lg); background: rgb(250 248 244 / .97); color: var(--p-ink); border: 1px solid rgb(26 43 74 / .1); box-shadow: inset 0 1px 0 #fff, var(--sh-2); font-weight: 400; line-height: 1.35; text-align: left; }
  .dock__tip.is-card strong { font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
  .dock__pv-k { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--p-muted); }
  .dock__pv-p { font-size: 12.5px; color: var(--p-muted); }
  @media (max-width: 1023px) { .dock { --ds: 44px; --dg: 22px; padding: 8px 10px 12px; gap: 6px; border-radius: var(--r-xl); } }
  @media (max-width: 639px) { .dock { --ds: 44px; --dg: 22px; padding: 6px 8px 10px; border-radius: var(--r-xl); } .dock__item { border-radius: var(--r-md); } }
  @media (max-width: 639px) { .proof-frame .cert { background: #fffdf9; -webkit-backdrop-filter: none; backdrop-filter: none; } }

  /* ---- Phase 4: 3D and scroll moments ---- */
  .nav__logo .logo-full, .logo-full { height: 50px; width: auto; display: block; }
  @media (max-width: 639px) { .nav__logo .logo-full { height: 34px; } }
  @media (max-width: 379px) { .nav__logo .logo-full { height: 34px; width: 34px; object-fit: cover; object-position: 0 50%; } }
  .cert__mark { width: 20px; height: 20px; flex: none; }

  /* product window: starts tilted back and lays flat as it scrolls in; a light sweep crosses it on the way */
  #product .wrap { perspective: 1800px; }
  .js-3d #product .app.ui { --p: 1; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(.8 + .2 * var(--p))); filter: blur(calc(max(0, 1 - var(--p) / .55) * 8px)); will-change: transform; }
  .js-3d #product .app.ui::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: calc(100% - var(--p) * 100%) 0; opacity: calc(min(1, (1 - var(--p)) * 4)); }

  /* the day: three tools pulled apart in 3D, snapping into one Today screen */
  .why__grid { align-items: center; row-gap: var(--s-6); }
  .why .mo-lt__type { font-size: clamp(44px, 5.4vw, 88px); max-width: 11ch; }
  .why__text .t-lead { margin-top: var(--s-6); }
  .why__stage { position: relative; display: grid; place-items: center; perspective: 1500px; min-height: 470px; touch-action: pan-y; }
  .xs { --p: 1; --tx: 0deg; --ty: 0deg; --q: calc(1 - var(--p)); position: relative; width: min(430px, 100%); display: grid; gap: 10px; padding: 14px; transform-style: preserve-3d;
    transform: rotateX(calc(var(--q) * 54deg + var(--ty))) rotateZ(calc(var(--q) * -34deg)) rotateY(var(--tx)); }
  .xs::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-xl); background: linear-gradient(160deg, rgb(255 253 249 / .9), rgb(241 237 230 / .75)); border: 1px solid rgb(255 255 255 / .8); box-shadow: inset 0 1px 0 #fff, var(--sh-3); opacity: var(--p); transform: translateZ(-2px); }
  .xs__layer { position: relative; display: grid; gap: 9px; padding: 14px 16px; border-radius: var(--r-lg); background: #fffdf9; border: 1px solid rgb(26 43 74 / .09); font-size: 13px; color: var(--p-ink);
    box-shadow: 0 calc(var(--q) * 28px) calc(var(--q) * 50px) rgb(26 43 74 / calc(.08 + var(--q) * .14)), 0 1px 2px rgb(26 43 74 / .05);
    transform: translateY(calc(var(--q) * var(--pull))) translateZ(calc(var(--q) * (2 - var(--i)) * 95px + var(--lift, 0px))); transition: --lift .3s; }
  .xs__layer--t { --pull: 112px; } .xs__layer--m { --pull: 0px; } .xs__layer--k { --pull: -98px; }
  .xs__layer.is-hot { --lift: 26px; }
  .xs__head { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; }
  .xs__head .pill { margin-left: auto; }
  .xs__ic { width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; color: #faf8f4; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); }
  .xs__ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .xs__ic--m { background: linear-gradient(160deg, #a3414d, #7a1f2b); } .xs__ic--n { background: linear-gradient(160deg, #3e5380, #1a2b4a); } .xs__ic--g { background: linear-gradient(160deg, #2f8a73, #0f5c4a); }
  .xs__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .xs__row em { font-style: normal; color: var(--muted); font-size: 12px; }
  .xs__row b { font-weight: 500; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
  .xs__bar { height: 4px; border-radius: 2px; background: #ece7df; overflow: hidden; }
  .xs__bar i { display: block; height: 100%; border-radius: 2px; background: var(--p-accent); transform-origin: 0 50%; transform: scaleX(calc(.25 + var(--p) * .75)); }
  .xs__join { font-size: 12px; font-weight: 500; color: #faf8f4; background: var(--p-accent); padding: 4px 11px; border-radius: var(--r-btn); }
  .xs__task { justify-content: flex-start; }
  .xs__box { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid rgb(26 43 74 / .3); flex: none; }
  .xs__box.is-done { background: #0f5c4a; border-color: #0f5c4a; box-shadow: inset 0 0 0 2.5px #fffdf9; }
  .xs__label { position: absolute; left: 50%; top: calc(100% + 26px); transform: translateX(-50%) translateZ(0); display: grid; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); white-space: nowrap; }
  .xs__label span { grid-area: 1 / 1; text-align: center; transition: opacity .3s; }
  .xs__label span:first-child { opacity: calc(1 - var(--p) * 2); } .xs__label span:last-child { opacity: calc(var(--p) * 2 - 1); }
  @media (max-width: 1023px) { .why__stage { min-height: 400px; } .xs { width: min(380px, 100%); } }
  @media (max-width: 639px) { .why__stage { min-height: 330px; } .xs { padding: 10px; gap: 8px; } .xs__layer { padding: 11px 13px; gap: 7px; } .xs__layer--t .xs__row:nth-of-type(3), .xs__layer--t .xs__bar:last-child, .xs__layer--m .xs__row:last-child { display: none; } .xs__layer--t { --pull: 74px; } .xs__layer--k { --pull: -70px; } .xs__label { display: none; } }

  /* blur-in: the roadmap board comes into focus once; without script it is simply sharp */
  .js-3d .board.is-armed { filter: blur(8px); opacity: .35; transform: translateY(14px); }
  .js-3d .board.is-armed.is-in { filter: none; opacity: 1; transform: none; transition: filter .6s ease-out, opacity .6s ease-out, transform .6s cubic-bezier(.2, .8, .2, 1); }

  /* certificate: a slight turn while it assembles, settling flat as the seal lands */
  .proof-frame .stage { perspective: 1400px; }
  .cert[data-assemble] { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
  .cert.is-armed:not(.s-done) { transform: rotateY(-14deg) rotateX(5deg); }

  @media (prefers-reduced-motion: reduce) {
    .js-3d #product .app.ui { transform: none; filter: none; } .js-3d #product .app.ui::before { display: none; }
    .xs { --p: 1 !important; transform: none; } .js-3d .board.is-armed { filter: none; opacity: 1; transform: none; }
    .cert.is-armed:not(.s-done) { transform: none; }
  }
  .why { overflow-x: clip; } #product { overflow-x: clip; }
  @media (max-width: 639px) { .why .mo-lt__type { font-size: 40px; } .why__text .t-lead { margin-top: var(--s-5); } .why__stage { min-height: 300px; } }

  /* ---- Phase 5: interactive demos ---- */
  .demo-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--p-accent); border: 1px dashed rgb(122 31 43 / .45); }
  .demo-tag--inv { color: #e4cf9f; border-color: rgb(228 207 159 / .5); }
  .today__head { position: relative; }
  .today__head .demo-tag { margin-left: auto; }
  .today__reset { font: inherit; font-size: 12px; font-weight: 500; color: var(--p-accent); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .today button { font: inherit; cursor: pointer; }
  .today__join { border: 0; transition: background-color .2s, transform .15s; }
  .today__join:hover { background: #631823; }
  .today__join:active, .today__mini:active, .today__box:active { transform: scale(.94); }
  .today__join.is-done { background: #dcefe3; color: #12502f; }
  .today__mini { margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--p-accent); background: rgb(122 31 43 / .08); border: 0; border-radius: 999px; padding: 3px 9px; transition: background-color .2s; }
  .today__mini:hover { background: rgb(122 31 43 / .15); }
  .today__mini[disabled] { color: #12502f; background: #dcefe3; cursor: default; }
  .today__box { padding: 0; background: #fff; transition: background-color .2s, border-color .2s, transform .15s; }
  .today__box:hover { border-color: var(--p-accent); }
  .today__box[aria-checked="true"] { background: #0f5c4a; border-color: #0f5c4a; box-shadow: inset 0 0 0 2.5px #fff; }
  .today__row:has(.today__box[aria-checked="true"]) .today__name { text-decoration: line-through; color: var(--u-muted); }
  .today__bar i { transition: width .9s cubic-bezier(.2, .8, .2, 1); }
  .today [data-fin] { display: inline-block; font-variant-numeric: tabular-nums; }
  .today [data-fin].is-bump, .ly-float [data-fin2].is-bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); color: var(--p-accent); }
  @keyframes bump { 40% { transform: translateY(-3px) scale(1.15); } }
  .today__toast { margin: 0; min-height: 18px; font-size: 12px; color: var(--u-muted); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
  .today__toast.is-on { opacity: 1; transform: none; }
  .today button:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }

  /* certificate check preview on the dark band */
  .vf { display: grid; gap: 10px; max-width: 460px; }
  .vf__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--p-inv-ink); }
  .vf__row { display: flex; gap: 8px; }
  .vf__input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid rgb(250 248 244 / .22); background: rgb(250 248 244 / .07); color: #faf8f4; font: 400 14px/1 var(--font-mono); letter-spacing: .02em; transition: border-color .2s, background-color .2s; }
  .vf__input::placeholder { color: #a3abb9; font-family: var(--font-text); letter-spacing: 0; }
  .vf__input:focus { outline: none; border-color: #c9a96e; background: rgb(250 248 244 / .11); }
  .vf__btn { height: 44px; }
  .vf__out { margin: 0; min-height: 40px; font-size: 13px; line-height: 1.45; color: #c3c9d4; }
  .vf__out b { font-weight: 500; }
  .vf__out.is-ok { color: #9fd9b5; } .vf__out.is-bad { color: #f2b3a8; }
  .vf__out .vf__step { display: inline-block; animation: vf-in .3s ease-out; }
  @keyframes vf-in { from { opacity: 0; transform: translateY(3px); } }
  .cert.is-ping { animation: cert-ping .9s ease-out; }
  @keyframes cert-ping { 0% { box-shadow: 0 0 0 0 rgb(201 169 110 / .7), 0 18px 40px rgb(26 43 74 / .14); } 100% { box-shadow: 0 0 0 22px rgb(201 169 110 / 0), 0 18px 40px rgb(26 43 74 / .14); } }
  .cert.is-fail { animation: cert-shake .45s; }
  @keyframes cert-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
  @media (min-width: 640px) and (max-width: 1279px) { #proof .proof-points li:nth-child(3) { display: none; } }
  @media (max-width: 639px) { #proof .proof-points { display: none; } }

  /* champagne glow that follows the pointer in the dark band */
  #proof { position: relative; isolation: isolate; }
  #proof::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgb(201 169 110 / .13), transparent 62%); }
  #proof.is-glow::before { opacity: 1; }

  /* search palette (Ctrl K) */
  .nav__search { font: inherit; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
  kbd { font: 500 11px/1 var(--font-text); padding: 3px 6px; border-radius: 6px; border: 1px solid rgb(26 43 74 / .16); background: rgb(255 255 255 / .6); color: var(--p-muted); }
  @media (max-width: 1023px) { .nav__item--search { display: none; } }
  .cmdk { padding: 0; border: 0; background: none; width: min(560px, calc(100% - 32px)); margin: 14vh auto auto; overflow: visible; color: var(--p-ink); }
  .cmdk::backdrop { background: rgb(20 33 58 / .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .cmdk[open] .cmdk__box { animation: cmdk-in .22s cubic-bezier(.2, .8, .2, 1); }
  @keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
  .cmdk__box { border-radius: var(--r-xl); background: rgb(250 248 244 / .96); border: 1px solid rgb(255 255 255 / .8); box-shadow: inset 0 1px 0 #fff, var(--sh-3); overflow: hidden; }
  .cmdk__in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid rgb(26 43 74 / .08); }
  .cmdk__in svg { width: 18px; height: 18px; fill: none; stroke: var(--p-muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
  .cmdk__in input { flex: 1; height: 56px; border: 0; background: none; font: 400 16px var(--font-text); color: var(--p-ink); outline: none; }
  .cmdk__list { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow: auto; }
  .cmdk__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; height: 44px; border-radius: var(--r-md); font-size: 14px; cursor: pointer; }
  .cmdk__list li.is-on { background: rgb(122 31 43 / .08); color: var(--p-accent); }
  .cmdk__list li[hidden] { display: none; }
  .cmdk__empty { margin: 0; padding: 18px 20px; color: var(--p-muted); font-size: 14px; }
  .cmdk__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid rgb(26 43 74 / .08); font-size: 12px; color: var(--p-muted); }
  .cmdk__foot kbd { margin: 0 2px; }
  @media (prefers-reduced-motion: reduce) { .cmdk[open] .cmdk__box, .cert.is-ping, .cert.is-fail, .today [data-fin].is-bump { animation: none; } }
  .vf { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; }
  .vf__input { width: 0; }
  .vf__label { flex-wrap: wrap; }
  @media (max-width: 639px) { .ly-float { max-width: calc(100% - 104px); } .ly-float__title { font-size: 14px; } }
  @media (max-width: 639px) { #proof .stack-5 > .link { display: none; } }

  /* ================= v3: one pane of glass, real refraction, one light, detail pass ================= */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  .nav { view-transition-name: pnav; }
  html { scrollbar-width: thin; scrollbar-color: rgb(122 31 43 / .45) transparent; }
  ::selection { background: rgb(122 31 43 / .18); color: var(--ink); }
  #proof ::selection { background: rgb(201 169 110 / .4); color: #fff; }
  @property --sx { syntax: "<length>"; inherits: true; initial-value: 0px; }
  @property --sy { syntax: "<length>"; inherits: true; initial-value: 0px; }

  /* scroll progress hairline */
  .sprog { position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, #7a1f2b, #c9a96e); pointer-events: none; }

  /* one light: a soft pool of light under the pointer, and every floating surface casts its shadow away from it */
  .lightfield { position: fixed; inset: 0; z-index: 30; pointer-events: none; mix-blend-mode: soft-light; opacity: 0; transition: opacity .6s;
    background: radial-gradient(560px circle at var(--lx, 50%) var(--ly, 30%), rgb(255 255 255 / .5), transparent 62%); }
  .lightfield.is-on { opacity: 1; }
  .hero__media .today { box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), calc(var(--sx) * 1.6) calc(18px + var(--sy) * 1.6) 40px rgb(26 43 74 / .16); }
  .pg-mock, .proof-frame-cert { transition: transform .25s ease-out; }
  .pg-mock { box-shadow: inset 0 1px 0 #fff, calc(var(--sx) * 1.8) calc(22px + var(--sy) * 1.8) 50px rgb(26 43 74 / .17); }
  .su { box-shadow: var(--sx) calc(24px + var(--sy)) 60px rgb(26 43 74 / .11); }
  .xs::before { box-shadow: inset 0 1px 0 #fff, calc(var(--sx) * 2) calc(30px + var(--sy) * 2) 60px rgb(26 43 74 / .17); }
  .pg-stage { perspective: 1200px; }

  /* the pane: one sheet of glass that rides down the page and settles around each section's main object */
  .pane { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; border-radius: var(--pr, 26px); opacity: 0; transition: opacity .5s; will-change: transform, width, height;
    box-shadow: 0 0 0 1px rgb(255 255 255 / .75), 0 0 0 2px rgb(26 43 74 / .05), calc(var(--sx) * 2.4) calc(26px + var(--sy) * 2.4) 70px rgb(26 43 74 / calc(.10 + var(--pf, 0) * .14)); }
  .pane.is-on { opacity: 1; }
  .pane__rim, .pane__fill, .pane__glint { position: absolute; inset: 0; border-radius: inherit; }
  .pane__rim { padding: 11px; background: linear-gradient(135deg, rgb(255 255 255 / .6), rgb(255 255 255 / .1) 38%, rgb(201 169 110 / .2) 68%, rgb(255 255 255 / .45));
    -webkit-backdrop-filter: blur(5px) saturate(1.7); backdrop-filter: blur(5px) saturate(1.7);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
  .pane__fill { opacity: var(--pf, 0); background: linear-gradient(150deg, rgb(255 253 249 / .16), rgb(255 253 249 / .03) 55%, rgb(201 169 110 / .07));
    -webkit-backdrop-filter: blur(1.5px) saturate(1.5); backdrop-filter: blur(1.5px) saturate(1.5); }
  .pane::after { content: ""; position: absolute; inset: 11px; border-radius: calc(var(--pr, 26px) - 11px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 0 0 1px rgb(26 43 74 / .06); }
  .pane__glint { background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .55) 46%, transparent 58%) no-repeat; background-size: 260% 100%; background-position: calc(130% - var(--pf, 0) * 160%) 0; opacity: calc(var(--pf, 0) * .9); }



  /* dock: refracting glass where the browser can do it */
  /* (refracting dock rule lives in each page) */

  .dock { box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(26 43 74 / .05), calc(var(--sx) * 1.5) calc(14px + var(--sy) * 1.5) 36px rgb(26 43 74 / .2), 0 2px 6px rgb(26 43 74 / .06); }

  /* buttons: lit top edge, a sheen on hover, a real press */
  .btn--primary { background-image: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / .24) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .18), 0 6px 16px rgb(122 31 43 / .22); transition: background-position .8s cubic-bezier(.2, .8, .2, 1), background-color .2s, box-shadow .2s, translate .3s cubic-bezier(.2, .8, .2, 1), transform .12s; }
  .btn--primary:hover { background-position: -30% 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 -1px 0 rgb(0 0 0 / .18), 0 10px 26px rgb(122 31 43 / .32); }
  .btn--primary:active { transform: scale(.97); box-shadow: inset 0 2px 5px rgb(0 0 0 / .28); }
  #proof .btn--primary { box-shadow: inset 0 1px 0 #fff, var(--sh-1); }
  .btn--secondary { transition: background-color .2s, border-color .2s, box-shadow .2s, transform .12s; }
  .btn--secondary:hover { box-shadow: inset 0 1px 0 #fff, var(--sh-1); }
  .btn--secondary:active { transform: scale(.97); }

  /* cards answer the pointer */
  .pg-plan, .pg-step, .pg-col li, .pg-sec__box, .pg-file { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background-color .3s; }
  .pg-plan:hover, .pg-step:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(122 31 43 / .2), var(--sx) calc(22px + var(--sy)) 44px rgb(26 43 74 / .12); }
  .pg-col li:hover { transform: translateX(4px); background: #fff; box-shadow: var(--sh-1); }
  .pg-file:hover { background: #efe8de; }
  .pg-tab { position: relative; } .pg-tab:active { transform: scale(.96); }
  .today__row, .xs__row { transition: background-color .2s; }

  /* form: each field confirms itself */
  .su .su__f.is-ok input { border-color: #2f8a73; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23dcefe3'/%3E%3Cpath d='m5 9.3 2.6 2.5L13 6.3' fill='none' stroke='%2312502f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
  .su__f label { transition: color .2s; } .su__f:focus-within label { color: var(--p-accent); }
  .su__btn[disabled] { opacity: .7; }

  /* entrances: inner pages come into focus in order; homepage headings rise as they arrive */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes v3-rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
    .pg .pg-eyebrow, .pg h1, .pg .section:first-child .t-lead, .pg .section:first-child .btn-row, .pg-tablist, .pg-cur, .pg-next, .pg-stage, .pg-portrait, .su, .pg-cols > *, .pg-plans > *, .pg-sec__cols > *, .pg-panel > .stack-5, form.vf--light { animation: v3-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
    .pg h1 { animation-delay: .06s; } .pg .section:first-child .t-lead { animation-delay: .14s; } .pg .section:first-child .btn-row, .pg-tablist, .pg-cur, .pg-next, form.vf--light { animation-delay: .22s; }
    .pg-stage, .pg-portrait, .su, .pg-panel > .stack-5 { animation-delay: .28s; }
    .pg-cols > :nth-child(1), .pg-plans > :nth-child(1), .pg-sec__cols > :nth-child(1) { animation-delay: .26s; }
    .pg-cols > :nth-child(2), .pg-plans > :nth-child(2), .pg-sec__cols > :nth-child(2) { animation-delay: .34s; }
    .pg-cols > :nth-child(3), .pg-plans > :nth-child(3) { animation-delay: .42s; }
    html.v3 main:not(.pg) section:not(.hero) h2:not(.mo-lt__type), html.v3 .pg-letter__in > *, html.v3 .pg-steps > * { opacity: 0; transform: translateY(16px); filter: blur(7px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
    html.v3 main section h2.is-in, html.v3 .pg-letter__in > .is-in, html.v3 .pg-steps > .is-in { opacity: 1 !important; transform: none !important; filter: none !important; }
  }
  @media (prefers-reduced-motion: reduce) { .pane, .lightfield { display: none; } }
  @media (max-width: 1023px) { .pane { display: none; } }

  /* ================= v4: Cadmium. Tonal rhythm, grain, and a cover that opens ================= */
  .grain { position: fixed; inset: 0; z-index: 31; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
  @keyframes v4-drift { 0% { background-position: 0% 0%, 100% 100%, 0 0; } 100% { background-position: 12% 8%, 86% 90%, 0 0; } }
  main > .hero, .pg > .section:first-child { background: radial-gradient(60% 70% at 80% 28%, rgb(201 169 110 / .26), transparent 62%), radial-gradient(50% 60% at 62% 82%, rgb(122 31 43 / .12), transparent 62%), #faf8f4; background-size: 130% 130%, 130% 130%, auto; animation: v4-drift 16s ease-in-out infinite alternate; }
  main > #product { background: linear-gradient(to bottom, #faf8f4, #efe6d8 220px); }
  main > #why { background: radial-gradient(55% 60% at 74% 46%, rgb(122 31 43 / .13), transparent 62%), radial-gradient(40% 50% at 92% 80%, rgb(201 169 110 / .3), transparent 62%), linear-gradient(to bottom, #efe6d8 calc(100% - 220px), #faf8f4); background-size: 130% 130%, 130% 130%, auto; animation: v4-drift 18s ease-in-out infinite alternate; }
  main > #early { background: radial-gradient(55% 65% at 78% 50%, rgb(201 169 110 / .24), transparent 62%), linear-gradient(to bottom, #faf8f4, #f3e9e2); }
  .pg > .section:not(:first-child) { background: linear-gradient(to bottom, #faf8f4, #f3ebdf); }
  @media (prefers-reduced-motion: reduce) { main > .hero, .pg > .section:first-child, main > #why { animation: none; } }

  /* the close: deep maroon, ivory type */
  footer.closing.ground-inverse { --p-inv-bg: #4f121c; --p-inv-surface: #641a26; --p-inv-ink: #faf8f4; --p-inv-muted: #dcc3bd; --p-inv-accent: #e4cf9f; --p-inv-action: #faf8f4; --p-inv-action-ink: #4f121c;
    background: radial-gradient(60% 80% at 85% 0%, rgb(201 169 110 / .22), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgb(0 0 0 / .28), transparent 60%), #4f121c; }
  footer.closing.ground-inverse .logo-full { filter: brightness(0) invert(1); opacity: .95; }
  footer.closing.ground-inverse .btn--primary { background-color: #faf8f4; color: #4f121c; box-shadow: inset 0 1px 0 #fff, var(--sh-2); }
  footer.closing.ground-inverse .btn--secondary { background: transparent; color: #faf8f4; border-color: rgb(250 248 244 / .4); }
  footer.closing.ground-inverse ::selection { background: rgb(228 207 159 / .4); color: #fff; }

  /* the cover: the hero card is today's page, and the book opens once to show it */
  .hero__media .today { position: relative; }
  .cover { position: absolute; inset: -1px; z-index: 5; border-radius: inherit; pointer-events: none; display: none; place-items: center; align-content: center; gap: 10px; text-align: center; color: #faf8f4;
    background: radial-gradient(120% 90% at 20% 0%, #8f2a38, #6a1723 55%, #4f121c); box-shadow: inset 0 0 0 1px rgb(228 207 159 / .35), inset 0 0 0 9px #6a1723, inset 0 0 0 10px rgb(228 207 159 / .4), inset 14px 0 18px -8px rgb(0 0 0 / .45), var(--sh-3);
    transform-origin: 0 50%; backface-visibility: hidden; }
  .cover__band { position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: rgb(228 207 159 / .35); }
  .cover img { filter: brightness(0) invert(1); opacity: .95; }
  .cover b { font: italic 400 46px/1 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; }
  .cover em { font: 500 11px/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: #e4cf9f; }
  @media (prefers-reduced-motion: no-preference) {
    .cover { display: grid; animation: v4-open 1.5s cubic-bezier(.6, 0, .2, 1) .9s both; }
    @keyframes v4-open { 0% { transform: perspective(1500px) rotateY(0); } 12% { transform: perspective(1500px) rotateY(4deg); } 100% { transform: perspective(1500px) rotateY(-118deg); visibility: hidden; } }
    .hero__media .today > :not(.cover) { animation: v4-page .9s ease-out 1.5s both; }
    @keyframes v4-page { from { opacity: 0; transform: translateY(6px); } }
  }

  /* v4.2: the pane shows at every width above small phones, and with reduced motion (it snaps instead of flying) */
  @media (prefers-reduced-motion: reduce) { .pane { display: block; transition: none; } }
  @media (max-width: 759px) { .pane { display: block; } }
  @media (max-width: 559px) { .pane { display: none; } }

  /* ================= v5: audit fixes and the maroon glass pane ================= */
  /* performance: nothing repaints forever. Colour fields are still, the light and grain are plain layers */
  main > .hero, .pg > .section:first-child, main > #why { animation: none; }
  .grain { mix-blend-mode: normal; opacity: .04; }
  .lightfield { mix-blend-mode: normal; background: radial-gradient(520px circle at var(--lx, 50%) var(--ly, 30%), rgb(255 255 255 / .2), transparent 62%); }
  /* accessibility: keyboard focus is never parked under the nav or the dock; small controls get a full-size hit area; no text under 12px */
  html { scroll-padding-top: 88px; scroll-padding-bottom: 120px; }
  .today__mini, .today__join, .today__box, .xs__join { position: relative; }
  .today__mini::after, .today__join::after { content: ""; position: absolute; inset: -9px -4px; }
  .today__box::after { content: ""; position: absolute; inset: -14px; }
  @media (min-width: 1024px) { .nav__links > .nav__item > .nav__link { min-height: 44px; display: inline-flex; align-items: center; } }
  .demo-tag { font-size: 12px; letter-spacing: .04em; height: 22px; }
  kbd { font-size: 12px; }
  :where(a, button, input, select, [role="tab"]):focus-visible { outline: 2px solid #7a1f2b; outline-offset: 3px; }
  #proof :where(a, button, input):focus-visible, footer.closing :where(a, button):focus-visible { outline-color: #e4cf9f; }

  /* the pane: glassy maroon. A wine-glass rim when it rests, a sheet of tinted glass only while it flies */
  .pane { box-shadow: 0 0 0 1px rgb(122 31 43 / .5), 0 0 0 2.5px rgb(255 226 230 / .45), calc(var(--sx) * 2.4) calc(26px + var(--sy) * 2.4) 70px rgb(79 18 28 / calc(.14 + var(--pf, 0) * .18)); }
  .pane__rim { background: linear-gradient(135deg, rgb(255 232 235 / .8), rgb(176 74 88 / .5) 30%, rgb(122 31 43 / .62) 62%, rgb(255 214 220 / .7)); }
  .pane__fill { background: linear-gradient(150deg, rgb(190 88 102 / .26), rgb(122 31 43 / .13) 52%, rgb(79 18 28 / .24)); }
  .pane::after { box-shadow: inset 0 0 0 1px rgb(255 226 230 / .7), 0 0 0 1px rgb(79 18 28 / .22); }
  .pane__glint { background-image: linear-gradient(115deg, transparent 30%, rgb(255 228 232 / .7) 46%, transparent 58%); }

  /* card groups */
  #features .panel { --p-h: 300px; }
  @media (min-width: 1024px) and (max-width: 1279px) { #features .panel { --p-h: 250px; } }
  @media (min-width: 640px) and (max-width: 1023px) { #features .panel { --p-h: 520px; } }
  @media (max-width: 639px) { #features .panel { --p-h: 136px; } #features .stage { --fade-h: 40px; } }
