/* FormsPal AI Document Generator - widget styles.
   Design system shared with the FormsPal landing pages
   ("Document AI generation landing" project): light theme, flat green,
   white cards on #f7f9fb, hairline #e3e8ee borders, system font. */

.fpai, .fpai * { box-sizing: border-box; }

.fpai {
  --primary: #0e8a5f;
  --primary-dark: #0b6e4c;
  --primary-light: #e6f4ee;
  --warm: #f5a623;
  --warm-bg: #fff7e8;
  --warm-ink: #9a6700;
  --ink: #1c2530;
  --ink-soft: #51606f;
  --faint: #8b98a5;
  --line: #e3e8ee;
  --bg: #f7f9fb;
  --white: #ffffff;
  --danger: #d64545;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(16, 38, 30, 0.08);
  --c-pdf: #c1574f;
  --c-doc: #5d88bd;
  --paper: #ffffff;
  --paper-ink: #1c2530;
  --paper-line: #9aa4af;
  --paper-th: #f7f9fb;
  --font-paper: Georgia, "Times New Roman", serif;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1080px;
  margin: 0 auto;
  overflow: clip;
  position: relative;
  line-height: 1.55;
}

/* ---------- dark theme ----------
   Same design system, translated: greens brightened one step for contrast on
   dark surfaces; the document sheet itself stays paper-white in both themes
   so the preview always matches the file users download. */
.fpai[data-theme="dark"] {
  --primary: #16a571;
  --primary-dark: #34c188;      /* hover/text accents lighten on dark */
  --primary-light: #143323;     /* green tint surfaces */
  --warm: #f5a623;
  --warm-bg: #2c2310;
  --warm-ink: #e9c46a;
  --ink: #f2f5f7;
  --ink-soft: #aab5bf;
  --faint: #7e8893;
  --line: #2a3036;
  --bg: #15181b;
  --white: #1e2329;             /* card/control surfaces (token name kept) */
  --danger: #f87171;
  --shadow: 0 4px 20px rgba(0, 0, 0, .45);
  --paper: #fcfbf6;
  --paper-th: #f0f2ee;
}
.fpai[data-theme="dark"] .fpai-error {
  background: #34201f; border-color: #5c302e;
}
.fpai[data-theme="dark"] .fpai-legal { border-color: #4a3a14; }

/* ---------- header ---------- */
.fpai-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.fpai-mark { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; }
.fpai-mark svg { width: 30px; height: 30px; }
.fpai-brandname { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.fpai-brandname em { font-style: normal; color: var(--primary); }
.fpai-tagline { font-size: 13px; color: var(--ink-soft); margin-left: 2px; }
.fpai-themetoggle {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  transition: border-color .12s ease;
}
.fpai-themetoggle:hover { border-color: var(--primary); }
.fpai-themetoggle:focus-visible { outline: 3px solid rgba(14, 138, 95, .3); outline-offset: 1px; }
.fpai-themetoggle svg { width: 17px; height: 17px; }
.fpai-themetoggle .fpai-sun { display: none; stroke: var(--warm); }
.fpai-themetoggle .fpai-moon { display: block; stroke: var(--primary); }
.fpai[data-theme="dark"] .fpai-themetoggle .fpai-sun { display: block; }
.fpai[data-theme="dark"] .fpai-themetoggle .fpai-moon { display: none; }

.fpai-body { padding: 22px; }

/* ---------- shared bits ---------- */
.fpai button { font: inherit; cursor: pointer; }
.fpai .fpai-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--primary); color: #fff;
  border: 0; border-radius: 10px;
  padding: 14px 28px; font-size: 16px; font-weight: 700;
  transition: background .15s ease, transform .1s ease;
}
.fpai .fpai-btn svg { width: 16px; height: 16px; stroke: #fff; flex: none; }
.fpai .fpai-btn:hover { background: var(--primary-dark); }
.fpai .fpai-btn:active { transform: scale(.98); }
.fpai .fpai-btn:focus-visible { outline: 3px solid rgba(14, 138, 95, .3); outline-offset: 2px; }
.fpai .fpai-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.fpai .fpai-btn-ghost {
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font-size: 14px; font-weight: 600;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.fpai .fpai-btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }
.fpai .fpai-error {
  background: #fdf1f1; border: 1px solid #f0c7c7; color: var(--danger);
  border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: 14px; display: none;
}
.fpai .fpai-quota { font-size: 13px; color: var(--ink-soft); }
.fpai .fpai-quota a { color: var(--primary); }

/* ---------- state A: input ---------- */
.fpai-types { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.fpai-chip {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 17px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
}
.fpai-chip:hover { border-color: var(--primary); }
.fpai-chip:focus-visible { outline: 3px solid rgba(14, 138, 95, .3); outline-offset: 1px; }
.fpai-chip[aria-pressed="true"] {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark);
}
.fpai-morechip { border-style: dashed; color: var(--ink-soft); font-weight: 600; }
.fpai-morechip:hover { color: var(--primary-dark); }

/* per-type guided fields */
.fpai-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.fpai-fields:not(:empty) { margin: 0 0 14px; }
.fpai-fields-label {
  flex-basis: 100%; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--faint); margin-bottom: -2px;
}
.fpai-field { display: flex; flex-direction: column; gap: 5px; }
.fpai-field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.fpai-field input, .fpai-field select {
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px;
  width: 210px; transition: border-color .12s ease;
}
.fpai-field select { width: auto; min-width: 170px; }
.fpai-field input::placeholder { color: var(--faint); }
.fpai-field input:focus, .fpai-field select:focus { outline: none; border-color: var(--primary); }

