/* Access: Pro tags, locked previews, the upgrade sheet, and the mockup's preview switch */
.pro { display: inline-block; color: var(--deep); background: linear-gradient(135deg, var(--gold), var(--wait)); }
.probeta { display: inline-block; font-weight: 600; color: var(--gold); background: color-mix(in srgb, var(--wait) 12%, transparent); margin-left: var(--sp-15); vertical-align: 2px; }
.locked { position: relative; border-radius: var(--r-s); overflow: hidden; min-height: 150px; display: grid; }
.locked > .locked-preview, .locked > .locked-cta { grid-area: 1 / 1; min-width: 0; }
.locked-cta { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-15); padding: var(--sp-4);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 30%, transparent), color-mix(in srgb, var(--surface) 85%, transparent)); }
.locked-cta b { font: 600 var(--fs-l) var(--f-ui); }
.locked-cta p { font-size: var(--fs-s); color: var(--mute); max-width: 340px; line-height: 1.4; }
.upbtn { all: unset; cursor: pointer; margin-top: var(--sp-1); color: var(--deep); background: linear-gradient(135deg, var(--gold), var(--wait)); }
.upbtn.big { display: block; text-align: center; margin-top: var(--sp-4); }
.lockchip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-15); background: var(--surface); font-size: var(--fs-s); font-weight: 600; color: var(--mute); }
.ranges button.lockd { color: var(--faint); }
.fine { font-size: var(--fs-xs); color: var(--faint); text-align: center; margin-top: var(--sp-2); }
#accessDev { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); top: 8px; display: flex; gap: var(--sp-1); align-items: center; padding: var(--sp-1); border-radius: var(--r-act-in); background: #000; box-shadow: 0 0 0 1px #333; font: 600 var(--fs-label) var(--f-ui); color: #999; }
#accessDev button { all: unset; cursor: pointer; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-act); color: #aaa; }
#accessDev button[aria-pressed=true] { background: #fff; color: #000; }
#accessDev .dev-all { padding: var(--sp-1) var(--sp-25); margin-right: var(--sp-1); border-radius: var(--r-act-in); background: var(--buy); color: var(--on-buy); font-weight: 700; text-decoration: none; }
#accessDev .dev-all:focus-visible, #accessDev button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
  #accessDev { top: auto; bottom: 150px; }
}

