:root {
    --ink: #14171c;
    --muted: #5c6572;
    --line: #e6e9f0;
    --paper: #ffffff;
    --blue: #2f6fed;
    --blue-bright: #3b82f6;
    --green: #8ed234;
    --green-ink: #17300a;
    --amber: #f5c518;
    --amber-ink: #2a2200;
    --soft: #f6f8fb;
    --shadow: 0 16px 40px rgba(20, 23, 28, 0.06);
    --header: 76px;
    --font: "Comfortaa", "Segoe UI", sans-serif;
    --radius: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    background: #fbfcfe;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(980px 580px at 0% -10%, rgba(186, 214, 255, 0.72), transparent 60%),
        radial-gradient(920px 620px at 100% 0%, rgba(251, 210, 228, 0.82), transparent 58%),
        radial-gradient(780px 480px at 70% 100%, rgba(255, 230, 170, 0.55), transparent 55%),
        radial-gradient(760px 520px at 32% 64%, rgba(214, 196, 245, 0.62), transparent 58%);
}

img,
canvas,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: var(--blue);
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    letter-spacing: 0;
    line-height: 1.25;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 16px;
    top: -40px;
    z-index: 50;
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--header);
    background: rgba(251, 252, 254, 0.78);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.lang-toggle:hover {
    color: var(--blue);
}

