/* =====================================================================
   Fatech dashboard — one design system for the client area and the admin.
   Shares the tokens and the Poppins/gradient language of /business, so
   signing in does not feel like landing on a different website.
   ===================================================================== */

:root {
  --ink: #0b1533;
  --ink-2: #4a5878;
  --ink-3: #8492b0;
  --line: #e6ebf4;
  --brand: #2f6fed;
  --brand-2: #19c39a;
  --violet: #5a3ff0;
  --warn: #f0a92f;
  --bad: #e2564d;
  --surface: #ffffff;
  --tint: #f5f8ff;
  --sidebar: #0b1533;
  --r: 16px;
  --shadow: 0 18px 44px rgba(11, 21, 51, .07);
}

* { box-sizing: border-box; }

body.ft {
  margin: 0;
  background: var(--tint);
  font-family: 'Poppins', sans-serif;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.ft h1, .ft h2, .ft h3, .ft h4, .ft h5 {
  color: var(--ink); font-family: 'Poppins', sans-serif; margin: 0 0 .4em; font-weight: 600;
}
.ft h1 { font-size: 1.7rem; letter-spacing: -.02em; }
.ft h2 { font-size: 1.3rem; }
.ft h3 { font-size: 1.05rem; }
.ft h4 { font-size: .95rem; }
.ft a { color: var(--brand); text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft p { margin: 0 0 1em; }
.ft p:last-child { margin-bottom: 0; }

/* ---------- shell ---------- */
.ft-shell { display: flex; min-height: 100vh; }

.ft-side {
  width: 264px; flex: 0 0 264px; background: var(--sidebar); color: #c3d0ec;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.ft-side-head { padding: 26px 24px 18px; }
.ft-side-head img { max-width: 142px; height: auto; display: block; }
.ft-side-role {
  display: inline-block; margin-top: 12px; font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #7fe3c4;
  border: 1px solid rgba(127, 227, 196, .35); border-radius: 30px; padding: 3px 11px;
}
.ft-nav { padding: 10px 14px 26px; overflow-y: auto; flex: 1; }
.ft-nav-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #5b6b94; padding: 18px 10px 8px;
}
.ft-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  color: #c3d0ec; font-size: .93rem; font-weight: 500; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.ft-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.ft-nav a.on {
  background: linear-gradient(120deg, var(--brand) 0%, var(--violet) 100%); color: #fff;
  box-shadow: 0 10px 22px rgba(47, 111, 237, .34);
}
.ft-nav a i { width: 18px; font-size: .95rem; text-align: center; opacity: .85; }
.ft-nav a .pill {
  margin-left: auto; background: rgba(255, 255, 255, .16); color: #fff; font-size: .7rem;
  font-weight: 700; border-radius: 30px; padding: 1px 9px; min-width: 22px; text-align: center;
}
.ft-nav a.on .pill { background: rgba(255, 255, 255, .26); }

.ft-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ft-top {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 16px 32px; display: flex; align-items: center; gap: 18px;
  position: sticky; top: 0; z-index: 20;
}
.ft-top h1 { margin: 0; font-size: 1.22rem; }
.ft-top .sub { font-size: .84rem; color: var(--ink-3); margin: 0; }
.ft-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ft-who { text-align: right; line-height: 1.3; }
.ft-who strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.ft-who span { font-size: .76rem; color: var(--ink-3); }
.ft-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--tint);
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-weight: 700; font-size: .95rem;
}
.ft-burger {
  display: none; background: none; border: 0; font-size: 1.3rem; color: var(--ink); cursor: pointer;
}

.ft-body { padding: 30px 32px 56px; flex: 1; }
.ft-wrap { max-width: 1240px; }