#accessDev.folded { padding: var(--sp-1); opacity: .85; }
#accessDev.folded button { background: #000; color: #ccc; }
@media (max-width: 760px) {
  #accessDev { left: 8px; transform: none; bottom: calc(96px + env(safe-area-inset-bottom)); flex-wrap: wrap; max-width: calc(100% - 16px); }
  #accessDev.folded { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
:root[data-sheet-up] #accessDev { display: none; }

/* folded: a slim tab on the right edge, clear of content */
@media (max-width: 760px) {
  #accessDev.folded { top: 38%; bottom: auto; left: auto; right: 0; padding: 0; border-radius: var(--r-act-in) 0 0 var(--r-act-in); }
  #accessDev.folded button { writing-mode: vertical-rl; transform: rotate(180deg); padding: var(--sp-25) var(--sp-1); font-size: var(--fs-label); border-radius: var(--r-act-in) 0 0 var(--r-act-in); }
  #accessDev.folded { flex-direction: column; gap: var(--sp-05); }
  #accessDev.folded .dev-all { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; padding: var(--sp-25) var(--sp-1); font-size: var(--fs-label); border-radius: var(--r-act-in) 0 0 var(--r-act-in); }
}
#accessDev > span { margin: 0 var(--sp-05) 0 var(--sp-15); }
/* desktop: a small pill in the bottom-left corner, clear of the top menu, sticky headers and the centred action bars */
@media (min-width: 761px) {
  #accessDev { top: auto; bottom: 16px; left: auto; right: 16px; transform: none; opacity: .92; }
  #accessDev:focus-within { opacity: 1; } @media (hover: hover) and (pointer: fine) { #accessDev:hover { opacity: 1; } }
}
/* phones: no floating tab over the content; the switch sits at the end of the page, above the tab bar */
@media (max-width: 760px) {
  #accessDev, #accessDev.folded { position: relative; top: auto; bottom: auto; left: auto; right: auto; transform: none; margin: var(--sp-6) auto calc(110px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); flex-direction: row; border-radius: var(--r-act-in); padding: var(--sp-1); opacity: 1; }
  #accessDev.folded button, #accessDev.folded .dev-all { writing-mode: horizontal-tb; transform: none; padding: var(--sp-25) var(--sp-35); font-size: var(--fs-xs); border-radius: var(--r-act-in); }
}
/* Pro wears the brand's holo foil (the same as "Holo" in the name), not gold */
:root { --holo: linear-gradient(100deg, var(--buy) 0%, var(--fair) 34%, var(--sell) 66%, var(--wait) 100%); }
/* the Pro mark (Faris, 2026-11-11): ink with the foil only in its edge and the H's bar, as on the logo, so it never reads as
   one more verdict beside a Buy or a Wait (the holo is made of the verdict colours) */
.pro, .pck-promini { color: var(--text); border: 1px solid transparent; background: linear-gradient(var(--fd-ink, var(--deep)), var(--fd-ink, var(--deep))) padding-box, var(--holo) border-box; }
.pro::before, .pck-promini::before { content: ''; display: inline-block; width: 1.15em; height: 1.15em; margin-right: .35em; vertical-align: -.22em; background: url(icons/mark.svg) center / contain no-repeat; }
/* Unlock: the one solid foil thing on a screen, led by the H in ink; a light catches across it once as it shows */
.upbtn { position: relative; overflow: hidden; background: var(--holo); color: var(--deep); }
@media (hover: hover) and (pointer: fine) { .upbtn:hover { filter: brightness(1.08); } }
.upbtn::before { content: ''; flex: none; width: 1.1em; height: 1.1em; margin-right: .45em; background: currentColor; -webkit-mask: url(icons/mark.svg) center / contain no-repeat; mask: url(icons/mark.svg) center / contain no-repeat; }
.upbtn::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--text) 55%, transparent) 50%, transparent 65%); transform: translateX(-120%); animation: upGlint 1.1s var(--ease-out) .35s 1 both; }
@keyframes upGlint { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .upbtn::after { animation: none; } }
/* the Pro card (ACCESS.lock): a card of its own edged in foil like a holo card's border; the mark, its name, one line of why,
   what it would tell you by name (never the real thing blurred), Unlock across the width, and the founding places or the price */
.locked { display: block; min-height: 0; padding: var(--sp-45) var(--sp-4) var(--sp-4); border-radius: var(--r-l); border: 1px solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sell) 9%, var(--fd-ink, var(--surface))), var(--fd-ink, var(--surface)) 60%) padding-box, var(--holo) border-box; }   /* the foil a 1px edge all round, as on the Pro mark: never a stripe down one side */
.locked > .locked-cta { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: var(--sp-2); padding: 0; background: none; }
/* a locked button or row wears the foil edge itself and keeps its own words (Cost to finish, + New list, Download all as CSV,
   a lock row): no Pro mark inside it (Faris, 2026-11-14; DESIGN.md's Pro section). Found by what it carries: data-upsell, or
   data-pro where its own handler asks. Not inside a Pro moment, which is a foil card already */
:is(.btn-sec, .btn-s, .lockrow):is([data-upsell], [data-pro]):not(.pro-moment *) { border: 1px solid transparent; box-shadow: none;
  background: linear-gradient(var(--fd-ink, var(--deep)), var(--fd-ink, var(--deep))) padding-box, var(--holo) border-box; }
