/* Q microsite. Q's own identity (teal, orange, Space Grotesk), not the consultancy's.
   The one loud element is the manga lettering of the Q film: hard ink borders with
   an offset ink shadow, used only on the film panel, the step numbers and the form. */

@font-face {
    font-family: "Space Grotesk";
    src: url("/q/space-grotesk.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --mist: #F1F5F4;
    --white: #FFFFFF;
    --ink: #10201F;
    --muted: #4A5B5A;
    --teal: #0B5D5E;
    --teal-dark: #084647;
    --orange: #F2711C;
    --rule: #CFDCDA;
    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1160px;
    --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }
.skip:hover { color: var(--white); }
.muted { color: var(--muted); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(241, 245, 244, 0.94); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.04em; color: var(--teal); text-decoration: none; }
.brand .dot { color: var(--orange); }
.brand-small { font-size: 1.25rem; }
.by { color: var(--muted); font-size: 0.9375rem; text-decoration: none; margin-right: auto; }
.by:hover { color: var(--ink); text-decoration: underline; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
    border: 3px solid var(--ink); border-radius: 0; background: var(--orange); color: var(--ink);
    font: 700 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
    box-shadow: 5px 5px 0 var(--ink);
}
.btn:hover { color: var(--ink); background: #f5833a; }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }
.link { font-weight: 600; }

/* ---- the manga panel: hard ink border, offset shadow ---- */
.panel { margin: 0; background: var(--white); border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; }
.lede { margin-top: 22px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.note { margin-top: 22px; color: var(--muted); font-size: 0.9375rem; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
.film figcaption { padding: 10px 14px; border-top: 4px solid var(--ink); font-size: 0.9375rem; color: var(--muted); }

/* ---- sections ---- */
.band { background: var(--teal); color: var(--white); padding-block: clamp(56px, 8vw, 104px); }
.band a { color: var(--white); }
.band-white { background: var(--white); color: var(--ink); }
.band-white a { color: var(--teal); }
h2 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

/* how it works: a real sequence, numbered like the film's step boxes */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps li { display: grid; gap: 16px; align-content: start; }
.steps .n {
    width: 56px; height: 56px; display: grid; place-items: center;
    background: var(--orange); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
    font-weight: 700; font-size: 1.75rem;
}
.steps p { margin-top: 8px; color: #d9e7e6; font-size: 1rem; }

/* what you save */
.save { padding-block: clamp(56px, 8vw, 104px); }
.save-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.save-item { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--rule); }
.save-item + .save-item { padding-left: 26px; border-left: 1px solid var(--rule); }
.save-item p { margin-top: 10px; max-width: 34rem; }
.save-lead { grid-column: 1 / -1; padding-right: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; }
.save-lead h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; grid-row: span 2; }
.save-lead p { margin-top: 0; }
.save-lead + .save-item { padding-left: 0; border-left: 0; }
.source { color: var(--muted); font-size: 0.875rem; }

/* features */
.features { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.feature-shot img { width: 100%; max-width: 300px; border: 4px solid var(--ink); border-radius: 34px; }
.feature-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; }
.feature-list dt { font-weight: 700; font-size: 1.125rem; }
.feature-list dd { margin: 6px 0 0; color: var(--muted); }
.dash { margin-top: clamp(48px, 7vw, 88px); }
.dash figcaption { padding: 14px 18px; border-top: 4px solid var(--ink); color: var(--muted); }
.dash figcaption strong { color: var(--ink); }

/* demo form */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-block: clamp(56px, 8vw, 104px); }
.demo-copy p { margin-top: 16px; max-width: 30rem; font-size: 1.125rem; }
.demo-copy .muted { font-size: 1rem; }
.form-panel { padding: clamp(20px, 3vw, 32px); }
.row.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
label { font-weight: 600; font-size: 0.9375rem; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
    width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
    background: var(--white); border: 2px solid var(--ink); border-radius: 0;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #5b6b6a; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.form-error { margin-top: 16px; padding: 12px 14px; border: 2px solid #b3261e; background: #fbeceb; color: #5c130f; }
.form-error a { color: #5c130f; }
.form-done h3 { font-size: 1.5rem; }
.form-done p { margin-top: 8px; }

/* faq */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.faq details:first-of-type { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.125rem; list-style-position: inside; }
.faq details p { padding: 0 0 20px; color: #d9e7e6; max-width: 44rem; }

/* footer */
.foot { padding-block: 32px; color: var(--muted); font-size: 0.9375rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.foot-row p:first-child { margin-right: auto; }

/* ---- smaller screens ---- */
@media (max-width: 960px) {
    .hero, .demo, .features { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .save-grid { grid-template-columns: minmax(0, 1fr); }
    .save-item, .save-item + .save-item { padding: 22px 0; border-left: 0; }
    .save-lead { grid-template-columns: minmax(0, 1fr); }
    .save-lead h3 { grid-row: auto; }
    .feature-shot img { max-width: 240px; }
}
@media (max-width: 600px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .steps li { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
    .feature-list { grid-template-columns: minmax(0, 1fr); }
    .row.two { grid-template-columns: minmax(0, 1fr); }
    .panel { box-shadow: 7px 7px 0 var(--ink); }
    .by { display: none; }
    .top-row .btn-small { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .btn:active { transform: none; }
}
