/* ==========================================================================
   Formium Alliance — Pricing page: guided quote builder (formium-pricing.html)
   Typography = the site system only (formium-typography.css tokens):
     title  --fa-title     subtitle --fa-subtitle     body --fa-body
     small  --fa-small     micro (Geist Mono) --fa-micro
   Light, Apple-minimal. Black = selected, Action Red #FF3131 = the one accent.
   Everything is scoped under .fp.
   ========================================================================== */

body.fp-body { background: #f5f5f7; }
body.fp-body aside.sidebar { box-shadow: none !important; }
body.fp-lock { overflow: hidden; }

.fp {
  --ink: #0b0b0c;
  --ink-2: rgba(11, 11, 12, .62);
  --ink-3: rgba(11, 11, 12, .42);
  --line: rgba(11, 11, 12, .10);
  --line-2: rgba(11, 11, 12, .18);
  --paper: #fff;
  --bg: #f5f5f7;
  --red: #FF3131;
  --fp-gap: clamp(12px, 1.7vw, 24px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(11, 11, 12, .03), 0 18px 40px -22px rgba(11, 11, 12, .18);

  /* the five type roles (from the site's typography system) */
  --t-title: var(--fa-title, clamp(34px, calc(23px + 2.4vw), 56px));
  --t-sub: var(--fa-subtitle, clamp(20px, calc(17.6px + 0.6vw), 26px));
  --t-body: var(--fa-body, 16px);
  --t-small: var(--fa-small, 14px);
  --t-micro: var(--fa-micro, 12px);
  --f-sans: var(--fa-font, 'Geist', ui-sans-serif, system-ui, sans-serif);
  --f-mono: var(--fa-mono, 'Geist Mono', ui-monospace, monospace);

  position: relative; color: var(--ink); font-family: var(--f-sans); overflow-x: clip;
}
.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
:where(.fp) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:where(.fp) h1, :where(.fp) h2, :where(.fp) h3, :where(.fp) p, :where(.fp) ol, :where(.fp) ul, :where(.fp) dl, :where(.fp) dd { margin: 0; padding: 0; }
.fp [hidden] { display: none !important; }
.fp-wrap { width: 100%; max-width: 1290px; margin-inline: auto; padding-inline: 20px; }
.fp-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* the text roles used everywhere below */
.fp-micro, .fp-eyebrow { font-family: var(--f-mono); font-size: var(--t-micro); line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; font-weight: 450; }
.fp h2 { font-size: var(--t-title); line-height: var(--fa-title-lh, 1.06); letter-spacing: var(--fa-title-ls, -.03em); font-weight: 400; color: var(--ink); }
.fp h3 { font-size: var(--t-sub); line-height: var(--fa-subtitle-lh, 1.22); letter-spacing: var(--fa-subtitle-ls, -.02em); font-weight: 450; color: inherit; }
:where(.fp) :is(p, li, dd, dt, summary) { font-size: var(--t-body); line-height: 1.6; }

.fp-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.fp-eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .45; }

/* ---------- Buttons ---------- */
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 99px;
  font-size: var(--t-body); line-height: 1; font-weight: 450; border: 1px solid var(--line-2); background: transparent; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--ease), opacity .3s ease;
}
.fp-btn:hover { border-color: var(--ink); }
.fp-btn:active { transform: scale(.98); }
.fp-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.fp-btn:hover svg { transform: translateX(3px); }
#fp-back:hover svg { transform: translateX(-3px); }
.fp-btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.fp-btn--dark:hover { background: #26262a; border-color: #26262a; }
.fp-btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.fp-btn:disabled { opacity: .35; cursor: not-allowed; }
.fp :is(button, a, input, textarea, summary):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Landing ---------- */
.fp-hero { position: relative; text-align: center; padding: 176px 0 72px; isolation: isolate; }
.fp-hero::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -40px; width: min(980px, 130vw); height: 520px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 38%, rgba(255, 49, 49, .10), rgba(255, 49, 49, 0) 70%); filter: blur(8px); pointer-events: none;
}
.fp-hero .fp-eyebrow { margin-bottom: 22px; }
.fp-hero .fp-eyebrow::after { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .45; }
.fp-hero h1 { margin: 0 auto; max-width: 14ch; color: var(--ink); text-wrap: balance; }
.fp-lede { margin: 20px auto 0; max-width: 520px; color: var(--ink-2); text-wrap: pretty; }
.fp-hero__cta { margin-top: 32px; }
.fp-how { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.fp-how li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: var(--t-small); line-height: 1.2; }
.fp-how .fp-micro { color: var(--red); }