/* the card wears the foil itself, so its mark is the H and Pro as plain type, never the boxed tag inside it (Faris, 2026-11-14:
   "the component itself should be holo themed"; DESIGN.md's Pro section) */
.locked-cta > .pro { border-color: transparent; background: none; padding-inline: 0; color: var(--fd-fog, var(--mute)); }
.locked-cta b { font: 400 var(--fs-d4)/1 var(--fd-display, var(--f-big)); text-transform: uppercase; letter-spacing: .01em; margin-top: var(--sp-1); }
.locked-cta p { max-width: none; margin: 0; color: var(--fd-fog, var(--mute)); }
.locked > .locked-preview { margin: var(--sp-3) 0 0; }
.locked > .upbtn { display: flex; width: 100%; margin-top: var(--sp-35); }
.locked > .fine { margin: var(--sp-2) 0 0; }


/* the Pro sheet (ACCESS.upsell, pro-sheet.js): about the feature you tapped, then Free and Pro side by side. On our ink with a
   soft violet glow; the tapped feature's Pro tile turns over like a card and its figure counts to Pro's; the Pro column is one
   foil-edged band; rows deal in. One moment as it opens, nothing on repeat, nothing with reduced motion (Faris, 2026-11-22) */
#upsell .up-scrim { position: fixed; inset: 0; z-index: 39; background: color-mix(in srgb, #000 70%, transparent); opacity: 0; pointer-events: none; transition: opacity var(--dur-3); }
#upsell .up { position: fixed; z-index: 40; left: 50%; top: 50%; width: min(600px, calc(100% - 32px)); max-height: min(88vh, 860px); display: flex; flex-direction: column; overflow: hidden;
  transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; border-radius: var(--r-l);
  background: radial-gradient(110% 340px at 25% -120px, color-mix(in srgb, var(--sell) 24%, transparent), transparent) no-repeat, var(--fd-ink, var(--deep));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sell) 35%, var(--line)), 0 30px 80px -10px color-mix(in srgb, var(--sell) 30%, transparent), 0 30px 60px color-mix(in srgb, #000 80%, transparent);
  transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-3); }
