/* PocketCoders: one stylesheet for every page. Layout is flexbox only. */

/* Fonts (SIL Open Font License 1.1) */

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/golos-text-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/golos-text-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("fonts/source-serif-4-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("fonts/source-serif-4-display-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Tokens */

:root {
    --paper: #f4f1ea;
    --paper-2: #eae5d9;
    --card: #fbfaf6;
    --ink: #16150f;
    --muted: #5c584e;
    --line: #d8d1c1;
    --line-strong: #868073;
    --brand: #ff4f1a;
    --brand-hover: #f0430f;
    --focus: #d93d0c;
    --on-brand: #16150f;
    --tone: var(--ink);

    --font-sans: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --text-s: 0.9375rem;
    --text-xs: 0.875rem;

    --wrap: 75rem;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
    --side: 30%;
    --side-gap: clamp(2.5rem, 4vw, 4rem);
    --section-space: clamp(3.5rem, 2.25rem + 4.5vw, 6.5rem);
    --radius-sm: 0.25rem;
    --radius: 0.5rem;

    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13M11 5l5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tone-sheets { --tone: #1f7a4c; }
.tone-docs { --tone: #2b59c3; }
.tone-notes { --tone: #d99a00; }
.tone-auth { --tone: #0e7470; }
.tone-translate { --tone: #bc3866; }
.tone-rooms { --tone: #6a4bc4; }
.tone-ai { --tone: #3a3934; }

html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #16150f;
    --paper-2: #100f0c;
    --card: #1c1b16;
    --ink: #f4f1ea;
    --muted: #9c988b;
    --line: #45423b;
    --line-strong: #746e63;
    --brand: #ff4f1a;
    --brand-hover: #f0430f;
    --focus: #d93d0c;
    --on-brand: #16150f;
}

html[data-theme="dark"] .tone-sheets { --tone: #1f7a4c; }
html[data-theme="dark"] .tone-docs { --tone: #3f6cd5; }
html[data-theme="dark"] .tone-notes { --tone: #d99a00; }
html[data-theme="dark"] .tone-auth { --tone: #0e7470; }
html[data-theme="dark"] .tone-translate { --tone: #bc3866; }
html[data-theme="dark"] .tone-rooms { --tone: #7a5eca; }
html[data-theme="dark"] .tone-ai { --tone: #b6b4aa; }

html[data-theme="dark"] .tone-docs:not(main) img[class*="logo"],
html[data-theme="dark"] main.tone-docs .product-hero__logo {
    border: 1px solid var(--ink);
    border-radius: 6.25% 6.25% 25% 25%;
}

/* Base */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--paper);
    color-scheme: light;
}

@media (min-width: 64em) {
    html {
        font-size: clamp(16px, calc(16px + (100vw - 1024px) / 384), 20px);
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
    margin: 0;
}

ul[class],
ol[class] {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

strong,
b {
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

::selection {
    background: var(--brand);
    color: var(--on-brand);
}

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.005em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.125rem, 1.25rem + 3.4vw, 3.5rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
    line-height: 1.14;
}

h3,
h4 {
    font-family: var(--font-sans);
    font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

@media (min-width: 47.5em) {
    body {
        font-size: 1.125rem;
    }
}

h1,
h2,
h3,
h4 {
    max-width: 100%;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.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-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

hr {
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--ink);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead {
    max-width: 38rem;
    color: var(--muted);
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
    line-height: 1.5;
}

/* Buttons, links, labels */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 3rem;
    padding: 0.625rem 1.375rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-wrap: balance;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
    background: var(--brand);
    color: var(--on-brand);
}

.btn--primary:hover {
    background: var(--brand-hover);
}

.btn--secondary {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn--secondary:hover {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
}

@media (max-width: 34.99em) {
    .actions {
        align-self: stretch;
    }

    .actions > .btn {
        flex: 1 1 100%;
    }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 44px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow::after {
    content: "";
    flex: none;
    width: 1.05em;
    height: 1.05em;
    background: currentColor;
    -webkit-mask: var(--icon-arrow) center / contain no-repeat;
    mask: var(--icon-arrow) center / contain no-repeat;
    transition: transform 0.15s ease;
}

.link-arrow:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

.status {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.5em;
    padding: 0.25em 0.625em;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: var(--text-xs);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.status::before {
    content: "";
    flex: none;
    width: 0.55em;
    height: 0.55em;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.note {
    max-width: 40rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--paper-2);
}

/* Header */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
}

.site-header__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 1rem;
    padding-top: 0.5rem;
}

.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}

.brand__mark {
    flex: none;
    width: 2rem;
    height: 2rem;
}

.brand__name {
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.005em;
}

.nav {
    position: relative;
    display: flex;
    flex: 1 1 100%;
    order: 3;
    margin-top: 0.5rem;
    border-top: 1px solid var(--line);
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -0.625rem;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.625rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav__link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.4em;
}

.nav__link[aria-current="page"],
.nav-drop__summary--current {
    text-decoration: underline;
    text-decoration-color: var(--brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.4em;
}

.nav-drop__details {
    display: flex;
}

.nav-drop__summary {
    width: 100%;
    gap: 0.45em;
    cursor: pointer;
    list-style: none;
}

.nav-drop__summary::-webkit-details-marker {
    display: none;
}

.nav-drop__summary::marker {
    content: "";
}

.nav-drop__summary::after {
    content: "";
    flex: none;
    width: 0.4em;
    height: 0.4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
}

.nav-drop__details[open] > .nav-drop__summary::after {
    transform: translateY(0.1em) rotate(225deg);
}

.nav-menu {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--card);
}

.nav-menu__list {
    display: flex;
    flex-direction: column;
}

.nav-menu__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
}

.nav-menu__link:hover,
.nav-menu__link[aria-current="page"] {
    background: var(--paper-2);
}

.nav-menu__link:hover .nav-menu__name {
    text-decoration: underline;
    text-decoration-color: var(--tone, currentColor);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

.nav-menu__logo {
    flex: none;
    width: 2rem;
    height: 2rem;
}

.nav-menu__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-menu__name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.nav-menu__kind {
    color: var(--muted);
    font-size: var(--text-xs);
    line-height: 1.35;
}

.nav-menu__all {
    margin: 0.25rem 0.5rem 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
}

.nav-menu__all[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: var(--text-s);
    font-weight: 500;
    text-decoration: none;
}

.lang-switch__link:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.lang-switch__link[aria-current="page"] {
    background: var(--paper-2);
    color: var(--ink);
    font-weight: 600;
}

.site-header__end {
    display: flex;
    align-items: center;
    flex: none;
    gap: 0.25rem;
    order: 2;
    margin-left: auto;
    margin-right: -0.5rem;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.theme-switch:hover,
.theme-switch:active {
    background: var(--paper-2);
}

.theme-switch__sun,
.theme-switch__moon {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
}

.theme-switch__moon {
    display: none;
}

html[data-theme="dark"] .theme-switch__sun {
    display: none;
}

html[data-theme="dark"] .theme-switch__moon {
    display: block;
}

@media (max-width: 26.25em) {
    .nav__list:lang(ru) {
        flex: 1 1 auto;
        margin-inline: -0.3125rem;
    }

    .nav__list:lang(ru) > li {
        display: flex;
        flex: 1 0 auto;
    }

    .nav__link:lang(ru) {
        flex: 1 1 auto;
        justify-content: center;
        padding-inline: 0.3125rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 22.5em) {
    .nav__link:lang(ru) {
        font-size: 0.875rem;
    }
}

@media (max-width: 21.25em) {
    .nav__link:lang(ru) {
        padding-inline: 0.15rem;
        font-size: 0.8125rem;
    }

    .nav-drop__summary:lang(ru) {
        gap: 0.25em;
    }
}

@media (min-width: 47.5em) {
    .site-header__bar {
        flex-wrap: nowrap;
        column-gap: 1.5rem;
        min-height: 4.5rem;
        padding-top: 0;
    }

    .brand__name {
        font-size: 1.1875rem;
    }

    .nav {
        position: static;
        flex: 0 1 auto;
        order: 0;
        margin: 0 0 0 auto;
        border-top: 0;
    }

    .nav-drop {
        position: relative;
    }

    .nav-menu {
        top: calc(100% + 0.375rem);
        right: auto;
        width: 22rem;
        max-width: calc(100vw - 2rem);
    }

    .nav__list {
        flex-wrap: nowrap;
        margin-left: 0;
    }

    .site-header__end {
        order: 0;
        margin: 0;
        padding-left: 1rem;
        border-left: 1px solid var(--line);
    }

    .brand + .site-header__end {
        border-left: 0;
    }
}

@media (min-width: 47.5em) and (max-width: 55.99em) {
    html:lang(ru) .site-header__bar {
        flex-wrap: wrap;
    }

    html:lang(ru) .site-header__end {
        margin-left: auto;
    }

    html:lang(ru) .nav {
        flex: 1 1 100%;
        order: 3;
        margin-top: 0.5rem;
        margin-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (min-width: 64em) {
    .nav__list {
        gap: 0.5rem;
    }

    .nav__link {
        padding-inline: 0.75rem;
    }
}

/* Footer */

.site-footer {
    padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 2rem;
    border-top: 1px solid var(--ink);
    font-size: var(--text-s);
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
}

.site-footer__brand {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.site-footer__tagline {
    max-width: 20rem;
    color: var(--muted);
}

.site-footer__col {
    display: flex;
    flex: 1 1 10rem;
    flex-direction: column;
    gap: 0.25rem;
}

.site-footer__col--tools {
    flex: 2 1 15rem;
}

.site-footer__title {
    font-family: var(--font-sans);
    font-size: var(--text-s);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--muted);
}

.footer-tools {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
}

.footer-tools > li {
    flex: 1 1 11rem;
}

.footer-tool,
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}

.footer-tool:hover,
.footer-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.footer-link[aria-current="page"] {
    font-weight: 600;
}

.footer-tool__logo {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 2rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (min-width: 64em) {
    .site-footer__top {
        flex-wrap: nowrap;
        gap: var(--side-gap);
    }

    .site-footer__brand {
        flex: 0 0 var(--side);
    }
}

/* Sections */

.section {
    padding-block: var(--section-space);
    border-top: 1px solid var(--ink);
}

.section--tint {
    background: var(--paper-2);
}

.section__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 46rem;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section__lead {
    max-width: 38rem;
    color: var(--muted);
}

.split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.split > .section__head {
    margin-bottom: 0;
}

.split__body {
    min-width: 0;
}

@media (min-width: 64em) {
    .split {
        flex-direction: row;
        gap: var(--side-gap);
    }

    .split__head {
        flex: 0 0 var(--side);
    }

    .split__body {
        flex: 1 1 0;
    }
}

/* Breadcrumbs and page heads */

.breadcrumbs {
    font-size: var(--text-s);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--muted);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    content: "/" / "";
    padding-inline: 0.5rem;
    color: var(--line-strong);
}

.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}

.breadcrumbs__link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.page-head {
    padding-block: 0.5rem clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.page-head__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 46rem;
    margin-top: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.page-meta {
    color: var(--muted);
    font-size: var(--text-s);
}

/* Home hero */

.hero {
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    min-width: 0;
}

.hero__visual {
    min-width: 0;
}

.hero__email {
    margin-top: -0.75rem;
    color: var(--muted);
    font-size: var(--text-s);
    overflow-wrap: anywhere;
}

.hero__email a {
    color: var(--ink);
    font-weight: 500;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-self: stretch;
    margin-top: 0.75rem;
}

.facts__item {
    display: flex;
    flex: 1 1 9rem;
    flex-direction: column;
    gap: 0.125rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ink);
}

.facts__term {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.facts__desc {
    color: var(--muted);
    font-size: var(--text-s);
    line-height: 1.45;
}

@media (min-width: 64em) {
    .hero__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--side-gap);
    }

    .hero__text {
        flex: 1 1 28rem;
        padding-top: 0.5rem;
    }

    .hero__visual {
        flex: 1 1 28rem;
        max-width: 34rem;
    }
}

/* Kit panel: the product lineup in the hero */

.kit {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.kit__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.125rem 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.kit__title {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.kit__note {
    color: var(--muted);
    font-size: var(--text-s);
}

.kit__body {
    display: flex;
    flex-wrap: wrap;
}

.kit__col {
    display: flex;
    flex: 1 1 13.5rem;
    flex-direction: column;
    box-shadow: -1px -1px 0 var(--line);
}

.kit__group {
    padding: 0.875rem 0.75rem 0.75rem;
}

.kit__group + .kit__group {
    border-top: 1px solid var(--line);
}

.kit__group-title {
    padding: 0 0.5rem 0.25rem;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 500;
    line-height: 1.35;
}

.kit__list {
    display: flex;
    flex-direction: column;
}

.kit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.kit-item:hover {
    background: var(--paper);
}

.kit-item:hover .kit-item__name {
    text-decoration: underline;
    text-decoration-color: var(--tone);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.kit-item__logo {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
}

.kit-item__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kit-item__name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.kit-item__kind {
    color: var(--muted);
    font-size: var(--text-s);
    line-height: 1.35;
}

.kit__foot {
    padding: 0.25rem 1.25rem;
    border-top: 1px solid var(--line);
}

/* Tool groups and product cards */

.tool-groups {
    display: flex;
    flex-direction: column;
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-block: 2rem;
    border-top: 1px solid var(--line);
}

.tool-group:last-child {
    padding-bottom: 0;
}

.tool-groups:first-child > .tool-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.tool-group__head {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tool-group__lead {
    max-width: 30rem;
    color: var(--muted);
}

.tool-group__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 0;
}

.tool-group__cards > li {
    display: flex;
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 47.5em) {
    .tool-group__cards > li {
        flex: 0 1 calc(50% - 0.5rem);
    }
}

@media (min-width: 64em) {
    .tool-group {
        flex-direction: row;
        gap: var(--side-gap);
        padding-block: 2.5rem;
    }

    .tool-group__head {
        flex: 0 0 var(--side);
    }

    .tool-group__cards {
        flex: 1 1 0;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.product-card__head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.product-card__logo {
    flex: none;
    width: 3rem;
    height: 3rem;
}

.product-card__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card__name {
    font-size: 1.1875rem;
    line-height: 1.25;
}

.product-card__kind {
    color: var(--muted);
    font-size: var(--text-s);
    line-height: 1.4;
}

.product-card > .status {
    align-self: flex-start;
}

.product-card__text {
    flex: 1 1 auto;
}

.product-card__foot {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
}

@media (min-width: 35em) {
    .product-card {
        padding: 1.5rem;
    }
}

/* How it works: numbered steps */

.steps {
    counter-reset: step;
    border-top: 1px solid var(--ink);
}

.step {
    display: flex;
    gap: 1rem;
    padding-block: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    counter-increment: step;
}

.step::before {
    content: counter(step);
    flex: 0 0 2.25rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.05;
}

.step__body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    padding-top: 0.25rem;
}

.step__text {
    color: var(--muted);
}

@media (min-width: 47.5em) {
    .step {
        gap: 1.5rem;
        padding-block: 1.5rem 1.75rem;
    }

    .step::before {
        flex-basis: 3rem;
        font-size: 2.5rem;
    }

    .step__body {
        flex-direction: row;
        gap: 2rem;
    }

    .step__title {
        flex: 0 0 13rem;
    }

    .step__text {
        flex: 1 1 0;
    }
}

/* Why pay: text-led reasons */

.reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 2.5rem;
}

.reason {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 0.125rem solid var(--ink);
}

.reason__text {
    color: var(--muted);
}

@media (min-width: 47.5em) {
    .reason {
        flex: 0 1 calc(50% - 1.25rem);
    }
}

/* Decided / not decided yet */

.board {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.board__col {
    display: flex;
    flex: 1 1 17rem;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem 1.25rem 0.5rem;
    border-radius: var(--radius);
}

.board__col--decided {
    background: var(--card);
    border: 1px solid var(--line);
}

.board__col--open {
    border: 1px dashed var(--line-strong);
}

.board__title {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.board__item {
    display: flex;
    gap: 0.75rem;
    padding-block: 0.75rem;
    line-height: 1.45;
}

.board__item + .board__item {
    border-top: 1px solid var(--line);
}

.board__item::before {
    content: "";
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15em;
}

.board__col--decided .board__item::before {
    background: var(--ink);
    -webkit-mask: var(--icon-check) center / contain no-repeat;
    mask: var(--icon-check) center / contain no-repeat;
}

.board__col--open .board__item::before {
    width: 0.75rem;
    height: 0.75rem;
    margin: 0.4em 0.1875rem 0;
    border: 1.5px solid var(--muted);
    border-radius: 50%;
}

.board__col--open .board__item {
    color: var(--muted);
}

@media (min-width: 35em) {
    .board__col {
        padding: 1.5rem 1.5rem 0.75rem;
    }
}

/* Bottom call to action */

.cta {
    padding-block: clamp(3rem, 2rem + 4vw, 5rem);
    background: var(--paper-2);
    border-top: 1px solid var(--ink);
}

.cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.cta__text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 40rem;
}

.cta__lead {
    color: var(--muted);
}

.cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.cta__email {
    color: var(--muted);
    font-size: var(--text-s);
}

.cta__email a {
    color: var(--ink);
    font-weight: 500;
}

@media (max-width: 34.99em) {
    .cta__actions {
        align-items: stretch;
    }
}

@media (min-width: 64em) {
    .cta__inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: var(--side-gap);
    }

    .cta__actions {
        flex: 0 1 auto;
    }
}

/* Product page hero */

.product-hero {
    padding-block: 0.5rem clamp(3rem, 2rem + 4vw, 5.5rem);
    border-top: 0.25rem solid var(--tone);
}

.product-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.product-hero__aside {
    flex: none;
}

.product-hero__logo {
    width: 4.5rem;
    height: 4.5rem;
}

.product-hero__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    max-width: 46rem;
}

.product-hero__name {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.product-hero__kind {
    font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
    font-weight: 500;
    line-height: 1.35;
}

.product-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    color: var(--muted);
    font-size: var(--text-s);
}

.product-hero__meta a {
    color: var(--ink);
}

.product-hero .actions {
    margin-top: 0.5rem;
}

@media (min-width: 47.5em) {
    .product-hero__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .product-hero__logo {
        width: 7rem;
        height: 7rem;
    }
}

@media (min-width: 64em) {
    .product-hero__inner {
        gap: var(--side-gap);
    }

    .product-hero__aside {
        flex: 0 0 var(--side);
    }

    .product-hero__logo {
        width: 8rem;
        height: 8rem;
    }
}

/* Product page: use cases */

.uses {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 2.5rem;
}

.use {
    display: flex;
    flex: 1 1 15rem;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 0.1875rem solid var(--tone);
}

.use__text {
    color: var(--muted);
}

/* Product page: honest comparison */

.compare {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.compare__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.compare__col {
    display: flex;
    flex: 1 1 17rem;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    padding: 1.25rem 1.25rem 0.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.compare__lead {
    color: var(--muted);
    font-size: var(--text-s);
}

.compare__list {
    margin-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.compare__item {
    display: flex;
    flex-direction: column;
    padding-block: 0.75rem;
}

.compare__item + .compare__item {
    border-top: 1px solid var(--line);
}

.compare__name {
    font-weight: 600;
}

.compare__note {
    color: var(--muted);
    font-size: var(--text-s);
}

@media (min-width: 35em) {
    .compare__col {
        padding: 1.5rem 1.5rem 0.75rem;
    }
}

/* FAQ */

.faq {
    max-width: 50rem;
    border-top: 1px solid var(--ink);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding-block: 1rem;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::marker {
    content: "";
}

.faq__q::after {
    content: "";
    flex: none;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 0.75rem 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2px 0.75rem no-repeat;
}

.faq__q:hover::after {
    border-color: var(--ink);
}

.faq__item[open] > .faq__q::after {
    background: linear-gradient(var(--ink), var(--ink)) center / 0.75rem 2px no-repeat;
}

.faq__a {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 40rem;
    padding: 0 3rem 1.5rem 0;
    color: var(--muted);
}

/* Related tools */

.related {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.related > li {
    display: flex;
    flex: 1 1 17rem;
    min-width: 0;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 5rem;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.mini-card::after {
    content: "";
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    background: currentColor;
    -webkit-mask: var(--icon-arrow) center / contain no-repeat;
    mask: var(--icon-arrow) center / contain no-repeat;
    transition: transform 0.15s ease;
}

.mini-card:hover {
    border-color: var(--ink);
}

.mini-card:hover::after {
    transform: translateX(3px);
}

.mini-card__logo {
    flex: none;
    width: 3rem;
    height: 3rem;
}

.mini-card__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-card__name {
    font-weight: 600;
    line-height: 1.3;
}

.mini-card__kind {
    color: var(--muted);
    font-size: var(--text-s);
    line-height: 1.4;
}

/* Contact */

.mailboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mailbox {
    display: flex;
    flex: 1 1 18rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mailbox__label {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--muted);
}

.mailbox__address {
    display: inline-block;
    max-width: 100%;
    padding-block: 0.25rem;
    color: var(--ink);
    font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mailbox__desc {
    color: var(--muted);
}

@media (min-width: 35em) {
    .mailbox {
        padding: 1.5rem;
    }
}

.notify-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
    border-top: 1px solid var(--ink);
}

.notify-list > li {
    flex: 1 1 100%;
    min-width: 0;
    border-bottom: 1px solid var(--line);
}

.notify-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.875rem;
    min-height: 3.75rem;
    padding-block: 0.625rem;
    color: var(--ink);
    text-decoration: none;
}

.notify-link__logo {
    flex: none;
    width: 2rem;
    height: 2rem;
}

.notify-link__name {
    flex: 1 1 auto;
    font-weight: 600;
}

.notify-link__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--muted);
    font-size: var(--text-s);
}

.notify-link__action::after {
    content: "";
    flex: none;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: var(--icon-arrow) center / contain no-repeat;
    mask: var(--icon-arrow) center / contain no-repeat;
}

.notify-link:hover .notify-link__action {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

@media (min-width: 47.5em) {
    .notify-list > li {
        flex: 0 1 calc(50% - 1rem);
    }
}

/* Long-form text: privacy and similar pages */

.prose {
    max-width: 40rem;
}

.prose > * + * {
    margin-top: 1rem;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 {
    margin-top: 2.75rem;
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.prose h3 {
    margin-top: 2rem;
}

.prose h2 + *,
.prose h3 + * {
    margin-top: 0.75rem;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
}

.prose li + li {
    margin-top: 0.5rem;
}

.prose li::marker {
    color: var(--muted);
}

.prose .page-meta {
    margin-top: 0;
}

/* 404 */

.not-found {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 42rem;
    padding-block: clamp(3rem, 2rem + 6vw, 7rem);
}

.not-found__code {
    color: var(--line-strong);
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
    font-weight: 500;
    line-height: 0.9;
}

.not-found__title {
    font-size: clamp(2.125rem, 1.25rem + 3.4vw, 3.5rem);
    line-height: 1.08;
}

.not-found + .not-found {
    padding-top: 0;
}

.not-found .actions {
    margin-top: 0.5rem;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .link-arrow:hover::after,
    .mini-card:hover::after {
        transform: none;
    }

    main > .section,
    .section__head,
    .tool-group,
    main > .cta {
        opacity: 1 !important;
        transform: none !important;
    }
}
