/* ==========================================================================
   Finance Toolkit v1 — isolated, namespaced styles (prefix: ft1-)
   Direction: the Egyptian shop ledger meets a real spreadsheet.
   Graph-paper ground, ballpoint-blue ink, margin-red for losses.
   ========================================================================== */

@font-face {
  font-family: "Reem Kufi";
  src: url("../fonts/reem-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Reem Kufi";
  src: url("../fonts/reem-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/plex-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
.ft1 {
  --ft1-paper: #eef2ec;
  --ft1-paper-2: #e2e9df;
  --ft1-sheet: #ffffff;
  --ft1-line: #c9d2c6;
  --ft1-line-soft: #dde4da;
  --ft1-grid: rgba(30, 63, 168, 0.075);
  --ft1-ink: #1e3fa8;
  --ft1-ink-soft: #dfe6fa;
  --ft1-deep: #0f1b3d;
  --ft1-deep-2: #17265a;
  --ft1-text: #1a2236;
  --ft1-muted: #566176;
  --ft1-red: #c0332a;
  --ft1-red-soft: #fbe6e3;
  --ft1-green: #16794a;
  --ft1-green-soft: #dcf0e5;
  --ft1-amber: #8a5a00;
  --ft1-amber-soft: #fbefcf;

  --ft1-font-display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ft1-font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ft1-gutter: 16px;
  --ft1-radius: 6px;

  margin: 0;
  background: var(--ft1-paper);
  color: var(--ft1-text);
  font-family: var(--ft1-font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ft1 *,
.ft1 *::before,
.ft1 *::after {
  box-sizing: border-box;
}

.ft1 a {
  color: var(--ft1-ink);
}

.ft1 :focus-visible {
  outline: 3px solid var(--ft1-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.ft1-on-dark :focus-visible {
  outline-color: #ffd86b;
}

.ft1-num {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.ft1-skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  background: var(--ft1-deep);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: var(--ft1-radius);
  z-index: 2000;
  transition: top 0.2s;
}
.ft1-skip:focus {
  top: 12px;
}

/* ---------- Type ---------- */
.ft1-h1,
.ft1-h2,
.ft1-h3 {
  font-family: var(--ft1-font-display);
  font-weight: 700;
  color: var(--ft1-deep);
  margin: 0;
  text-wrap: balance;
}
.ft1-h1 {
  font-size: clamp(2.2rem, 6.4vw, 3.85rem);
  line-height: 1.32;
  letter-spacing: 0;
}
.ft1-h2 {
  font-size: clamp(1.65rem, 3.9vw, 2.55rem);
  line-height: 1.4;
}
.ft1-h3 {
  font-size: 1.28rem;
  line-height: 1.5;
}
.ft1-lead {
  font-size: clamp(1.06rem, 2.1vw, 1.22rem);
  line-height: 1.95;
  color: var(--ft1-muted);
  max-width: 34em;
  margin: 0;
}
.ft1-copy {
  max-width: 38em;
  margin: 0;
}
.ft1-small {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ft1-muted);
}

/* ---------- Sections ---------- */
.ft1-section {
  padding-block: clamp(64px, 9vw, 112px);
  position: relative;
}
.ft1-section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}
.ft1-section--paper2 {
  background: var(--ft1-paper-2);
}
.ft1-section--deep {
  background: var(--ft1-deep);
  color: #dfe6fa;
}
.ft1-section--deep .ft1-h2,
.ft1-section--deep .ft1-h3 {
  color: #fff;
}
.ft1-section--deep .ft1-lead,
.ft1-section--deep .ft1-small {
  color: #b7c3e6;
}
.ft1-sechead {
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 40rem;
}
.ft1-sechead .ft1-lead {
  margin-top: 14px;
}

.ft1-grid-bg {
  background-image:
    linear-gradient(var(--ft1-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ft1-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* ---------- Buttons ---------- */
.ft1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 28px;
  font-family: var(--ft1-font-body);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--ft1-radius);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.ft1-btn--primary {
  background: var(--ft1-ink);
  color: #fff !important;
  box-shadow: 0 4px 0 #132a78;
}
.ft1-btn--primary:hover {
  background: #2749be;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #132a78;
}
.ft1-btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #132a78;
}
.ft1-btn--light {
  background: #fff;
  color: var(--ft1-deep) !important;
  box-shadow: 0 4px 0 #9fb0e6;
}
.ft1-btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #9fb0e6;
}
.ft1-btn--light:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9fb0e6;
}
.ft1-btn--block {
  width: 100%;
}
.ft1-textlink {
  font-weight: 600;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.ft1-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Top bar ---------- */
.ft1-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.ft1-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ft1-deep) !important;
  text-decoration: none;
  font-family: var(--ft1-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}
.ft1-brand svg {
  width: 30px;
  height: 30px;
}
.ft1-top__link {
  font-weight: 600;
  font-size: 0.98rem;
  text-underline-offset: 5px;
}

/* ---------- Hero ---------- */
.ft1-hero {
  position: relative;
  padding-bottom: clamp(36px, 5vw, 64px);
  overflow: hidden;
}
.ft1-hero::after {
  /* fades the graph paper into the next section */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(238, 242, 236, 0), var(--ft1-paper));
  pointer-events: none;
}
.ft1-hero > .container {
  position: relative;
  z-index: 1;
}
.ft1-hero__product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ft1-ink);
  background: var(--ft1-sheet);
  border: 1px solid var(--ft1-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.ft1-hero__product .ft1-icon {
  color: var(--ft1-green);
}
.ft1-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 34px;
}
.ft1-facts {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--ft1-text);
}
.ft1-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}
.ft1-facts .ft1-icon {
  color: var(--ft1-green);
  margin-top: 0.33em;
}

