:root {
    --wd-ink: #0b1120;
    --wd-ink-2: #121a2e;
    --wd-navy: #1b2b4b;
    --wd-blue: #4a7bf7;
    --wd-blue-soft: #8fb0ff;
    --wd-cream: #f8f6f1;
    --wd-white: #ffffff;
    --wd-text: #f0f2f7;
    --wd-text-dim: rgba(240, 242, 247, 0.68);
    --wd-line: rgba(255, 255, 255, 0.1);
    --wd-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --wd-header-top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
    --wd-gutter: clamp(16px, 4vw, 32px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wd-ink);
    color: var(--wd-text);
    font-family: var(--wd-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

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

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

:focus-visible {
    outline: 2px solid var(--wd-blue-soft);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Header */

.wd-header {
    position: fixed;
    inset: var(--wd-header-top) 0 auto;
    z-index: 100;
    padding: 0 var(--wd-gutter);
    pointer-events: none;
}

.wd-header__bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 10px 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background-color 0.35s var(--wd-ease), border-color 0.35s var(--wd-ease), box-shadow 0.35s var(--wd-ease), max-width 0.45s var(--wd-ease);
}

.wd-header.is-scrolled .wd-header__bar {
    max-width: 1040px;
    background: rgba(14, 20, 36, 0.72);
    border-color: var(--wd-line);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

.wd-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wd-brand__mark {
    width: 38px;
    height: 44px;
}

.wd-brand__name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--wd-white);
}

.wd-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.wd-nav__list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-nav__link {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--wd-text-dim);
    transition: color 0.2s, background-color 0.2s;
}

.wd-nav__link:hover {
    color: var(--wd-white);
    background: rgba(255, 255, 255, 0.07);
}

.wd-header__end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wd-langdd {
    position: relative;
}

.wd-langdd__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--wd-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--wd-white);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.wd-langdd__btn:hover,
.wd-langdd__btn[aria-expanded='true'] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.wd-langdd__btn > svg:first-child {
    width: 17px;
    height: 17px;
    opacity: 0.8;
}

.wd-langdd__chevron {
    opacity: 0.7;
    transition: transform 0.25s var(--wd-ease);
}

.wd-langdd__btn[aria-expanded='true'] .wd-langdd__chevron {
    transform: rotate(180deg);
}

.wd-langdd__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    min-width: 200px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 18px;
    background: var(--wd-white);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(11, 17, 32, 0.06);
    transform-origin: top right;
    animation: wd-dd-in 0.18s var(--wd-ease);
}

.wd-langdd--sheet .wd-langdd__menu {
    top: auto;
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    transform-origin: bottom left;
}

@keyframes wd-dd-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.97);
    }
}

.wd-langdd__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--wd-ink);
    transition: background-color 0.15s;
}

.wd-langdd__item:hover,
.wd-langdd__item:focus-visible {
    background: #f1f3f9;
}

.wd-langdd__code {
    display: grid;
    place-items: center;
    width: 30px;
    height: 22px;
    border-radius: 6px;
    background: #eef2fb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #5b6680;
}

.wd-langdd__item.is-current .wd-langdd__code {
    background: var(--wd-blue);
    color: var(--wd-white);
}

.wd-langdd__name {
    flex: 1;
}

.wd-langdd__item svg {
    width: 18px;
    height: 18px;
    color: var(--wd-blue);
}

.wd-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--wd-white);
    color: var(--wd-ink);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.25s var(--wd-ease), box-shadow 0.25s var(--wd-ease);
}

.wd-cta svg {
    transition: transform 0.25s var(--wd-ease);
}

.wd-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px rgba(143, 176, 255, 0.6);
}

.wd-cta:hover svg {
    transform: translateX(3px);
}

.wd-burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--wd-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--wd-white);
    cursor: pointer;
}

.wd-burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s var(--wd-ease), top 0.35s var(--wd-ease);
}

.wd-burger span:first-child {
    top: 17px;
}

.wd-burger span:last-child {
    top: 24px;
}

.wd-burger[aria-expanded='true'] span:first-child {
    top: 20.5px;
    transform: rotate(45deg);
}

.wd-burger[aria-expanded='true'] span:last-child {
    top: 20.5px;
    transform: rotate(-45deg);
}

/* Mobile sheet */

.wd-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--wd-header-top) + 96px) var(--wd-gutter) calc(32px + env(safe-area-inset-bottom));
    background: radial-gradient(120% 60% at 50% 0%, #1c2c55 0%, var(--wd-ink) 60%);
    opacity: 0;
    transition: opacity 0.3s var(--wd-ease);
}

.wd-sheet[hidden] {
    display: none;
}

.wd-sheet.is-open {
    opacity: 1;
}

.wd-sheet__nav {
    display: flex;
    flex-direction: column;
}

.wd-sheet__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--wd-line);
    font-size: clamp(30px, 9vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--wd-white);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--wd-ease), transform 0.4s var(--wd-ease);
    transition-delay: calc(var(--i) * 60ms + 80ms);
}

.wd-sheet.is-open .wd-sheet__link {
    opacity: 1;
    transform: none;
}

.wd-sheet__foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wd-langdd--sheet {
    align-self: flex-start;
}

