:root {
    --bg: #ffffff;
    --ink: #090a0f;
    --ink-soft: #15161c;
    --muted: #686b74;
    --line: #dedfe4;
    --line-soft: #ececf0;
    --accent: #2563eb;
    --accent-ink: #ffffff;
    --work-bg: #f4f8ff;
    --secondary-bg: #f7f7f8;
    --focus-ring: rgba(37, 99, 235, .22);
    --surface: #ffffff;
    --surface-soft: #f8f8fa;
    --shadow: 0 24px 70px rgba(0, 0, 0, .06);
    --radius: 8px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

:root[data-theme="dark"] {
    --bg: #0d0f13;
    --ink: #d8dce6;
    --ink-soft: #c6cbd6;
    --muted: #8e95a3;
    --line: #2a2d35;
    --line-soft: #20232a;
    --work-bg: #171717;
    --secondary-bg: #121419;
    --surface: #111318;
    --surface-soft: #171a20;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.5;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 50% 0, rgba(37, 99, 235, .06), transparent 260px),
        var(--bg);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at 50% 0, rgba(37, 99, 235, .10), transparent 280px),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.site-shell {
    width: 100%;
}

.topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 88px;
    padding: 0 max(28px, calc((100vw - 1320px) / 2));
    background: radial-gradient(circle at 50% -120%, #24262d 0%, #111217 40%, #07080c 100%);
    color: #fff;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    font-size: 31px;
    font-weight: 850;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--accent);
    color: #090a0f;
    font-size: 14px;
    transform: rotate(45deg);
}

.brand-mark + span {
    line-height: 1;
}

.topnav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.topnav > a,
.topnav > .nav-menu > summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    padding: 0 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.topnav > a:hover,
.topnav > a.is-active,
.topnav > .nav-menu > summary:hover,
.topnav > .nav-menu > summary.is-active,
.nav-menu[open] summary {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.topnav > a.is-active::after,
.topnav > .nav-menu > summary.is-active::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
}

.nav-menu {
    position: relative;
}

.topnav > .nav-menu > summary {
    list-style: none;
}

.topnav > .nav-menu > summary::-webkit-details-marker {
    display: none;
}

.nav-caret {
    width: 16px;
    height: 16px;
    transition: transform .18s ease;
}

.nav-menu[open] .nav-caret {
    transform: rotate(180deg);
}

.nav-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 20;
    width: min(760px, calc(100vw - 48px));
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
    color: var(--ink);
    padding: 16px;
    transform: translateX(-50%);
}

.nav-menu-panel::before {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--surface);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.mega-head {
    border-bottom: 1px solid var(--line-soft);
    padding: 0 0 12px;
    margin-bottom: 14px;
}

.mega-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 12px;
    color: var(--ink);
    padding: 0 12px;
    font-weight: 800;
}

.mega-all:hover {
    background: var(--secondary-bg);
    color: var(--ink);
}

.mega-all .icon {
    width: 18px;
    height: 18px;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mega-group h2 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mega-service {
    display: grid;
    gap: 4px;
    border-radius: 14px;
    color: var(--ink);
    padding: 10px 12px;
}

.mega-service:hover,
.mega-service.is-current {
    background: var(--work-bg);
    color: var(--ink);
}

.mega-service span {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.mega-service small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    padding: 3px;
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 32px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .66);
    font-size: 14px;
    font-weight: 700;
}

.language-switch a.is-active {
    background: var(--accent);
    color: var(--accent-ink);
}

.theme-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.theme-button:hover {
    background: rgba(255, 255, 255, .12);
}

.theme-icon {
    grid-area: 1 / 1;
    width: 18px;
    height: 18px;
}

.theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
    display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
    display: inline-block;
}

.minimal-hero,
.tool-focus,
.minimal-section,
.benefit-strip,
.seo-content,
.not-found {
    width: min(1320px, calc(100% - 56px));
    margin-right: auto;
    margin-left: auto;
}

.minimal-hero,
.tool-focus {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
    padding: 66px 0 48px;
}

.tool-focus-simple {
    display: block;
    padding-top: 44px;
    padding-bottom: 26px;
}

.tool-focus-simple > h1 {
    max-width: 960px;
    margin: 0 0 20px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.tool-focus-simple .tool-workspace {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent) 7%, var(--surface-soft));
    padding: 22px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, .08);
}

.hero-copy,
.tool-intro {
    padding-top: 24px;
}

.eyebrow,
.section-heading span,
.service-tag {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .38em;
    text-transform: uppercase;
}

.section-heading span,
.service-tag {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .16em;
}

.hero-copy h1,
.tool-intro h1,
.section-heading h1,
.section-heading h2,
.not-found h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: .98;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(34px, 4vw, 52px);
}