/* ---------- Spreadsheet window (hero + preview share this) ---------- */
.ft1-xl {
  background: var(--ft1-sheet);
  border: 1px solid var(--ft1-line);
  border-radius: 8px;
  box-shadow: -10px 12px 0 rgba(15, 27, 61, 0.1);
  overflow: hidden;
  color: var(--ft1-text);
}
.ft1-xl__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ft1-green);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}
.ft1-xl__bar .ft1-icon {
  width: 18px;
  height: 18px;
}
.ft1-xl__fx {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--ft1-line);
  background: #f7f9f6;
  font-size: 0.86rem;
  direction: ltr;
}
.ft1-xl__name {
  width: 56px;
  text-align: center;
  padding: 7px 0;
  border-inline-end: 1px solid var(--ft1-line);
  font-weight: 600;
  color: var(--ft1-deep);
}
.ft1-xl__fxl {
  padding: 7px 12px;
  color: var(--ft1-muted);
  font-style: italic;
  border-inline-end: 1px solid var(--ft1-line);
}
.ft1-xl__formula {
  padding: 7px 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ft1-text);
}

.ft1-sheetgrid {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 118px 96px;
  font-size: 0.97rem;
  line-height: 1.4;
}
.ft1-sheetgrid > div,
.ft1-sheetgrid > label {
  border-bottom: 1px solid var(--ft1-line-soft);
  border-inline-start: 1px solid var(--ft1-line-soft);
  padding: 10px 12px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.ft1-sheetgrid > :nth-child(4n + 1) {
  border-inline-start: 0;
}
.ft1-sheetgrid .ft1-hd {
  background: #eef1ec;
  color: var(--ft1-muted);
  font-size: 0.78rem;
  font-weight: 600;
  justify-content: center;
  padding: 6px 4px;
  direction: ltr;
}
.ft1-sheetgrid .ft1-rn {
  background: #eef1ec;
  color: var(--ft1-muted);
  font-size: 0.78rem;
  justify-content: center;
  padding-inline: 2px;
  direction: ltr;
}
.ft1-sheetgrid .ft1-lbl {
  font-weight: 500;
}
.ft1-cellin {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ft1-ink);
  text-align: right;
  direction: ltr;
  padding: 0;
  margin: 0;
  outline-offset: 6px;
}
.ft1-cellwrap {
  position: relative;
  cursor: text;
}
.ft1-cellwrap:focus-within {
  background: var(--ft1-ink-soft);
  box-shadow: inset 0 0 0 2px var(--ft1-ink);
}
.ft1-cellwrap .ft1-cellin:focus-visible {
  outline: 0;
}
.ft1-bar {
  height: 10px;
  width: 100%;
  background: var(--ft1-line-soft);
  border-radius: 2px;
  overflow: hidden;
  direction: rtl;
}
.ft1-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--ft1-ink);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ft1-bar--profit i {
  background: var(--ft1-green);
}
.ft1-bar--loss i {
  background: var(--ft1-red);
}
.ft1-sheetgrid .ft1-total {
  background: #f4f8f3;
  font-weight: 700;
  font-size: 1.04rem;
  border-top: 2px solid var(--ft1-deep);
}
.ft1-result {
  direction: ltr;
  font-family: var(--ft1-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  width: 100%;
  text-align: right;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ft1-green);
  cursor: pointer;
}
.ft1-result.is-loss {
  color: var(--ft1-red);
}
.ft1-xl__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  background: #f7f9f6;
  font-size: 0.86rem;
  color: var(--ft1-muted);
  line-height: 1.6;
}
.ft1-reset {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: var(--ft1-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Problem: the notebook page ---------- */
.ft1-notebook {
  --ft1-ruled: 56px;
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--ft1-ruled) - 1px), #b9c8e4 calc(var(--ft1-ruled) - 1px), #b9c8e4 var(--ft1-ruled)),
    #fbfcf8;
  border: 1px solid var(--ft1-line);
  border-radius: 4px;
  padding: 0;
  padding-inline-start: 64px;
  box-shadow: -8px 10px 0 rgba(15, 27, 61, 0.08);
}
.ft1-notebook::before {
  /* the margin line every school notebook has */
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 46px;
  width: 2px;
  background: rgba(192, 51, 42, 0.55);
}
.ft1-notebook ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ft1-notebook li {
  min-height: var(--ft1-ruled);
  display: flex;
  align-items: center;
  padding-inline: 20px;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  padding-block: 12px;
}
.ft1-notebook li:last-child {
  color: var(--ft1-red);
  font-weight: 700;
}