.wd-cta--block {
    width: 100%;
    height: 56px;
    font-size: 17px;
}

@media (max-width: 860px) {
    .wd-nav,
    .wd-langdd--header {
        display: none;
    }

    .wd-header__bar {
        justify-content: space-between;
        height: 60px;
        padding: 0 8px 0 14px;
    }

    .wd-burger {
        display: block;
    }

    body.is-locked .wd-header__bar {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .wd-header__end > .wd-cta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Hero */

.wd-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: calc(var(--wd-header-top) + 96px) var(--wd-gutter) 64px;
    background:
        radial-gradient(70% 60% at 85% 20%, rgba(74, 123, 247, 0.28) 0%, transparent 65%),
        radial-gradient(50% 50% at 0% 100%, rgba(143, 176, 255, 0.12) 0%, transparent 70%),
        var(--wd-ink);
}

.wd-hero__glow {
    position: absolute;
    right: -10%;
    top: 30%;
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(74, 123, 247, 0.32), transparent);
    filter: blur(40px);
    pointer-events: none;
}

.wd-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.wd-hero__title {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--wd-white);
    text-wrap: balance;
}

.wd-hero__card {
    display: inline-block;
    margin-top: 0.06em;
    padding: 0.02em 0.2em 0.08em;
    border-radius: 0.16em;
    background: var(--wd-white);
    color: var(--wd-ink);
    box-shadow: 0.08em 0.1em 0 var(--wd-blue);
    transform: rotate(-2.5deg);
}

.wd-hero__text {
    max-width: 480px;
    margin: 28px 0 0;
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--wd-text-dim);
}

.wd-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.wd-badge {
    display: block;
    transition: transform 0.25s var(--wd-ease), opacity 0.25s;
}

.wd-badge img {
    width: auto;
    height: 52px;
}

.wd-badge:hover {
    transform: translateY(-2px);
}

.wd-hero__note {
    margin: 18px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(240, 242, 247, 0.5);
}

/* Devices: plain black frames at real screen ratios (tablet 1180 × 820, phone 402 × 874) */

.wd-devices {
    --u: calc(100cqw / 108);
    position: relative;
    width: 100%;
    aspect-ratio: 108 / 84;
    container-type: inline-size;
}

.wd-tablet,
.wd-phone {
    position: absolute;
    background: #000;
}

.wd-tablet {
    left: 0;
    top: calc(9.5 * var(--u));
    width: calc(90 * var(--u));
    height: calc(64.9 * var(--u));
    padding: calc(2 * var(--u));
    border-radius: calc(4 * var(--u));
    box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) calc(-4 * var(--u)) rgba(0, 0, 0, 0.55);
}

.wd-phone {
    right: 0;
    top: 0;
    width: calc(40.2 * var(--u));
    height: calc(84 * var(--u));
    padding: calc(1.6 * var(--u));
    border-radius: calc(6.6 * var(--u));
    box-shadow: calc(-4 * var(--u)) calc(8 * var(--u)) calc(20 * var(--u)) calc(-2 * var(--u)) rgba(0, 0, 0, 0.75);
}

.wd-tablet__screen,
.wd-phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.wd-tablet__screen {
    border-radius: calc(2.2 * var(--u));
}

.wd-phone__screen {
    border-radius: calc(5.2 * var(--u));
}

.wd-tablet__screen img,
.wd-phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes wd-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wd-hero__copy > * {
    animation: wd-rise 0.8s var(--wd-ease) both;
}

.wd-hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.wd-hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.wd-hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.wd-hero__copy > :nth-child(5) { animation-delay: 0.24s; }

.wd-tablet {
    animation: wd-rise 1s 0.15s var(--wd-ease) both;
}

.wd-phone {
    animation: wd-rise 1s 0.35s var(--wd-ease) both;
}

@media (max-width: 960px) {
    .wd-fcards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wd-hero {
        min-height: 0;
        padding-top: calc(var(--wd-header-top) + 100px);
        padding-bottom: 72px;
    }

    .wd-hero__inner {
        grid-template-columns: 1fr;
    }

    .wd-devices {
        max-width: 620px;
        margin: 8px auto 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd-hero__copy > *,
    .wd-tablet,
    .wd-phone {
        animation: none;
    }
}

.wd-prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 140px var(--wd-gutter) 80px;
}

/* Sections */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wd-section {
    position: relative;
    padding: clamp(88px, 11vw, 144px) var(--wd-gutter);
}

.wd-section--tight {
    padding-top: 0;
}

.wd-section--cream {
    --s-text: #0b1120;
    --s-dim: #5b6680;
    --s-line: rgba(11, 17, 32, 0.1);
    background: var(--wd-cream);
    color: var(--s-text);
}

.wd-section--dark {
    --s-text: var(--wd-white);
    --s-dim: var(--wd-text-dim);
    --s-line: var(--wd-line);
    background: var(--wd-ink);
    color: var(--s-text);
}

.wd-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.wd-head {
    max-width: 720px;
    margin-bottom: clamp(48px, 6vw, 72px);
}

.wd-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wd-h2 {
    margin: 0;
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.wd-lead {
    margin: 20px 0 0;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--s-dim);
    text-wrap: pretty;
}

.wd-head--center .wd-lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
}