.lang-chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.lang-toggle[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    min-width: 88px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.lang-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-menu a:hover {
    background: #f4f6fa;
}

.lang-menu a[aria-current="page"] {
    background: #eef3fe;
    color: var(--blue);
}

.logo {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.logo-mark {
    color: var(--blue);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 2px 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #2a303a;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}

.nav-toggle:hover {
    color: var(--blue);
}

.nav-chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    position: relative;
    width: 28px;
    height: 16px;
}

.hamburger span {
    position: absolute;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
    left: auto;
    right: 0;
    width: 16px;
}

.hamburger span:nth-child(2) {
    top: 7px;
    width: 28px;
}

.hamburger span:nth-child(3) {
    top: 14px;
    left: auto;
    right: 0;
    width: 22px;
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    top: 7px;
    width: 28px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    top: 7px;
    width: 28px;
    transform: rotate(-45deg);
}

.nav {
    position: absolute;
    z-index: 2;
    top: calc(100% + 6px);
    left: max(20px, calc((100% - 1120px) / 2));
    right: max(20px, calc((100% - 1120px) / 2));
    max-height: calc(100dvh - var(--header) - 20px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
    padding: 16px;
}

.nav-label {
    margin: 0 0 6px;
    color: #3b76f0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -8px;
    padding: 8px;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.nav-tool:hover {
    background: rgba(20, 23, 28, 0.04);
}

.nav-tool[aria-current="page"] {
    background: rgba(47, 111, 237, 0.08);
    color: var(--blue);
}

.nav-tool-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: var(--ink);
    background: #f3f5f8;
}

.nav-tool[aria-current="page"] .nav-tool-icon {
    color: var(--blue);
    background: #fff;
}

.nav-tool-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-blue,
.btn-green,
.btn-amber {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 1px 1px rgba(20, 23, 28, 0.08);
}

.btn-blue:hover,
.btn-green:hover,
.btn-amber:hover {
    background: #000;
}

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: rgba(20, 23, 28, 0.12);
}

.btn-ghost:hover {
    border-color: rgba(20, 23, 28, 0.32);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn[hidden] {
    display: none !important;
}

.noscript {
    margin: 0;
    padding: 10px 16px;
    text-align: center;
    background: #fff6d8;
}

.hero {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 28px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 600;
}

.hero h1,
.hero .search,
.hero .chips {
    animation: hero-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .search {
    animation-delay: 0.08s;
}

.hero .chips {
    animation-delay: 0.16s;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.eyebrow {
    margin: 0 0 14px;
    color: #3b76f0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tool-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.55rem);
}

.lede {
    margin: 16px auto 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.search {
    width: min(640px, 100%);
    margin: 22px auto 0;
}

.search-field {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 68px;
    border-radius: 999px;
    border: 1px solid rgba(20, 23, 28, 0.08);
    background: #fff;
    padding: 0 24px 0 52px;
    font-size: 1.0625rem;
    box-shadow: 0 18px 40px rgba(20, 23, 28, 0.07);
}

.search-hint {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b939f;
    font-size: 1.0625rem;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.search-hint.is-out {
    opacity: 0;
}

.search-input:focus {
    outline: 3px solid rgba(47, 111, 237, 0.25);
    border-color: var(--blue);
}

.chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.chip {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    min-height: 40px;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
}

.chip[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.tools-wrap {
    padding: 28px 0 80px;
}

.tool-section + .tool-section,
.related {
    margin-top: 54px;
}

.section-head {
    text-align: center;
    margin-bottom: 22px;
}

.section-head h2,
.prose h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tool-card {
    position: relative;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(20, 23, 28, 0.06);
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(20, 23, 28, 0.03);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(20, 23, 28, 0.1);
    box-shadow:
        inset 0 1px 0 #fff,
        0 16px 36px rgba(20, 23, 28, 0.07);
}

.accent-blue { --accent: #2f6fed; }
.accent-green { --accent: #3f9d2f; }
.accent-amber { --accent: #c48a00; }

.tool-card-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 104px;
    padding: 16px 16px 16px 18px;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.tool-card-link:focus-visible {
    outline: none;
}

.tool-card:has(:focus-visible) {
    outline: 3px solid rgba(47, 111, 237, 0.35);
    outline-offset: 3px;
}

.tool-copy {
    min-width: 0;
}

.tool-card-link h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

.tool-card-link p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
}

.tool-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--accent);
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 10%, #fff));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.tool-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-go {
    display: grid;
    place-items: center;
    color: #a8b0bd;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tool-go svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-card:hover .tool-go {
    color: var(--ink);
    transform: translateX(3px);
}

.tool-card:hover .tool-icon {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent);
}

.empty {
    margin: 28px 0 0;
    text-align: center;
    color: var(--muted);
}

.sheet {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 80px;
}

.tool-hero {
    text-align: center;
    padding: 28px 0 26px;
}

.crumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--blue);
}

.panel {
    width: min(760px, 100%);
    margin: 8px auto 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.privacy {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.tool {
    display: grid;
    gap: 14px;
}

.fields {
    display: grid;
    gap: 14px;
}

.fields.two,
.fields.three {
    grid-template-columns: 1fr 1fr;
}

.fields.three {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.field {
    display: grid;
    gap: 6px;
}

.field[hidden] {
    display: none !important;
}

.field-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
}

textarea.control {
    min-height: 140px;
    resize: vertical;
}

select.control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235c6572' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.14);
}

.hint {
    color: var(--muted);
    font-size: 0.88rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 4px;
    border-radius: 999px;
    background: var(--soft);
}

.segmented button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    min-height: 38px;
    padding: 0 14px;
    font-weight: 600;
    color: #3c4453;
    cursor: pointer;
}

.segmented button[aria-selected="true"] {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(20, 23, 28, 0.08);
}

.note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef8e6;
    color: #245214;
}

.note.is-error {
    background: #fff1f2;
    color: #9f1239;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.stat {
    background: var(--soft);
    border-radius: 16px;
    padding: 14px;
}

.stat b {
    display: block;
    font-size: 1.3rem;
    letter-spacing: 0;
}

.stat span {
    color: var(--muted);
    font-size: 0.84rem;
}

.result-box {
    background: var(--soft);
    border-radius: 18px;
    padding: 16px 18px;
}

.result-value {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.result-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.swap {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.swap:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.pair-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dropzone {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 28px 16px;
    border: 1.5px dashed #cfd6e4;
    border-radius: 18px;
    background: #fbfcfe;
    text-align: center;
    cursor: pointer;
}

.dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone.is-over,
.dropzone:focus-within {
    border-color: var(--blue);
    background: #f5f8ff;
}

.dropzone span {
    color: var(--muted);
    font-size: 0.92rem;
}

.preview-frame {
    display: grid;
    place-items: center;
    min-height: 160px;
    border-radius: 16px;
    background-color: #f4f6fa;
    background-image:
        linear-gradient(45deg, #e7ebf2 25%, transparent 25%),
        linear-gradient(-45deg, #e7ebf2 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e7ebf2 75%),
        linear-gradient(-45deg, transparent 75%, #e7ebf2 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.preview-frame img,
.qr-result canvas {
    max-height: 280px;
    border-radius: 12px;
}

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qr-result {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.swatch {
    height: 112px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.grad-preview {
    height: 168px;
}

.grad-stops {
    display: grid;
    gap: 10px;
}

.grad-stop {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.grad-angle {
    min-width: 3.2rem;
    font-weight: 700;
    text-align: right;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-row input[type="range"] {
    flex: 1;
    accent-color: var(--blue);
}

.meter {
    height: 8px;
    border-radius: 99px;
    background: #e8edf4;
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--green);
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0.01em;
}

.copy-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.copy-row .control {
    flex: 1;
}

.prose {
    width: min(720px, 100%);
    margin: 48px auto 0;
}

.prose h2 {
    margin: 32px 0 14px;
}

.prose p {
    margin-top: 12px;
    color: #3e4653;
    line-height: 1.7;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
    color: #3e4653;
}

.steps li::before {
    content: counter(step);
    counter-increment: step;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f0ff;
    color: var(--blue);
    font-weight: 700;
}

.steps {
    counter-reset: step;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.faq p {
    margin: 8px 0 4px;
}

.site-footer {
    padding: 28px 0 22px;
    border-top: 1px solid rgba(20, 23, 28, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand p,
.footer-links a {
    color: var(--muted);
}

.footer-brand p {
    margin-top: 10px;
    max-width: 28ch;
}

.footer-label {
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    z-index: 40;
}

.color-input {
    width: 56px;
    height: 48px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

:focus-visible {
    outline: 3px solid rgba(47, 111, 237, 0.45);
    outline-offset: 2px;
}

.control:focus,
.search-input:focus,
.chip:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.segmented button:focus-visible {
    outline: 3px solid rgba(47, 111, 237, 0.35);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .tool-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        justify-content: center;
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 12px;
    }

    .nav-toggle,
    .nav-toggle:hover,
    .nav-toggle[aria-expanded="true"] {
        background: transparent;
        color: var(--ink);
    }

    .nav-toggle-label,
    .nav-chevron {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 680px) {
    .tool-grid,
    .footer-grid,
    .fields.two,
    .fields.three,
    .compare {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 36px;
    }

    .panel {
        padding: 18px;
    }

    .grad-stop {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .grad-stop .btn {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