.hero-copy p,
.tool-intro p {
    max-width: 390px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-checks {
    display: grid;
    gap: 18px;
    margin-top: 62px;
}

.hero-checks span {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-soft);
    font-size: 17px;
}

.hero-tool-panel,
.tool-workspace {
    display: grid;
    gap: 18px;
}

.textarea-wrap {
    position: relative;
}

.tool-textarea,
.number-input,
.result-box,
.catalog-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    outline: 0;
    box-shadow: 0 1px 0 rgba(16, 24, 40, .03);
}

.tool-textarea {
    min-height: 136px;
    resize: vertical;
    padding: 22px 24px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.45;
}

.tool-textarea.large {
    min-height: 236px;
}

.tool-textarea.result {
    min-height: 118px;
    padding-right: 24px;
    background: var(--surface);
}

.tool-textarea:focus,
.number-input:focus,
.catalog-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.char-limit {
    position: absolute;
    right: 18px;
    bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}

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

.stats-grid.compact {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.stats-grid div {
    min-height: 86px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 16px 18px;
}

.stats-grid span {
    display: block;
    color: var(--ink);
    font-size: 28px;
    font-weight: 850;
    line-height: 1;
}

.stats-grid small {
    color: var(--muted);
    font-weight: 700;
}

.tool-grid {
    display: grid;
    gap: 18px;
}

.field-label {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.number-input {
    min-height: 62px;
    padding: 0 20px;
    font-size: 19px;
    font-weight: 650;
}

.result-box {
    display: flex;
    align-items: center;
    min-height: 116px;
    padding: 26px 28px;
    color: var(--ink);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 850;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.case-buttons,
.tool-actions,
.compact-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-buttons button,
.tool-actions button,
.compact-switch button,
.primary-link,
.service-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    padding: 0 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.case-buttons button.is-active,
.compact-switch button.is-active,
.tool-actions button:first-child,
.primary-link,
.service-action {
    border-color: #000;
    background: #000;
    color: #fff;
}

:root[data-theme="dark"] .case-buttons button.is-active,
:root[data-theme="dark"] .compact-switch button.is-active,
:root[data-theme="dark"] .tool-actions button:first-child,
:root[data-theme="dark"] .primary-link,
:root[data-theme="dark"] .service-action {
    border-color: #d8dce6;
    background: #d8dce6;
    color: #111318;
}

.tool-actions button:first-child:hover,
.service-action:hover,
.case-buttons button.is-active:hover,
.compact-switch button.is-active:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.case-buttons button:hover,
.tool-actions button:hover,
.compact-switch button:hover {
    border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
}

.tool-actions button:first-child {
    min-width: 148px;
}

.compact-switch {
    gap: 8px;
}

.compact-switch button {
    min-width: 58px;
    min-height: 42px;
    padding: 0 16px;
}

.slug-result {
    min-height: 84px;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(20px, 2vw, 28px);
}

.emoji-tool {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.emoji-preview-card,
.emoji-picker {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.emoji-preview-card {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 520px;
    padding: 34px;
}

.emoji-preview {
    display: grid;
    place-items: center;
    min-height: 260px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: clamp(130px, 18vw, 220px);
    line-height: 1;
    text-align: center;
}

.emoji-preview img {
    display: block;
    max-width: min(220px, 54vw);
    max-height: min(220px, 54vw);
    object-fit: contain;
    image-rendering: auto;
}

.emoji-native-size {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.emoji-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    margin-top: 20px;
    border: 1px solid #000;
    border-radius: var(--radius);
    background: #000;
    color: #fff;
    padding: 0 28px;
    font-weight: 800;
    cursor: pointer;
}

.emoji-set-switch {
    justify-content: center;
    margin-top: 6px;
}

.emoji-set-switch button {
    min-width: 72px;
    min-height: 38px;
    font-size: 14px;
}

.emoji-set-switch {
    max-width: 100%;
}

.emoji-download:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

:root[data-theme="dark"] .emoji-download {
    border-color: #d8dce6;
    background: #d8dce6;
    color: #111318;
}

.emoji-picker {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    min-height: 520px;
    overflow: hidden;
}

.emoji-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 10px 0;
}

.emoji-tabs button {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
}

.emoji-tabs button.is-active {
    border-bottom-color: var(--accent);
    color: var(--ink);
}

.emoji-skinbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px 0;
}

.emoji-skinbar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.emoji-skinbar button.is-active {
    border-color: #000;
    background: #000;
    color: #fff;
}

.skin-dot {
    width: 18px;
    height: 18px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 999px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45);
}

.skin-default {
    background: linear-gradient(135deg, #ffda4a 0%, #ff9d00 100%);
}

.skin-light {
    background: #ffd8bd;
}

.skin-medium-light {
    background: #e0a05f;
}

.skin-medium {
    background: #b86d3c;
}

.skin-medium-dark {
    background: #80411f;
}

.skin-dark {
    background: #4b3026;
}

.emoji-search {
    position: relative;
    display: block;
    margin: 12px 16px 10px;
}

.emoji-search .icon {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--muted);
    transform: translateY(-50%);
}

.emoji-search input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--ink);
    outline: 0;
    padding: 0 18px 0 50px;
    font-size: 18px;
}

