/* Flowspace — pricing.css · the three plan cards, shared by the front page and by the plan screen inside the app.
   Hover (or keyboard focus) lifts a card; clicking chooses it, and the chosen card stays lifted. */
.pp { --pp-card: rgba(255,255,255,.035); --pp-card-2: rgba(255,255,255,.06); --pp-line: rgba(255,255,255,.09); --pp-text: #ECEEF4; --pp-muted: #9399A8;
  --pp-accent: #8B7CFF; --pp-accent-2: #B3A9FF; --pp-ok: #34D399; position: relative; color: var(--pp-text); }
.pp.in-app { --pp-card: var(--bg-card); --pp-card-2: var(--tint); --pp-line: var(--border-color); --pp-text: var(--text-main); --pp-muted: var(--text-muted); }

/* a quiet night sky behind the heading: one arc and a handful of stars */
.pp-sky { position: absolute; left: 0; right: 0; top: -40px; height: 320px; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.pp-sky::before { content: ''; position: absolute; left: 50%; top: 26px; width: 150%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border-top: 1px solid rgba(139,124,255,.42);
  background: radial-gradient(60% 18% at 50% 0%, rgba(139,124,255,.16), transparent 70%); }
.pp-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #9D90FF; box-shadow: 0 0 8px 1px rgba(139,124,255,.7); opacity: .8; animation: ppTwinkle 4.5s ease-in-out infinite; }
.pp-sky i:nth-child(1) { left: 12%; top: 62px; } .pp-sky i:nth-child(2) { left: 27%; top: 138px; width: 2px; height: 2px; animation-delay: -1.2s; background: #34D399; box-shadow: 0 0 8px 1px rgba(52,211,153,.6); }
.pp-sky i:nth-child(3) { left: 71%; top: 96px; animation-delay: -2.4s; background: #34D399; box-shadow: 0 0 8px 1px rgba(52,211,153,.6); } .pp-sky i:nth-child(4) { left: 86%; top: 54px; width: 2px; height: 2px; animation-delay: -3.1s; }
.pp-sky i:nth-child(5) { left: 93%; top: 176px; animation-delay: -.6s; } .pp-sky i:nth-child(6) { left: 5%; top: 190px; width: 2px; height: 2px; animation-delay: -3.8s; }
@keyframes ppTwinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: .95; transform: scale(1.15); } }

.pp-head { position: relative; z-index: 1; text-align: center; max-width: 620px; margin: 0 auto 44px; }
.pp-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--pp-ok); }
.pp-head h2 { margin: 10px 0 0; font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.pp-head p { margin: 14px 0 0; font-size: 16px; color: var(--pp-muted); }

.pp-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; max-width: 1020px; margin: 0 auto; padding-top: 30px; }
.pp-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 30px 26px 26px; border-radius: 20px; border: 1px solid var(--pp-line); background: var(--pp-card); text-align: center; cursor: pointer; outline: none;
  transform: translateZ(0); transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .32s, opacity .25s, background .25s; will-change: transform; }
