/* =====================================================================================================================================
   Every tool its own look (v0.96.1). The generator (scripts/make-landing.mjs) puts three classes on <main>:
     lay-<layout>  how the page is built (audit, research, write, dash, local, ai)
     acc-<n>       the accent, kept minimal (Rohan: not a rainbow): the cobalt family and ink only.
                   1 cobalt, 2 deep cobalt, 3 light cobalt, 4 dark cobalt, 5 ink. Cyan and violet are for chart series only.
   and the hero art has pat-<pattern>.
   Rules (Rohan, 2026-10-20: nothing that looks AI-made): no pill labels, no tiny capital labels, no short bar under a heading, no 01/02
   numbering, no card with a coloured edge, no glow. Sections are told apart by whole fields of colour, size of type and layout.
   The accent colours fields and big numerals; small text never uses it (contrast). Everything comes from the theme tokens.
   ===================================================================================================================================== */
.vx { --vx: var(--chart-1); }
.vx.acc-1 { --vx: var(--chart-1); }
.vx.acc-2 { --vx: var(--accent-strong); }
.vx.acc-3 { --vx: color-mix(in srgb, var(--chart-1) 55%, white); }
.vx.acc-4 { --vx: color-mix(in srgb, var(--chart-1) 55%, var(--ink)); }
.vx.acc-5 { --vx: var(--ink); }
.vx {
  --vx-field: color-mix(in srgb, var(--vx) 9%, var(--surface));
  --vx-field-2: color-mix(in srgb, var(--vx) 17%, var(--surface));
  --vx-lift: color-mix(in srgb, var(--vx) 55%, white);
  --tile-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 7%, transparent), 0 10px 28px -12px color-mix(in srgb, var(--ink) 20%, transparent);
}

/* ---- Hero: a flat patterned slab behind the screenshot; plain figures under the buttons ---- */
.vx .hero-tool { overflow-x: clip; }
.vx .hero-shot { isolation: isolate; }
.vx .hero-art { position: absolute; inset: -22px -22px -22px 26px; z-index: -1; border-radius: 28px; background-color: color-mix(in srgb, var(--vx-lift) 22%, transparent); }
.vx .pat-rings { background-image: repeating-radial-gradient(circle at 88% 12%, transparent 0 22px, color-mix(in srgb, var(--vx-lift) 30%, transparent) 22px 24px); }
.vx .pat-grid { background-image: linear-gradient(color-mix(in srgb, var(--vx-lift) 26%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--vx-lift) 26%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
.vx .pat-dots { background-image: radial-gradient(color-mix(in srgb, var(--vx-lift) 55%, transparent) 1.6px, transparent 1.9px); background-size: 18px 18px; }
.vx .pat-waves { background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--vx-lift) 26%, transparent) 14px 16px); }
.vx .pat-blobs { background-image: radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--vx-lift) 50%, transparent), transparent 46%), radial-gradient(circle at 86% 82%, color-mix(in srgb, var(--vx-lift) 40%, transparent), transparent 42%); }
.vx .pat-corner { background-image: conic-gradient(from 190deg at 100% 0%, color-mix(in srgb, var(--vx-lift) 55%, transparent), transparent 42%); }
.vx .pat-bars { background-image: repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--vx-lift) 24%, transparent) 18px 30px); }
.vx .hero-stats span { border: 0; padding: 0; }

/* ---- Section headings: just the heading ---- */
.vx .fx h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.025em; margin: 0 0 18px; }

/* ---- Tiles: soft layered shadow, no outline, no coloured edge ---- */
.vx .fx-card { border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--tile-shadow); }
.vx .fx-link { transition: transform .18s ease, box-shadow .18s ease; }
.vx .fx-link:hover { transform: translateY(-3px); box-shadow: 0 2px 4px color-mix(in srgb, var(--ink) 8%, transparent), 0 18px 36px -14px color-mix(in srgb, var(--ink) 28%, transparent); }