.fp-help { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.fp-card { padding: 36px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fp-card h2 { margin-bottom: 12px; }
.fp-card p { color: var(--ink-2); max-width: 46ch; }
.fp-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fp-card--dark { background: var(--ink); border-color: var(--ink); }
.fp-card--dark h2 { color: #fff; }
.fp-card--dark p { color: rgba(255, 255, 255, .62); }
.fp-card--dark .fp-btn { border-color: rgba(255, 255, 255, .28); color: #fff; }
.fp-card--dark .fp-btn:hover { border-color: #fff; }
.fp-card--dark .fp-btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.fp-faq-wrap { margin: 96px 0 120px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.fp-faq details { border-bottom: 1px solid var(--line); }
.fp-faq details:first-of-type { border-top: 1px solid var(--line); }
.fp-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; font-weight: 450; }
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after { content: '+'; font-family: var(--f-mono); color: var(--ink-3); transition: transform .4s var(--ease); flex: none; }
.fp-faq details[open] summary::after { transform: rotate(45deg); }
.fp-faq details p { margin: 0 0 22px; padding-right: 36px; color: var(--ink-2); max-width: 64ch; }

/* ==========================================================================
   Quote builder (the "Pricing" pop-up) — flat white frame, grey cards, black = selected,
   Action Red only on the selection ring. Type = the site's five roles only.
   ========================================================================== */
.fp-ov, .fp-veil {
  --bg: #fff; --paper: #f5f5f7; --line: rgba(11, 11, 12, .08); --line-2: rgba(11, 11, 12, .16);
}
.fp-ov {
  position: fixed; inset: var(--fp-gap); z-index: 5000; background: #fff; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 32px; box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(26px) scale(.985);
  transition: opacity .45s ease, transform .6s var(--ease), visibility 0s linear .6s;
}
.fp-ov.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .6s var(--ease), visibility 0s; }
.fp-veil {
  position: fixed; inset: 0; z-index: 4999; pointer-events: none; background: rgba(18, 18, 20, .32);
  -webkit-backdrop-filter: blur(34px) saturate(1.3); backdrop-filter: blur(34px) saturate(1.3);
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s;
}
.fp-ov.is-open ~ .fp-veil { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .5s ease, visibility 0s; }
.fp-ov__glow { position: absolute; z-index: 0; left: 50%; top: -220px; width: min(1100px, 140vw); height: 560px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 40%, rgba(255, 49, 49, .07), rgba(255, 49, 49, 0) 70%); filter: blur(10px); }
.fp-ov.is-closing .fp-top, .fp-ov.is-closing .fp-host, .fp-ov.is-closing .fp-act { opacity: 0; transition: opacity .3s ease; }

/* top bar + progress */
.fp-top { position: relative; z-index: 3; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px clamp(18px, 3.4vw, 40px); transition: opacity .5s ease; }
.fp-top__logo { justify-self: start; display: inline-flex; }
.fp-top__logo img { height: 30px; width: auto; filter: invert(1); display: block; }
.fp-top__r { justify-self: end; display: flex; align-items: center; gap: 10px; }
.fp-prog { display: grid; gap: 10px; justify-items: center; min-width: min(300px, 40vw); }
.fp-prog__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.fp-prog__bar i { height: 3px; border-radius: 3px; background: rgba(11, 11, 12, .1); position: relative; overflow: hidden; }
.fp-prog__bar i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.fp-prog__bar i.is-on::after { transform: scaleX(1); }
.fp-prog__t { color: var(--ink-3); white-space: nowrap; }
.fp-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background-color .3s, transform .5s var(--ease); }
.fp-x:hover { background: #ebebee; transform: rotate(90deg); }
.fp-x svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }

/* scroll area + steps */
.fp-scroll { position: relative; z-index: 2; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.fp-host { width: 100%; max-width: 1120px; margin-inline: auto; padding: clamp(20px, 5vh, 56px) clamp(20px, 3.4vw, 44px) 170px; transition: opacity .5s ease; }
.fp-step { opacity: 0; }
.fp-step.is-in { animation: fp-in .8s var(--ease) both; }
.fp-step.is-out { animation: fp-out .23s ease both; pointer-events: none; }
.fp-step h2:focus { outline: none; }
.fp-head { margin-bottom: clamp(28px, 5vh, 48px); max-width: 760px; }
.fp-head .fp-eyebrow { margin-bottom: 18px; }
.fp-head h2 { text-wrap: balance; }
.fp h2 .w { display: inline-block; }
.fp-step.is-in h2 .w { animation: fp-blur 1s var(--ease) backwards; animation-delay: calc(var(--w, 0) * 70ms + 140ms); }
.fp-sub { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }
.fp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the shared selection ring (Ripplecut-style) */
.fp-ring { position: absolute; top: 24px; right: 24px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color .35s, border-color .35s, transform .5s var(--ease); pointer-events: none; z-index: 2; }
.fp-ring svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform .5s var(--ease); }
.fp-svc[aria-pressed="true"] .fp-ring, .fp-plan.is-selected .fp-ring { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.fp-svc[aria-pressed="true"] .fp-ring svg, .fp-plan.is-selected .fp-ring svg { transform: scale(1); }

/* 1 · services */
.fp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fp-svc {
  position: relative; text-align: left; display: flex; flex-direction: column; min-height: 240px; padding: 26px; border-radius: 28px; background: var(--paper);
  transition: transform .6s var(--ease), background-color .4s ease, color .4s ease;
  animation: fp-rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms + 160ms);
}
.fp-svc:hover { transform: translateY(-4px); background: #eeeef1; }
.fp-svc__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--ink); transition: background-color .4s, color .4s; }
.fp-svc__ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fp-svc h3 { margin-top: auto; padding-top: 28px; }
.fp-svc__from { margin-top: 8px; font-size: var(--t-small); color: var(--ink-2); transition: color .4s; }
.fp-svc__from b { font-weight: 450; color: var(--ink); transition: color .4s; }
.fp-svc[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fp-svc[aria-pressed="true"]:hover { background: #1b1b1e; }
.fp-svc[aria-pressed="true"] .fp-svc__ico { background: rgba(255, 255, 255, .12); color: #fff; }
.fp-svc[aria-pressed="true"] .fp-svc__from, .fp-svc[aria-pressed="true"] .fp-svc__from b { color: rgba(255, 255, 255, .72); }
.fp-svc[aria-pressed="true"] .fp-svc__from b { color: #fff; }

/* 2 · details (flat — no card, sits directly on the page) */
.fp-flat { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; max-width: 860px; }
.fp-ln { display: grid; gap: 8px; }
.fp-ln > span { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 450; transition: color .3s; }
.fp-ln:focus-within > span { color: var(--ink); }
.fp-ln input, .fp-ln textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 8px 0 14px; font: inherit;
  font-size: var(--t-sub); line-height: 1.25; letter-spacing: var(--fa-subtitle-ls, -.02em); color: var(--ink); transition: border-color .3s; resize: none;
}
.fp-ln textarea { font-size: var(--t-body); letter-spacing: 0; }
.fp-ln input::placeholder, .fp-ln textarea::placeholder { color: rgba(11, 11, 12, .26); }
.fp-ln input:focus, .fp-ln textarea:focus { outline: none; border-bottom-color: var(--ink); }
.fp-ln.is-bad input, .fp-ln.is-bad textarea { border-bottom-color: var(--red); }
.fp-flat .fp-status { grid-column: 1 / -1; }
.fp-status { min-height: 22px; font-size: var(--t-small); color: var(--ink-3); line-height: 1.4; }
.fp-status a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.fp-status.is-err { color: #d41c1c; }

/* 3 · plans + add-ons */
.fp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.fp-tab { height: 44px; padding: 0 18px; border-radius: 99px; background: var(--paper); display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-small); font-weight: 450; transition: background-color .35s, color .35s; }
.fp-tab:hover { background: #ebebee; }
.fp-tab.is-on { background: var(--ink); color: #fff; }
.fp-tab__d { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .35s; }
.fp-tab.is-on .fp-tab__d { background: rgba(255, 255, 255, .4); }
.fp-tab__d.is-done { background: var(--red) !important; }
.fp-panel { transition: opacity .17s ease; }
.fp-panel.is-swap { opacity: 0; }
.fp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: stretch; }
.fp-plans--one { grid-template-columns: minmax(0, 420px); }
.fp-plan {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--paper);
  transition: transform .6s var(--ease), background-color .45s ease, color .45s ease;
  animation: fp-rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
.fp-plan:hover { transform: translateY(-4px); background: #eeeef1; }
.fp-plan__pick { position: absolute; inset: 0; border-radius: inherit; z-index: 1; cursor: pointer; }
.fp-plan__pick:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.fp-plan__tag { min-height: 26px; margin-bottom: 12px; }
.fp-plan__top { padding-right: 40px; }
.fp-badge { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--ink); white-space: nowrap; font-weight: 450; transition: background-color .4s, color .4s; }
.fp-plan__price { margin-top: 20px; display: grid; gap: 8px; }
.fp-plan__amt { font-size: var(--t-title); line-height: 1; letter-spacing: var(--fa-title-ls, -.03em); font-weight: 400; }
.fp-plan__unit { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .02em; font-weight: 450; color: var(--ink-3); transition: color .4s; }
.fp-plan__sum { margin-top: 18px; color: var(--ink-2); font-size: var(--t-small); line-height: 1.55; transition: color .4s; text-wrap: pretty; }
.fp-feats { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.fp-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-small); line-height: 1.4; }
.fp-feats svg { flex: none; width: 15px; height: 15px; margin-top: 2px; stroke: var(--red); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fp-feats li.is-extra { display: none; }
.fp-plan.is-open .fp-feats li.is-extra { display: flex; }
.fp-more { position: relative; z-index: 2; margin-top: 14px; align-self: flex-start; font-size: var(--t-small); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); padding: 2px 0; transition: color .2s; }
.fp-more:hover { color: var(--ink); }
.fp-plan.is-selected { background: var(--ink); color: #fff; transform: translateY(-4px); }
.fp-plan.is-selected .fp-badge { background: rgba(255, 255, 255, .14); color: #fff; }
.fp-plan.is-selected .fp-plan__unit { color: rgba(255, 255, 255, .5); }
.fp-plan.is-selected .fp-plan__sum, .fp-plan.is-selected .fp-more { color: rgba(255, 255, 255, .7); }
.fp-plan.is-selected .fp-feats svg { stroke: #fff; }

.fp-addons { margin-top: 56px; scroll-margin-top: 96px; }
.fp-addons__t { color: var(--ink); margin-bottom: 16px; }
.fp-addons__t span { color: var(--ink-3); margin-left: 8px; }
.fp-addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fp-addon {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; padding: 18px 20px; border-radius: 20px; background: var(--paper);
  transition: background-color .35s, box-shadow .35s, transform .5s var(--ease);
  animation: fp-rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms + 100ms);
}
.fp-addon:hover { background: #eeeef1; }
.fp-addon__name { flex: 1; min-width: 0; font-size: var(--t-body); font-weight: 450; line-height: 1.3; }
.fp-addon__price { flex: none; font-size: var(--t-small); color: var(--ink-2); }
.fp-switch { flex: none; width: 46px; height: 28px; border-radius: 99px; background: #d8d8dd; position: relative; transition: background-color .3s ease; }
.fp-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .5s var(--ease); }
.fp-addon[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.fp-addon[aria-pressed="true"] .fp-switch { background: var(--ink); }
.fp-addon[aria-pressed="true"] .fp-switch::after { transform: translateX(18px); }

/* 4 · review & send */
.fp-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.fp-list { display: grid; gap: 12px; }
.fp-item { padding: 22px 26px; border-radius: 24px; background: var(--paper); animation: fp-rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
.fp-item__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fp-item__h .fp-micro { color: var(--ink-3); }
.fp-item__acts { display: flex; gap: 14px; }
.fp-link { font-size: var(--t-small); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: color .2s; padding: 2px 0; }
.fp-link:hover { color: var(--ink); }
.fp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--t-body); }
.fp-item .fp-row:first-of-type { border-top: 0; padding-top: 4px; }
.fp-row--sub { font-size: var(--t-small); color: var(--ink-2); padding: 8px 0; }
.fp-row .v { white-space: nowrap; font-weight: 450; }
.fp-total { position: sticky; top: 8px; padding: 28px; border-radius: 28px; background: var(--ink); color: #fff; animation: fp-rise .9s var(--ease) backwards .2s; }
.fp-total .fp-row { border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .72); padding: 10px 0; }
.fp-total .fp-row:first-of-type { border-top: 0; padding-top: 0; }
.fp-total__big { display: grid; gap: 8px; padding-top: 18px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
.fp-total__big span { color: rgba(255, 255, 255, .6); font-size: var(--t-small); }
.fp-total__big b { font-size: var(--t-title); line-height: 1; letter-spacing: var(--fa-title-ls, -.03em); font-weight: 400; word-break: break-word; }
.fp-total .fp-btn { width: 100%; margin-top: 24px; }
.fp-send { display: grid; gap: 18px; padding: 10px 4px 0; }
.fp-send__to { font-size: var(--t-small); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fp-send__to .fp-micro { color: var(--ink-3); width: 100%; }
.fp-send__to b { font-weight: 450; color: var(--ink); }

/* buttons used inside the pop-up */
.fp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.fp-btn--ghost:hover { border-color: #fff; }

/* done / errors / skeleton */
.fp-done { text-align: center; padding-top: clamp(24px, 9vh, 100px); }
.fp-done h2 { margin-bottom: 4px; }
.fp-done__tick { width: 76px; height: 76px; margin: 0 auto 28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; animation: fp-pop .8s var(--ease) backwards .1s; }
.fp-done__tick svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: fp-draw .7s var(--ease) forwards .5s; }
.fp-done .qn { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 99px; background: var(--paper); color: var(--ink-2); }
.fp-done .fp-sub { margin-inline: auto; }
.fp-done .fp-btn-row { justify-content: center; margin-top: 30px; }
.fp-skel { min-height: 240px; border-radius: 28px; background: linear-gradient(100deg, #f1f1f3 30%, #f8f8fa 50%, #f1f1f3 70%) 0 0 / 200% 100%; animation: fp-shimmer 1.4s linear infinite; }
.fp-error { padding: 44px 28px; border-radius: 28px; background: var(--paper); text-align: center; max-width: 620px; margin-inline: auto; }
.fp-error h3 { margin-bottom: 10px; }
.fp-error p { margin: 0 auto 24px; max-width: 44ch; color: var(--ink-2); }
.fp-error .fp-btn-row { justify-content: center; margin-top: 0; }

/* floating action pill (Ripplecut-style) */
.fp-act {
  position: absolute; z-index: 4; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(680px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: 99px; color: #fff;
  background: rgba(12, 12, 14, .92); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: fp-pill .8s var(--ease) backwards; transition: opacity .5s ease;
}
.fp-act[hidden] { display: none !important; }
.fp-act__back { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: background-color .3s, transform .45s var(--ease); }
.fp-act__back:hover { background: rgba(255, 255, 255, .18); transform: translateX(-2px); }
.fp-act__back svg, .fp-act__next svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fp-act__info { flex: 1; min-width: 0; display: grid; gap: 2px; padding-left: 10px; }
.fp-act__info[hidden] { display: none; }
.fp-act__k { color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-act__info b { font-size: var(--t-body); font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.fp-act__next { flex: none; margin-left: auto; height: 48px; padding: 0 24px; border-radius: 99px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-body); font-weight: 450; transition: transform .4s var(--ease), opacity .3s, background-color .3s; }
.fp-act__next:not(:disabled):hover svg { transform: translateX(3px); }
.fp-act__next:not(:disabled):active { transform: scale(.98); }
.fp-act__next svg { transition: transform .45s var(--ease); }
.fp-act__next:disabled { opacity: .35; cursor: not-allowed; }
.fp-act :is(button):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* the "crafting your plans" moment */
.fp-loader { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: #fff; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.fp-ov.is-loading .fp-loader { opacity: 1; pointer-events: auto; }
.fp-loader__in { display: grid; justify-items: center; gap: 22px; padding: 24px; text-align: center; transform: translateY(8px); transition: transform .8s var(--ease); }
.fp-ov.is-loading .fp-loader__in { transform: none; }
.fp-loader p { color: var(--ink-2); }
.fp-spin { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(11, 11, 12, .1); border-top-color: var(--ink); animation: fp-spin .85s linear infinite; }
.fp-line { width: min(240px, 60vw); height: 2px; border-radius: 2px; background: rgba(11, 11, 12, .08); position: relative; overflow: hidden; }
.fp-line::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.fp-ov.is-loading .fp-line::after { animation: fp-fill 1.7s cubic-bezier(.65, 0, .35, 1) forwards; }
.fp-ov.is-loading .fp-top, .fp-ov.is-loading .fp-act { opacity: 0; pointer-events: none; }
.fp-ov.is-loading .fp-host { opacity: 0; }

/* motion */
@keyframes fp-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fp-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fp-blur { from { opacity: 0; filter: blur(12px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fp-pill { from { opacity: 0; transform: translateX(-50%) translateY(26px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes fp-pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fp-spin { to { transform: rotate(360deg); } }
@keyframes fp-fill { to { transform: scaleX(1); } }
@keyframes fp-draw { to { stroke-dashoffset: 0; } }
@keyframes fp-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .fp *, .fp *::before, .fp *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .fp-ov.is-loading .fp-line::after { animation-duration: 1.7s !important; }
  .fp-spin { animation-duration: 1.2s !important; }
}

/* responsive */
@media (max-width: 980px) {
  .fp-cards { grid-template-columns: 1fr; gap: 10px; }
  .fp-svc { min-height: 0; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 2px; align-items: center; padding: 18px 64px 18px 18px; border-radius: 24px; }
  .fp-svc__ico { grid-row: 1 / span 2; }
  .fp-svc h3 { margin: 0; padding: 0; }
  .fp-svc__from { margin: 0; }
  .fp-svc .fp-ring { top: 50%; right: 20px; margin-top: -13px; }
  .fp-help, .fp-faq-wrap, .fp-two { grid-template-columns: 1fr; }
  .fp-faq-wrap { gap: 24px; margin: 72px 0 96px; }
  .fp-addon-grid { grid-template-columns: 1fr; }
  .fp-total { position: static; }
}
@media (max-width: 720px) {
  .fp-ov { border-radius: 26px; }
  .fp-top { grid-template-columns: auto 1fr; grid-template-rows: auto auto; row-gap: 12px; padding: 14px 16px 8px; }
  .fp-top__r { grid-column: 2; grid-row: 1; }
  .fp-prog { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; }
  .fp-top__logo img { height: 26px; }
  .fp-flat { grid-template-columns: 1fr; gap: 26px; }
  .fp-plan { padding: 24px; border-radius: 24px; }
  .fp-plans { grid-template-columns: 1fr; }
  .fp-act { gap: 8px; padding: 7px; width: calc(100% - 24px); bottom: max(14px, env(safe-area-inset-bottom)); }
  .fp-act__back { width: 44px; height: 44px; }
  .fp-act__next { height: 44px; padding: 0 20px; }
  .fp-act__info { padding-left: 6px; }
  .fp-host { padding-bottom: 150px; }
  .fp-hero { padding: 132px 0 56px; }
  .fp-wrap { padding-inline: 16px; }
  .fp-card { padding: 28px 24px; border-radius: 24px; }
  .fp-how { margin-top: 40px; }
}

/* the step being left collapses into the back button (a frozen copy on top) */
.fp-ghost { position: absolute; z-index: 2; overflow: hidden; background: #fff; pointer-events: none; }
.fp-ghost *, .fp-ghost *::before, .fp-ghost *::after { animation: none !important; transition: none !important; }
.fp-ghost .fp-step { opacity: 1 !important; }
