@font-face {
    font-family: "Tools Lato";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/assets/fonts/lato/lato-black.woff") format("woff");
}
.tools-page {
    --tools-ink: #0b1220;
    --tools-muted: #626a77;
    --tools-blue: #065bff;
    background: #fff;
    color: var(--tools-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    padding: 140px 0 80px;
    min-height: 100vh;
}
.tools-page *, .tools-page *::before, .tools-page *::after { box-sizing: border-box; }
.tools-shell { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }
.tools-intro { text-align: center; margin: 0 auto 48px; max-width: 1120px; }
.tools-intro h1 {
    font: 900 clamp(36px, 4.2vw, 56px)/1.16 "Tools Lato", "Segoe UI", Arial, sans-serif;
    letter-spacing: -.035em;
    color: var(--tools-ink);
    margin: 0 0 20px;
    text-wrap: balance;
}
.tools-intro p { color: var(--tools-muted); font-size: 19px; line-height: 1.65; margin: 0; }
.tools-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.tools-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: var(--tools-ink);
    text-decoration: none;
}
.tools-card:hover { border-color: #a8b8d0; color: var(--tools-ink); }
.tools-card:focus-visible { outline: 3px solid var(--tools-blue); outline-offset: 5px; }
.tools-visual { overflow: hidden; height: 300px; background: #f4f5f6; }
.tools-visual--canvas, .tools-visual--roomflow { height: 380px; }
.tools-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tools-card-content { padding: 24px; display: flex; align-items: flex-end; gap: 20px; flex: 1; }
.tools-card-copy { min-width: 0; flex: 1; }
.tools-card h2 { font: 900 27px/1.2 "Tools Lato", "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; color: var(--tools-ink); margin: 0 0 10px; }
.tools-card p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--tools-muted); }
.tools-card-action { display: inline-flex; gap: 9px; align-items: center; white-space: nowrap; color: var(--tools-blue); font-size: 15px; font-weight: 600; }
.tools-card:hover .tools-card-action { text-decoration: underline; text-underline-offset: 5px; }
.tools-card--roomflow .tools-card-content, .tools-card--imageforge .tools-card-content { align-items: flex-start; flex-direction: column; }
.tools-card--auto3d { grid-column: 1 / -1; flex-direction: row-reverse; background: #f3f6fa; min-height: 310px; }
.tools-card--auto3d .tools-visual { width: 64%; height: auto; min-height: 310px; }
.tools-card--auto3d .tools-visual img { object-fit: cover; }
.tools-card--auto3d .tools-card-content { width: 36%; flex: none; padding: 40px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; }
.tools-card--auto3d .tools-card-copy { flex: none; }
.tools-moodboard { position: relative; height: 100%; background: radial-gradient(#d4d9df .7px, transparent .7px) 0 0 / 14px 14px, #f7f8f9; }
.tools-moodboard img { position: absolute; object-fit: cover; display: block; box-shadow: 0 3px 16px #0b122014; border: 6px solid #fff; }
.tools-board-main { left: 5%; top: 10%; width: 62%; height: 59%; }
.tools-board-plan { right: 4%; top: 6%; width: 25%; height: 39%; object-fit: contain !important; background: #fff; }
.tools-board-room { right: 5%; bottom: 7%; width: 44%; height: 44%; }
.tools-swatches { display: flex; gap: 10px; position: absolute; left: 6%; bottom: 18%; }
.tools-swatches i { width: 28px; height: 28px; border-radius: 50%; background: #ded4c3; }
.tools-swatches i:nth-child(2) { background: #94836b; }
.tools-swatches i:nth-child(3) { background: #546053; }
.tools-swatches i:nth-child(4) { background: #373b3d; }
.tools-board-note { position: absolute; bottom: 8%; left: 6%; font-size: 14px; color: #626a77; letter-spacing: .04em; }
.tools-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 44px 0; font-size: 14px; color: var(--tools-muted); }
.tools-footer a { color: var(--tools-ink); font-weight: 700; }
/* Headings and copy follow the page's own ink, light or dark (dark theme at the end). */
body.dark-mode .tools-page h1,
body.dark-mode .tools-page h2 { color: var(--tools-ink) !important; }
body.dark-mode .tools-page p { color: var(--tools-muted) !important; }
@media (max-width: 1000px) {
    .tools-shell { width: calc(100% - 48px); }
    .tools-page { padding-top: 120px; }
    .tools-grid { gap: 18px; }
    .tools-visual--canvas, .tools-visual--roomflow { height: 300px; }
    .tools-card-content { flex-direction: column; align-items: flex-start; padding: 22px; }
    .tools-card--auto3d .tools-card-content { padding: 28px; width: 40%; }
    .tools-card--auto3d .tools-visual { width: 60%; }
}
@media (max-width: 700px) {
    .tools-page { padding-top: 106px; padding-bottom: 40px; }
    .tools-shell { width: calc(100% - 32px); }
    .tools-intro { margin-bottom: 30px; }
    .tools-intro h1 { font-size: 34px; line-height: 1.25; }
    .tools-intro p { font-size: 16px; }
    .tools-grid { grid-template-columns: 1fr; gap: 20px; }
    .tools-visual, .tools-visual--canvas, .tools-visual--roomflow { height: auto; aspect-ratio: 1.5; }
    .tools-card-content { padding: 22px; gap: 18px; }
    .tools-card h2 { font-size: 25px; }
    .tools-card--auto3d { flex-direction: column; min-height: 0; }
    .tools-card--auto3d .tools-visual { width: 100%; min-height: 0; }
    .tools-card--auto3d .tools-card-content { width: 100%; padding: 22px; gap: 18px; }
    .tools-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 32px 0; }
}

/* Case imagery: preserve image proportions and shared row alignment. */
.tools-grid { container-type: inline-size; }
.tools-visual { flex-shrink: 0; }
.tools-visual--canvas, .tools-visual--roomflow { height: calc((100cqw - 24px) * .6 / 1.85); }
.tools-visual--snaprender, .tools-visual--imageforge { height: calc((100cqw - 24px) * .6 / 2.55); }
.tools-visual--roomflow img { object-position: right center; }
.tools-visual--snaprender img { object-position: center 38%; }
.tools-card--auto3d { background: #eeeae3; min-height: 0; }
.tools-card--auto3d .tools-visual { width: 68%; height: calc(100cqw * .68 / 3); min-height: 0; }
.tools-card--auto3d .tools-visual img { object-position: center 52%; }
.tools-card--auto3d .tools-card-content { width: 32%; padding: 28px; gap: 20px; }
@media (max-width: 1000px) and (min-width: 701px) {
  .tools-visual--canvas, .tools-visual--roomflow { height: calc((100cqw - 18px) * .6 / 1.85); }
  .tools-visual--snaprender, .tools-visual--imageforge { height: calc((100cqw - 18px) * .6 / 2.55); }
  .tools-card--auto3d .tools-visual { height: auto; }
  .tools-card--auto3d .tools-visual img { object-fit: contain; background: #eeeae3; }
}
@media (max-width: 700px) {
  .tools-visual--canvas, .tools-visual--roomflow, .tools-visual--snaprender, .tools-visual--imageforge { height: auto; aspect-ratio: 1.5; }
  .tools-card--auto3d .tools-visual { width: 100%; height: auto; aspect-ratio: 2.7; }
  .tools-card--auto3d .tools-card-content { width: 100%; padding: 22px; }
}

/* Dark theme: the site's dark surfaces (page #0b1220, cards #111827 / #1f2937
   lines) instead of the white editorial page. Pictures keep their own colours. */
body.dark-mode .tools-page {
    --tools-ink: #f3f4f6;
    --tools-muted: #9ca3af;
    --tools-blue: #60a5fa;
    background: #0b1220;
}
body.dark-mode .tools-card {
    background: #111827;
    border-color: #1f2937;
}
body.dark-mode .tools-card:hover { border-color: #3b4a63; }
body.dark-mode .tools-visual { background: #1f2937; }
body.dark-mode .tools-card--auto3d { background: #111827; }
body.dark-mode .tools-moodboard {
    background: radial-gradient(#334155 .7px, transparent .7px) 0 0 / 14px 14px, #111827;
}
body.dark-mode .tools-moodboard img { border-color: #1f2937; box-shadow: 0 3px 16px rgba(0, 0, 0, .45); }
body.dark-mode .tools-board-plan { background: #f3f4f6; }
body.dark-mode .tools-board-note { color: #9ca3af; }