/* ---------- Solution: many inputs, one cell ---------- */
.ft1-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.05fr);
  align-items: center;
  gap: 0;
}
.ft1-flow__in {
  display: grid;
  gap: 12px;
}
.ft1-flow__tab {
  background: var(--ft1-sheet);
  border: 1px solid var(--ft1-line);
  border-top: 4px solid var(--ft1-ink);
  border-radius: 4px;
  padding: 14px 18px;
  line-height: 1.6;
}
.ft1-flow__tab:nth-child(2) {
  border-top-color: var(--ft1-red);
}
.ft1-flow__tab:nth-child(3) {
  border-top-color: var(--ft1-green);
}
.ft1-flow__tab strong {
  display: block;
  font-size: 1.05rem;
}
.ft1-flow__tab span {
  color: var(--ft1-muted);
  font-size: 0.93rem;
}
.ft1-flow__join {
  height: 100%;
  min-height: 140px;
  position: relative;
}
.ft1-flow__join::before,
.ft1-flow__join::after {
  content: "";
  position: absolute;
  inset-block: 14%;
  inset-inline-start: 0;
  width: 50%;
  border: 2px solid var(--ft1-ink);
  border-inline-end: 0;
  border-radius: 0;
}
.ft1-flow__join::before {
  /* bracket */
  inset-inline-start: 4px;
}
.ft1-flow__join::after {
  inset-block: 50% auto;
  height: 0;
  width: 50%;
  inset-inline-start: 50%;
  border-width: 2px 0 0;
  border-inline-end: 0;
  margin-top: -1px;
  inset-inline-end: auto;
}
.ft1-flow__out {
  background: var(--ft1-deep);
  color: #dfe6fa;
  border-radius: 8px;
  padding: 28px;
  box-shadow: -8px 10px 0 rgba(30, 63, 168, 0.25);
}
.ft1-flow__out .ft1-small {
  color: #aebbe3;
}
.ft1-flow__formula {
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 8px 12px;
  margin-block: 14px;
  color: #ffd86b;
  overflow-x: auto;
  white-space: nowrap;
}
.ft1-flow__big {
  font-family: var(--ft1-font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.4;
  color: #fff;
}

/* ---------- Benefits: before / after ledger ---------- */
.ft1-delta {
  border: 1px solid var(--ft1-line);
  background: var(--ft1-sheet);
  border-radius: 8px;
  overflow: hidden;
}
.ft1-delta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ft1-line-soft);
}
.ft1-delta__row:first-child {
  border-top: 0;
}
.ft1-delta__head {
  background: #eef1ec;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ft1-muted);
}
.ft1-delta__head > div {
  padding: 10px 24px;
}
.ft1-delta__row > div {
  padding: 22px 24px;
  line-height: 1.75;
}
.ft1-delta__before {
  color: var(--ft1-muted);
  position: relative;
  border-inline-end: 1px solid var(--ft1-line-soft);
}
.ft1-delta__before::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 0;
  width: 4px;
  background: var(--ft1-red);
  opacity: 0.7;
}
.ft1-delta__after {
  font-weight: 600;
  color: var(--ft1-deep);
  position: relative;
}
.ft1-delta__after::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 0;
  width: 4px;
  background: var(--ft1-green);
}
.ft1-delta__tag {
  display: none;
}

