/* The plan cards and plan chips, the same on the website, the plan picker, the Plan and deposit page, the account
   home, Manage and the office's header (the colours are tokens in tokens.css). A card flips (about 0.6 s) to show what
   its plan includes; with reduced motion it doesn't move: its front and back show one under the other. */

/* the plan chips: any element with data-plan="starter|pro|premium" and the class chip or plan-chip */
.chip[data-plan="starter"],.plan-chip[data-plan="starter"]{background:var(--sparkBg);border-color:var(--sparkLine);color:var(--sparkText)}
.chip[data-plan="pro"],.plan-chip[data-plan="pro"]{background:var(--engineBg);border-color:var(--engineLine);color:var(--engineText)}
.chip[data-plan="premium"],.plan-chip[data-plan="premium"]{background:var(--empireBg);border-color:var(--empireLine);color:var(--empireText);box-shadow:inset 0 0 0 1px var(--empireBg),inset 0 0 0 2px var(--empireLine)}
.plan-chip{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border:1px solid var(--line2);border-radius:var(--rPill);font-size:var(--fs2);font-weight:600;white-space:nowrap}

/* the cards: three side by side, one under another on a phone */
.pcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
@media (max-width:760px){.pcards{grid-template-columns:1fr}}
.pcard{perspective:1400px;position:relative}
/* The turn: a strong ease-in-out (it moves on screen), under half a second. */
.pcard-inner{display:grid;height:100%;transition:transform .45s cubic-bezier(.65,0,.35,1);transform-style:preserve-3d;position:relative}
.pcard.flipped .pcard-inner{transform:rotateY(180deg)}
/* Both faces sit in the same cell, so the card is as tall as its longer face: the front holds the buttons and the back
   the details, so the two are about the same height and the card is sized to its content (round 3: no fixed height). */
.pcard-face{grid-area:1/1;display:flex;flex-direction:column;gap:10px;padding:24px 22px;border-radius:var(--r5);border:1px solid var(--line2);background:var(--glass);
  -webkit-backface-visibility:hidden;backface-visibility:hidden}
.pcard-back{transform:rotateY(180deg)}
/* The back lies over the front, out of the flow, so the card is as tall as its front; while the back shows, the card
   grows to the back's height (--backH, measured by plancard.js), so neither face has empty space. */