/* Steps */

.wd-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-step__art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1.05;
    margin-bottom: 28px;
    border-radius: 32px;
    overflow: hidden;
}

.wd-step--1 .wd-step__art {
    background: linear-gradient(160deg, #6f97ff 0%, #4a7bf7 100%);
}

.wd-step--2 .wd-step__art {
    background: linear-gradient(160deg, #22355f 0%, #121a2e 100%);
}

.wd-step--3 .wd-step__art {
    background: linear-gradient(160deg, #e6ecff 0%, #cfdaff 100%);
}

.wd-mini {
    display: flex;
    flex-direction: column;
    width: auto;
    height: 72%;
    aspect-ratio: 4 / 5;
    padding: 9% 8%;
    border-radius: 28px;
    background: var(--wd-white);
    color: var(--wd-navy);
    box-shadow: 0 24px 48px -20px rgba(11, 17, 32, 0.55);
    transform: rotate(-2deg);
    transition: transform 0.6s var(--wd-ease);
}

.wd-step--3 .wd-mini {
    transform: rotate(2deg);
}

.wd-step:hover .wd-mini {
    transform: rotate(0) translateY(-4px);
}

.wd-mini__label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7a99;
}

.wd-mini__label--sub {
    margin-top: auto;
}

.wd-mini__word {
    margin: 6px 0 auto;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.wd-mini__options {
    display: grid;
    gap: 7px;
}

.wd-mini__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 12px;
    background: #f1f3f9;
    font-size: 14px;
    font-weight: 700;
}

.wd-mini__option.is-correct {
    background: #dcfce7;
    color: #15803d;
    box-shadow: inset 0 0 0 2px #22c55e;
}

.wd-mini__option.is-correct::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.wd-mini__big {
    margin: 4px 0 14px;
    font-size: clamp(40px, 4.4vw, 60px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--wd-blue);
}

.wd-mini__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.wd-mini__day {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #f1f3f9;
    font-size: 11px;
    font-weight: 800;
    color: #8b9bb8;
}

.wd-mini__day.is-done {
    background: var(--wd-blue);
    color: var(--wd-white);
}

.wd-mini__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.wd-mini__chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: #fee2e2;
    font-size: 12px;
    font-weight: 700;
    color: #b91c1c;
}

.wd-step__num {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 800;
    color: var(--wd-white);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.wd-step--3 .wd-step__num {
    background: rgba(11, 17, 32, 0.06);
    color: var(--s-text);
}

.wd-step__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.wd-step__text {
    max-width: 340px;
    margin: 0;
    color: var(--s-dim);
}

/* Flashcard deck */

.wd-deck {
    position: relative;
    height: 72%;
    aspect-ratio: 4 / 5;
    margin-bottom: 4%;
}

.wd-card {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    perspective: 1400px;
    transition: transform 0.55s var(--wd-ease), opacity 0.45s var(--wd-ease);
}

.wd-card[data-pos='0'] {
    z-index: 3;
}

.wd-card[data-pos='1'] {
    z-index: 2;
    transform: translate(6%, 3%) rotate(5deg) scale(0.96);
}

.wd-card[data-pos='2'] {
    z-index: 1;
    transform: translate(-6%, 5%) rotate(-6deg) scale(0.92);
}

.wd-card[data-pos='3'],
.wd-card[data-pos='4'] {
    z-index: 0;
    opacity: 0;
    transform: translateY(8%) scale(0.88);
}

.wd-card.is-leaving {
    z-index: 4;
    opacity: 0;
    transform: translate(70%, -6%) rotate(14deg);
}

.wd-card__inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.wd-card.is-flipped .wd-card__inner {
    transform: rotateY(180deg);
}

.wd-card__face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12%;
    border-radius: 28px;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 0 24px 48px -20px rgba(11, 17, 32, 0.55);
}

.wd-card__front {
    background: var(--wd-white);
    color: var(--wd-navy);
}

.wd-card__back {
    background: var(--wd-ink);
    color: var(--wd-white);
    transform: rotateY(180deg);
}

.wd-card__lang {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(74, 123, 247, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--wd-blue);
}

.wd-card__back .wd-card__lang {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wd-blue-soft);
}

.wd-card__word {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.wd-card__meta {
    font-size: 15px;
    font-weight: 600;
    color: #6b7a99;
}

.wd-card__back .wd-card__meta {
    color: var(--wd-text-dim);
    font-style: italic;
    font-weight: 500;
}

.wd-card__tap {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(74, 123, 247, 0.1);
    font-size: 13px;
    font-weight: 700;
    color: var(--wd-blue);
    white-space: nowrap;
    transform: translateX(-50%);
}

.wd-card__tap svg {
    width: 15px;
    height: 15px;
}

.wd-card__back .wd-card__tap {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wd-blue-soft);
}

/* Feature flashcards */

.wd-fcards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-fcard {
    --tilt: -1.5deg;
    display: flex;
    flex-direction: column;
    padding: 22px 26px 30px;
    border-radius: 28px;
    background: var(--wd-white);
    color: var(--wd-navy);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    transform: rotate(var(--tilt));
    transition: transform 0.5s var(--wd-ease), box-shadow 0.5s var(--wd-ease);
}

