/* Studio: a tilted pill on the Custom plan that opens into a card for questions before buying (2026-11-26).
   Open weekdays 8am to 6pm London time with a green light; out of hours a soft indigo moonlight. */
@property --st-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --st-green: #1E9E57; --st-green-soft: rgba(30, 158, 87, .12);
  --st-night: #5E5CE6; --st-night-soft: rgba(94, 92, 230, .09);
  --st-glass-a: rgba(255, 255, 255, .95); --st-glass-b: rgba(255, 255, 255, .78);
  --st-card-a: rgba(255, 255, 255, .97); --st-card-b: rgba(255, 255, 255, .9);
  --st-chip: rgba(255, 255, 255, .9); --st-row: rgba(15, 17, 21, .035); --st-row-hover: #fff; --st-sq: rgba(15, 17, 21, .05);
  --st-line: rgba(15, 17, 21, .05); --st-veil: rgba(246, 247, 250, .34);
  --st-shadow: 0 18px 40px -16px rgba(26, 40, 82, .32), 0 4px 12px -6px rgba(26, 40, 82, .16);
  --st-card-shadow: 0 40px 80px -30px rgba(26, 40, 82, .42), 0 10px 26px -12px rgba(26, 40, 82, .2);
  --st-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
:root[data-theme="dark"] {
  --st-green: #3DD68C; --st-green-soft: rgba(61, 214, 140, .12);
  --st-night: #8E8CFF; --st-night-soft: rgba(142, 140, 255, .12);
  --st-glass-a: rgba(40, 43, 51, .94); --st-glass-b: rgba(26, 28, 34, .9);
  --st-card-a: rgba(34, 37, 44, .98); --st-card-b: rgba(24, 26, 31, .98);
  --st-chip: rgba(255, 255, 255, .1); --st-row: rgba(255, 255, 255, .05); --st-row-hover: rgba(255, 255, 255, .09); --st-sq: rgba(255, 255, 255, .08);
  --st-line: rgba(255, 255, 255, .08); --st-veil: rgba(11, 12, 15, .4);
  --st-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 4px 12px -6px rgba(0, 0, 0, .5);
  --st-card-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 10px 26px -12px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --st-green: #3DD68C; --st-green-soft: rgba(61, 214, 140, .12);
    --st-night: #8E8CFF; --st-night-soft: rgba(142, 140, 255, .12);
    --st-glass-a: rgba(40, 43, 51, .94); --st-glass-b: rgba(26, 28, 34, .9);
    --st-card-a: rgba(34, 37, 44, .98); --st-card-b: rgba(24, 26, 31, .98);
    --st-chip: rgba(255, 255, 255, .1); --st-row: rgba(255, 255, 255, .05); --st-row-hover: rgba(255, 255, 255, .09); --st-sq: rgba(255, 255, 255, .08);
    --st-line: rgba(255, 255, 255, .08); --st-veil: rgba(11, 12, 15, .4);
    --st-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 4px 12px -6px rgba(0, 0, 0, .5);
    --st-card-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 10px 26px -12px rgba(0, 0, 0, .5);
  }
}
.plans .plan:nth-child(3) { position: relative; overflow: visible; }

/* The pill */
.st-pill {
  --st-c: var(--st-green); --st-soft: var(--st-green-soft); --st-rgb: 52, 199, 123;
  position: absolute; top: -22px; right: -20px; z-index: 5;
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 7px 0 6px;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; color: var(--ink1); text-align: left;
  background: linear-gradient(180deg, var(--st-glass-a), var(--st-glass-b));
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1px var(--st-line), var(--st-shadow);
  transform: rotate(5deg); transform-origin: 100% 50%;
  transition: transform 220ms var(--st-ease-out), opacity 160ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.st-pill.is-closed, .st-card.is-closed { --st-c: var(--st-night); --st-soft: var(--st-night-soft); --st-rgb: 94, 92, 230; }
.st-card { --st-c: var(--st-green); --st-soft: var(--st-green-soft); --st-rgb: 52, 199, 123; }
/* A soft light travelling round the edge. */
.st-pill::before, .st-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--st-a), rgba(var(--st-rgb), .1) 0deg, rgba(var(--st-rgb), .1) 230deg, rgba(var(--st-rgb), .32) 285deg, rgba(var(--st-rgb), .85) 325deg, rgba(var(--st-rgb), .32) 350deg, rgba(var(--st-rgb), .1) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: st-orbit 5.5s linear infinite;
}
.is-closed::before { animation-duration: 10s; }
/* And a gentle glow that breathes. */
.st-pill::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1;
  box-shadow: 0 0 0 1px rgba(var(--st-rgb), .2), 0 0 20px 2px rgba(var(--st-rgb), .2), 0 0 40px 6px rgba(var(--st-rgb), .06);
  animation: st-breathe 3.2s ease-in-out infinite;
}
.st-pill.is-closed::after { animation-duration: 5s; }
@keyframes st-orbit { to { --st-a: 360deg; } }
@keyframes st-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .st-pill:hover { transform: rotate(2deg) translateY(-1px); }
  .st-pill:hover .st-go { transform: translateX(2px) rotate(-6deg); }
}
.st-pill:active { transform: rotate(2deg) scale(.97); transition-duration: 120ms; }
.st-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.st-pill img { width: 33px; height: 33px; flex: none; filter: drop-shadow(0 2px 4px rgba(26, 40, 82, .22)); }
.st-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.st-s { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--st-c); }
.st-m { font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; margin-top: 1px; white-space: nowrap; }
.st-go { flex: none; width: 29px; height: 29px; margin-left: 4px; border-radius: 999px; display: grid; place-items: center;
  background: var(--st-soft); box-shadow: inset 0 0 0 1px rgba(var(--st-rgb), .22); color: var(--st-c);
  transition: transform 220ms var(--st-ease-out); }