.pcard-back{position:absolute;top:0;left:0;right:0;min-height:100%;box-sizing:border-box}
.pcard.flipped .pcard-inner{min-height:var(--backH,0px)}
@media (hover:hover) and (pointer:fine){.pcard:not(.still):not(.acts):hover .pcard-inner{min-height:var(--backH,0px)}}
.pcard-face h3,.pcard-face h4{margin:0}
.pcard-name{font-size:24px;font-weight:var(--display);letter-spacing:var(--track);line-height:1.1}
.pcard-price{margin:0;font-size:15px}
.pcard-price b{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:32px;letter-spacing:-.02em}
.pcard-line{margin:0;line-height:1.5}
.pcard-gets{margin:0;font-size:14.5px;line-height:1.5}
.pcard-gets b{font-variant-numeric:tabular-nums}
.pcard-back ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:5px;flex:1;font-size:14.5px;line-height:1.45}
.pcard-actions{display:flex;flex-wrap:wrap;gap:8px}
/* the buttons sit at the bottom of the front, in line across the three cards */
.pcard-front .pcard-actions{margin-top:auto;padding-top:6px}
.pcard-front .pcard-actions .btn{flex:1 1 auto}
.pcard-badge,.pcard-pick{align-self:flex-start;padding:2px 10px;border-radius:var(--rPill);font-size:var(--fs1);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.pcard-pick{background:var(--ok);color:var(--okInk)}
/* Turning is a quiet text button on both faces (44px tall to tap); the plan's own button is the main one. */
.pcard .pcard-flip{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;margin:-6px 0 -10px;padding:0;background:none;border:0;color:inherit;font:inherit;font-size:14px;
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer}
.pcard .pcard-flip:hover{text-decoration-thickness:2px}
.pcard .pcard-back .pcard-flip{margin-top:auto}
.pcard-actions .btn:active:not(:disabled){transform:scale(.97)}
@media (max-width:600px){.pcard-face{padding:18px 16px}}
.pcard.picked .pcard-face{outline:var(--focusW) solid var(--ok);outline-offset:3px}

/* each plan's colour */
.pcard[data-plan="starter"] .pcard-face{background:var(--sparkBg);border-color:var(--sparkLine);color:var(--sparkText)}
.pcard[data-plan="starter"] .pcard-name,.pcard[data-plan="starter"] .pcard-price b{color:var(--sparkText)}
.pcard[data-plan="starter"] .pcard-badge{background:var(--spark);color:var(--sparkInk)}
.pcard[data-plan="pro"] .pcard-face{background:var(--engineBg);border-color:var(--engineLine);color:var(--engineText)}
.pcard[data-plan="pro"] .pcard-name,.pcard[data-plan="pro"] .pcard-price b{color:var(--engineText)}
.pcard[data-plan="pro"] .pcard-badge{background:var(--engine);color:var(--engineInk)}
/* Empire: black with a double gold line */
.pcard[data-plan="premium"] .pcard-face{background:var(--empireBg);border-color:var(--empireLine);color:var(--empireText);box-shadow:inset 0 0 0 4px var(--empireBg),inset 0 0 0 5px var(--empireLine)}
.pcard[data-plan="premium"] .pcard-name,.pcard[data-plan="premium"] .pcard-price b{color:var(--empireText)}
.pcard[data-plan="premium"] .pcard-badge{background:var(--empireLine);color:var(--empire)}

/* A mouse may preview the back by hovering, but only on a card with no buttons on its front: turning a card while the
   mouse moves to its Choose or Request button hid the button under the back, so it could not be pressed (2026-11-22). */
@media (hover:hover) and (pointer:fine){.pcard:not(.still):not(.acts):hover .pcard-inner{transform:rotateY(180deg)}}

/* Reduced motion: no turning at all; the front and the back show one under the other, and the flip buttons go. */
@media (prefers-reduced-motion:reduce){
  .pcard-inner,.pcard.flipped .pcard-inner,.pcard:hover .pcard-inner{transform:none!important;transition:none!important;display:flex;flex-direction:column}
  .pcard-face{-webkit-backface-visibility:visible;backface-visibility:visible;min-height:0}
  .pcard-front{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0}
  .pcard-back{transform:none;border-top-left-radius:0;border-top-right-radius:0;position:static;min-height:0}
  .pcard-inner{min-height:0!important}
  .pcard .pcard-flip{display:none}
}
/* Windows' contrast themes: plain frames, both faces readable. */
@media (forced-colors:active){.pcard-face{border:1px solid CanvasText;box-shadow:none}}

/* what a plan pays for and what a work day is, under the cards (plancard.js PLAN_GETS, WORK_DAY) */
.plan-explain{display:flex;flex-direction:column;gap:6px;max-width:80ch}
.plan-explain p{margin:0;color:var(--label);font-size:14.5px;line-height:1.55}

/* the plan picker's full-width notice while card payments are off (pick.js offNotice): what to do, what happens next,
   and the founder's email */
.pick-notice{display:flex;flex-direction:column;gap:8px;padding:20px 24px;border:1px solid var(--goldLine);border-radius:var(--r5);background:var(--panel2);color:var(--text)}
.pick-notice h2{margin:0;font-size:18px;font-weight:var(--display);letter-spacing:-.01em;color:var(--figure)}
.pick-notice h2:focus{outline:none}
.pick-notice p{margin:0;max-width:72ch;line-height:1.55}
.pick-notice a:not(.btn){color:var(--goldText)}
.pick-notice .row{margin-top:4px}
@media (max-width:600px){.pick-notice{padding:16px}}

/* the promise wherever a customer pays or approves a price (plancard.js promiseHTML) */
.promise{margin:0;padding:10px 14px;border:1px solid var(--goldLine);border-radius:var(--r3);background:var(--panel2);color:var(--text);font-size:14px;line-height:1.45}
.promise b{color:var(--goldText)}

/* The waitlist (2026-11-28): "Coming soon" above a card's Join the waitlist button. */
.pcard-soon{flex-basis:100%;margin:0;font-size:var(--fs1);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:inherit;opacity:.78}