#upsell[data-open] .up-scrim { opacity: 1; pointer-events: auto; }
#upsell[data-open] .up { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.ps-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-35) var(--sp-35) var(--sp-2) var(--sp-5); }
#upsell .ps-top .pk-x { position: static; flex: none; }
#upsell .grab { display: none; }
.ps-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ps-hero { padding: var(--sp-2) var(--sp-5) var(--sp-4); }
.ps-mark { display: inline-flex; align-items: center; gap: var(--sp-2); font: 700 var(--fs-m) var(--f-big); color: var(--text); }
.ps-mark .pro { margin-left: var(--sp-1); }
#upsell .ps-hero h2 { font: 400 var(--fs-d5)/1 var(--fd-display, var(--f-big)); text-transform: uppercase; letter-spacing: .01em; margin: var(--sp-2) 0 var(--sp-2); max-width: 18ch; text-wrap: balance; }
.ps-lead { color: var(--fd-fog, var(--mute)); font-size: var(--fs-b); line-height: 1.45; max-width: 46ch; margin: 0; }
/* the tapped feature, Free against Pro: two tiles, the Pro one in the foil edge */
.ps-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--sp-2); margin-top: var(--sp-45); perspective: 700px; }
.ps-side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-2); min-height: 92px; padding: var(--sp-3) var(--sp-35); border-radius: var(--r-act); background: var(--surface); }
.ps-side small { font-size: var(--fs-xs); color: var(--fd-fog, var(--mute)); }
.ps-side b { font: 400 var(--fs-d3)/1 var(--fd-display, var(--f-big)); text-transform: uppercase; color: var(--fd-fog, var(--mute)); font-variant-numeric: tabular-nums; }
.ps-side.ps-p { position: relative; overflow: hidden; border: 1px solid transparent; transform-origin: 0 50%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sell) 16%, var(--fd-ink, var(--deep))), var(--fd-ink, var(--deep)) 70%) padding-box, var(--holo) border-box; }
.ps-side.ps-p b { color: var(--text); }
.ps-side.ps-p small { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--text); font-weight: 600; }
.ps-side.ps-p::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--text) 30%, transparent) 50%, transparent 65%); transform: translateX(-120%); }
.ps-to { display: grid; place-items: center; color: var(--fd-fog, var(--mute)); }
.ps-note { margin: var(--sp-2) 0 0; font-size: var(--fs-s); color: var(--fd-fog, var(--mute)); }
/* or what it would tell you, by name */
.ps-gives { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-25); }
.ps-gives li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--sp-25); align-items: start; }
.ps-gives b { display: block; font-size: var(--fs-m); font-weight: 600; } .ps-gives small { display: block; font-size: var(--fs-s); color: var(--fd-fog, var(--mute)); }
.ps-gives .ps-yes { margin-top: var(--sp-05); color: var(--text); }
/* live proof, on the speed features only: two figures */
.ps-proof { display: grid; grid-template-columns: auto 1fr 1fr; gap: var(--sp-3); align-items: center; margin: 0 var(--sp-5) var(--sp-2); padding: var(--sp-3) var(--sp-35); border-radius: var(--r-act); background: color-mix(in srgb, var(--buy) 9%, var(--surface)); }
.ps-proof .dotlive { margin: 0; }
.ps-proof b { display: block; font: 400 var(--fs-d2)/1 var(--fd-display, var(--f-big)); color: var(--text); }
.ps-proof small { display: block; margin-top: var(--sp-05); font-size: var(--fs-xs); line-height: 1.3; color: var(--fd-fog, var(--mute)); }
/* Free and Pro side by side: the Pro column one foil-edged band behind its cells */
.ps-cmp { --ps-cols: minmax(0, 1fr) 84px 104px; position: relative; margin: var(--sp-2) var(--sp-5) var(--sp-5); }
.ps-cmp::before { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 104px; border-radius: var(--r-act); border: 1px solid transparent; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sell) 14%, var(--fd-ink, var(--deep))), color-mix(in srgb, var(--sell) 5%, var(--fd-ink, var(--deep)))) padding-box, var(--holo) border-box; }
.ps-cols, .ps-row { position: relative; display: grid; grid-template-columns: var(--ps-cols); align-items: center; }
.ps-cols { position: sticky; top: 0; z-index: 2; min-height: 60px; background: var(--fd-ink, var(--deep)); box-shadow: 0 1px 0 var(--line); }
.ps-cols > span { display: flex; flex-direction: column; align-items: center; text-align: center; font: 400 var(--fs-xl)/1 var(--fd-display, var(--f-big)); text-transform: uppercase; color: var(--fd-fog, var(--mute)); }
.ps-cols > .p { color: var(--text); }
.ps-cols small { margin-top: var(--sp-1); padding: 0 var(--sp-1); font: 500 var(--fs-xs)/1.2 var(--f-ui); text-transform: none; color: var(--fd-fog, var(--mute)); }
.ps-grp h3 { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-1); padding-right: 104px; font: 600 var(--fs-xs) var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--fd-fog, var(--mute)); }
.ps-grp h3 small { margin-left: auto; padding-right: var(--sp-2); font-size: var(--fs-xs); letter-spacing: 0; text-transform: none; }
.ps-gi { display: grid; place-items: center; color: var(--text); }
.ps-row { min-height: 44px; border-top: 1px solid var(--line); }
.ps-grp h3 + .ps-row { border-top: 0; }
.ps-row .n { padding: var(--sp-2) var(--sp-2) var(--sp-2) 0; font-size: var(--fs-m); line-height: 1.3; color: var(--text); }
.ps-row .f, .ps-row .p { display: grid; place-items: center; text-align: center; font-size: var(--fs-s); line-height: 1.25; padding: var(--sp-1); }
.ps-row .f { color: var(--fd-fog, var(--mute)); } .ps-row .p { color: var(--text); font-weight: 600; }
.ps-row .ps-no { color: var(--faint); opacity: .7; }
/* the row you came from: lit across the width */
.ps-row.on { border-radius: var(--r-s); border-top-color: transparent; background: color-mix(in srgb, var(--sell) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sell) 55%, transparent); }
.ps-row.on + .ps-row { border-top-color: transparent; }
.ps-row.on .n { padding-left: var(--sp-25); font-weight: 600; }
.ps-act { flex: none; padding: var(--sp-3) var(--sp-5) calc(var(--sp-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--fd-ink, var(--deep)); }
#upsell .ps-act .upbtn.big { width: 100%; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--sell) 70%, transparent); }
.ps-act .fine { margin: var(--sp-2) 0 0; }
.up-ghost { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; min-height: 52px; text-align: center; font-weight: 600; color: var(--text); border-radius: var(--r-act); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .up-ghost:hover { box-shadow: inset 0 0 0 1px var(--mute); } }
.up-ghost[disabled] { color: var(--buy); cursor: default; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--buy) 40%, transparent); }
.up-ghost:focus-visible, #upsell .upbtn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* the one moment, as it opens */
@media (prefers-reduced-motion: no-preference) {
  #upsell[data-open] .ps-side.ps-f { animation: psIn 480ms var(--ease-out) 160ms both; }
  #upsell[data-open] .ps-to { animation: psIn 480ms var(--ease-out) 300ms both; }
  #upsell[data-open] .ps-side.ps-p { animation: psFlip 760ms var(--ease-out) 380ms both; }
  #upsell[data-open] .ps-side.ps-p::after { animation: upGlint 1s var(--ease-out) 1050ms 1 both; }
  #upsell[data-open] .ps-gives li { animation: psIn 480ms var(--ease-out) both; } #upsell[data-open] .ps-gives li:nth-child(2) { animation-delay: 90ms; } #upsell[data-open] .ps-gives li:nth-child(3) { animation-delay: 180ms; } #upsell[data-open] .ps-gives li:nth-child(n+4) { animation-delay: 270ms; }
  #upsell[data-open] .ps-cmp::before { animation: psBand 900ms var(--ease-out) 250ms both; }
  #upsell[data-open] .ps-row { animation: psIn 480ms var(--ease-out) calc(var(--i) * 32ms + 320ms) both; }
  #upsell[data-open] .ps-row .p .ps-yes path { stroke-dasharray: 1; animation: psDraw 420ms var(--ease-out) calc(var(--i) * 32ms + 480ms) both; }
}
@keyframes psIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes psFlip { from { opacity: 0; transform: rotateY(-75deg); } 40% { opacity: 1; } }
@keyframes psBand { from { clip-path: inset(0 0 100% 0 round var(--r-act)); } to { clip-path: inset(0 0 0 0 round var(--r-act)); } }
@keyframes psDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  #upsell .up { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 92dvh; transform: translateY(105%); opacity: 1; border-radius: var(--r-l) var(--r-l) 0 0; }
  #upsell[data-open] .up { transform: none; }
  #upsell .grab { display: block; position: absolute; left: 50%; top: 8px; z-index: 3; width: 40px; height: 4px; border-radius: 2px; transform: translateX(-50%); background: var(--line); }
  .ps-top { padding: var(--sp-45) var(--sp-3) var(--sp-1) var(--sp-45); } .ps-hero { padding: var(--sp-2) var(--sp-45) var(--sp-4); }
  .ps-cmp { --ps-cols: minmax(0, 1fr) 72px 92px; margin-inline: var(--sp-45); } .ps-cmp::before { width: 92px; } .ps-grp h3 { padding-right: 92px; }
  .ps-proof { margin-inline: var(--sp-45); } .ps-act { padding-inline: var(--sp-45); }
}