/* ---------- Preview (deep band) ---------- */
.ft1-preview {
  margin-top: 8px;
}
.ft1-preview .ft1-xl {
  box-shadow: -12px 14px 0 rgba(255, 255, 255, 0.07);
  border-color: #2b3a73;
}
.ft1-panels {
  position: relative;
}
.ft1-panel {
  padding: 20px;
  min-height: 400px;
}
.ft1-panel[hidden] {
  display: none;
}
.ft1-panel.is-entering {
  animation: ft1-pan 0.28s ease;
}
@keyframes ft1-pan {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.ft1-sheettabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 12px 0;
  background: #e6ebe3;
  border-top: 1px solid var(--ft1-line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.ft1-sheettabs [role="tab"] {
  flex: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 9px 18px 10px;
  background: #d3dacf;
  color: #3a4660;
  border: 1px solid var(--ft1-line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s;
}
.ft1-sheettabs [role="tab"]:hover {
  background: #c5cec1;
}
.ft1-sheettabs [role="tab"][aria-selected="true"] {
  background: var(--ft1-sheet);
  color: var(--ft1-deep);
  padding-top: 11px;
}
.ft1-sheettabs [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--ft1-tab, var(--ft1-green));
}
.ft1-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ft1-line-soft);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.ft1-kpi {
  padding: 14px 16px;
  border-inline-start: 1px solid var(--ft1-line-soft);
  line-height: 1.4;
}
.ft1-kpi:first-child {
  border-inline-start: 0;
}
.ft1-kpi span {
  display: block;
  font-size: 0.82rem;
  color: var(--ft1-muted);
}
.ft1-kpi b {
  display: block;
  direction: ltr;
  text-align: right;
  font-family: var(--ft1-font-display);
  font-size: 1.45rem;
  margin-top: 4px;
}
.ft1-kpi--profit b {
  color: var(--ft1-green);
}
.ft1-dash {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
}
.ft1-subhead {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ft1-deep);
  line-height: 1.5;
}
.ft1-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 190px;
  padding-bottom: 28px;
  position: relative;
  border-bottom: 2px solid var(--ft1-deep);
}
.ft1-chart__col {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  position: relative;
}
.ft1-chart__col i {
  display: block;
  width: 42%;
  max-width: 22px;
  border-radius: 2px 2px 0 0;
}
.ft1-chart__col i.s {
  background: var(--ft1-ink);
  height: var(--h);
}
.ft1-chart__col i.p {
  background: var(--ft1-green);
  height: var(--h);
}
.ft1-chart__col em {
  position: absolute;
  bottom: -28px;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--ft1-muted);
  white-space: nowrap;
}
.ft1-legend {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--ft1-muted);
  margin-top: 10px;
}
.ft1-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-inline-end: 6px;
}
.ft1-break {
  display: grid;
  gap: 12px;
}
.ft1-break__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ft1-break__row b {
  direction: ltr;
  font-weight: 600;
}
.ft1-break__row .ft1-bar {
  grid-column: 1 / -1;
}
.ft1-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--ft1-line-soft);
  border-radius: 6px;
}
.ft1-mini {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ft1-mini th,
.ft1-mini td {
  padding: 9px 14px;
  text-align: start;
  border-bottom: 1px solid var(--ft1-line-soft);
  white-space: nowrap;
}
.ft1-mini th {
  background: #eef1ec;
  font-size: 0.8rem;
  color: var(--ft1-muted);
  font-weight: 600;
}
.ft1-mini td.n {
  direction: ltr;
  text-align: right;
  font-weight: 600;
}
.ft1-mini tfoot td {
  background: #f4f8f3;
  font-weight: 700;
  border-bottom: 0;
}
.ft1-pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.7;
}
.ft1-pill--due {
  background: var(--ft1-amber-soft);
  color: var(--ft1-amber);
}
.ft1-pill--late {
  background: var(--ft1-red-soft);
  color: var(--ft1-red);
}
.ft1-pill--paid {
  background: var(--ft1-green-soft);
  color: var(--ft1-green);
}
.ft1-panelnote {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--ft1-muted);
}
.ft1-caption {
  margin-top: 22px;
  font-size: 0.92rem;
  color: #b7c3e6;
}

