/*
Theme Name: WebMarket Spectrum
Description: A cobalt and lime editorial theme for WebMarketDigital.
Version: 1.10.1
Text Domain: webmarket-spectrum
*/

@font-face {
    font-family: Instrument;
    src: url("assets/instrument.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: Bricolage;
    src: url("assets/bricolage.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f7f8fd;
    --white: #fff;
    --ink: #171e38;
    --muted: #505a71;
    --line: #dadfed;
    --night: #10172e;
    --night-light: #18254a;
    --night-muted: #c5cce5;
    --link: #3049ac;
    --lime: #dfff75;
    --lime-hover: #edfca5;
    --sans: Instrument, system-ui, sans-serif;
    --display: Bricolage, var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -.04em; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #254cc7; outline-offset: 4px; }
.skip { position: absolute; z-index: 3; inset: 8px auto auto 8px; transform: translateY(-175%); background: var(--white); padding: 9px 12px; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 72px, 1350px); margin-inline: auto; }

.masthead-inner { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 24px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 8px; white-space: nowrap; font: 760 1.42rem/1 var(--display); letter-spacing: -.057em; text-decoration: none; }
.brand strong { font-weight: 555; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2.3vw, 33px); }
.site-nav a, .footer nav a { color: #37415b; font-size: .96rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .footer nav a:hover { color: var(--link); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 19px; border: 1px solid transparent; border-radius: 12px; font-size: .97rem; font-weight: 700; line-height: 1.28; text-align: center; text-decoration: none; cursor: pointer; }
.nav-cta { justify-self: end; min-height: 44px; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #2a3a6a; }
.button-accent { background: var(--lime); color: #141d26; }
.button-accent:hover { background: var(--lime-hover); }
.button-ghost { border-color: #7281aa; background: #152449b0; color: var(--white); }
.button-ghost:hover { background: #273760; border-color: #bbcaf3; }
.text-action { display: inline-block; width: fit-content; color: var(--link); font-weight: 700; text-decoration-thickness: 1px; }
.text-action:hover { text-decoration-thickness: 2px; }

.hero { padding-top: 9px; }
.hero .overline { width: fit-content; border: 1px solid #6378b1; border-radius: 100px; padding: 5px 12px; color: #e2e9ff; font-size: .9rem; font-weight: 550; }
.hero h1 { max-width: 10ch; margin: 20px 0 19px; color: #f2f5ff; font-size: clamp(3.45rem, 6.45vw, 6.8rem); line-height: .93; letter-spacing: -.063em; font-weight: 760; }
.lede { max-width: 49ch; color: var(--muted); font-size: clamp(1.12rem, 1.55vw, 1.36rem); line-height: 1.46; }
.hero .lede { max-width: 35ch; color: #d1d9f5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.hero .button, .closing .button { min-height: 54px; }
.hero a:focus-visible, .closing a:focus-visible { outline-color: var(--lime); }
.service-strip { display: grid; align-items: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.service-strip a { display: grid; min-height: 57px; place-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: #283651; font-weight: 650; font-size: .93rem; text-align: center; text-decoration: none; }
.service-strip a:hover { background: #eef1ff; border-color: #a6b4e9; }

.section { padding-block: clamp(51px, 6.6vw, 100px); scroll-margin-top: 15px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); align-items: end; gap: 14px 44px; margin-bottom: 29px; }
.section-heading h2, .faq-layout h2, .closing h2 { font-size: clamp(2.35rem, 4.45vw, 4.65rem); font-weight: 760; letter-spacing: -.053em; }
.section-heading p { max-width: 43ch; color: var(--muted); font-size: 1.08rem; line-height: 1.47; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.service { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(21px, 3vw, 41px); border: 1px solid var(--line); border-radius: 21px; background: var(--white); box-shadow: 0 7px 12px #111a3b08; }
.service:hover { border-color: #a6b5ed; }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 15px; background: #e4eaff; }
.service-icon-browser { background: #e2f0da; }
.service-icon-links { background: #efe6fb; }
.service-icon-search { background: #dff0f8; }
.service h3 { font-size: clamp(1.68rem, 2.55vw, 2.55rem); font-weight: 740; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--link); text-decoration: underline; }
.service p { max-width: 47ch; margin-block: 10px 18px; color: var(--muted); }
.service-features { margin: 0 0 18px; padding-left: 18px; color: #37415d; }
.service-features li + li { margin-top: 3px; }
.service-features li::marker { color: #4a5cb1; }
.service .text-action { margin-top: auto; }

.desk-section { background: #edf0fc; border-block: 1px solid #dce2f6; }
.desk { overflow: hidden; border: 1px solid #cad3f0; border-radius: 22px; background: var(--white); box-shadow: 0 10px 23px #22325709; }
.desk-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f7f8ff; }
.desk-filters button { min-height: 40px; padding: 6px 13px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 650; font-size: .92rem; cursor: pointer; }
.desk-filters button:hover { background: #e4eaff; }
.desk-filters button[aria-pressed="true"] { border-color: #2b428f; background: #2b428f; color: #fff; }
.desk-row { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.1fr) auto; gap: 23px; align-items: center; padding: 17px 20px; }
.desk-row + .desk-row { border-top: 1px solid var(--line); }
.desk-row h3 { max-width: 28ch; font-size: 1.15rem; line-height: 1.23; letter-spacing: -.013em; }
.desk-row p { color: var(--muted); }
.desk-row a { margin-right: 5px; }

.process-section { background: #151f41; color: var(--white); }
.process-section .section-heading p { color: var(--night-muted); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; list-style: none; padding: 0; margin: 0; counter-reset: process; }
.process-grid li { padding: 17px 15px 20px; border: 1px solid #3a4c80; border-radius: 15px; background: #1b2a52; counter-increment: process; }
.process-grid li::before { content: counter(process); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 8px; background: #dfff75; color: #181f37; font-weight: 700; }
.process-grid h3 { margin-bottom: 8px; font-size: 1.26rem; font-weight: 700; }
.process-grid p { color: #d2dcf6; font-size: .96rem; }

.faq-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 24px 55px; }
.questions { display: flex; flex-direction: column; gap: 9px; }
.questions details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.questions summary { min-height: 52px; padding: 13px 14px; font-weight: 700; cursor: pointer; }
.questions summary:hover { color: var(--link); }
.questions p { padding: 0 16px 15px; color: var(--muted); }
.questions p a, .prose a { color: var(--link); }

.closing { margin-bottom: 44px; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(25px, 4vw, 52px); border: 1px solid #455ac1; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #192c66, #283f9b 75%); }
.closing h2 { max-width: 16ch; font-size: clamp(2.05rem, 4.1vw, 4.1rem); }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 17px; }

main.page { min-height: 66vh; padding-top: clamp(27px, 5vw, 70px); padding-bottom: clamp(55px, 7vw, 100px); }
.breadcrumb { margin-bottom: 14px; color: var(--link); font-weight: 650; }
.page-title { margin-bottom: 31px; }
.page-title h1, .archive-title { max-width: 18ch; margin-bottom: 13px; font-size: clamp(2.75rem, 6vw, 6rem); font-weight: 760; letter-spacing: -.058em; overflow-wrap: anywhere; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .46fr); align-items: start; gap: clamp(24px, 4.8vw, 70px); }
.prose { max-width: 74ch; color: #354057; font-size: 1.08rem; line-height: 1.68; overflow-wrap: anywhere; }
.prose > * + * { margin-top: .95em; }
.prose h2 { margin-top: 1.45em; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.prose li + li { margin-top: .42em; }
.prose :is(ul, ol) { padding-left: 23px; }
.side-card { padding: 24px; border: 1px solid #ccd6f4; border-radius: 17px; background: #eaf0ff; }
.side-card h2 { margin-bottom: 8px; font-size: 1.55rem; }
.side-card p { margin-bottom: 15px; color: #454f6c; }

.brief-form { max-width: 860px; padding: clamp(19px, 4vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 12px 29px #2539690a; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 19px; }
.form-grid label { display: block; font-weight: 650; }
.form-wide { grid-column: 1 / -1; }
.form-grid :is(input, select, textarea) { display: block; width: 100%; min-height: 47px; margin-top: 4px; border: 1px solid #b8c1d8; border-radius: 9px; padding: 8px 11px; color: var(--ink); background: #fbfcff; font-weight: 400; }
.form-grid textarea { resize: vertical; }
.optional, .form-hint { color: var(--muted); font-size: .92rem; font-weight: 400; }
.form-hint { margin-block: 15px 17px; }
.form-notice { margin: 0 0 17px; padding: 11px 14px; border: 1px solid #c4dab4; border-radius: 9px; background: #edf7e7; }
.form-notice.is-error { border-color: #ead3c9; background: #fcf2ed; }

.report-teaser { margin-bottom: clamp(51px, 6.6vw, 100px); }
.report-teaser-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(24px, 5vw, 70px);
    padding: clamp(22px, 4vw, 55px);
    border: 1px solid #2e438e;
    border-radius: 24px;
    background: linear-gradient(122deg, #152345, #284698);
    color: var(--white);
}
.report-teaser-copy h2 {
    max-width: 14ch;
    font-size: clamp(2.12rem, 4.1vw, 4.1rem);
    font-weight: 760;
}
.report-teaser-copy p { max-width: 40ch; margin-block: 12px 21px; color: #dce4fb; font-size: 1.07rem; }
.report-teaser-copy .button { gap: 8px; }
.report-teaser-copy a:focus-visible { outline-color: var(--lime); }
.report-preview {
    min-width: 0;
    padding: clamp(18px, 2.8vw, 31px);
    border: 1px solid #4963a7;
    border-radius: 17px;
    background: #17264e;
    color: var(--white);
}
.report-sample-label { color: #c8d5f5; font-size: .89rem; font-weight: 600; }
.report-domain {
    margin-block: 8px 12px;
    font: 730 clamp(1.36rem, 3vw, 2.46rem)/1.12 var(--display);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.report-status {
    width: fit-content;
    border: 1px solid #d8b36570;
    border-radius: 999px;
    padding: 3px 10px;
    background: #fce8ba;
    color: #553e13;
    font-size: .88rem;
    font-weight: 700;
}
.report-intro, .report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 57px);
}
.report-intro { align-items: center; margin-bottom: clamp(32px, 5vw, 64px); }
.report-intro h1 { max-width: 13ch; }
.report-at-a-glance {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
    gap: 6px 14px;
    margin: 16px 0 0;
    padding-top: 13px;
    border-top: 1px solid #4b6095;
    font-size: .95rem;
}
.report-at-a-glance dt { color: #c8d5f5; }
.report-at-a-glance dd { margin: 0; font-weight: 650; }
.report-layout { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.report-evidence > h2 { margin-bottom: 13px; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.report-evidence details {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--muted);
}
.report-evidence summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 13px 18px;
    border-radius: 13px;
    color: var(--ink);
    font: 720 1.27rem/1.2 var(--display);
    cursor: pointer;
}
.report-evidence summary::-webkit-details-marker { display: none; }
.report-evidence summary::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin: -4px 3px 0 0;
    border: solid var(--link);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.report-evidence summary:hover { color: var(--link); background: #f2f5ff; }
.report-evidence summary:focus-visible { outline-offset: -3px; }
.report-evidence details[open] summary { color: var(--link); }
.report-evidence details[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.report-evidence details > :not(summary) { margin: 0 18px 14px; }
.report-evidence :is(ul, ol) { padding-left: 20px; }
.report-evidence li + li { margin-top: 8px; }
.report-evidence li::marker { color: var(--link); }
.report-evidence strong { color: var(--ink); }

@media (max-width: 1000px) {
    .wrap { width: calc(100% - 48px); }
    .masthead-inner { gap: 13px 14px; }
    .brand { font-size: 1.2rem; }
    .brand img { width: 30px; height: 30px; }
    .site-nav { gap: 13px; }
    .site-nav a { font-size: .9rem; }
}
@media (max-width: 740px) {
    .wrap { width: calc(100% - 28px); }
    .masthead-inner { min-height: 0; padding-block: 12px 8px; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 11px; }
    .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 7px; }
    .site-nav a { padding-block: 5px; }
    .nav-cta { min-height: 37px; padding: 6px 9px; font-size: .87rem; }
    .hero h1 { max-width: 11ch; font-size: clamp(2.88rem, 10.3vw, 5.4rem); margin-block: 14px 11px; }
    .hero .overline { font-size: .79rem; padding: 4px 8px; }
    .hero .lede { font-size: 1.06rem; }
    .hero-actions { margin-top: 17px; }
    .hero .button { min-height: 43px; padding: 7px 11px; font-size: .9rem; }
    .service-strip, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-strip { gap: 6px; margin-top: 8px; }
    .service-strip a { min-height: 42px; font-size: .86rem; }
    .section-heading, .faq-layout, .service-layout,
    .report-teaser-panel, .report-intro, .report-layout { grid-template-columns: minmax(0, 1fr); }
    .section-heading { margin-bottom: 20px; }
    .service-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .service-icon { width: 48px; height: 48px; margin-bottom: 13px; }
    .desk-filters { padding: 8px; gap: 3px; }
    .desk-filters button { min-height: 39px; padding-inline: 9px; }
    .desk-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 13px; }
    .closing-inner, .footer-inner { flex-wrap: wrap; }
    .closing-inner { border-radius: 20px; }
    .footer-inner { padding-block: 15px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Project stack builder */
.stack-builder { padding-top: 0; }
.stack-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    border: 1px solid var(--line);
    border-radius: 23px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 12px 32px #22325710;
}
.stack-form, .stack-result, .stack-plan { min-width: 0; padding: clamp(21px, 4vw, 46px); }
.stack-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.stack-form legend, .stack-result h3 {
    margin-bottom: 16px;
    padding: 0;
    font: 740 clamp(1.62rem, 3vw, 2.78rem)/1.08 var(--display);
    letter-spacing: -.04em;
}
.stack-result p { color: var(--muted); }
.stack-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    margin: 0 0 23px;
    list-style: none;
}
.stack-progress li {
    padding: 0 0 7px;
    border-bottom: 3px solid #e6eaf5;
    color: var(--muted);
    font-size: .91rem;
    font-weight: 650;
}
.stack-progress li[aria-current="step"] { border-color: #4e69c8; color: #263f9b; }
.stack-progress li.is-complete { border-color: #a8b8ed; color: #2d4278; }
.stack-choices { display: grid; gap: 7px; }
.stack-choice {
    display: flex;
    gap: 11px;
    align-items: center;
    min-height: 44px;
    padding: 8px 11px;
    background: #fafbff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 650;
    cursor: pointer;
}
.stack-choice:has(input:checked) { background: #edf1ff; border-color: #6c80cc; }
.stack-choice:has(input:focus-visible) { outline: 2px solid #254cc7; outline-offset: 2px; }
.stack-choice input { flex: 0 0 auto; margin: 0; accent-color: #3049ac; }
.stack-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.stack-secondary { color: var(--ink); background: #fff; border-color: #b9c3de; }
.stack-secondary:hover { background: #edf1ff; }
.stack-error { color: #9b2923; margin-top: 12px; font-weight: 650; }
.stack-plan {
    color: #fff;
    background: radial-gradient(ellipse at 106% 0%, #344a99, transparent 61%), #19274d;
}
.stack-plan h3 { font-size: clamp(1.5rem, 3vw, 2.37rem); margin-bottom: 13px; }
.stack-empty, .stack-list li span { color: #d0dcfc; }
.stack-list { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; counter-reset: stack-item; }
.stack-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 2px 9px;
    padding: 11px 12px;
    border: 1px solid #576b9e;
    border-radius: 12px;
    background: #263a6a;
    counter-increment: stack-item;
}
.stack-list li::before {
    content: counter(stack-item);
    align-self: start;
    justify-self: start;
    min-width: 24px;
    padding: 2px 4px;
    background: var(--lime);
    color: #172241;
    border-radius: 6px;
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
}
.stack-list li strong { grid-column: 2; overflow-wrap: anywhere; }
.stack-list li span { grid-column: 2; font-size: .93rem; }
.stack-market { margin-top: 14px; color: #e5edff; font-weight: 650; }

@media (max-width: 740px) {
    .stack-panel { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
    .stack-form, .stack-result, .stack-plan { padding: 20px 17px; }
}
@media (prefers-reduced-motion: no-preference) {
    .stack-list li { animation: stack-in 170ms ease-out both; }
    @keyframes stack-in {
        from { opacity: .72; transform: translateY(3px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