/* ---------- cards ---------- */
.ft-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px;
}
.ft-card.pad0 { padding: 0; overflow: hidden; }
.ft-card-head {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
}
.ft-card-head h3 { margin: 0; }
.ft-card-head .right { margin-left: auto; }
.ft-card-foot { border-top: 1px solid var(--line); padding: 14px 24px; background: #fbfcff; }

.ft-grid { display: grid; gap: 22px; }
/* Grid items default to min-width:auto, so a wide table inside one would
   stretch its track past the screen instead of scrolling within .ft-scroll. */
.ft-grid > * { min-width: 0; }
.ft-g2 { grid-template-columns: repeat(2, 1fr); }
.ft-g3 { grid-template-columns: repeat(3, 1fr); }
.ft-g4 { grid-template-columns: repeat(4, 1fr); }
.ft-split { grid-template-columns: 1.6fr 1fr; align-items: start; }

/* ---------- stat tiles ---------- */
.ft-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.ft-stat .k {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.ft-stat .v { font-size: 1.62rem; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
.ft-stat .n { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.ft-stat.accent { background: linear-gradient(130deg, #0b1533 0%, #1d3f8f 100%); border: 0; }
.ft-stat.accent .k { color: #7fe3c4; }
.ft-stat.accent .v { color: #fff; }
.ft-stat.accent .n { color: #93a6cf; }
.ft-stat.good .v { color: var(--brand-2); }
.ft-stat.due .v { color: var(--warn); }

/* ---------- progress ---------- */
.ft-bar { height: 9px; border-radius: 30px; background: #eef2fa; overflow: hidden; }
.ft-bar i {
  display: block; height: 100%; border-radius: 30px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.ft-bar.warn i { background: linear-gradient(90deg, var(--warn), #f5c660); }

/* ---------- badges ---------- */
.ft-badge {
  display: inline-block; font-size: .71rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 30px; padding: 4px 12px;
  background: #eef2fa; color: var(--ink-2);
}
.ft-badge.blue { background: #e7f0ff; color: #2f6fed; }
.ft-badge.green { background: #e2f8f1; color: #11a382; }
.ft-badge.amber { background: #fdf2de; color: #b57b12; }
.ft-badge.red { background: #fdecea; color: #c9433a; }
.ft-badge.grey { background: #eef1f6; color: #78869f; }

/* ---------- buttons ---------- */
.ft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 30px; border: 1px solid transparent;
  font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: #eef2fa; color: var(--ink); transition: transform .15s, box-shadow .15s, background .15s;
}
.ft-btn:hover { text-decoration: none; transform: translateY(-1px); color: var(--ink); }
.ft-btn.pri {
  background: linear-gradient(120deg, var(--brand) 0%, var(--violet) 100%); color: #fff;
  box-shadow: 0 10px 22px rgba(47, 111, 237, .3);
}
.ft-btn.pri:hover { color: #fff; box-shadow: 0 14px 28px rgba(47, 111, 237, .4); }
.ft-btn.ok { background: var(--brand-2); color: #fff; box-shadow: 0 10px 22px rgba(25, 195, 154, .28); }
.ft-btn.ok:hover { color: #fff; }
.ft-btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.ft-btn.danger { background: #fdecea; color: #c9433a; }
.ft-btn.sm { height: 36px; padding: 0 15px; font-size: .82rem; }
.ft-btn[disabled] { opacity: .5; pointer-events: none; }
.ft-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- forms ---------- */
.ft-field { margin-bottom: 16px; }
.ft-field label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.ft-field .hint { font-size: .78rem; color: var(--ink-3); margin-top: 5px; }
.ft-input, .ft-field input, .ft-field select, .ft-field textarea {
  width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfcff; font-family: 'Poppins', sans-serif; font-size: .93rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.ft-field textarea { height: auto; min-height: 130px; padding: 13px 15px; resize: vertical; line-height: 1.6; }
.ft-field input:focus, .ft-field select:focus, .ft-field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 111, 237, .12);
}
.ft-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ft-fields .full { grid-column: 1 / -1; }

/* ---------- tables ---------- */
.ft-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ft-table th {
  text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); padding: 14px 18px;
  background: #fbfcff; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ft-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ft-table tr:last-child td { border-bottom: 0; }
.ft-table tbody tr:hover { background: #fbfcff; }
.ft-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ft-table .strong { color: var(--ink); font-weight: 600; }
.ft-table .muted { color: var(--ink-3); font-size: .82rem; }
.ft-scroll { overflow-x: auto; }

/* ---------- misc ---------- */
.ft-empty { text-align: center; padding: 48px 24px; color: var(--ink-3); }
.ft-empty i { font-size: 2.2rem; color: #ccd6e8; display: block; margin-bottom: 14px; }
.ft-empty h4 { color: var(--ink-2); }

.ft-alert {
  border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: .9rem;
  border: 1px solid; display: flex; gap: 11px; align-items: flex-start;
}
.ft-alert.ok { background: #e9f9f4; border-color: #b7ead9; color: #0f7a62; }
.ft-alert.bad { background: #fdecea; border-color: #f5c9c4; color: #b23a31; }
.ft-alert.info { background: #eef4ff; border-color: #cddffd; color: #2a5bbf; }
.ft-alert.warn { background: #fdf6e7; border-color: #f4e0b4; color: #94680c; }

.ft-feed { list-style: none; margin: 0; padding: 0; }
.ft-feed li { position: relative; padding: 0 0 20px 26px; }
.ft-feed li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px #e7f0ff;
}
.ft-feed li::after {
  content: ""; position: absolute; left: 4.5px; top: 20px; bottom: 0; width: 1px; background: var(--line);
}
.ft-feed li:last-child { padding-bottom: 0; }
.ft-feed li:last-child::after { display: none; }
.ft-feed .when { font-size: .76rem; color: var(--ink-3); }

.ft-money { font-variant-numeric: tabular-nums; }
.ft-mute { color: var(--ink-3); }
.ft-small { font-size: .82rem; }
.ft-right { text-align: right; }
.ft-mt { margin-top: 20px; }
.ft-mb0 { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .ft-g4 { grid-template-columns: repeat(2, 1fr); } .ft-split { grid-template-columns: 1fr; } }
@media (max-width: 991px) {
  .ft-side {
    position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%);
    transition: transform .25s; box-shadow: 0 0 60px rgba(0, 0, 0, .4);
  }
  body.ft.nav-open .ft-side { transform: none; }
  body.ft.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(11, 21, 51, .5); z-index: 50;
  }
  .ft-burger { display: block; }
  .ft-top, .ft-body { padding-left: 20px; padding-right: 20px; }
  .ft-g3, .ft-g2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ft-g4 { grid-template-columns: 1fr; }
  .ft-fields { grid-template-columns: 1fr; }
  .ft-who { display: none; }
  .ft h1 { font-size: 1.35rem; }
}

/* ---------------------------------------------------------------------
   Standalone sign-in / sign-up pages
   --------------------------------------------------------------------- */
.ft-auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

.ft-auth-panel {
  background: linear-gradient(135deg, #0b1533 0%, #152a63 52%, #1d3f8f 100%);
  color: #c3d0ec; padding: 56px 56px 64px; display: flex;
  flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.ft-auth-panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -200px; top: -220px;
  background: radial-gradient(circle, rgba(47, 111, 237, .5), transparent 62%);
}
.ft-auth-panel > * { position: relative; z-index: 2; }
.ft-auth-panel img { max-width: 168px; margin-bottom: 42px; }
.ft-auth-panel h2 { color: #fff; font-size: 2rem; line-height: 1.2; max-width: 16ch; margin-bottom: 16px; }
.ft-auth-panel p { color: #c3d0ec; max-width: 44ch; font-size: 1rem; }
.ft-auth-panel ul { list-style: none; padding: 0; margin: 28px 0 0; }
.ft-auth-panel li { margin-bottom: 13px; font-size: .94rem; }
.ft-auth-panel li i { color: #4ce0b3; margin-right: 10px; }

.ft-auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.ft-auth-box { width: 100%; max-width: 420px; }
.ft-auth-box h1 { font-size: 1.7rem; margin-bottom: 6px; }
.ft-auth-badge {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); border: 1px solid var(--line);
  border-radius: 30px; padding: 4px 12px; margin-bottom: 16px;
}
.ft-auth-box form { margin-top: 20px; }
.ft-auth-box hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

@media (max-width: 900px) {
  .ft-auth { grid-template-columns: 1fr; }
  .ft-auth-panel { padding: 40px 28px; }
  .ft-auth-panel h2 { font-size: 1.5rem; }
  .ft-auth-panel ul { display: none; }
}

/* ---------------------------------------------------------------------
   Pick-a-side chooser (sign in / create account)
   --------------------------------------------------------------------- */
.ft-choose { min-height: 100vh; display: flex; flex-direction: column; background: var(--tint); }

.ft-choose-bar {
  display: flex; align-items: center; gap: 16px; padding: 20px 34px;
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
}
.ft-choose-bar img { max-width: 150px; height: auto; }
.ft-choose-bar .back {
  margin-left: auto; color: rgba(255, 255, 255, .82); font-size: .9rem; font-weight: 500;
}
.ft-choose-bar .back:hover { color: #fff; text-decoration: none; }

.ft-choose-hero {
  position: relative; overflow: hidden; padding: 112px 24px 150px; text-align: center;
  background: linear-gradient(135deg, #0b1533 0%, #152a63 52%, #1d3f8f 100%);
}
.ft-choose-hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  right: -220px; top: -300px;
  background: radial-gradient(circle, rgba(47, 111, 237, .55), transparent 62%);
}
.ft-choose-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  left: -220px; bottom: -300px;
  background: radial-gradient(circle, rgba(25, 195, 154, .32), transparent 62%);
}
.ft-choose-hero > * { position: relative; z-index: 2; }
.ft-choose-hero .eyebrow {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #7fe3c4; margin-bottom: 16px;
}
.ft-choose-hero h1 {
  color: #fff; font-size: 2.5rem; line-height: 1.14; letter-spacing: -.02em;
  max-width: 20ch; margin: 0 auto 16px;
}
.ft-choose-hero p { color: #c3d0ec; font-size: 1.05rem; max-width: 56ch; margin: 0 auto; }

.ft-choose-body { flex: 1; padding: 0 24px 64px; }
.ft-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 940px; margin: -96px auto 0; position: relative; z-index: 4;
}

.ft-pick {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px 30px;
  box-shadow: 0 26px 60px rgba(11, 21, 51, .14); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.ft-pick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.ft-pick.learn::before { background: linear-gradient(90deg, var(--brand), var(--violet)); }
.ft-pick.build::before { background: linear-gradient(90deg, #0f9d7f, var(--brand-2)); }
.ft-pick:hover { text-decoration: none; transform: translateY(-6px); box-shadow: 0 34px 72px rgba(11, 21, 51, .2); }

.ft-pick .ic {
  width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; color: #fff; margin-bottom: 22px;
}
.ft-pick.learn .ic { background: linear-gradient(130deg, var(--brand) 0%, var(--violet) 100%);
                     box-shadow: 0 12px 26px rgba(47, 111, 237, .32); }
.ft-pick.build .ic { background: linear-gradient(130deg, #0f9d7f 0%, var(--brand-2) 100%);
                     box-shadow: 0 12px 26px rgba(25, 195, 154, .3); }

.ft-pick h2 { font-size: 1.32rem; margin-bottom: 8px; }
.ft-pick .blurb { color: var(--ink-2); font-size: .95rem; margin-bottom: 20px; }
.ft-pick ul { list-style: none; padding: 0; margin: 0 0 26px; }
.ft-pick li {
  font-size: .9rem; color: var(--ink-2); margin-bottom: 11px;
  display: flex; align-items: flex-start; gap: 11px;
}
.ft-pick li i { color: var(--brand-2); font-size: .8rem; margin-top: 4px; }
.ft-pick .go { margin-top: auto; }
.ft-pick .go .ft-btn { width: 100%; }
.ft-pick.build .go .ft-btn {
  background: linear-gradient(120deg, #0f9d7f 0%, var(--brand-2) 100%);
  box-shadow: 0 10px 22px rgba(25, 195, 154, .3);
}

.ft-choose-foot {
  text-align: center; margin: 44px auto 0; font-size: .92rem; color: var(--ink-2);
}
.ft-choose-foot a { font-weight: 600; }

@media (max-width: 860px) {
  .ft-choose-hero { padding: 96px 20px 132px; }
  .ft-choose-hero h1 { font-size: 1.75rem; }
  .ft-choose-hero p { font-size: .96rem; }
  .ft-cards { grid-template-columns: 1fr; margin-top: -88px; gap: 20px; }
  .ft-choose-bar { padding: 16px 20px; }
  .ft-choose-bar img { max-width: 118px; }
}

/* ---------------------------------------------------------------------
   Contracts: the agreement document, the signature block and the pad
   --------------------------------------------------------------------- */
.ct-doc { font-size: .92rem; line-height: 1.75; color: var(--ink-2); }
.ct-doc h1 { font-size: 1.4rem; letter-spacing: .02em; margin-bottom: 4px; }
.ct-doc h2 { font-size: 1.05rem; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.ct-doc h3 { font-size: 1rem; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.ct-doc h4 { font-size: .92rem; margin: 22px 0 8px; }
.ct-doc p { margin: 0 0 11px; }
.ct-doc ul, .ct-doc ol { margin: 0 0 14px; padding-left: 22px; }
.ct-doc li { margin-bottom: 6px; }
.ct-head { text-align: center; padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.ct-head .ct-sub { color: var(--ink-3); font-size: .86rem; }

.ct-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0 26px; }
.ct-party { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.ct-party h4 {
  margin: 0 0 10px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.ct-note { font-size: .82rem; color: var(--ink-3); margin-top: 8px; }

.ct-kv { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ct-kv td { padding: 6px 0; vertical-align: top; }
.ct-kv td:first-child { color: var(--ink-3); width: 46%; padding-right: 14px; }
.ct-summary {
  background: var(--tint); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin: 14px 0 18px;
}
.ct-summary td { padding: 7px 0; }

.ct-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 14px 0 18px; }
.ct-table th, .ct-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.ct-table th { background: var(--tint); color: var(--ink); font-weight: 600; }

/* the executed signature block */
.ct-signed { margin-top: 34px; border-top: 2px solid var(--ink); padding-top: 26px; }
.ct-sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ct-sign-box { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.ct-sign-box h4 {
  margin: 0 0 14px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.ct-sign-mark {
  min-height: 74px; border-bottom: 1px solid var(--ink); display: flex; align-items: flex-end;
  padding-bottom: 8px; margin-bottom: 10px;
}
.ct-sign-mark img { max-height: 70px; max-width: 100%; }
.ct-sign-mark .typed {
  font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 2.1rem; color: var(--ink); line-height: 1;
}
.ct-sign-meta { font-size: .8rem; color: var(--ink-3); }
.ct-sign-meta strong { color: var(--ink); }

/* the signing pad */
.ct-pad-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ct-pad-tabs button {
  flex: 1; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: #fbfcff;
  font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.ct-pad-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ct-pad { border: 1px dashed #c9d8f7; border-radius: 14px; background: #fbfcff; padding: 14px; }
.ct-pad canvas { width: 100%; height: 170px; display: block; border-radius: 10px; background: #fff;
                 border: 1px solid var(--line); cursor: crosshair; touch-action: none; }
.ct-pad .typed-preview {
  height: 100px; display: flex; align-items: center; justify-content: center; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 2.3rem; color: var(--ink);
}
.ct-pad .typed-preview.empty { color: var(--ink-3); font-size: .9rem; font-family: 'Poppins', sans-serif; }
.ct-pad-hint { font-size: .8rem; color: var(--ink-3); margin-top: 9px; display: flex; align-items: center; gap: 10px; }
.ct-pad-hint button {
  margin-left: auto; background: none; border: 0; color: var(--brand); font-size: .82rem;
  font-weight: 600; cursor: pointer; font-family: 'Poppins', sans-serif;
}

/* the read-the-whole-thing scroller */
.ct-scroll {
  max-height: 460px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 28px; background: #fff;
}
.ct-scroll.done { border-color: #b7ead9; }

/* ---------------------------------------------------------------------
   Notification bell
   --------------------------------------------------------------------- */
.ft-bell { position: relative; }
.ft-bell > button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fbfcff;
  color: var(--ink-2); font-size: 1rem; cursor: pointer; position: relative;
}
.ft-bell > button:hover { border-color: #c9d8f7; color: var(--brand); }
.ft-bell .dot {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 30px;
  background: var(--bad); color: #fff; font-size: .66rem; font-weight: 700; line-height: 19px;
  text-align: center; padding: 0 5px; border: 2px solid #fff;
}
.ft-bell-panel {
  position: absolute; right: 0; top: 52px; width: 340px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 26px 60px rgba(11, 21, 51, .18); z-index: 60; display: none; overflow: hidden;
}
.ft-bell.open .ft-bell-panel { display: block; }
.ft-bell-panel header {
  padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  font-weight: 600; color: var(--ink); font-size: .92rem; background: #fbfcff;
}
.ft-bell-panel header a { margin-left: auto; font-size: .78rem; font-weight: 500; }
.ft-bell-list { max-height: 360px; overflow-y: auto; }
.ft-bell-item {
  display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.ft-bell-item:hover { background: #fbfcff; text-decoration: none; }
.ft-bell-item.unread { background: #f3f7ff; }
.ft-bell-item .ic {
  width: 34px; height: 34px; border-radius: 10px; background: #e7f0ff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: .85rem; flex: 0 0 34px;
}
.ft-bell-item.unread .ic { background: var(--brand); color: #fff; }
.ft-bell-item strong { display: block; color: var(--ink); font-size: .88rem; font-weight: 600; }
.ft-bell-item span { font-size: .8rem; }
.ft-bell-item .when { font-size: .74rem; color: var(--ink-3); margin-top: 3px; display: block; }
.ft-bell-empty { padding: 34px 18px; text-align: center; color: var(--ink-3); font-size: .88rem; }

@media (max-width: 700px) {
  .ct-parties, .ct-sign-grid { grid-template-columns: 1fr; }
  .ft-bell-panel { width: calc(100vw - 32px); right: -8px; }
}

@media print {
  .ft-side, .ft-top, .ft-bell, .no-print { display: none !important; }
  .ft-body, .ft-wrap { padding: 0 !important; max-width: none !important; }
  .ft-card { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .ct-scroll { max-height: none !important; overflow: visible !important; border: 0 !important; padding: 0 !important; }
  body.ft { background: #fff !important; }
}

/* ---------------------------------------------------------------------
   Sign-up extras: the optional-details disclosure and the bot honeypot
   --------------------------------------------------------------------- */
.ft-more { margin: 4px 0 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.ft-more > summary {
  cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600; color: var(--brand);
  display: flex; align-items: center; gap: 9px; padding: 4px 0;
}
.ft-more > summary::-webkit-details-marker { display: none; }
.ft-more > summary:before {
  content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .72rem;
  width: 22px; height: 22px; border-radius: 50%; background: #e7f0ff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .18s;
}
.ft-more[open] > summary:before { content: "\f068"; }
.ft-more > summary span {
  margin-left: auto; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}

/* off-screen rather than display:none, which some bots skip */
.ft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------------
   Modal
   --------------------------------------------------------------------- */
.ft-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.ft-modal.open { display: flex; }
.ft-modal-backdrop {
  position: fixed; inset: 0; background: rgba(11, 21, 51, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.ft-modal-box {
  position: relative; z-index: 2; width: 100%; max-width: 680px; background: var(--surface);
  border-radius: 22px; box-shadow: 0 40px 90px rgba(11, 21, 51, .3);
  animation: ftModalIn .22s cubic-bezier(.4, 0, .2, 1);
}
@keyframes ftModalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.ft-modal-head {
  display: flex; align-items: flex-start; gap: 16px; padding: 26px 28px 0;
}
.ft-modal-head h3 { margin: 0 0 4px; font-size: 1.22rem; }
.ft-modal-head p { margin: 0; font-size: .88rem; color: var(--ink-3); }
.ft-modal-close {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fbfcff; color: var(--ink-2); cursor: pointer; font-size: .95rem; flex: 0 0 36px;
}
.ft-modal-close:hover { background: #fdecea; border-color: #f5c9c4; color: var(--bad); }
.ft-modal-body { padding: 22px 28px 26px; }
@media (max-width: 640px) {
  .ft-modal { padding: 16px; }
  .ft-modal-head, .ft-modal-body { padding-left: 20px; padding-right: 20px; }
}

/* ---------------------------------------------------------------------
   Comment thread
   --------------------------------------------------------------------- */
.ft-thread { display: flex; flex-direction: column; gap: 16px; }
.ft-msg { display: flex; gap: 13px; }
.ft-msg .av {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px; display: flex;
  align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--violet));
}
.ft-msg.them .av { background: linear-gradient(130deg, #0f9d7f, var(--brand-2)); }
.ft-msg .bubble {
  background: var(--tint); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px;
  padding: 13px 16px; max-width: 76%;
}
.ft-msg.mine { flex-direction: row-reverse; }
.ft-msg.mine .bubble {
  background: #eef4ff; border-color: #d7e4fd; border-radius: 16px 4px 16px 16px;
}
.ft-msg .who { font-size: .78rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.ft-msg .who span { font-weight: 500; color: var(--ink-3); margin-left: 7px; }
.ft-msg .text { font-size: .9rem; color: var(--ink-2); white-space: pre-wrap; }
.ft-thread-empty { text-align: center; padding: 26px 16px; color: var(--ink-3); font-size: .88rem; }

/* ---------------------------------------------------------------------
   Project summary strip
   --------------------------------------------------------------------- */
.ft-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0;
          border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.ft-sum > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.ft-sum > div:last-child { border-right: 0; }
.ft-sum .k { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
             color: var(--ink-3); margin-bottom: 6px; }
.ft-sum .v { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .ft-sum > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------------------------------------------------------------------
   Projects page: section labels, the next-steps hero, request cards and
   the slim strips that replace half-empty full cards.
   --------------------------------------------------------------------- */

.ft-sect { display: flex; align-items: center; gap: 14px; margin: 30px 2px 15px; }
.ft-sect:first-child { margin-top: 0; }
.ft-sect h2 {
  margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.ft-sect .ln { flex: 1; height: 1px; background: var(--line); }

/* the dark "what happens next" panel */
.ft-hero {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 28px 30px 30px;
  margin-bottom: 26px; color: #aebbdd;
  background: linear-gradient(125deg, #0b1533 0%, #17275e 52%, #2f6fed 165%);
  box-shadow: 0 20px 44px rgba(11, 21, 51, .22);
}
.ft-hero::after {
  content: ""; position: absolute; right: -90px; top: -140px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(90, 63, 240, .5), transparent 66%);
}
.ft-hero > * { position: relative; z-index: 1; }
.ft-hero h2 { color: #fff; font-size: 1.22rem; margin: 0 0 7px; }
.ft-hero p { color: #aebbdd; font-size: .89rem; margin: 0 0 24px; max-width: 640px; }

.ft-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ft-steps li { position: relative; padding-right: 16px; }
.ft-steps li::before {
  content: ""; position: absolute; left: 34px; right: 2px; top: 13px; height: 2px;
  background: rgba(255, 255, 255, .13);
}
.ft-steps li:last-child::before { display: none; }
.ft-steps .n {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .76rem; font-weight: 700; margin-bottom: 13px;
  background: rgba(255, 255, 255, .12); color: #c9d6f3; position: relative; z-index: 1;
}
.ft-steps li.done .n { background: var(--brand-2); color: #06281f; }
.ft-steps li.now .n { background: #fff; color: var(--brand); box-shadow: 0 0 0 5px rgba(255, 255, 255, .15); }
.ft-steps strong { display: block; color: #fff; font-size: .87rem; font-weight: 600; line-height: 1.4; }
.ft-steps .sub { display: block; font-size: .76rem; color: #8fa0ca; margin-top: 3px; }

/* requests, as cards rather than a stretched table */
.ft-reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.ft-req {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 19px 20px;
  transition: box-shadow .16s ease, transform .16s ease;
}
.ft-req:hover { box-shadow: 0 16px 32px rgba(11, 21, 51, .09); transform: translateY(-2px); }
.ft-req-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 9px; }
.ft-req-top h4 { margin: 0; font-size: .97rem; line-height: 1.4; }
.ft-req-top .ft-badge { margin-left: auto; flex: none; }
.ft-req p { font-size: .85rem; color: var(--ink-2); margin: 0 0 15px; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--tint);
  border: 1px solid var(--line); border-radius: 30px; padding: 4px 12px;
  font-size: .75rem; color: var(--ink-2); white-space: nowrap;
}
.ft-chip i { color: var(--ink-3); font-size: .72rem; }

/* one-line call to action, instead of a tall card holding one button */
.ft-strip {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 18px 24px; margin-bottom: 22px;
}
.ft-strip .ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 1.12rem;
  background: #e2f8f1; color: #11a382;
}
.ft-strip .ic.blue { background: #e7f0ff; color: var(--brand); }
.ft-strip .tx { flex: 1; min-width: 220px; }
.ft-strip .tx strong { display: block; color: var(--ink); font-size: .95rem; }
.ft-strip .tx span { font-size: .84rem; color: var(--ink-3); }

/* a section with nothing in it yet, without the 300px of white space */
.ft-blank {
  display: flex; align-items: center; gap: 17px; flex-wrap: wrap;
  border: 1px dashed #d2dcef; border-radius: var(--r); background: rgba(255, 255, 255, .55);
  padding: 22px 24px; margin-bottom: 22px;
}
.ft-blank .ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 1.12rem;
  background: #eef3ff; color: var(--brand);
}
.ft-blank .tx { flex: 1; min-width: 220px; }
.ft-blank .tx strong { display: block; color: var(--ink); font-size: .95rem; }
.ft-blank .tx span { font-size: .84rem; color: var(--ink-3); }

@media (max-width: 1000px) { .ft-steps { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }
@media (max-width: 1000px) { .ft-steps li:nth-child(2)::before { display: none; } }
@media (max-width: 620px) {
  .ft-steps { grid-template-columns: 1fr; }
  .ft-steps li::before { display: none; }
  .ft-hero { padding: 24px 20px; }
  .ft-reqs { grid-template-columns: 1fr; }
}

/* phones: the title bar's action moves to its own row rather than pushing
   the avatar off the right edge (measured 27px of overflow at 390px) */
@media (max-width: 640px) {
  .ft-top { flex-wrap: wrap; row-gap: 10px; padding-top: 13px; padding-bottom: 13px; }
  .ft-top-right { width: 100%; margin-left: 0; justify-content: flex-end; gap: 10px; }
  .ft-top-right .ft-btn { font-size: .85rem; padding: 9px 15px; }
}

@media (max-width: 560px) {
  .ft-sect { flex-wrap: wrap; gap: 10px; }
  .ft-sect h2 { white-space: normal; }
  .ft-sect .ln { display: none; }
  .ft-sect .ft-btn { margin-left: auto; }
}

/* the live quote readout under the pricing form, and the client's plan box */
.ft-note {
  background: linear-gradient(120deg, #f3f7ff, #eef9f5); border: 1px solid #dde7fa;
  border-radius: 13px; padding: 15px 18px; font-size: .9rem; color: var(--ink-2);
  margin: 20px 0 0;
}
.ft-note strong { color: var(--ink); }

/* the "what to pay" numbers on a project */
.ft-due { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ft-due .k {
  font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.ft-due .v { font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.ft-due .n { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 760px) { .ft-due { grid-template-columns: 1fr; gap: 16px; } }