/* ---------- Contents index ---------- */
.ft1-index {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ft1-sheet);
  border: 1px solid var(--ft1-line);
  border-radius: 8px;
  overflow: hidden;
}
.ft1-index th,
.ft1-index td {
  padding: 18px 22px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--ft1-line-soft);
  line-height: 1.7;
}
.ft1-index thead th {
  background: #eef1ec;
  font-size: 0.88rem;
  color: var(--ft1-muted);
  padding-block: 10px;
}
.ft1-index tbody tr:last-child th,
.ft1-index tbody tr:last-child td {
  border-bottom: 0;
}
.ft1-index tbody th {
  font-weight: 700;
  width: 24%;
  white-space: nowrap;
  position: relative;
  padding-inline-start: 34px;
}
.ft1-index tbody th::before {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  top: 25px;
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: var(--ft1-tc, var(--ft1-ink));
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  height: auto;
  width: 5px;
  border-radius: 0;
}
.ft1-index td:last-child {
  width: 18%;
  font-weight: 600;
  color: var(--ft1-deep);
}
.ft1-pack {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ft1-line);
  border-radius: 8px;
  background: var(--ft1-sheet);
  overflow: hidden;
}
.ft1-pack > div {
  padding: 20px 22px;
  border-inline-start: 1px solid var(--ft1-line-soft);
  line-height: 1.7;
}
.ft1-pack > div:first-child {
  border-inline-start: 0;
}
.ft1-pack b {
  display: block;
  font-size: 1.05rem;
}
.ft1-pack span {
  color: var(--ft1-muted);
  font-size: 0.93rem;
}

/* ---------- Fit / not fit ---------- */
.ft1-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ft1-fit__col h3 {
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--ft1-deep);
}
.ft1-fit__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ft1-fit__col li {
  display: flex;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--ft1-line);
  line-height: 1.7;
}
.ft1-fit__col .ft1-icon {
  margin-top: 0.32em;
}
.ft1-fit__col--yes .ft1-icon {
  color: var(--ft1-green);
}
.ft1-fit__col--no .ft1-icon {
  color: var(--ft1-red);
}
.ft1-fit__col--no li {
  color: var(--ft1-muted);
}

/* ---------- Steps (a true sequence, so numbered) ---------- */
.ft1-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ft1step;
  position: relative;
}
.ft1-steps::before {
  content: "";
  position: absolute;
  inset-inline: 40px;
  top: 33px;
  border-top: 2px dashed var(--ft1-ink);
  opacity: 0.45;
}
.ft1-steps li {
  position: relative;
  counter-increment: ft1step;
}
.ft1-steps li::before {
  content: counter(ft1step);
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: var(--ft1-sheet);
  border: 2px solid var(--ft1-ink);
  border-radius: 6px;
  font-family: var(--ft1-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ft1-ink);
  margin-bottom: 18px;
  position: relative;
}
.ft1-steps h3 {
  margin-bottom: 8px;
}
.ft1-steps p {
  margin: 0;
  color: var(--ft1-muted);
  max-width: 24em;
}