.wd-fcard:nth-child(3n + 2) {
    --tilt: 1.2deg;
}

.wd-fcard:nth-child(3n) {
    --tilt: -0.8deg;
}

.wd-fcard:nth-child(n + 4) {
    --tilt: 1deg;
}

.wd-fcard:nth-child(5) {
    --tilt: -1.4deg;
}

.wd-fcard:hover {
    transform: rotate(0) translateY(-6px);
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8);
}

.js .wd-fcard[data-reveal] {
    transform: rotate(var(--tilt)) translateY(28px);
}

.js .wd-fcard[data-reveal].is-visible {
    transform: rotate(var(--tilt));
}

.js .wd-fcard[data-reveal].is-visible:hover {
    transform: rotate(0) translateY(-6px);
}

.wd-fcard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.wd-fcard__tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(74, 123, 247, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--wd-blue);
}

.wd-fcard__count {
    font-size: 12px;
    font-weight: 700;
    color: #a3adc2;
    font-variant-numeric: tabular-nums;
}

.wd-fcard__visual {
    display: grid;
    place-items: center;
    height: 170px;
    margin-bottom: 26px;
    border-radius: 20px;
    background: #f3f5fa;
    overflow: hidden;
}

.wd-fcard__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.wd-fcard__text {
    margin: 0;
    font-size: 15px;
    color: #5b6680;
}

.fv-levels {
    display: grid;
    grid-template-columns: repeat(6, 38px);
    align-items: end;
    gap: 7px;
    height: 104px;
}

.fv-levels__item {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    border-radius: 10px 10px 5px 5px;
    background: #e3e8f3;
    font-size: 12px;
    font-weight: 800;
    color: #6b7a99;
}

.fv-levels__item:nth-child(1) { height: 36%; }
.fv-levels__item:nth-child(2) { height: 48%; }
.fv-levels__item:nth-child(3) { height: 60%; }
.fv-levels__item:nth-child(4) { height: 72%; }
.fv-levels__item:nth-child(5) { height: 86%; }
.fv-levels__item:nth-child(6) { height: 100%; }

.fv-levels__item.is-active {
    background: var(--wd-blue);
    color: var(--wd-white);
    box-shadow: 0 10px 20px -8px rgba(74, 123, 247, 0.8);
}

.fv-flip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fv-flip__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 104px;
    height: 120px;
    border-radius: 16px;
    background: var(--wd-white);
    box-shadow: 0 10px 24px -12px rgba(11, 17, 32, 0.35);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    transform: rotate(-4deg);
}

.fv-flip__card small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--wd-blue);
}

.fv-flip__card--back {
    background: var(--wd-ink);
    color: var(--wd-white);
    transform: rotate(4deg);
}

.fv-flip__card--back small {
    color: var(--wd-blue-soft);
}

.fv-flip__arrow {
    color: var(--wd-blue);
}

.fv-type {
    display: flex;
    gap: 8px;
    width: 78%;
}

.fv-type__field {
    flex: 1;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--wd-white);
    box-shadow: inset 0 0 0 2px var(--wd-blue);
    font-size: 18px;
    font-weight: 700;
}

.fv-type__caret {
    width: 2px;
    height: 22px;
    margin-left: 2px;
    background: var(--wd-blue);
    animation: fv-blink 1s steps(1) infinite;
}

@keyframes fv-blink {
    50% {
        opacity: 0;
    }
}

.fv-type__btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--wd-blue);
    color: var(--wd-white);
}

.fv-weak {
    display: grid;
    gap: 8px;
    width: 74%;
}

.fv-weak__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--wd-white);
    font-size: 14px;
    font-weight: 700;
}

.fv-weak__row b {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fee2e2;
    font-size: 12px;
    color: #b91c1c;
}

.fv-weak__row:last-child b {
    background: #e3e8f3;
    color: #6b7a99;
}

.fv-langs {
    display: grid;
    grid-template-columns: repeat(3, 52px);
    gap: 8px;
}

.fv-langs__item {
    display: grid;
    place-items: center;
    height: 38px;
    border-radius: 10px;
    background: var(--wd-white);
    font-size: 13px;
    font-weight: 800;
    color: #6b7a99;
}

.fv-langs__item.is-active {
    background: var(--wd-blue);
    color: var(--wd-white);
}

.fv-sync {
    display: grid;
    gap: 10px;
    width: 70%;
}

.fv-sync__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 999px;
    background: var(--wd-white);
    box-shadow: inset 0 0 0 1px #dfe4ee;
    font-size: 15px;
    font-weight: 700;
}

.fv-sync__btn--apple {
    background: #000;
    color: var(--wd-white);
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .fv-type__caret {
        animation: none;
    }
}

/* Plans */

.wd-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.wd-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 32px 32px;
    border: 1px solid var(--s-line);
    border-radius: 28px;
    background: var(--wd-white);
}

.wd-plan--featured {
    border-color: transparent;
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(74, 123, 247, 0.45) 0%, transparent 70%),
        var(--wd-ink);
    color: var(--wd-white);
    box-shadow: 0 30px 60px -24px rgba(11, 17, 32, 0.55);
    transform: translateY(-12px);
}