.emoji-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.emoji-picker h2 {
    margin: 0;
    padding: 0 18px 10px;
    color: var(--ink);
    font-size: 20px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    grid-auto-rows: 42px;
    align-content: start;
    align-items: start;
    gap: 4px;
    max-height: 390px;
    overflow: auto;
    padding: 0 14px 16px;
}

.emoji-grid.is-searching {
    grid-template-columns: repeat(auto-fill, minmax(42px, 42px));
    justify-content: start;
}

.emoji-grid button {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 28px;
    cursor: pointer;
}

.emoji-grid img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.emoji-grid button:hover,
.emoji-grid button.is-active {
    border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}

.emoji-empty {
    grid-column: 1 / -1;
    padding: 34px 0;
    color: var(--muted);
    text-align: center;
}

.typing-tool {
    display: grid;
    gap: 16px;
}

.typing-copy {
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px 28px;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.typing-copy span {
    position: relative;
}

.typing-copy .is-correct {
    color: color-mix(in srgb, var(--ink) 58%, var(--muted));
}

.typing-copy .is-wrong {
    color: #b00020;
    background: rgba(244, 80, 100, .14);
    border-radius: 4px;
}

.typing-copy .is-current::before {
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: -2px;
    width: 2px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
}

.typing-input {
    min-height: 104px;
}

.typing-stats {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.typing-keyboard {
    display: grid;
    justify-content: center;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0 2px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    min-width: max-content;
}

.key {
    display: grid;
    place-items: center;
    width: 44px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 26%, var(--surface));
    color: var(--ink);
    font-weight: 750;
    text-transform: uppercase;
    transition: transform .08s ease, background .08s ease, border-color .08s ease;
}

.key:nth-child(4n+1) {
    background: color-mix(in srgb, #b8b8ff 42%, var(--surface));
}

.key:nth-child(4n+2) {
    background: color-mix(in srgb, #a7ecd0 42%, var(--surface));
}

.key:nth-child(4n+3) {
    background: color-mix(in srgb, #9ee6e3 42%, var(--surface));
}

.key:nth-child(4n+4) {
    background: color-mix(in srgb, #f3b5c4 42%, var(--surface));
}

.key.wide {
    width: 76px;
    background: var(--secondary-bg);
    color: var(--muted);
    font-size: 12px;
}

.key.space {
    width: 280px;
    background: var(--secondary-bg);
}

.key.is-pressed {
    border-color: #000;
    background: var(--accent);
    color: var(--accent-ink);
    transform: translateY(2px) scale(.98);
}

.benefit-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
    margin-bottom: 60px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.benefit-strip article {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 14px;
    border-right: 1px solid var(--line-soft);
    padding: 28px 34px;
}

.benefit-strip article:last-child {
    border-right: 0;
}

.benefit-strip span {
    grid-row: span 2;
    color: #000;
    font-size: 24px;
    line-height: 1.1;
}

.benefit-strip strong {
    color: var(--ink);
    font-size: 17px;
}

.benefit-strip p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.minimal-section {
    padding: 42px 0 66px;
}

.minimal-section .section-heading span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .14em;
}

.minimal-section .section-heading h2 {
    font-size: 30px;
    line-height: 1.08;
}

.catalog-page {
    padding-top: 58px;
}

.catalog-search {
    position: relative;
    display: block;
    margin: 26px 0 22px;
}

.catalog-search input {
    min-height: 56px;
    padding: 0 18px 0 48px;
}

.catalog-search .icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    transform: translateY(-50%);
}

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

.service-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 116px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
}

.service-card.is-hidden {
    display: none;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 20%, var(--surface));
    color: var(--ink);
    font-weight: 850;
}

.service-icon .icon {
    width: 20px;
    height: 20px;
}

.service-card h3 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 18px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.service-action,
.service-status {
    grid-column: 1 / -1;
    width: max-content;
    min-height: 38px;
    margin-top: 4px;
    padding: 0 14px;
    font-size: 14px;
}

.service-status {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 700;
}

.seo-content {
    margin-top: 6px;
    margin-bottom: 82px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--secondary-bg);
}

.seo-content h2 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 26px;
}

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

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.faq-list summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 750;
}

