/* Free tool pages. Builds on the tokens and components in /styles.css. */

.tool-page [hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tool-page :focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }
.tool-page main { position: relative; z-index: 1; }

/* Hero */
.tool-hero { padding: 150px 0 50px; }
.breadcrumbs ol { margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; color: var(--quiet); font-size: 12px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #3f3f46; }
.breadcrumbs a { transition: color 150ms; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--muted); }
.tool-hero h1 { max-width: 900px; margin: 20px 0 0; font-size: clamp(46px, 5.6vw, 76px); font-weight: 620; line-height: 0.98; letter-spacing: -0.06em; text-wrap: balance; }
.tool-lede { max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.tool-facts { margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: var(--quiet); font-size: 12px; }
.tool-facts li { display: inline-flex; align-items: center; gap: 8px; }
.tool-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(142, 92, 255, 0.8); }

/* Stage and panels */
.tool-stage { padding-bottom: 110px; }
.tool-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--bg); }
.tool-panel > * + * { margin-top: 22px; }
.output-panel { position: sticky; top: 104px; background: radial-gradient(circle at 80% 0%, rgba(142, 92, 255, 0.12), transparent 45%), #0c0c0f; }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.output-head h2, .output-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.output-count { color: var(--quiet); font-size: 12px; font-variant-numeric: tabular-nums; }
.output-text { margin: 16px 0 0; padding: 20px; min-height: 180px; overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(0, 0, 0, 0.35); color: #e4e4e7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.75; }
.output-text.small { min-height: 0; padding: 16px; font-size: 12px; line-height: 1.7; }
.output-text.is-empty { color: var(--quiet); font-family: inherit; }
.output-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-status { min-height: 1em; color: var(--lime); font-size: 12px; }
.next-step { padding-top: 22px; border-top: 1px solid var(--line-soft); }
.next-step p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.output-block + .output-block { padding-top: 22px; border-top: 1px solid var(--line-soft); }

/* Buttons */
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; font-size: 14px; font-weight: 650; cursor: pointer; transition: transform 180ms var(--ease), background 180ms, border-color 180ms, opacity 180ms; }
.button.primary { background: var(--primary); color: white; box-shadow: 0 12px 30px rgba(142, 92, 255, 0.28); }
.button.primary:hover:not(:disabled) { transform: translateY(-1px); background: #9a6dff; }
.button.ghost { min-height: 44px; border-color: var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.button.ghost:hover:not(:disabled) { border-color: rgba(189, 165, 255, 0.5); background: rgba(142, 92, 255, 0.08); }
.button.compact { min-height: 44px; padding: 0 16px; font-size: 13px; border-radius: 12px; }
.button:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 9px; }
.field > span, .chip-group legend, .segmented legend, .field-group legend { display: flex; justify-content: space-between; gap: 10px; padding: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.field output { color: var(--text); font-variant-numeric: tabular-nums; }
.field input[type="text"], .field input[type="number"], .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; line-height: 1.45; transition: border-color 150ms, background 150ms; }
.field textarea { resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: #52525b; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #3f3f46; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); background: var(--surface-2); }
.field input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.field input[type="color"] { width: 100%; height: 48px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.field input[type="color"]::-moz-color-swatch { border: 0; border-radius: 8px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.field-hint { margin-bottom: 0; color: var(--quiet); font-size: 12px; line-height: 1.6; }
.field-group { margin-inline: 0; padding: 18px; display: grid; gap: 14px; border: 1px dashed var(--line); border-radius: 16px; }
.field-group legend { padding: 0 6px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.chip-group legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color 150ms, background 150ms, color 150ms; }
.chips label:hover span { border-color: #3f3f46; color: var(--text); }
.chips input:checked + span { border-color: rgba(189, 165, 255, 0.6); background: rgba(142, 92, 255, 0.16); color: var(--text); }
.chips input:focus-visible + span, .segmented input:focus-visible + span { outline: 2px solid var(--primary-light); outline-offset: 2px; }

.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.segmented legend { width: 100%; margin-bottom: 10px; float: left; }
.segmented legend + label { clear: left; }
.segmented label { position: relative; flex: 1 1 0; }
.segmented span { min-height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 150ms, color 150ms; }
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(189, 165, 255, 0.35); }
/* A legend inside the segmented track sits outside it visually. */
fieldset.segmented:has(> legend:not(.visually-hidden)) { padding-top: 0; border: 0; background: none; }
fieldset.segmented:has(> legend:not(.visually-hidden)) label { background: var(--surface); }
fieldset.segmented:has(> legend:not(.visually-hidden)) label:first-of-type span, fieldset.segmented:has(> legend:not(.visually-hidden)) label:first-of-type { border-radius: 12px 0 0 12px; }

.toggle { position: relative; min-height: 44px; display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 14px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #3f3f46; transition: background 180ms; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: transform 180ms var(--ease); }
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--primary-light); outline-offset: 3px; }
.toggle input:disabled ~ * { opacity: 0.5; }

/* Model switcher on the prompt generators */
.model-switch { margin-bottom: 20px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.model-switch::-webkit-scrollbar { display: none; }
.model-switch a { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; transition: border-color 150ms, color 150ms; }
.model-switch a:hover { border-color: #3f3f46; color: var(--text); }
.model-switch a[aria-current] { border-color: rgba(189, 165, 255, 0.55); background: rgba(142, 92, 255, 0.14); color: var(--text); }

/* Drop zone */
.dropzone { min-height: 190px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 1px dashed rgba(189, 165, 255, 0.35); border-radius: 18px; background: radial-gradient(circle at 50% 0%, rgba(142, 92, 255, 0.1), transparent 70%), var(--surface); cursor: pointer; transition: border-color 150ms, background-color 150ms; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--primary-light); background-color: var(--surface-2); }
.dropzone:focus-within { outline: 2px solid var(--primary-light); outline-offset: 3px; }
.dropzone strong { font-size: 15px; }
.dropzone > span:last-child { color: var(--quiet); font-size: 13px; }
.dropzone-icon { width: 46px; height: 46px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 14px; background: rgba(142, 92, 255, 0.14); color: var(--primary-light); }
.dropzone-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note { margin-bottom: 0; display: flex; align-items: center; gap: 9px; color: var(--quiet); font-size: 12px; line-height: 1.5; }
.privacy-note svg { width: 15px; flex: none; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* HEIC file list */
.file-list { margin: 16px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.file-list li { min-height: 68px; padding: 10px 10px 10px 12px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(0, 0, 0, 0.3); }
.file-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.file-name { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { margin-top: 4px; color: var(--quiet); font-size: 12px; }
.file-meta.error { color: #fda4af; }
.empty-note { margin: 16px 0 0; padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--quiet); font-size: 13px; }
.spinner { width: 18px; height: 18px; margin: 13px; border: 2px solid var(--line); border-top-color: var(--primary-light); border-radius: 50%; animation: rotate 800ms linear infinite; }

/* Photo resizer */
.canvas-frame { position: relative; margin-top: 16px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: repeating-conic-gradient(#121215 0 25%, #0e0e11 0 50%) 0 0 / 22px 22px; }
.canvas-frame canvas { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; touch-action: none; cursor: grab; }
.canvas-frame canvas:active { cursor: grabbing; }
.canvas-frame.is-empty canvas { visibility: hidden; }
.canvas-empty { position: absolute; margin: 0; color: var(--quiet); font-size: 13px; }
.canvas-frame:not(.is-empty) .canvas-empty { display: none; }

/* Safe zone checker */
.safe-output { display: grid; justify-items: center; }
.phone-preview { --top: 130; --bottom: 400; --left: 60; --right: 150; position: relative; width: min(100%, 330px); aspect-ratio: 9 / 16; overflow: hidden; border: 6px solid #222229; border-radius: 34px; background: #050506; container-type: inline-size; }
.phone-media { position: absolute; inset: 0; display: grid; place-items: center; }
.phone-media img, .phone-media video { width: 100%; height: 100%; object-fit: cover; }
.phone-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #1c1630, #0c0c10 60%); color: var(--quiet); font-size: 13px; }
.safe-rect { position: absolute; top: calc(var(--top) / 1920 * 100%); bottom: calc(var(--bottom) / 1920 * 100%); left: calc(var(--left) / 1080 * 100%); right: calc(var(--right) / 1080 * 100%); border: 2px dashed var(--lime); border-radius: 6px; box-shadow: 0 0 0 999px rgba(236, 72, 153, 0.28); opacity: 0; transition: opacity 200ms; }
.phone-preview[data-view-mode="zones"] .safe-rect { opacity: 1; }
.phone-preview[data-view-mode="zones"] .ui-overlay { opacity: 0.35; }
.ui-overlay { position: absolute; inset: 0; pointer-events: none; transition: opacity 200ms; }
.ui-top { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--top) / 1920 * 100%); display: flex; align-items: flex-end; justify-content: center; gap: 6cqw; padding-bottom: 2cqw; background: linear-gradient(rgba(0, 0, 0, 0.5), transparent); color: rgba(255, 255, 255, 0.9); font-size: 4.2cqw; font-weight: 650; }
.ui-top span.dim { opacity: 0.6; }
.ui-rail { position: absolute; right: 2.5cqw; bottom: calc(var(--bottom) / 1920 * 100% + 2cqw); display: flex; flex-direction: column; align-items: center; gap: 5cqw; }
.ui-avatar { width: 11cqw; height: 11cqw; border: 2px solid white; border-radius: 50%; background: #3f3f46; }
.ui-icon { width: 9cqw; height: 9cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.88); }
.ui-caption { position: absolute; left: calc(var(--left) / 1080 * 100%); right: calc(var(--right) / 1080 * 100%); bottom: calc(var(--bottom) / 1920 * 100% * 0.42); display: grid; gap: 2.4cqw; }
.ui-line { height: 2.6cqw; width: 78%; border-radius: 99px; background: rgba(255, 255, 255, 0.82); }
.ui-line.strong { width: 40%; height: 3.4cqw; background: white; }
.ui-line.short { width: 52%; }
.ui-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--bottom) / 1920 * 100% * 0.3); display: flex; align-items: center; justify-content: space-around; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.78); }
.ui-bottom i { width: 6cqw; height: 6cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, 0.75); }
.ui-bottom i.plus { width: 11cqw; border-radius: 2cqw; background: white; }
.phone-preview[data-platform-view="reels"] .ui-icon { border-radius: 2.4cqw; background: rgba(255, 255, 255, 0.82); }
.phone-preview[data-platform-view="shorts"] .ui-icon { width: 11cqw; height: 11cqw; background: rgba(255, 255, 255, 0.22); }
.safe-legend { max-width: 360px; margin: 18px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.6; text-align: center; }

/* Cost calculator */
.calc-total { padding: 26px; border: 1px solid rgba(189, 165, 255, 0.22); border-radius: 18px; background: radial-gradient(circle at 100% 0%, rgba(142, 92, 255, 0.22), transparent 60%), var(--surface); }
.calc-label { display: block; color: var(--quiet); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.calc-total strong { display: block; margin-top: 14px; font-size: clamp(44px, 5vw, 60px); font-weight: 650; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.calc-sub { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.calc-breakdown, .calc-weekly { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.calc-plan { padding-top: 22px; border-top: 1px solid var(--line-soft); }
.calc-plan-list { margin: 14px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.calc-plan-list li { min-height: 52px; padding: 6px 6px 6px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(0, 0, 0, 0.3); font-size: 13px; }
.calc-plan-list strong { font-variant-numeric: tabular-nums; }
.calc-plan-list button { width: 44px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--quiet); font-size: 18px; cursor: pointer; }
.calc-plan-list button:hover { background: var(--surface-2); color: var(--text); }
.calc-plan-total { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.calc-plan-total strong { font-size: 17px; font-variant-numeric: tabular-nums; }

/* Trending prompts */
.trend-library { position: relative; }
.trend-filter { width: max-content; max-width: 100%; }
.trend-filter label { flex: 0 1 auto; }
.trend-filter span { padding: 0 18px; }
.trend-status { position: absolute; top: 14px; right: 0; }
.trend-grid { margin-top: 24px; columns: 3 340px; column-gap: 20px; }
.trend-card { margin-bottom: 20px; display: inline-block; width: 100%; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--bg); }
.trend-image { width: 100%; height: 220px; object-fit: cover; object-position: center 30%; border-bottom: 1px solid var(--line-soft); }
.trend-copy { padding: 22px; }
.trend-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--quiet); font-size: 12px; }
.trend-type { padding: 5px 9px; border: 1px solid rgba(189, 165, 255, 0.3); border-radius: 999px; color: var(--primary-light); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.trend-card h3 { margin: 14px 0 8px; font-size: 19px; letter-spacing: -0.03em; }
.trend-why { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.trend-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.trend-card:target { border-color: rgba(189, 165, 255, 0.6); }

/* Character generator */
.form-actions.top { justify-content: flex-start; }
.anchor-list { margin: 14px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.anchor-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.anchor-list li::before { content: ""; position: absolute; top: 7px; left: 2px; width: 7px; height: 7px; border-radius: 2px; background: var(--primary); }
.anchor-list:empty::after { content: "Anchors appear once you describe the character."; color: var(--quiet); font-size: 13px; }

/* Long-form copy */
.tool-body { padding-bottom: 40px; }
.prose { max-width: 760px; }
.prose h2 { margin: 64px 0 18px; font-size: clamp(28px, 3vw, 36px); font-weight: 620; line-height: 1.1; letter-spacing: -0.045em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; font-size: 19px; letter-spacing: -0.03em; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose ol, .prose ul { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin: 10px 0; padding-left: 4px; }
.prose li::marker { color: var(--primary-light); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--primary-light); text-decoration: underline; text-decoration-color: rgba(189, 165, 255, 0.4); text-underline-offset: 3px; transition: text-decoration-color 150ms; }
.prose a:hover { text-decoration-color: var(--primary-light); }
.prose table { width: 100%; margin: 6px 0 24px; border-collapse: collapse; font-size: 14px; }
.prose caption { padding-bottom: 12px; color: var(--text); font-size: 14px; font-weight: 650; text-align: left; }
.prose th, .prose td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { color: var(--quiet); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.prose tbody th { color: var(--text); font-weight: 600; }
.prose td { color: var(--muted); font-variant-numeric: tabular-nums; }
.table-note { color: var(--quiet); font-weight: 400; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll table { min-width: 520px; }
.prompt-example { margin: 0 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #0c0c0f; }
.prompt-example figcaption { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); color: var(--quiet); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.prompt-example pre { margin: 0; padding: 18px; white-space: pre-wrap; color: #d4d4d8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.75; }

/* FAQ, related tools and CTA on tool pages */
.tool-faq { padding-block: 100px; }
.related-tools { padding-bottom: 110px; }
.related-heading { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.related-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 620; letter-spacing: -0.045em; }
.tool-cta { min-height: 520px; }

/* Tools hub */
.tool-groups { padding-bottom: 80px; display: grid; gap: 70px; }
.tool-group-heading { margin-bottom: 24px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: end; }
.tool-group-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 620; letter-spacing: -0.045em; }
.tool-group-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

@media (max-width: 980px) {
  .tool-hero { padding-top: 130px; }
  .tool-columns { grid-template-columns: 1fr; }
  .output-panel { position: static; }
  .tool-group-heading { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 680px) {
  .tool-hero { padding: 110px 0 36px; }
  .breadcrumbs ol { margin-bottom: 26px; }
  .tool-hero h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .model-switch { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .model-switch a { justify-content: center; }
  .tool-lede { font-size: 16px; }
  .tool-stage { padding-bottom: 80px; }
  .tool-panel { padding: 20px; border-radius: 20px; }
  .output-text { padding: 16px; }
  .segmented span { padding: 0 8px; }
  .trend-status { position: static; display: block; margin-top: 10px; }
  .trend-grid { columns: 1; }
  .prose p, .prose li { font-size: 15px; }
  .related-heading { align-items: start; flex-direction: column; }
  .tool-faq { padding-block: 80px; }
}