.wd-plan__tag {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--wd-blue);
    font-size: 12px;
    font-weight: 800;
    color: var(--wd-white);
}

.wd-plan__name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.wd-plan__desc {
    margin: 6px 0 32px;
    font-size: 15px;
    color: var(--s-dim);
}

.wd-plan--featured .wd-plan__desc {
    color: var(--wd-text-dim);
}

.wd-plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 28px;
}

.wd-plan__amount {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.wd-plan__period {
    font-size: 15px;
    font-weight: 600;
    color: var(--s-dim);
}

.wd-plan--featured .wd-plan__period {
    color: var(--wd-text-dim);
}

.wd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--wd-ink);
    color: var(--wd-white);
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.25s var(--wd-ease), box-shadow 0.25s var(--wd-ease);
}

.wd-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(11, 17, 32, 0.6);
}

.wd-btn--blue {
    background: var(--wd-blue);
}

.wd-btn--blue:hover {
    box-shadow: 0 10px 28px -8px rgba(74, 123, 247, 0.8);
}

.wd-compare {
    max-width: 720px;
    margin: clamp(56px, 7vw, 88px) auto 0;
    border: 1px solid var(--s-line);
    border-radius: 28px;
    background: var(--wd-white);
    overflow: hidden;
}

.wd-compare__row {
    display: grid;
    grid-template-columns: 1fr 120px 140px;
    align-items: center;
    min-height: 60px;
    padding-left: 28px;
    border-top: 1px solid var(--s-line);
    text-align: center;
}

.wd-compare__row--head {
    border-top: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--s-dim);
}

.wd-compare__group {
    padding: 22px 28px 10px;
    border-top: 1px solid var(--s-line);
    font-size: 13px;
    font-weight: 800;
    color: var(--s-dim);
}

.wd-compare__free {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 0;
    line-height: 1.2;
}

.wd-compare__free small {
    font-size: 11px;
    font-weight: 600;
    color: var(--s-dim);
}

.wd-compare__label {
    text-align: left;
    font-weight: 600;
}

.wd-compare__pro {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    background: rgba(74, 123, 247, 0.07);
}

.wd-compare__row--head .wd-compare__pro {
    color: var(--wd-blue);
}

.wd-yes,
.wd-no {
    display: inline-grid;
    place-items: center;
}

.wd-yes {
    color: var(--wd-blue);
}

.wd-no {
    color: rgba(11, 17, 32, 0.25);
}

.wd-note {
    margin: 24px auto 0;
    max-width: 560px;
    text-align: center;
    font-size: 14px;
    color: var(--s-dim);
}

/* FAQ */

.wd-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.wd-faq .wd-head {
    position: sticky;
    top: calc(var(--wd-header-top) + 100px);
}

.wd-faq__list {
    border-top: 1px solid var(--s-line);
}

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

.wd-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 700;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
}

.wd-faq__item summary::-webkit-details-marker {
    display: none;
}

.wd-faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--s-line);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.4s var(--wd-ease);
}

.wd-faq__icon::before,
.wd-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.wd-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.4s var(--wd-ease);
}

.wd-faq__item[open] .wd-faq__icon {
    background: var(--wd-blue);
    border-color: var(--wd-blue);
}

.wd-faq__item[open] .wd-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.wd-faq__item p {
    max-width: 600px;
    margin: 0;
    padding: 0 0 28px;
    color: var(--s-dim);
}

/* Final CTA */