.faq-list p {
    margin: 10px 0 0;
    color: var(--muted);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 92px;
    padding: 0 max(28px, calc((100vw - 1320px) / 2));
    background: radial-gradient(circle at 50% -100%, #24262d 0%, #111217 42%, #07080c 100%);
    color: rgba(255, 255, 255, .72);
}

.footer p {
    margin: 0;
}

.footer nav {
    display: flex;
    gap: 34px;
}

.footer a {
    color: rgba(255, 255, 255, .72);
}

.not-found {
    padding: 80px 0;
}

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

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .topnav {
        grid-column: 1 / -1;
        order: 3;
        justify-content: flex-start;
        gap: 8px;
    }

    .nav-menu {
        position: static;
    }

    .nav-menu-panel {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: auto;
        transform: none;
    }

    .nav-menu-panel::before {
        left: 126px;
        transform: rotate(45deg);
    }

    .mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-button {
        width: 40px;
        height: 40px;
    }

    .minimal-hero,
    .tool-focus {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 46px;
    }

    .hero-copy,
    .tool-intro {
        padding-top: 0;
    }

    .hero-checks {
        margin-top: 30px;
    }

    .benefit-strip,
    .minimal-tools {
        grid-template-columns: 1fr 1fr;
    }

    .emoji-tool {
        grid-template-columns: 1fr;
    }

    .emoji-preview-card,
    .emoji-picker {
        min-height: auto;
    }

    .emoji-preview {
        min-height: 190px;
    }

    .typing-stats {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .benefit-strip article:nth-child(2) {
        border-right: 0;
    }

    .benefit-strip article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line-soft);
    }
}

@media (max-width: 620px) {
    .minimal-hero,
    .tool-focus,
    .minimal-section,
    .benefit-strip,
    .seo-content,
    .not-found {
        width: min(100% - 28px, 560px);
    }

    .topbar {
        min-height: 76px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .brand {
        font-size: 28px;
    }

    .brand-mark {
        width: 26px;
        height: 26px;
    }

    .topnav {
        display: flex;
        overflow: visible;
    }

    .topnav > a,
    .topnav > .nav-menu > summary {
        min-height: 36px;
        padding: 0 11px;
        font-size: 14px;
    }

    .nav-menu-panel {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        max-height: calc(100vh - 112px);
        border-radius: 18px;
        overflow: auto;
        padding: 14px;
    }

    .nav-menu-panel::before {
        display: none;
    }

    .mega-grid {
        grid-template-columns: 1fr;
    }

    .mega-service {
        padding: 9px 10px;
    }

    .hero-copy h1,
    .tool-intro h1,
    .section-heading h1,
    .section-heading h2 {
        font-size: 40px;
    }

    .eyebrow {
        margin-bottom: 20px;
        font-size: 12px;
        letter-spacing: .3em;
    }

    .hero-copy p,
    .tool-intro p {
        font-size: 16px;
    }

    .tool-textarea.large {
        min-height: 220px;
    }

    .tool-focus-simple .tool-workspace {
        padding: 12px;
    }

    .case-buttons button,
    .tool-actions button {
        flex: 1 1 auto;
    }

    .emoji-preview-card {
        padding: 22px 14px;
    }

    .emoji-download {
        width: 100%;
        padding: 0 16px;
    }

    .emoji-set-switch button {
        flex: 1 1 auto;
        min-width: 0;
    }

    .emoji-skinbar {
        padding-right: 14px;
        padding-left: 14px;
    }

    .emoji-skinbar button span:last-child {
        display: none;
    }

    .emoji-skinbar button {
        flex: 0 0 38px;
        justify-content: center;
        padding: 0;
    }

    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
        max-height: 360px;
    }

    .typing-copy {
        padding: 18px;
        font-size: 24px;
    }

    .typing-stats,
    .typing-keyboard {
        grid-template-columns: 1fr;
    }

    .key {
        width: 34px;
        height: 34px;
        border-radius: 7px;
        font-size: 13px;
    }

    .key.wide {
        width: 58px;
        font-size: 10px;
    }

    .key.space {
        width: 180px;
    }

    .stats-grid,
    .stats-grid.compact,
    .benefit-strip,
    .minimal-tools {
        grid-template-columns: 1fr;
    }

    .stats-grid div,
    .benefit-strip article {
        border-right: 0;
    }

    .benefit-strip article:last-child {
        border-bottom: 0;
    }

    .benefit-strip article:nth-child(3) {
        border-bottom: 1px solid var(--line-soft);
    }

    .footer {
        display: grid;
        gap: 16px;
        min-height: 130px;
        padding: 24px 14px;
    }

    .footer nav {
        gap: 18px;
    }
}