.fpai-promptwrap { position: relative; }
.fpai textarea.fpai-prompt {
  width: 100%; min-height: 124px; resize: vertical;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 14px 42px;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--white);
  transition: border-color .12s ease;
}
.fpai textarea.fpai-prompt::placeholder { color: var(--faint); }
.fpai textarea.fpai-prompt:focus { outline: none; border-color: var(--primary); }
.fpai .fpai-example {
  position: absolute; right: 13px; bottom: 13px;
  background: none; border: 0; color: var(--primary); font-size: 13.5px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.fpai .fpai-example:hover { color: var(--primary-dark); }

.fpai-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 4px; align-items: center; }
.fpai-options label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.fpai-options select {
  font: inherit; font-size: 14.5px; padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--white); color: var(--ink);
}
.fpai-options select:focus { outline: none; border-color: var(--primary); }

.fpai-actionrow { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.fpai-formats { display: inline-flex; align-items: center; gap: 5px; }
.fpai-filetag { display: inline-flex; }
.fpai-fileico {
  display: inline-block; font-style: normal; font-weight: 700; font-size: 9.5px; color: #fff;
  padding: 4px 6px 3px; border-radius: 4px; letter-spacing: .03em; line-height: 1;
}
.fpai-fileico-pdf { background: var(--c-pdf); }
.fpai-fileico-doc { background: var(--c-doc); }
.fpai-formatslabel { font-size: 13px; color: var(--ink-soft); margin-left: 3px; }
.fpai-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.fpai-trust span { font-size: 13.5px; color: var(--ink-soft); }
.fpai-trust span::before { content: "✓ "; color: var(--primary); font-weight: 800; }

/* ---------- state B: workspace ---------- */
.fpai-workspace { display: none; grid-template-columns: 320px 1fr; gap: 18px; }
.fpai-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fpai-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.fpai-panel h4 {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-soft);
}
.fpai-refinechips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.fpai-refinechips button {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
}
.fpai-refinechips button:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.fpai textarea.fpai-refine {
  width: 100%; min-height: 64px; resize: vertical; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px; font: inherit; font-size: 14px;
  background: var(--white); color: var(--ink);
}
.fpai textarea.fpai-refine::placeholder { color: var(--faint); }
.fpai textarea.fpai-refine:focus { outline: none; border-color: var(--primary); }
.fpai .fpai-applybtn { margin-top: 10px; width: 100%; justify-content: center; padding: 11px 18px; font-size: 15px; }
.fpai-turnstile:not(:empty) { margin-top: 12px; }
.fpai-next { border-color: var(--primary); }
.fpai-next h4 { color: var(--primary-dark); }
.fpai-nextlink {
  display: block; width: 100%; text-align: center; margin-bottom: 8px;
  text-decoration: none; box-sizing: border-box;
}
.fpai-nextnote { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.fpai-legal {
  background: var(--warm-bg);
  border: 1px solid #f0dcae;
  border-left: 4px solid var(--warm);
  color: var(--warm-ink);
  border-radius: 10px; padding: 11px 13px; font-size: 13px; line-height: 1.5; display: none;
}
.fpai-legal a { color: inherit; font-weight: 700; }

.fpai-main { min-width: 0; position: relative; }

/* ---------- "fold & file" download celebration ---------- */
.fpai-fold {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.fpai-fold-scene { position: relative; width: 240px; height: 300px; perspective: 700px;
  animation: fpai-fold-exit .55s ease-in 1.5s both; }
@keyframes fpai-fold-exit { to { transform: translateY(120px) rotate(6deg) scale(.8); opacity: 0; } }
.fpai-fold-page {
  position: absolute; inset: 0; margin: auto; width: 206px; height: 268px;
  background: var(--paper); border-radius: 4px; box-shadow: var(--shadow), 0 14px 34px rgba(16, 38, 30, .18);
  padding: 26px 22px; transform-origin: 50% 62%;
  animation: fpai-fold-shrink .85s cubic-bezier(.55, 0, .4, 1) .05s both;
}
.fpai-fold-page i { display: block; height: 8px; border-radius: 4px; background: #e8ecf0; margin-bottom: 11px; }
.fpai-fold-page i:first-child { width: 58%; height: 13px; margin-bottom: 15px; background: #dde3e9; }
.fpai-fold-page i:nth-child(4) { width: 84%; }
.fpai-fold-page i:last-child { width: 65%; }
@keyframes fpai-fold-shrink {
  55% { opacity: 1; }
  100% { transform: scale(.66, .34); opacity: 0; }
}
.fpai-fold-env {
  position: absolute; left: 50%; top: 56%; width: 170px; height: 110px; margin: -55px 0 0 -85px;
  background: var(--paper); border-radius: 9px;
  box-shadow: var(--shadow), inset 0 0 0 1.5px var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  animation: fpai-fold-envin .45s cubic-bezier(.2, .9, .3, 1.25) .68s both;
  overflow: hidden;
}
@keyframes fpai-fold-envin { from { transform: scale(.35) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.fpai-fold-env .fpai-mark { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.fpai-fold-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 1;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transform: rotateX(86deg);
  animation: fpai-fold-flapclose .42s ease-out 1.02s both;
}
@keyframes fpai-fold-flapclose { to { transform: rotateX(0); } }
.fpai-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(8px);
  font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap;
  background: var(--primary);
  border-radius: 999px; padding: 9px 18px; opacity: 0;
  box-shadow: var(--shadow);
  animation: fpai-toast-in .35s ease-out 1.55s both;
}
@keyframes fpai-toast-in { to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- toolbar ---------- */
.fpai-toolbar {
  /* nowrap so a long doc title ellipsizes (it has flex-shrink) instead of
     bumping the export buttons onto a second row; the phone layout below
     switches this to a 2-col grid. */
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 13px; margin-bottom: 14px;
}
.fpai-toolbar .fpai-doctitle {
  /* Absorb the slack and ellipsize when the row is tight, so the export
     controls never wrap to a second line (esp. the narrow ~600px main column
     on tablet-landscape, where a 320px refine sidebar steals the width). */
  flex: 1 1 auto; min-width: 0; margin-right: 4px;
  font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.fpai-toolbar .fpai-status, .fpai-toolbar .fpai-wordcount,
.fpai-toolbar .fpai-copy, .fpai-toolbar .fpai-docx,
.fpai-toolbar .fpai-pdf { flex: none; }
.fpai-status {
  display: none; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 999px; padding: 5px 12px;
}
.fpai-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  animation: fpai-pulse 1.1s ease-in-out infinite;
}
@keyframes fpai-pulse { 50% { opacity: .35; transform: scale(.8); } }
.fpai-writing .fpai-status { display: inline-flex; }
.fpai-wordcount { font-size: 13px; color: var(--ink-soft); margin-right: 4px; font-variant-numeric: tabular-nums; }
.fpai-toolbar .fpai-pdf { padding: 9px 16px; font-size: 14px; }

/* ---------- document ----------
   The page sits directly on the widget background - no framed "desk"
   container behind it (single background). */
.fpai-paperwrap {
  max-height: 720px; overflow: auto;
  padding: 4px 4px 26px;
  /* both-edges keeps the centered paper truly centered when a classic
     (space-taking) scrollbar appears, instead of nudging it left. */
  scrollbar-gutter: stable both-edges;
}
.fpai-sheet { position: relative; max-width: 760px; margin: 0 auto; }
.fpai-paper {
  position: relative; z-index: 1;
  background: var(--paper); min-height: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 54px 60px;
  font-family: var(--font-paper);
  font-size: 16px; line-height: 1.62; color: var(--paper-ink);
  transition: border-color .2s ease;
}
.fpai-writing .fpai-paper { border-color: var(--primary); }
.fpai-paper:focus { outline: 2px dashed var(--primary); outline-offset: 6px; }
.fpai-paper h1, .fpai-paper h2, .fpai-paper h3 { letter-spacing: -.005em; }
.fpai-paper h1 { font-size: 27px; line-height: 1.22; margin: 0 0 18px; font-weight: 700; }
.fpai-paper h2 { font-size: 19.5px; margin: 22px 0 8px; font-weight: 700; }
.fpai-paper h3 { font-size: 16.5px; margin: 16px 0 6px; font-weight: 700; }
.fpai-paper p { margin: 0 0 11px; }
.fpai-paper ul, .fpai-paper ol { margin: 0 0 11px 22px; padding: 0; }
.fpai-paper table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.fpai-paper th, .fpai-paper td { border: 1px solid var(--paper-line); padding: 7px 10px; text-align: left; }
.fpai-paper th { background: var(--paper-th); }
.fpai-paper .fpai-cursor {
  display: inline-block; width: 2.5px; height: 19px; border-radius: 2px;
  background: var(--primary);
  vertical-align: -3px; animation: fpai-blink 1s steps(2) infinite;
}
@keyframes fpai-blink { 50% { opacity: 0; } }

/* skeleton lines, shown while waiting for the first words */
.fpai-skel { display: block; }
.fpai-skel i {
  display: block; height: 13px; border-radius: 6px; margin: 0 0 14px;
  background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 45%, #e8ecf0 65%);
  background-size: 200% 100%;
  animation: fpai-shimmer 1.3s linear infinite;
}
.fpai-skel i:nth-child(1) { width: 62%; height: 22px; margin-bottom: 24px; }
.fpai-skel i:nth-child(2) { width: 96%; }
.fpai-skel i:nth-child(3) { width: 91%; }
.fpai-skel i:nth-child(4) { width: 84%; margin-bottom: 26px; }
.fpai-skel i:nth-child(5) { width: 38%; height: 17px; }
.fpai-skel i:nth-child(6) { width: 94%; }
.fpai-skel i:nth-child(7) { width: 71%; }
@keyframes fpai-shimmer { to { background-position: -200% 0; } }
.fpai-edithint { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 11px; }
.fpai-edithint::before { content: "✎ "; color: var(--primary); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .fpai, .fpai *, .fpai *::before, .fpai *::after {
    animation: none !important; transition: none !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .fpai-body { padding: 13px; }
  .fpai-head { padding: 12px 14px; }
  .fpai-tagline { display: none; }
  .fpai-workspace { grid-template-columns: 1fr; }
  .fpai-side { order: 2; }
  .fpai-main { order: 1; }
  .fpai-paper { padding: 30px 22px; }
  .fpai-paperwrap { padding: 2px 2px 16px; max-height: none; }
  .fpai-toolbar .fpai-doctitle { display: none; }
  .fpai-field, .fpai-field input { width: 100%; }
  .fpai-field { flex: 1 1 45%; }
  /* downloads stay reachable while reading a long document on a phone */
  .fpai-toolbar {
    position: sticky; top: 8px; z-index: 6;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 560px) {
  /* Stack the guided fields full-width so placeholders aren't clipped on phones. */
  .fpai-field { flex: 1 1 100%; }
  .fpai-field input, .fpai-field select { width: 100%; min-width: 0; }
  /* Tone / Length / Language: label above a full-width select, matching the fields. */
  .fpai-options { flex-direction: column; align-items: stretch; gap: 12px; }
  .fpai-options label { flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; }
  .fpai-options select { width: 100%; }

  /* Compact sticky export bar: a tidy 2x2 grid (word count + Copy on top, the
     two downloads splitting the row below) instead of a 3-row flex-wrap stack
     that ate ~20% of the screen while reading a long document. */
  .fpai-toolbar {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 8px 10px; padding: 9px 11px;
  }
  .fpai-status { grid-column: 1 / -1; justify-content: center; }
  .fpai-wordcount { margin: 0; }
  .fpai-toolbar .fpai-copy { justify-self: end; white-space: nowrap; }
  .fpai-toolbar .fpai-docx,
  .fpai-toolbar .fpai-pdf { padding: 11px 8px; font-size: 13.5px; gap: 6px; white-space: nowrap; }
}

/* ---------- paywall modal ---------- */
.fpai-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 20, 18, .55);
}
.fpai-modal[hidden] { display: none; }
.fpai-modal-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; max-width: 420px; width: 100%; padding: 36px 30px 28px;
  text-align: center; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .4);
  animation: fpai-pop .24s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes fpai-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.fpai-modal-x {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 24px; line-height: 1; color: var(--faint); cursor: pointer; padding: 4px;
}
.fpai-modal-x:hover { color: var(--ink); }
.fpai-modal-mark { display: inline-block; width: 46px; height: 46px; margin-bottom: 16px; }
.fpai-modal-mark svg { width: 46px; height: 46px; }
.fpai-modal-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 24px;
  line-height: 1.22; margin: 0 0 10px; color: var(--ink); font-variant-numeric: lining-nums;
}
.fpai-modal-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 22px; }
.fpai-modal-cta {
  display: block; background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 13px; border-radius: 11px;
  transition: background .14s ease;
}
.fpai-modal-cta:hover { background: var(--primary-dark); }
.fpai-modal-later {
  display: block; width: 100%; margin-top: 10px; background: none; border: 0;
  color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px;
}
.fpai-modal-later:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .fpai-modal-card { animation: none; } }