/* Feature rows: the small label above the heading is a plain sentence-case line */
.vx .fxr-copy .kicker { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--muted); padding: 0; background: none; border: 0; }
.vx .fxr-pic .frame { box-shadow: 0 2px 4px color-mix(in srgb, var(--ink) 8%, transparent), 0 30px 60px -24px color-mix(in srgb, var(--ink) 32%, transparent); }

/* ---- Steps: a big numeral and the step, no circles, no connecting line ---- */
.vx .fx-steps { gap: 18px; }
.vx .fx-steps li { border: 0; background: none; padding: 0; gap: 16px; }
.vx .jn { width: auto; height: auto; border-radius: 0; background: none; border: 0; color: var(--vx); font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.vx .fx-steps h3 { font-size: 1.15rem; }

/* ---- Questions: an accordion, the first answer open ---- */
.vx .fx-faq { gap: 12px; }
.vx details.fx-q { padding: 0; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--tile-shadow); }
.vx details.fx-q > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-radius: 18px; }
.vx details.fx-q > summary::-webkit-details-marker { display: none; }
.vx details.fx-q > summary h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.01em; }
.vx details.fx-q > summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s ease; }
.vx details.fx-q[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.vx details.fx-q > summary:hover { background: var(--vx-field); }
.vx details.fx-q > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vx details.fx-q > p { padding: 0 22px 20px; margin: 0; }

/* ---- Related tools: the tool's own icon, its name, what it does, a clear link ---- */
.vx .fx-rel { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.vx .fx-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--vx-field-2); color: var(--ink); }
.vx .fx-rel-body { display: grid; grid-template-rows: auto 1fr auto; align-self: stretch; gap: 6px; min-width: 0; }
.vx .fx-more { align-self: end; padding-top: 6px; }
.vx .fx-rel-name { font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink); }
.vx .fx-rel-text { color: var(--muted); line-height: 1.55; }
.vx .fx-more { color: var(--accent); font-weight: 700; }

/* ---- Compare table and the closing call: a flat field of colour ---- */
.vx .fx-table-wrap { border: 0; border-radius: 22px; box-shadow: var(--tile-shadow); }
.vx .fx-table thead th { border-bottom: 0; background: var(--vx-field-2); color: var(--ink); }
.vx .fx-final { margin-top: clamp(48px, 7vw, 96px); padding: clamp(36px, 6vw, 72px) 20px; border: 0; border-radius: 32px; background: linear-gradient(135deg, var(--vx-field-2), var(--surface) 85%); }
.vx #related .fx-grid { align-items: stretch; }
.vx .fx-final h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* ================= audit: a bento of tiles, the first one a field of colour ================= */
.lay-audit #benefits .fx-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.lay-audit #benefits .fx-card { grid-column: span 2; padding: 24px; }
.lay-audit #benefits .fx-card:nth-child(1), .lay-audit #benefits .fx-card:nth-child(2) { grid-column: span 3; }
.lay-audit #benefits .fx-card:nth-child(1) { background: var(--vx-field-2); box-shadow: none; }
.lay-audit #benefits .fx-card:nth-child(1) h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.lay-audit #benefits .fx-card:nth-child(3):last-child { grid-column: span 6; }
.lay-audit #benefits .fx-card:nth-child(4):last-child { grid-column: span 4; }
.lay-audit #how .fx-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.lay-audit #how .fx-steps li { flex-direction: column; }
.lay-audit #how { margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--vx-field); }

/* ================= research: the picture on the left; benefits as an editorial list ================= */
@media (min-width: 961px) {
  .lay-research .hero-tool .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .lay-research .hero-tool .hero-copy { order: 2; }
  .lay-research .hero-tool .hero-shot { order: 1; }
  .lay-research .hero-art { inset: -22px 26px -22px -22px; }
}
.lay-research #benefits .fx-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.lay-research #benefits .fx-card { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); align-items: baseline; gap: 6px 36px; padding: 22px 26px; border-radius: 18px; background: none; box-shadow: none; }
.lay-research #benefits .fx-card:nth-child(odd) { background: var(--vx-field); }
.lay-research #benefits .fx-card h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.lay-research #how .fx-steps { grid-template-columns: minmax(0, 1fr); }
.lay-research #how .fx-steps li { align-items: baseline; }

