/* Free tools page (/free-tools, 13 Oct 2026). Built Logic brand only.
   Colours: Charcoal #232A31, Off-White #FAFAF8, Consulting Blue #1B3A5B, Light Blue #AFC4DD,
   Steel Grey #586069, Soft Stone #E5E5E2, Hover #17314D.
   One idea carried down the page: each card shows what you walk away with. */

.ft-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ft-wrap { padding: 0 32px; } }

/* Hero */
.ft-hero { padding: 132px 0 40px; }
.ft-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .ft-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.ft-hero h1 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; color: #232A31; margin: 0; max-width: 16ch; }
.ft-lead { font-size: 19px; line-height: 1.5; color: #586069; max-width: 54ch; margin: 18px 0 0; }
.ft-jump { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.ft-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: rgba(175, 196, 221, 0.45); color: #1B3A5B; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 200ms ease-out, color 200ms ease-out; }
.ft-jump a:focus-visible { outline: 3px solid #1B3A5B; outline-offset: 2px; }

/* Hero pile: three finished documents, level, overlapping */
.ft-pile { position: relative; height: 380px; max-width: 460px; margin: 0 auto; width: 100%; }
.ft-pile .ft-sheet { position: absolute; width: 62%; height: 300px; box-shadow: 0 18px 40px rgba(35, 42, 49, 0.12); }
.ft-pile .ft-sheet:nth-child(1) { left: 0; top: 56px; }
.ft-pile .ft-sheet:nth-child(2) { left: 19%; top: 28px; }
.ft-pile .ft-sheet:nth-child(3) { left: 38%; top: 0; }
@media (max-width: 600px) { .ft-pile { height: 300px; } .ft-pile .ft-sheet { height: 240px; } }

/* Groups */
.ft-group { padding: 56px 0; scroll-margin-top: 96px; }
.ft-group--tint { background: rgba(175, 196, 221, 0.22); }
.ft-group__head { max-width: 62ch; margin: 0 0 28px; }
.ft-group__head h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; color: #232A31; margin: 0; }
.ft-group__head p { font-size: 19px; line-height: 1.5; color: #586069; margin: 10px 0 0; }
.ft-cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .ft-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ft-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Card: the preview on top, then name, line, formats and the link */
.ft-card { position: relative; display: flex; flex-direction: column; background: #FAFAF8; border: 1px solid rgba(35, 42, 49, 0.1); border-radius: 20px; overflow: hidden; transition: transform 250ms cubic-bezier(.2, .8, .2, 1), box-shadow 250ms ease, border-color 250ms ease; }
.ft-card::before { content: ''; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 4px; background: #1B3A5B; transform: scaleX(0); transform-origin: left; transition: transform 250ms cubic-bezier(.2, .8, .2, 1); }
.ft-card__stage { position: relative; height: 210px; background: #E5E5E2; display: grid; place-items: center; overflow: hidden; }
.ft-group--tint .ft-card__stage { background: rgba(175, 196, 221, 0.4); }
.ft-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.ft-card h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 23px; line-height: 1.2; color: #232A31; margin: 0; }
.ft-card p { font-size: 17px; line-height: 1.5; color: #232A31; margin: 10px 0 0; }
.ft-card .ft-meta { font-size: 14px; color: #586069; margin: 12px 0 0; }
.ft-card__link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 16px; color: #1B3A5B; text-decoration: none; }
.ft-card__link::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 20px; }
.ft-card__link span { display: inline-block; transition: transform 200ms ease-out; }
.ft-card__link:focus-visible { outline: none; }
.ft-card:focus-within { outline: 3px solid #1B3A5B; outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .ft-jump a:hover { background: #1B3A5B; color: #FAFAF8; }
  .ft-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(35, 42, 49, 0.1); border-color: rgba(27, 58, 91, 0.3); }
  .ft-card:hover::before { transform: scaleX(1); }
  .ft-card:hover .ft-card__link span { transform: translateX(4px); }
  .ft-card:hover .ft-sheet { transform: translateY(-6px); }
}

/* A finished document, drawn: letterhead, title, lines */
.ft-sheet { position: relative; width: 230px; max-width: 80%; height: 176px; margin-top: 46px; background: #FAFAF8; border-radius: 10px 10px 0 0; box-shadow: 0 10px 28px rgba(35, 42, 49, 0.1); padding: 14px 16px; transition: transform 250ms cubic-bezier(.2, .8, .2, 1); }
.ft-pile .ft-sheet { border-radius: 12px; margin: 0; max-width: none; padding: 18px 20px; }
.ft-sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ft-sheet__logo { font-size: 11px; font-weight: 600; color: #586069; border: 1px dashed #586069; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.ft-sheet__brand { width: 34px; height: 8px; border-radius: 4px; background: #1B3A5B; }
.ft-sheet__title { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 15px; line-height: 1.2; color: #232A31; margin: 12px 0 10px; }
.ft-pile .ft-sheet__title { font-size: 18px; margin-top: 16px; }
.ft-line { display: block; height: 6px; border-radius: 3px; background: #E5E5E2; margin: 0 0 8px; }
.ft-line--80 { width: 80%; } .ft-line--60 { width: 60%; } .ft-line--90 { width: 90%; } .ft-line--45 { width: 45%; }
.ft-tag { display: inline-block; font-size: 11px; font-weight: 600; color: #232A31; background: #E5E5E2; border: 1px dashed #586069; border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.ft-clause { font-size: 11px; line-height: 1.3; font-weight: 600; color: #1B3A5B; margin: 2px 0 6px; }
.ft-rows { display: grid; gap: 6px; margin-top: 4px; }
.ft-row { display: grid; grid-template-columns: 1fr 22px; gap: 8px; align-items: center; }
.ft-row .ft-line { margin: 0; }
.ft-tick { width: 22px; height: 16px; border-radius: 4px; border: 1.5px solid #586069; position: relative; }
.ft-tick--on::after { content: ''; position: absolute; left: 6px; top: 1px; width: 5px; height: 9px; border: solid #1B3A5B; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Policy pack: three files side by side, level */
.ft-files { display: flex; align-items: flex-end; gap: 0; margin-top: 46px; }
.ft-files .ft-sheet { width: 128px; height: 160px; margin: 0 -22px 0 0; padding: 12px; }
.ft-files .ft-sheet:nth-child(2) { height: 172px; }
.ft-files .ft-sheet:nth-child(3) { height: 184px; margin-right: 0; }
.ft-files .ft-sheet__title { font-size: 13px; margin: 8px 0; }
.ft-xl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ft-xl i { height: 9px; border-radius: 2px; background: #E5E5E2; }
.ft-xl i:nth-child(3n+1) { background: rgba(175, 196, 221, 0.7); }

/* Calculators: a figure panel */
.ft-figure { width: 76%; max-width: 280px; background: #FAFAF8; border-radius: 14px; box-shadow: 0 10px 28px rgba(35, 42, 49, 0.1); padding: 16px 18px; transition: transform 250ms cubic-bezier(.2, .8, .2, 1); }
.ft-figure__label { font-size: 12px; font-weight: 600; color: #586069; margin: 0; }
.ft-figure__value { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; font-size: 26px; line-height: 1.1; color: #1B3A5B; margin: 6px 0 12px; }
.ft-figure__value small { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 13px; font-weight: 600; color: #586069; }
.ft-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #232A31; padding: 6px 0; border-top: 1px solid #E5E5E2; }
.ft-item b { font-weight: 600; color: #586069; }
.ft-bars { display: grid; gap: 8px; }
.ft-bar { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; color: #586069; }
.ft-bar i { display: block; height: 14px; border-radius: 7px; background: #1B3A5B; }
.ft-bar--after i { width: 46%; background: #AFC4DD; }
.ft-gauge { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine){.ft-card:hover .ft-figure{ transform: translateY(-6px); }}

@media (prefers-reduced-motion: reduce) {
  .ft-card, .ft-card::before, .ft-card__link span, .ft-sheet, .ft-figure, .ft-jump a { transition: none; }
  @media (hover: hover) and (pointer: fine){.ft-card:hover,.ft-card:hover .ft-sheet,.ft-card:hover .ft-figure{ transform: none; }}
}

/* Straight answers */
.ft-answers { padding: 56px 0 72px; }
.ft-answers h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; color: #232A31; margin: 0 0 22px; }
.ft-answers__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .ft-answers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ft-answer { background: #FAFAF8; border: 1px solid #E5E5E2; border-radius: 16px; padding: 20px 22px; }
.ft-answer h3 { font-family: "Source Sans 3", system-ui, sans-serif; font-weight: 600; font-size: 18px; color: #232A31; margin: 0; }
.ft-answer p { font-size: 17px; line-height: 1.5; color: #232A31; margin: 8px 0 0; }
.ft-answer a { color: #1B3A5B; font-weight: 600; }

/* "More free tools are on the way": one work-email box, Charcoal panel */
.ft-updates { padding: 8px 0 24px; }
.ft-updates__box { display: grid; gap: 24px; align-items: center; background: #232A31; color: #FAFAF8; border-radius: 24px; padding: 32px 24px; }
@media (min-width: 900px) { .ft-updates__box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 44px 48px; } }
.ft-updates h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: #FAFAF8; margin: 0; }
.ft-updates__lead { font-size: 19px; line-height: 1.5; color: #AFC4DD; margin: 10px 0 0; }
.ft-updates__label { display: block; font-weight: 600; font-size: 16px; color: #FAFAF8; margin: 0 0 8px; }
.ft-updates__row { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-updates__row input { flex: 1 1 220px; min-height: 48px; padding: 10px 14px; font: 400 17px/1.4 "Source Sans 3", system-ui, sans-serif; color: #232A31; background: #FAFAF8; border: 1.5px solid #FAFAF8; border-radius: 12px; }
.ft-updates__row button { min-height: 48px; padding: 10px 20px; font: 600 16px/1.2 "Source Sans 3", system-ui, sans-serif; color: #232A31; background: #FAFAF8; border: 0; border-radius: 999px; cursor: pointer; transition: background-color 200ms ease-out; }
.ft-updates__row button:disabled { cursor: progress; opacity: .8; }
.ft-updates__row input:focus-visible, .ft-updates__row button:focus-visible { outline: 3px solid #AFC4DD; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ft-updates__row button:hover { background: #AFC4DD; } }
.ft-updates__message { font-size: 14px; color: #FAFAF8; margin: 10px 0 0; }
.ft-notice { font-size: 14px; line-height: 1.5; color: #AFC4DD; margin: 12px 0 0; }
.ft-notice a { color: #FAFAF8; }
.ft-updates__done-h { font-family: "Fraunces", Georgia, serif; font-size: 24px; color: #FAFAF8; margin: 0 0 6px; }
.ft-updates__done p:last-child { color: #AFC4DD; margin: 0; }
.ft-updates__form[hidden], .ft-updates__done[hidden], .ft-updates__message[hidden] { display: none; }
.ft-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