.st-go svg { width: 12px; height: 12px; }
.st-pill.is-hidden { opacity: 0; filter: blur(4px); pointer-events: none; }
.st-si, .st-ki { display: inline-grid; place-items: center; font-style: normal; }
.st-si:empty, .st-ki:empty { display: none; }
.st-si svg { width: 10px; height: 10px; }
.st-ki svg { width: 14px; height: 14px; }

/* The soft blur behind the card, fading out so the other plans stay readable */
.st-veil {
  position: fixed; inset: 0; z-index: 90; background: var(--st-veil);
  -webkit-backdrop-filter: blur(6px) saturate(1.05); backdrop-filter: blur(6px) saturate(1.05);
  --cx: 75%; --cy: 40%;
  -webkit-mask-image: radial-gradient(520px 460px at var(--cx) var(--cy), #000 0%, #000 42%, rgba(0, 0, 0, .5) 66%, transparent 100%);
  mask-image: radial-gradient(520px 460px at var(--cx) var(--cy), #000 0%, #000 42%, rgba(0, 0, 0, .5) 66%, transparent 100%);
  opacity: 0; pointer-events: none; transition: opacity 320ms var(--st-ease-out);
}
.st-veil.is-on { opacity: 1; pointer-events: auto; }

/* The card */
.st-card {
  position: fixed; z-index: 91; width: 380px; max-width: calc(100vw - 24px); box-sizing: border-box; border-radius: 32px; padding: 24px;
  background: linear-gradient(180deg, var(--st-card-a), var(--st-card-b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px var(--st-line), var(--st-card-shadow);
  visibility: hidden; color: var(--ink1); text-align: left;
}
.st-card.is-closed { background: radial-gradient(110% 70% at 100% 0%, rgba(var(--st-rgb), .11), transparent 62%), linear-gradient(180deg, var(--st-card-a), var(--st-card-b)); }
.st-card::before { padding: 1.5px; opacity: .8; }
.st-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  box-shadow: 0 0 0 1px rgba(var(--st-rgb), .2), 0 0 34px 4px rgba(var(--st-rgb), .14), 0 0 90px 14px rgba(var(--st-rgb), .05);
  transition: opacity 420ms var(--st-ease-out); }
.st-card.is-settled::after { opacity: 1; animation: st-breathe 3.6s ease-in-out 420ms infinite; }
.st-card.is-open { visibility: visible; }
.st-card .st-in { opacity: 0; transform: translateY(6px); filter: blur(3px); }
.st-top { margin: 0 0 18px; }
.st-tag { position: relative; display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 6px 0 15px; border-radius: 15px;
  background: var(--st-soft); box-shadow: inset 0 0 0 1px rgba(var(--st-rgb), .2);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--st-c); white-space: nowrap; }
.st-k { display: inline-flex; align-items: center; gap: 7px; }
.st-t { margin-left: 12px; height: 30px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center;
  background: var(--st-chip); box-shadow: 0 1px 2px rgba(15, 17, 21, .07), inset 0 0 0 1px var(--st-line);
  font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; text-transform: none; color: var(--ink1); font-variant-numeric: tabular-nums; }
.st-head { display: flex; align-items: center; gap: 14px; }
.st-head img { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 4px 6px rgba(26, 40, 82, .22)); }
.st-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.st-head h4 { margin: 3px 0 0; font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.012em; color: var(--ink1); text-wrap: balance; }
.st-close { margin-left: auto; align-self: flex-start; flex: none; width: 32px; height: 32px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--st-sq); color: var(--ink2); transition: transform 160ms var(--st-ease-out); }
.st-close:active { transform: scale(.94); }
.st-close svg { width: 14px; height: 14px; }
.st-close:focus-visible, .st-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-lead { margin: 16px 0; font-size: 15px; line-height: 1.45; color: var(--ink2); text-wrap: balance; }
.st-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px 12px 12px; margin-top: 8px; border-radius: 19px; text-decoration: none; color: inherit;
  background: var(--st-row); box-shadow: inset 0 0 0 1px var(--st-line); transition: background 180ms ease, transform 180ms var(--st-ease-out), box-shadow 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .st-row:hover { background: var(--st-row-hover); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--st-line), 0 10px 22px -12px rgba(26, 40, 82, .32); }
  .st-row:hover .st-chev { transform: translateX(2px); color: var(--ink2); }
}
.st-row:active { transform: scale(.985); }
.st-sq { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--st-sq); color: var(--ink2); }
.st-sq svg { width: 17px; height: 17px; }
.st-row b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink1); }
.st-row small { display: block; margin-top: 1px; font-size: 13.5px; color: var(--ink2); }
.st-chev { margin-left: auto; flex: none; color: var(--ink4); transition: transform 180ms var(--st-ease-out), color 180ms ease; }
.st-chev svg { width: 16px; height: 16px; }

/* Phones: the pill tucks inside the screen edge */
@media (max-width: 600px) {
  .st-pill { right: -6px; }
  .st-card { padding: 20px; border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-pill::before, .st-card::before, .st-pill::after, .st-card.is-settled::after { animation: none; }
  .st-pill::after { opacity: .6; }
}