.wd-final {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: clamp(40px, 6vw, 80px);
    padding-bottom: 0;
    border-radius: 40px;
    color: var(--wd-white);
    background:
        radial-gradient(60% 80% at 90% 10%, rgba(185, 166, 255, 0.45) 0%, transparent 60%),
        linear-gradient(135deg, #3f6ff0 0%, #4a7bf7 45%, #6b8cff 100%);
    overflow: hidden;
}

.wd-final__copy {
    align-self: center;
    padding-bottom: clamp(40px, 6vw, 80px);
}

.wd-final__title {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.wd-final__text {
    max-width: 440px;
    margin: 20px 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.wd-final .wd-hero__badges {
    margin-top: 36px;
}

.wd-final__phone {
    align-self: end;
    justify-self: center;
    width: min(100%, 300px);
    aspect-ratio: 402 / 760;
    padding: 10px 10px 0;
    border-radius: 44px 44px 0 0;
    background: #000;
    box-shadow: 0 -10px 60px -10px rgba(11, 17, 32, 0.6);
}

.wd-final__phone .wd-phone__screen {
    border-radius: 34px 34px 0 0;
}

.wd-final__phone img {
    width: 100%;
    height: auto;
}

/* Footer */

.wd-footer {
    padding: 72px var(--wd-gutter) 40px;
    background: var(--wd-ink);
    color: var(--wd-text-dim);
    font-size: 15px;
}

.wd-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

.wd-footer__brand p {
    margin: 16px 0 0;
}

.wd-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wd-footer__col h2 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wd-white);
}

.wd-footer__col a {
    width: fit-content;
    transition: color 0.2s;
}

.wd-footer__col a:hover {
    color: var(--wd-white);
}

.wd-footer__bottom {
    padding-top: 28px;
    border-top: 1px solid var(--wd-line);
    font-size: 14px;
    color: rgba(240, 242, 247, 0.45);
}

/* Reveal on scroll */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--wd-ease), transform 0.8s var(--wd-ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js .wd-plan--featured[data-reveal].is-visible {
    transform: translateY(-12px);
}

@media (max-width: 960px) {
    .wd-steps,
    .wd-plans {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .wd-plan--featured,
    .js .wd-plan--featured[data-reveal].is-visible {
        transform: none;
    }

    .wd-faq {
        grid-template-columns: 1fr;
    }

    .wd-faq .wd-head {
        position: static;
        margin-bottom: 8px;
    }

    .wd-final {
        grid-template-columns: 1fr;
    }

    .wd-final__phone {
        width: min(80%, 280px);
    }

    .wd-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .wd-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .wd-fcards {
        grid-template-columns: 1fr;
        gap: 24px;
    }


    .wd-compare__row {
        grid-template-columns: 1fr 84px 92px;
        padding-left: 16px;
    }

    .wd-compare__group {
        padding-left: 16px;
    }

    .wd-deck {
        height: 72%;
        font-size: 15px;
    }

    .wd-final {
        border-radius: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Inner pages */

.wd-pagehead {
    position: relative;
    padding: calc(var(--wd-header-top) + 136px) var(--wd-gutter) 72px;
    background:
        radial-gradient(60% 80% at 90% 0%, rgba(74, 123, 247, 0.28) 0%, transparent 65%),
        var(--wd-ink);
    color: var(--wd-white);
}

.wd-pagehead--post {
    padding-bottom: 0;
    background:
        linear-gradient(var(--wd-ink) 0, var(--wd-ink) calc(100% - 180px), var(--wd-cream) calc(100% - 180px)),
        var(--wd-ink);
}

.wd-pagehead--post::before {
    content: '';
    position: absolute;
    inset: 0 0 180px;
    background: radial-gradient(60% 80% at 90% 0%, rgba(74, 123, 247, 0.28) 0%, transparent 65%);
    pointer-events: none;
}

.wd-pagehead--post > * {
    position: relative;
}

.wd-pagehead__title {
    max-width: 880px;
    margin: 0;
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.wd-pagehead__lead {
    max-width: 620px;
    margin: 22px 0 0;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--wd-text-dim);
    text-wrap: pretty;
}

.wd-pagehead__lead--meta {
    font-size: 15px;
    font-weight: 600;
}

.wd-narrow {
    max-width: 760px;
}

.wd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.wd-chip {
    padding: 8px 16px;
    border: 1px solid var(--wd-line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wd-text-dim);
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.wd-chip:hover {
    color: var(--wd-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.wd-chip.is-active {
    background: var(--wd-white);
    border-color: var(--wd-white);
    color: var(--wd-ink);
}

.wd-chips--light .wd-chip {
    border-color: rgba(11, 17, 32, 0.12);
    color: #5b6680;
}

.wd-chips--light .wd-chip:hover {
    color: var(--wd-ink);
    border-color: rgba(11, 17, 32, 0.3);
}

.wd-section--page {
    padding-top: 72px;
}

.wd-section--article {
    padding-top: 56px;
}

.wd-section--related {
    padding-top: 0;
}

.wd-h2--sm {
    margin-bottom: 36px;
    font-size: clamp(28px, 3vw, 40px);
}

.wd-empty {
    color: #5b6680;
}

/* Meta line */

.wd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7a99;
}

.wd-meta > * + *::before {
    content: '·';
    margin-right: 14px;
    color: currentColor;
    opacity: 0.6;
}

.wd-meta__cat {
    color: var(--wd-blue);
    font-weight: 800;
}

.wd-pagehead .wd-meta {
    margin-bottom: 20px;
    color: var(--wd-text-dim);
}

.wd-pagehead .wd-meta__cat {
    color: var(--wd-blue-soft);
}

/* Covers: a flashcard on a coloured panel */

.wd-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    overflow: hidden;
}

.wd-cover--blue {
    background: linear-gradient(160deg, #6f97ff 0%, #4a7bf7 100%);
}

.wd-cover--ink {
    background: linear-gradient(160deg, #22355f 0%, #121a2e 100%);
}

.wd-cover--lilac {
    background: linear-gradient(160deg, #e6ecff 0%, #cfdaff 100%);
}

.wd-cover--photo,
.wd-cover--xl.wd-cover--photo {
    aspect-ratio: 5 / 3;
    background: var(--wd-ink);
}

.wd-post-cover .wd-cover {
    max-width: 1040px;
    margin: 0 auto;
}

.wd-cover--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd-cover__card {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 46%;
    aspect-ratio: 4 / 3;
    padding: 6%;
    border-radius: 16px;
    background: var(--wd-white);
    color: var(--wd-navy);
    box-shadow: 0 18px 36px -18px rgba(11, 17, 32, 0.55);
    font-size: clamp(16px, 1.7vw, 22px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.15;
    transform: rotate(-4deg);
    transition: transform 0.5s var(--wd-ease);
}

.wd-cover__card small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--wd-blue);
}

.wd-cover__card--back {
    background: var(--wd-ink);
    color: var(--wd-white);
    transform: translate(14%, 8%) rotate(5deg);
}

.wd-cover--ink .wd-cover__card--back {
    background: #2b3f6e;
}

.wd-cover__card--back small {
    color: var(--wd-blue-soft);
}

a:hover .wd-cover__card:not(.wd-cover__card--back) {
    transform: rotate(-1deg) translate(-4%, -3%);
}

.wd-cover--lg .wd-cover__card {
    font-size: clamp(20px, 2.4vw, 32px);
    border-radius: 22px;
}

.wd-cover--xl {
    aspect-ratio: 21 / 9;
    border-radius: 32px;
}

.wd-cover--xl .wd-cover__card {
    width: 30%;
    font-size: clamp(20px, 2.6vw, 36px);
    border-radius: 24px;
}

.wd-post-cover {
    padding-top: 56px;
}

/* Blog list */

.wd-feature-post {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    margin-bottom: clamp(56px, 7vw, 88px);
    padding: 20px;
    border-radius: 32px;
    background: var(--wd-white);
    box-shadow: 0 30px 60px -40px rgba(11, 17, 32, 0.35);
}

.wd-feature-post__cover .wd-cover {
    border-radius: 22px;
}

.wd-feature-post__body {
    padding: 12px 24px 12px 0;
}

.wd-feature-post__title {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.wd-feature-post__excerpt {
    margin: 16px 0 28px;
    color: #5b6680;
}

.wd-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 28px;
}

.wd-post-card__cover {
    display: block;
    margin-bottom: 20px;
}

.wd-post-card__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.wd-post-card__title a,
.wd-feature-post__title a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: background-size 0.35s var(--wd-ease);
}

.wd-post-card__title a:hover,
.wd-feature-post__title a:hover {
    background-size: 100% 2px;
}

.wd-post-card__excerpt {
    margin: 0;
    font-size: 15px;
    color: #5b6680;
}

.pagination {
    margin-top: 72px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 700;
    color: #5b6680;
}

.pagination .page-numbers:hover {
    background: rgba(11, 17, 32, 0.06);
}

.pagination .page-numbers.current {
    background: var(--wd-ink);
    color: var(--wd-white);
}

.pagination .prev svg {
    transform: rotate(180deg);
}

/* Article */

.wd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wd-text-dim);
    transition: color 0.2s;
}

.wd-back svg {
    width: 18px;
    transform: rotate(180deg);
}

.wd-back:hover {
    color: var(--wd-white);
}

.wd-prose {
    max-width: none;
    margin: 0;
    padding: 0;
    color: #2a3550;
    font-size: 18px;
    line-height: 1.75;
}

.wd-prose > * {
    margin: 0 0 1.3em;
}

.wd-prose h2,
.wd-prose h3 {
    color: var(--wd-ink);
    letter-spacing: -0.03em;
    line-height: 1.2;
    scroll-margin-top: 120px;
}

.wd-prose h2 {
    margin-top: 2.2em;
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 800;
}

.wd-prose h3 {
    margin-top: 1.8em;
    font-size: 22px;
    font-weight: 800;
}

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

.wd-prose a {
    color: var(--wd-blue);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.wd-prose strong {
    color: var(--wd-ink);
}

.wd-prose ul,
.wd-prose ol {
    padding-left: 1.3em;
}

.wd-prose li + li {
    margin-top: 0.4em;
}

.wd-prose li::marker {
    color: var(--wd-blue);
    font-weight: 800;
}

.wd-prose blockquote {
    position: relative;
    margin: 2em 0;
    padding: 28px 32px;
    border-radius: 24px;
    background: var(--wd-white);
    box-shadow: 0 24px 48px -30px rgba(11, 17, 32, 0.4);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--wd-ink);
    transform: rotate(-0.6deg);
}

.wd-prose blockquote p {
    margin: 0;
}

.wd-prose blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: #6b7a99;
}

.wd-prose figure {
    margin: 2em 0;
}

.wd-prose img {
    height: auto;
    border-radius: 20px;
}

.wd-prose figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7a99;
    text-align: center;
}

.wd-prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(11, 17, 32, 0.1);
    border-radius: 18px;
    background: var(--wd-white);
    font-size: 16px;
}

.wd-prose th,
.wd-prose td {
    padding: 12px 18px;
    text-align: left;
    border-top: 1px solid rgba(11, 17, 32, 0.08);
}

.wd-prose thead th {
    border-top: 0;
    background: #f3f5fa;
    font-weight: 800;
    color: var(--wd-ink);
}

.wd-prose .wp-block-table {
    overflow-x: auto;
}

.wd-prose code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(11, 17, 32, 0.06);
    font-size: 0.9em;
}