.pp-card h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.pp-desc { margin: 8px 0 0; min-height: 2.9em; font-size: 12.5px; line-height: 1.45; color: var(--pp-muted); }
.pp-price { margin: 14px 0 0; font-size: 46px; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-price small { margin-left: 2px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--pp-muted); }
.pp-note { margin: 12px 0 0; min-height: 2.9em; font-size: 12.5px; line-height: 1.45; color: var(--pp-muted); }
.pp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 16px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font: 600 14px/1 inherit; font-family: inherit; color: #0B0D12; background: #F3F4F8; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .2s; }
.pp-btn:hover { background: #fff; } .pp-btn:active { transform: scale(.98); }
.pp-card.is-best .pp-btn { background: var(--pp-accent); color: #0B0D12; } .pp-card.is-best .pp-btn:hover { background: #9D90FF; }
.pp .pp-card .pp-btn[disabled], .pp .pp-card .pp-btn.is-quiet, .pp .pp-card.is-best .pp-btn.is-quiet { background: transparent; color: var(--pp-muted); border-color: var(--pp-line); cursor: inherit; }
html:not(.dark) .pp.in-app .pp-btn:not(.is-quiet):not([disabled]) { background: #0F172A; color: #fff; } html:not(.dark) .pp.in-app .pp-btn:not(.is-quiet):not([disabled]):hover { background: #1E293B; }
html:not(.dark) .pp.in-app .pp-eyebrow { color: #059669; } html:not(.dark) .pp.in-app .pp-list li::before { border-color: #7C6CF2; }
.pp.in-app .pp-card.is-best .pp-btn:not(.is-quiet):not([disabled]) { background: var(--pp-accent); color: #0B0D12; }
.pp-inc { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--pp-line); font-size: 12.5px; color: var(--pp-muted); text-align: left; }
.pp-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; text-align: left; font-size: 13.5px; line-height: 1.4; flex: 1; }
.pp-list li { position: relative; padding-left: 26px; }
.pp-list li::before { content: ''; position: absolute; left: 2px; top: 3px; width: 13px; height: 7px; border-left: 2px solid var(--pp-accent-2); border-bottom: 2px solid var(--pp-accent-2); transform: rotate(-45deg); border-radius: 1px; }

/* the one we would pick for you: a little taller, with a flag and a glow */
.pp-card.is-best { margin-top: -30px; padding-top: 60px; border-color: rgba(139,124,255,.6); background-image: linear-gradient(180deg, rgba(139,124,255,.13), transparent 46%); box-shadow: 0 0 0 1px rgba(139,124,255,.25), 0 30px 70px -34px rgba(139,124,255,.75); }
.pp-flag { position: absolute; left: -1px; right: -1px; top: -1px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 20px 20px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #0B0D12; background: linear-gradient(90deg, #B3A9FF, #8B7CFF 55%, #C4B5FD); }

/* the card you chose */
.pp-pick { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--pp-line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: transparent; transition: background .2s, border-color .2s, color .2s, transform .25s cubic-bezier(.3,1.5,.5,1); }
.pp-card.is-best .pp-pick { top: 46px; }
.pp-card.is-chosen .pp-pick { background: var(--pp-ok); border-color: var(--pp-ok); color: #0B0D12; transform: scale(1.1); }
.pp-card.is-chosen { border-color: var(--pp-ok); box-shadow: 0 0 0 1px var(--pp-ok), 0 30px 70px -36px rgba(52,211,153,.7); }
.pp-card:focus-visible { box-shadow: 0 0 0 3px rgba(139,124,255,.55); }

/* the card under the pointer grows; the others step back a little */
@media (hover: hover) {
  .pp-card:hover, .pp-card:focus-visible { transform: translateY(-8px) scale(1.045); z-index: 3; border-color: rgba(139,124,255,.7); box-shadow: 0 0 0 1px rgba(139,124,255,.35), 0 36px 80px -34px rgba(139,124,255,.85); }
  .pp-grid:hover .pp-card:not(:hover) { transform: scale(.975); opacity: .78; }
  .pp-card.is-chosen:hover { border-color: var(--pp-ok); box-shadow: 0 0 0 1px var(--pp-ok), 0 36px 80px -34px rgba(52,211,153,.8); }
}
.pp-card.is-chosen { transform: translateY(-6px) scale(1.03); z-index: 2; }
@media (hover: hover) { .pp-grid:hover .pp-card.is-chosen:not(:hover) { transform: translateY(-3px) scale(1); opacity: .9; } .pp-card.is-chosen:hover { transform: translateY(-8px) scale(1.045); } }

/* what happens next, under the cards */
.pp-foot { position: relative; z-index: 1; max-width: 1020px; margin: 26px auto 0; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--pp-line); background: var(--pp-card); font-size: 13.5px; line-height: 1.55; color: var(--pp-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
/* how much the yearly plan saves, right beside its price */
.pp-off { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 650; font-style: normal; letter-spacing: 0; vertical-align: middle; color: #0B0D12; background: #34D399; }
.pp-foot[hidden] { display: none; }   /* nothing chosen yet on the front page: no empty box */
.pp-foot b { color: var(--pp-text); font-weight: 600; } .pp-foot > span { flex: 1 1 320px; }
.pp-foot form { display: flex; gap: 8px; flex: 0 1 320px; } .pp-foot input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--pp-line); background: var(--pp-card-2); color: var(--pp-text); font: inherit; font-size: 13px; outline: none; }
.pp-foot input:focus { border-color: var(--pp-accent); }
.pp-foot .pp-btn { width: auto; height: 40px; margin: 0; padding: 0 16px; font-size: 13px; }
.pp-foot .pp-code { flex-basis: 100%; max-width: 360px; }   /* the Pro code sits on its own line under the pay button */
.pp-fine { position: relative; z-index: 1; margin: 18px auto 0; text-align: center; font-size: 13px; color: var(--pp-muted); }

/* inside the app the cards live in a wide sheet */
.fs-sheet.is-plans { max-width: 1040px; }
.pp.in-app .pp-head { margin-bottom: 26px; } .pp.in-app .pp-head h2 { font-size: clamp(24px, 3.2vw, 34px); } .pp.in-app .pp-head p { font-size: 14px; }
.pp.in-app .pp-card { padding: 24px 20px 20px; } .pp.in-app .pp-card.is-best { padding-top: 54px; } .pp.in-app .pp-price { font-size: 38px; } .pp.in-app .pp-list { font-size: 12.5px; gap: 9px; }
.pp.in-app .pp-grid { gap: 14px; padding: 30px 8px 8px; } .pp.in-app .pp-sky { top: -10px; height: 150px; }

/* a tablet held upright still shows the three plans side by side, a little tighter */
@media (min-width: 720px) and (max-width: 940px) {
  .pp-grid { gap: 12px; } .pp-card, .pp.in-app .pp-card { padding: 24px 16px 20px; } .pp-card.is-best, .pp.in-app .pp-card.is-best { padding-top: 54px; }
  .pp-price, .pp.in-app .pp-price { font-size: 34px; } .pp-price small { font-size: 15px; } .pp-card h3 { font-size: 19px; } .pp-list, .pp.in-app .pp-list { font-size: 12.5px; gap: 9px; } .pp-list li { padding-left: 22px; }
  .pp-desc, .pp-note { min-height: 4.4em; } .pp-btn { height: 42px; font-size: 13px; padding: 0 8px; }
}
@media (max-width: 719px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 460px; padding-top: 0; }
  .pp-card.is-best { margin-top: 0; order: -1; }                      /* on a phone the best value comes first */
  .pp-desc, .pp-note { min-height: 0; } .pp-head { margin-bottom: 28px; }
  .pp-card.is-chosen { transform: scale(1.015); }
  .pp-foot form { flex-basis: 100%; }
  .pp-sky::before { width: 240%; top: 6px; }                          /* a flatter arc, so it stays above the heading on a narrow screen */
}
@media (prefers-reduced-motion: reduce) { .pp-card, .pp-pick { transition: border-color .2s, box-shadow .2s, opacity .2s; } .pp-card:hover, .pp-card.is-chosen, .pp-grid:hover .pp-card:not(:hover) { transform: none !important; } .pp-sky i { animation: none; } }

/* ---------- moments: becoming Pro and leaving it (engine.js: fsMoment). The whole window, calm, and short. ---------- */
.fm { position: fixed; inset: 0; z-index: 92; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; color: var(--text-main); background-color: var(--bg-app);
  background-image: radial-gradient(70vmax 46vmax at 50% -14%, rgba(139,124,255,.20), transparent 64%), radial-gradient(48vmax 48vmax at 104% 106%, rgba(168,85,247,.07), transparent 62%); outline: none; }
.fm.hidden { display: none; }
.fm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 900px; min-height: 70px; margin: 0 auto; padding: 18px 24px; }
.fm-in { max-width: 640px; margin: 0 auto; padding: 3vh 24px 64px; text-align: center; }
.fm.is-left .fm-in, .fm.is-back .fm-in { padding-top: 13vh; }             /* a short answer sits where the eye is */
.fm-in > * { animation: fmUp .5s var(--mo-ease, ease-out) both; }
.fm-in > :nth-child(2) { animation-delay: .05s; } .fm-in > :nth-child(3) { animation-delay: .1s; } .fm-in > :nth-child(4) { animation-delay: .15s; } .fm-in > :nth-child(n+5) { animation-delay: .2s; }
/* the welcome opens in about a second: the mark, its glow, then the page */
.fm.is-welcome .fm-in > * { animation-delay: .45s; } .fm.is-welcome .fm-in > .fm-mark { animation: none; }
.fm.is-welcome .fm-in > :nth-child(n+5) { animation-delay: .6s; } .fm.is-welcome .fm-in > :nth-child(n+7) { animation-delay: .72s; }
.fm-mark { position: relative; width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; }
.fm-mark b { position: relative; font-size: 36px; line-height: 1; font-weight: 400; color: var(--accent-ink); animation: fmStar .9s var(--mo-ease, ease-out) both; }
.fm-mark i { position: absolute; inset: -34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,124,255,.34), transparent); animation: fmGlow 1.1s var(--mo-ease, ease-out) both; }
.fm-eyebrow { display: block; color: var(--accent-ink) !important; }
.fm-h1 { font-size: clamp(28px, 5.2vw, 42px); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; margin-top: 10px; }
.fm-lead { font-size: 15.5px; line-height: 1.55; color: var(--text-muted); max-width: 500px; margin: 12px auto 0; }
.fm-q { display: block; margin: 34px 0 12px; }
.fm-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: left; }
.fm-door { width: 100%; height: 100%; }
.fm-space { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; text-align: left; margin-top: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--border-color); background: var(--bg-card); }
.fm-space > div { flex: 1 1 260px; min-width: 0; } .fm-space p { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin-top: 5px; }
.fm-codebox { flex: 1 1 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border-color); background: var(--field); color: var(--text-main); font: 12px 'JetBrains Mono', ui-monospace, monospace; }
.fm-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.fm-acts .dash-act { height: 46px; padding: 0 22px; font-size: 14px; justify-content: center; }
/* on the welcome the way on stays in sight on any screen, however short */
.fm.is-welcome .fm-acts { position: sticky; bottom: 0; z-index: 1; margin-top: 14px; padding: 14px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg-app) 34%); }
.fm-fine { font-size: 12px; line-height: 1.5; color: var(--text-muted); max-width: 460px; margin: 16px auto 0; }
.fm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.fm-stat { flex: 0 1 112px; padding: 12px 10px; border-radius: var(--r); background: var(--tint); }
.fm-stat b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; } .fm-stat span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.fm-after { text-align: left; margin-top: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--border-color); background: var(--bg-card); }
.fm-after ul { margin-top: 10px; } .fm-after li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; color: var(--text-muted); } .fm-after li + li { margin-top: 7px; }
.fm-after li::before { content: ''; position: absolute; left: 2px; top: .66em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .75; }
.fm-whys { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; text-align: left; }
.fm-why { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--border-color); background: var(--bg-card); font-size: 14px; font-weight: 550; text-align: left; transition: border-color .15s, background-color .15s; }
.fm-why::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.fm-why:hover { border-color: var(--accent-line); }
.fm-why[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.fm-why[aria-checked="true"]::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 42%, transparent 48%); }
.fm-more { text-align: left; } .fm-more label { display: block; font-size: 12.5px; font-weight: 600; margin: 14px 0 6px; } .fm-more label span { font-weight: 500; color: var(--text-muted); }
.fm-more textarea { display: block; width: 100%; min-height: 84px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-color); background: var(--field); color: var(--text-main); font-size: 14px; line-height: 1.5; resize: vertical; }
.fm-more textarea:focus { outline: none; border-color: var(--accent); }
.fm-date { max-width: 380px; margin: 26px auto 0; padding: 20px 16px; border-radius: var(--r); background: var(--tint); }
.fm-date b { display: block; font-size: clamp(22px, 4.4vw, 28px); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; margin-top: 8px; }
@keyframes fmUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fmStar { 0% { opacity: 0; transform: scale(.4) rotate(-40deg); } 60% { opacity: 1; transform: scale(1.14) rotate(5deg); } 100% { opacity: 1; transform: none; } }
@keyframes fmGlow { 0% { opacity: 0; transform: scale(.3); } 55% { opacity: 1; transform: scale(1.16); } 100% { opacity: .8; transform: none; } }
/* the workspace says it is Pro; nothing has to keep announcing it */
.fs-pro-mark { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; font: 600 9.5px/1.5 'Inter', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--accent-ink); background: var(--accent-soft); vertical-align: 2px; }
.fs-pro-mark.hidden { display: none; }
/* a few days before a cancelled plan ends: one quiet line on the dashboard */
.pro-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 12px 0 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.pro-end > div:first-child { flex: 1 1 260px; min-width: 0; } .pro-end b { display: block; font-size: 13.5px; font-weight: 650; } .pro-end p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pro-end-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .fm-top { min-height: 60px; padding: 14px 16px; } .fm-in { padding: 1vh 16px calc(44px + env(safe-area-inset-bottom)); }
  .fm-mark { width: 60px; height: 60px; margin-bottom: 8px; } .fm-mark b { font-size: 30px; } .fm-mark i { inset: -26px; }
  .fm-q { margin: 22px 0 10px; } .fm-space { padding: 14px; } .fm-acts { margin-top: 18px; }
  /* the three doors as rows, so the way on stays in sight on a phone */
  .fm-doors { grid-template-columns: 1fr; gap: 8px; }
  .fm-door { display: grid !important; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: center; padding: 12px 14px !important; }
  .fm-door .src-ico { grid-row: 1 / span 2; margin: 0; } .fm-door b, .fm-door small { grid-column: 2; }
  .fm-acts { flex-direction: column; } .fm-acts .dash-act, .fm-space .dash-act { width: 100%; justify-content: center; }
  .fm-more textarea { font-size: 16px; }                              /* a phone must not zoom in when the box is tapped */
  .fm-stat { flex: 1 1 28%; } .pro-end-acts { width: 100%; } .pro-end-acts .dash-act { flex: 1 1 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fm-in > *, .fm-mark b, .fm-mark i { animation: none !important; } }