/* ================= write: an editorial opening, the picture beneath; plain statements, no boxes ================= */
.lay-write .hero-tool .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.lay-write .hero-tool .hero-copy { max-width: 780px; display: grid; justify-items: center; }
.lay-write .hero-tool h1 { max-width: 20ch; font-size: clamp(2.1rem, 5vw, 3.5rem); }
.lay-write .hero-actions, .lay-write .hero-stats { justify-content: center; }
.lay-write .hero-tool .hero-shot { order: 2; width: min(100%, 980px); margin-top: 18px; }
.lay-write #benefits .fx-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.lay-write #benefits .fx-card { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.lay-write #benefits .fx-card h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; }
.lay-write #benefits { margin-top: clamp(40px, 6vw, 72px); padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: var(--vx-field); }
.lay-write #how .fx-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.lay-write #how .fx-steps li { flex-direction: column; }

/* ================= dash: a wide picture, big stat-style fields, steps side by side ================= */
@media (min-width: 961px) { .lay-dash .hero-tool .hero-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); } }
.lay-dash .hero-tool h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.lay-dash #benefits .fx-card { padding: 28px; border-radius: 28px; background: var(--vx-field); box-shadow: none; }
.lay-dash #benefits .fx-card:nth-child(odd) { background: var(--vx-field-2); }
.lay-dash #benefits .fx-card h3 { font-size: 1.5rem; letter-spacing: -.025em; }
.lay-dash #how .fx-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lay-dash #how .fx-steps li { flex-direction: column; }

/* ================= local: rounded map-card frame; tiles with a solid offset shadow ================= */
.lay-local .hero-shot .frame { border-radius: 28px; }
.lay-local #benefits .fx-card { padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: 7px 7px 0 var(--vx-field-2), 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent); }
.lay-local #benefits .fx-grid { gap: 22px; }
.lay-local #how .fx-steps { grid-template-columns: minmax(0, 1fr); }
.lay-local #how .fx-steps li { align-items: baseline; }

/* ================= ai: an asymmetric bento on fields of colour ================= */
.lay-ai #benefits .fx-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.lay-ai #benefits .fx-card { grid-column: span 2; padding: 26px; border-radius: 30px; background: var(--vx-field); box-shadow: none; }
.lay-ai #benefits .fx-card:nth-child(1) { grid-column: span 4; background: var(--vx-field-2); }
.lay-ai #benefits .fx-card:nth-child(1) h3 { font-size: 1.6rem; letter-spacing: -.025em; }
.lay-ai #benefits .fx-card:nth-child(4):last-child { grid-column: span 4; }
.lay-ai #benefits .fx-card:nth-child(3):last-child { grid-column: span 6; }
.lay-ai #how .fx-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

@media (max-width: 960px) {
  .vx .hero-art { inset: -10px -6px -10px 10px; }
  .lay-research #benefits .fx-card { grid-template-columns: minmax(0, 1fr); }
  .lay-audit #benefits .fx-grid, .lay-ai #benefits .fx-grid { grid-template-columns: minmax(0, 1fr); }
  .lay-audit #benefits .fx-card, .lay-ai #benefits .fx-card, .lay-audit #benefits .fx-card:nth-child(n), .lay-ai #benefits .fx-card:nth-child(n) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .vx .fx-link, .vx details.fx-q > summary::after { transition: none; }
  .vx .fx-link:hover { transform: none; }
}
.lay-audit #how, .lay-write #benefits { margin-bottom: clamp(12px, 2.5vw, 28px); }
