/* Framelift Studio: the free-sample form and the payment-method row. Colours come from the band the form sits in
   (--muted, --line, --focus), so one form works on the ink hero, the clay and sea bands and the paper pages. */
.band { --err: #9F2A1C; --field: #FFFFFF; --field-line: rgb(14 26 43 / 0.28); }
:is(.band-dark, .band-slate, .band-clay, .band-sea) { --err: #FFB9AE; --field: rgb(255 255 255 / 0.07); --field-line: rgb(255 255 255 / 0.34); }

.intake { max-width: 600px; text-align: left; }
.intake-label { display: block; font-size: 15px; line-height: 22px; font-weight: 600; margin: 0 0 8px; }
.intake-opt { font-weight: 400; color: var(--muted); }
.intake-row { display: flex; flex-direction: column; gap: 10px; }
.intake-input {
  width: 100%; min-height: 52px; padding: 14px 20px; border-radius: var(--pill);
  border: 1px solid var(--field-line); background: var(--field); color: inherit;
  font: 400 16px/22px var(--sans); transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.intake-input::placeholder { color: var(--muted); opacity: 0.8; }
.intake-input:hover { border-color: currentColor; }
.intake-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: transparent; }
.intake-input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.intake-row .btn { width: 100%; }
.page-hero .intake .btn, .intake .btn { margin-top: 0; }
.intake .btn[disabled] { opacity: 0.7; cursor: progress; }
@media (min-width: 600px) {
  .intake-row { flex-direction: row; align-items: stretch; gap: 8px; }
  .intake-row .intake-input { flex: 1 1 auto; min-width: 0; }
  .intake-row .btn { width: auto; flex: 0 0 auto; }
}
.intake-msg { margin: 8px 0 0; min-height: 0; font-size: 14px; line-height: 20px; }
.intake-msg:empty { display: none; }
.intake-msg.is-error { color: var(--err); }
.intake-fields { display: grid; gap: 14px; }
@media (min-width: 600px) { .intake-full .intake-fields, .intake-compact .intake-fields { grid-template-columns: 1fr 1fr; } }
.intake-field { margin: 0 0 14px; }
.intake-fields .intake-field { margin: 0; }
.intake-for { font-size: 15px; line-height: 22px; margin: 0 0 14px; color: var(--muted); overflow-wrap: anywhere; }
.intake-for strong { color: inherit; font-weight: 600; filter: brightness(1.2); }
.intake-change {
  margin-left: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em;
}
.intake-actions { margin: 16px 0 0; }
.intake-actions .btn { width: 100%; }
@media (min-width: 600px) { .intake-actions .btn { width: auto; } }
.intake-trust { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.intake-trust a, .intake-back a { color: inherit; }
.intake-back { margin: 16px 0 0; font-size: 14px; }
.intake-done { padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--field); border-radius: 4px; }
.intake-done:focus { outline: none; }
.intake-done:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.intake-done p { margin: 0; font-size: 16px; line-height: 24px; }
.intake-done .intake-done-title { font-weight: 600; margin-bottom: 4px; }
.intake-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* where the form sits */
.hero-actions .intake { margin-top: 0; }
.hero-copy .intake { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .hero-copy .intake { margin-left: 0; } }
.duo-actions .intake { max-width: 560px; }
.intake-page .intake { margin-top: 40px; }
.intake-page .page-lead { max-width: 680px; }

/* payment methods: small marks, grey until hovered */
.paymethods { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 32px 0 0; }
.prose .paymethods, .prose .pm-list { justify-content: flex-start; }
.prose .paymethods { margin-top: 40px; }
.pm-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pm-list li { display: block; }
.pm-mark { display: block; width: 48px; height: 32px; filter: grayscale(1); opacity: 0.72; transition: filter 150ms var(--ease), opacity 150ms var(--ease); }
.paymethods:hover .pm-mark { filter: none; opacity: 1; }
.plan-vat { margin: -4px 0 12px; font-size: 14px; line-height: 20px; }
@media (prefers-reduced-motion: reduce) { .pm-mark, .intake-input { transition: none; } }

/* ---------- the band button and the sample dialog (Alex 30.10 16:57) ---------- */
/* the button with its trust line beside it, vertically centred (Alex 30.10 18:01); below it only on narrow phones */
.intake-cta { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.intake-cta .btn { min-height: 56px; padding: 18px 32px; font-size: 16px; line-height: 20px; flex: none; }
.intake-cta .intake-trust { margin: 0; white-space: nowrap; }
@media (min-width: 1024px) { .hero-copy .intake-cta, .duo-actions .intake-cta { justify-content: flex-start; } }
@media (max-width: 419px) { .intake-cta { flex-direction: column; } .hero-actions .intake-cta .btn { width: 100%; } }

.sdlg {
  --muted: var(--ink-70); --line: var(--ink-16); --focus: var(--ink); --err: #9F2A1C;
  --field: #FFFFFF; --field-line: rgb(14 26 43 / 0.22);
  width: min(600px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto;
  padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -24px rgb(6 12 22 / 0.55), 0 0 0 1px rgb(14 26 43 / 0.06); overflow: auto;
}
.sdlg::backdrop { background: rgb(8 16 28 / 0.52); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); }
.sdlg-card { padding: 28px 40px 40px; }
.sdlg-top { display: flex; align-items: center; justify-content: space-between; margin: 0 -12px 14px 0; }
.sdlg-count { margin: 0; font-size: 13px; line-height: 18px; letter-spacing: 1.4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sdlg-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background 150ms var(--ease); }
.sdlg-x:hover { background: rgb(14 26 43 / 0.07); }
.sdlg-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sdlg-progress { height: 3px; border-radius: 3px; background: rgb(14 26 43 / 0.10); overflow: hidden; margin: 0 0 32px; }
.sdlg-bar { display: block; height: 100%; width: 50%; background: var(--ink); border-radius: inherit; transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.sdlg[data-stage="2"] .sdlg-bar, .sdlg[data-stage="done"] .sdlg-bar { width: 100%; }
.sdlg[data-stage="done"] .sdlg-bar { background: #2F7A55; }
.sdlg-title { font: 400 40px/44px var(--sans); letter-spacing: -0.6px; margin: 0 0 10px; }
.sdlg-lead { margin: 0 0 32px; font-size: 17px; line-height: 26px; color: var(--muted); max-width: 460px; }
.sdlg:is([data-stage="2"], [data-stage="done"]) .sdlg-lead { display: none; }
.sdlg[data-stage="done"] :is(.sdlg-title, .intake-trust) { display: none; }
.sdlg-title em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: calc(100% + 4px); letter-spacing: 0; }
button.btn { border: 0; cursor: pointer; }

.intake-dialog { max-width: none; }
.intake-dialog .intake-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.intake-dialog [data-step="1"] .intake-row { flex-direction: column; gap: 14px; }
.intake-dialog [data-step="1"] .intake-input {
  min-height: 68px; padding: 18px 24px; border-radius: 16px; font-size: 22px; line-height: 30px; letter-spacing: -0.2px;
}
.intake-dialog .intake-input { border-radius: 14px; min-height: 56px; }
.intake-dialog .intake-input:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(14 26 43 / 0.10); }
.intake-dialog .intake-input[aria-invalid="true"] { box-shadow: 0 0 0 1px var(--err); }
.intake-dialog .btn { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.intake-next { gap: 10px; align-self: flex-end; }
.intake-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease); }
.intake-next:hover .intake-arrow { transform: translateX(3px); }
.intake-q { font: 400 26px/32px var(--sans); letter-spacing: -0.3px; margin: 0 0 8px; }
.intake-dialog .intake-fields { grid-template-columns: 1fr; gap: 16px; }
.intake-dialog .intake-actions .btn { width: 100%; }
.intake-dialog .intake-trust { margin-top: 20px; }
.intake-dialog .intake-done { border: 0; background: none; padding: 8px 0 0; text-align: left; }
.intake-dialog .intake-done-title { font: 400 32px/38px var(--sans); margin: 18px 0 8px; }
.intake-dialog .intake-done p { font-size: 17px; line-height: 26px; }
.intake-check { width: 56px; height: 56px; display: block; }
.ic-ring { fill: none; stroke: #2F7A55; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.ic-tick { fill: none; stroke: #2F7A55; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.intake-done:not([hidden]) .ic-ring { animation: ic-draw 520ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.intake-done:not([hidden]) .ic-tick { animation: ic-draw 360ms cubic-bezier(0.65, 0, 0.35, 1) 380ms forwards; }
@keyframes ic-draw { to { stroke-dashoffset: 0; } }
@media (min-width: 640px) {
  .intake-dialog [data-step="1"] .intake-row { flex-direction: row; align-items: stretch; }
  .intake-dialog [data-step="1"] .intake-input { flex: 1 1 auto; }
  .intake-next { align-self: auto; }
}

/* open: a quick scale and fade with a spring-like overshoot; close: a short fade */
.sdlg[open] { animation: sdlg-in 220ms cubic-bezier(0.34, 1.4, 0.64, 1); }
.sdlg[open]::backdrop { animation: sdlg-fade 200ms ease-out; }
.sdlg.is-closing { animation: sdlg-out 170ms ease-in forwards; }
.sdlg.is-closing::backdrop { animation: sdlg-fade 170ms ease-in reverse forwards; }
@keyframes sdlg-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes sdlg-out { to { opacity: 0; transform: translateY(4px) scale(0.98); } }
@keyframes sdlg-fade { from { opacity: 0; } to { opacity: 1; } }

/* phones: a bottom sheet that slides up */
@media (max-width: 639px) {
  .sdlg { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sdlg-card { padding: 12px 22px calc(28px + env(safe-area-inset-bottom)); }
  .sdlg-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: rgb(14 26 43 / 0.18); margin: 0 auto 10px; }
  .sdlg-title { font-size: 30px; line-height: 36px; }
  .sdlg-lead { font-size: 16px; line-height: 24px; margin-bottom: 24px; }
  .sdlg-progress { margin-bottom: 24px; }
  .intake-dialog [data-step="1"] .intake-input { font-size: 19px; min-height: 60px; }
  .intake-next { width: 100%; }
  .sdlg[open] { animation: sheet-in 300ms cubic-bezier(0.22, 1, 0.36, 1); }
  .sdlg.is-closing { animation: sheet-out 170ms ease-in forwards; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .sdlg[open], .sdlg[open]::backdrop, .sdlg.is-closing, .sdlg.is-closing::backdrop { animation: none; }
  .sdlg-bar, .intake-arrow { transition: none; }
  .ic-ring, .ic-tick { stroke-dashoffset: 0; }
  .intake-done:not([hidden]) .ic-ring, .intake-done:not([hidden]) .ic-tick { animation: none; }
}

/* ---------- the partner-referral question (EEA, UK, CH) and the language banner ---------- */
.refbar, .langbar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto;
  padding: 18px 20px; border-radius: 16px; background: var(--ink); color: var(--paper);
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.5); display: grid; gap: 12px;
}
.refbar p, .langbar p { margin: 0; font-size: 15px; line-height: 22px; }
.refbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.refbar .btn, .langbar .btn { min-height: 44px; padding: 10px 18px; }
.btn-ghost-dark { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper-18); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.langbar { grid-template-columns: 1fr auto; align-items: center; }
.langbar a { color: var(--gold); font-weight: 600; }
.langbar-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.langbar-x:hover { background: rgb(255 255 255 / 0.08); }
.langbar-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- client login (/account/) ---------- */
.acct-form { margin-top: 40px; }
.acct-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.acct-note a { color: inherit; }
.acct-list { margin: 40px 0 0; display: grid; gap: 10px; max-width: 760px; }
.acct-link { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 14px;
  background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: background 150ms var(--ease); }
.acct-link:hover { background: rgb(255 255 255 / 0.11); }
.acct-kind { font-size: 12px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.acct-title { font-size: 18px; line-height: 24px; overflow-wrap: anywhere; }
.acct-date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.acct-out { margin-top: 32px; }
@media (max-width: 599px) { .acct-link { grid-template-columns: 1fr; gap: 4px; } }
/* the page-hero button margin must not push the button below its trust line (SEO page heroes) */
.page-hero .intake-cta { margin-top: 40px; }
.page-hero .intake-cta .btn { margin-top: 0; }