/* ---------- Offer ---------- */
.ft1-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.ft1-price {
  background: var(--ft1-sheet);
  color: var(--ft1-text);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: -12px 14px 0 rgba(255, 255, 255, 0.1);
  border-top: 6px solid var(--ft1-ink);
}
.ft1-price__name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 10px;
}
.ft1-price__amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ft1-font-display);
  color: var(--ft1-deep);
  line-height: 1.1;
}
.ft1-price__amount b {
  font-size: clamp(3.4rem, 9vw, 4.6rem);
  font-weight: 700;
  direction: ltr;
}
.ft1-price__amount span {
  font-family: var(--ft1-font-body);
  font-weight: 600;
  font-size: 1.3rem;
}
.ft1-price__terms {
  margin: 10px 0 24px;
  color: var(--ft1-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.ft1-price .ft1-small {
  margin: 14px 0 0;
  text-align: center;
}
.ft1-incl {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ft1-incl li {
  display: flex;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  line-height: 1.7;
}
.ft1-incl li:first-child {
  padding-top: 0;
}
.ft1-incl .ft1-icon {
  color: #7fe0ab;
  margin-top: 0.32em;
}
.ft1-incl strong {
  color: #fff;
  display: block;
}
.ft1-incl span {
  color: #b7c3e6;
  font-size: 0.95rem;
}

/* ---------- FAQ (Bootstrap accordion, restyled) ---------- */
.ft1 .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--ft1-line);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--ft1-deep);
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-body-padding-x: 0;
}
.ft1 .accordion-item {
  border-inline: 0;
  border-top: 0;
  background: transparent;
}
.ft1 .accordion-item:first-child {
  border-top: 1px solid var(--ft1-line);
}
.ft1 .accordion-button {
  font-family: var(--ft1-font-body);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.6;
  padding-block: 22px;
  color: var(--ft1-deep);
  background: transparent;
  box-shadow: none;
  gap: 16px;
}
.ft1 .accordion-button:not(.collapsed) {
  box-shadow: none;
}
.ft1 .accordion-button:focus-visible {
  outline: 3px solid var(--ft1-ink);
  outline-offset: 2px;
}
.ft1 .accordion-body {
  padding-top: 0;
  padding-bottom: 24px;
  color: var(--ft1-muted);
  max-width: 44em;
  line-height: 1.95;
}

/* ---------- Final CTA ---------- */
.ft1-final {
  text-align: center;
}
.ft1-final .ft1-h2 {
  margin-inline: auto;
  max-width: 18em;
}
.ft1-final .ft1-lead {
  margin: 16px auto 32px;
}

/* ---------- Footer ---------- */
.ft1-footer {
  padding-block: 40px;
  background: var(--ft1-deep);
  color: #b7c3e6;
  font-size: 0.92rem;
  line-height: 1.8;
}
.ft1-footer .ft1-brand {
  color: #fff !important;
}
.ft1-footer p {
  margin: 10px 0 0;
  max-width: 44em;
}

/* ---------- Sticky purchase bar (phones & tablets) ---------- */
.ft1-sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px var(--ft1-gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ft1-sheet);
  border-top: 1px solid var(--ft1-line);
  box-shadow: 0 -8px 24px rgba(15, 27, 61, 0.12);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.ft1-sticky.is-visible {
  transform: translateY(0);
}
.ft1-sticky__price {
  line-height: 1.25;
  min-width: 0;
}
.ft1-sticky__price small {
  display: block;
  color: var(--ft1-muted);
  font-size: 0.78rem;
}
.ft1-sticky__price b {
  font-family: var(--ft1-font-display);
  font-size: 1.5rem;
  color: var(--ft1-deep);
}
.ft1-sticky .ft1-btn {
  flex: 1;
  min-height: 50px;
  padding-inline: 16px;
}