.wd-prose hr {
    margin: 3em 0;
    border: 0;
    border-top: 1px solid rgba(11, 17, 32, 0.1);
}

/* Legal / document pages */

.wd-doc {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.wd-doc--single {
    grid-template-columns: minmax(0, 760px);
}

.wd-toc {
    position: sticky;
    top: calc(var(--wd-header-top) + 96px);
    font-size: 14px;
}

.wd-toc__title {
    margin: 0 0 12px;
    font-weight: 800;
    color: var(--wd-ink);
}

.wd-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 2px solid rgba(11, 17, 32, 0.08);
}

.wd-toc a {
    display: block;
    margin-left: -2px;
    padding: 6px 0 6px 16px;
    border-left: 2px solid transparent;
    font-weight: 600;
    color: #6b7a99;
    transition: color 0.2s, border-color 0.2s;
}

.wd-toc a:hover,
.wd-toc a.is-active {
    color: var(--wd-ink);
    border-left-color: var(--wd-blue);
}

.wd-prose--doc {
    font-size: 17px;
}

.wd-prose--doc h2 {
    margin-top: 2em;
    font-size: 24px;
}

/* 404 */

.wd-notfound {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--wd-header-top) + 100px) var(--wd-gutter) 80px;
    text-align: center;
    background:
        radial-gradient(50% 50% at 50% 30%, rgba(74, 123, 247, 0.3) 0%, transparent 70%),
        var(--wd-ink);
}

.wd-deck--solo {
    height: auto;
    width: min(240px, 60vw);
    margin-bottom: 48px;
}

.wd-notfound__title {
    margin: 0;
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.wd-notfound .wd-pagehead__lead {
    margin-bottom: 36px;
}

@media (max-width: 960px) {
    .wd-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wd-feature-post {
        grid-template-columns: 1fr;
    }

    .wd-feature-post__body {
        padding: 4px 12px 16px;
    }

    .wd-doc {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wd-toc {
        position: static;
        padding: 20px 24px;
        border-radius: 20px;
        background: var(--wd-white);
    }

    .wd-cover--xl {
        aspect-ratio: 16 / 10;
    }

    .wd-cover--xl .wd-cover__card {
        width: 42%;
    }
}

@media (max-width: 600px) {
    .wd-posts {
        grid-template-columns: 1fr;
    }

    .wd-pagehead {
        padding-top: calc(var(--wd-header-top) + 104px);
        padding-bottom: 56px;
    }

    .wd-pagehead--post {
        padding-bottom: 0;
    }

    .wd-prose {
        font-size: 17px;
    }

    .wd-prose blockquote {
        padding: 22px 24px;
        font-size: 19px;
    }
}

/* Contact */

.wd-pagehead__lead p {
    margin: 0;
}

.wd-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.wd-contact__heading {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--wd-ink);
}

.wd-mails {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-mail {
    padding: 22px 24px 24px;
    border-radius: 24px;
    background: var(--wd-white);
    box-shadow: 0 24px 48px -32px rgba(11, 17, 32, 0.45);
    transition: transform 0.4s var(--wd-ease), box-shadow 0.4s var(--wd-ease);
}

.wd-mail:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 56px -30px rgba(11, 17, 32, 0.5);
}

.wd-mail__tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(74, 123, 247, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--wd-blue);
}

.wd-mail__address {
    display: block;
    font-size: clamp(19px, 1.8vw, 22px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wd-ink);
    word-break: break-word;
}

.wd-mail__address:hover {
    color: var(--wd-blue);
}

.wd-mail__text {
    margin: 6px 0 0;
    font-size: 15px;
    color: #5b6680;
}

.wd-contact__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #6b7a99;
}

.wd-contact__note svg {
    width: 18px;
    height: 18px;
    color: var(--wd-blue);
}

.wd-formcard {
    padding: clamp(28px, 4vw, 44px);
    border-radius: 32px;
    background: var(--wd-white);
    box-shadow: 0 30px 60px -40px rgba(11, 17, 32, 0.35);
}

.wd-formcard form {
    display: grid;
    gap: 18px;
}

.wd-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.wd-field {
    display: grid;
    gap: 8px;
}

.wd-field > span:first-child {
    font-size: 14px;
    font-weight: 700;
    color: var(--wd-ink);
}

.wd-field .wpcf7-form-control-wrap {
    display: block;
}

.wd-field input,
.wd-field select,
.wd-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #dfe4ee;
    border-radius: 14px;
    background: #f7f8fc;
    font: inherit;
    font-size: 16px;
    color: var(--wd-ink);
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.wd-field select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.wd-field textarea {
    min-height: 160px;
    resize: vertical;
}

.wd-field input:focus,
.wd-field select:focus,
.wd-field textarea:focus {
    outline: none;
    border-color: var(--wd-blue);
    background-color: var(--wd-white);
    box-shadow: 0 0 0 4px rgba(74, 123, 247, 0.15);
}

.wd-field .wpcf7-not-valid {
    border-color: #ef4444;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
}

.wd-form__foot {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wd-formcard .wpcf7-submit {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.wd-formcard .wpcf7-spinner {
    margin: 0;
}

.wd-formcard .wpcf7-response-output {
    margin: 4px 0 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 14px;
    background: #f3f5fa;
    font-size: 15px;
    font-weight: 600;
}

.wd-formcard .wpcf7 form.sent .wpcf7-response-output {
    background: #dcfce7;
    color: #15803d;
}

.wd-formcard .wpcf7 form.invalid .wpcf7-response-output,
.wd-formcard .wpcf7 form.failed .wpcf7-response-output,
.wd-formcard .wpcf7 form.aborted .wpcf7-response-output {
    background: #fee2e2;
    color: #b91c1c;
}

.wd-formcard .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@media (max-width: 960px) {
    .wd-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .wd-form__row {
        grid-template-columns: 1fr;
    }
}