/* ---------- Toast ---------- */
.ft1-toast {
  position: fixed;
  inset-inline: var(--ft1-gutter);
  bottom: 96px;
  margin-inline: auto;
  max-width: 440px;
  z-index: 1040;
  background: var(--ft1-deep);
  color: #fff;
  border-radius: var(--ft1-radius);
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  box-shadow: 0 10px 30px rgba(15, 27, 61, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.ft1-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- The one orchestrated entrance (hero sheet) ---------- */
.ft1-rise {
  opacity: 0;
  transform: translateY(14px);
}
.ft1.ft1-ready .ft1-rise {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.ft1-xl .ft1-bar i {
  transition-delay: 0s;
}
.ft1:not(.ft1-ready) .ft1-xl[data-ft1-calc] .ft1-bar i {
  width: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ft1 {
    padding-bottom: 84px;
  }
  .ft1-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ft1-flow__join {
    min-height: 44px;
    height: 44px;
  }
  .ft1-flow__join::before {
    inset-block: 0;
    inset-inline: 22% 22%;
    width: auto;
    border: 2px solid var(--ft1-ink);
    border-top: 0;
    height: 50%;
    inset-block-end: auto;
  }
  .ft1-flow__join::after {
    inset-block: auto;
    top: 50%;
    inset-inline-start: 50%;
    width: 0;
    height: 50%;
    border: 0;
    border-inline-start: 2px solid var(--ft1-ink);
    margin: 0;
  }
  .ft1-offer {
    grid-template-columns: 1fr;
  }
  .ft1-dash {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ft1 {
    --ft1-gutter: 16px;
    font-size: 1rem;
  }
  .ft1-panel {
    padding: 14px;
    min-height: 0;
  }
  .ft1-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ft1-kpi:nth-child(3) {
    border-inline-start: 0;
  }
  .ft1-kpi:nth-child(n + 3) {
    border-top: 1px solid var(--ft1-line-soft);
  }
  .ft1-kpi b {
    font-size: 1.2rem;
  }
  .ft1-notebook {
    --ft1-ruled: 52px;
    padding-inline-start: 46px;
  }
  .ft1-notebook::before {
    inset-inline-start: 32px;
  }
  .ft1-notebook li {
    padding-inline: 14px;
    font-size: 1rem;
  }

  /* before / after becomes stacked rows */
  .ft1-delta__head {
    display: none;
  }
  .ft1-delta__row {
    grid-template-columns: 1fr;
  }
  .ft1-delta__before {
    border-inline-end: 0;
    border-bottom: 1px dashed var(--ft1-line);
    padding-bottom: 16px !important;
  }
  .ft1-delta__after {
    padding-top: 16px !important;
  }
  .ft1-delta__tag {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ft1-muted);
    margin-bottom: 2px;
  }

  /* index table becomes stacked blocks */
  .ft1-index,
  .ft1-index tbody,
  .ft1-index tr,
  .ft1-index th,
  .ft1-index td {
    display: block;
    width: 100% !important;
  }
  .ft1-index thead {
    display: none;
  }
  .ft1-index tbody tr {
    position: relative;
    padding: 16px 20px 16px 16px;
    padding-inline-start: 22px;
    border-bottom: 1px solid var(--ft1-line-soft);
  }
  .ft1-index tbody tr:last-child {
    border-bottom: 0;
  }
  .ft1-index th,
  .ft1-index td {
    padding: 0 !important;
    border: 0 !important;
  }
  .ft1-index tbody th {
    white-space: normal;
    margin-bottom: 4px;
  }
  .ft1-index tbody th::before {
    inset-block: -16px;
    inset-inline-start: -22px;
  }
  .ft1-index td:last-child {
    margin-top: 6px;
    font-size: 0.9rem;
  }
  .ft1-pack {
    grid-template-columns: 1fr;
  }
  .ft1-pack > div {
    border-inline-start: 0;
    border-top: 1px solid var(--ft1-line-soft);
  }
  .ft1-pack > div:first-child {
    border-top: 0;
  }
  .ft1-fit {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ft1-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ft1-steps::before {
    inset-inline: auto;
    inset-inline-start: 32px;
    top: 40px;
    bottom: 40px;
    border-top: 0;
    border-inline-start: 2px dashed var(--ft1-ink);
  }
  .ft1-steps li {
    display: grid;
    grid-template-columns: 66px 1fr;
    column-gap: 18px;
    padding-bottom: 28px;
  }
  .ft1-steps li::before {
    grid-row: span 2;
    margin: 0;
  }
  .ft1-hero__actions .ft1-btn {
    width: 100%;
  }
  .ft1-sheetgrid {
    grid-template-columns: 26px minmax(0, 1fr) 104px 44px;
    font-size: 0.9rem;
  }
  .ft1-sheetgrid > div,
  .ft1-sheetgrid > label {
    padding: 9px 8px;
  }
  .ft1-result {
    font-size: 1.3rem;
  }
  .ft1-xl {
    box-shadow: -6px 8px 0 rgba(15, 27, 61, 0.1);
  }
}

@media (min-width: 992px) {
  .ft1-sticky,
  .ft1-toast {
    bottom: 24px;
  }
  .ft1-sticky {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft1 *,
  .ft1 *::before,
  .ft1 *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ft1-rise {
    opacity: 1;
    transform: none;
  }
}
