:root {
    --color-paper: #fbf7ee;
    --color-cream: #f1ece2;
    --color-sand: #e2dbcf;
    --color-border: #0b0b0b;
    --color-ink: #0b0b0b;
    --color-ink-soft: #625f58;
    --color-night: #0b0b0b;
    --color-agave: #e51b0d;
    --color-agave-dark: #970f08;
    --color-agave-soft: #f7ded8;
    --color-azul: #4f5557;
    --color-azul-soft: #e7e4dd;
    --color-marigold: #e51b0d;
    --color-marigold-soft: #f7ded8;
    --color-terracotta: #e51b0d;
    --color-terracotta-dark: #970f08;
    --color-terracotta-soft: #f7ded8;
    --color-carmine: #e51b0d;
    --shadow-soft: 0 10px 26px -22px rgba(36, 52, 58, 0.34);
    --shadow-card: 0 16px 38px -30px rgba(36, 52, 58, 0.36);
    --shadow-raised: 0 22px 48px -34px rgba(36, 52, 58, 0.42);
    --shadow-glow: 0 16px 38px -30px rgba(38, 114, 103, 0.42);
}

html * {
    letter-spacing: 0 !important;
}

::selection {
    color: #ffffff;
    background: #e51b0d;
}

.site-body {
    color: var(--color-ink);
    background: var(--color-cream);
}

.site-header {
    border-color: #d7e1dd;
    background: rgba(248, 250, 247, 0.96);
    box-shadow: 0 8px 24px -24px rgba(36, 52, 58, 0.48);
}

.site-header > .container,
.site-main.container {
    margin-inline: auto;
}

.site-nav {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding-inline: 1rem;
}

.site-brand,
.site-primary-nav,
.site-account-nav {
    display: flex;
    align-items: center;
}

.site-primary-nav {
    justify-content: center;
    gap: 0.25rem;
}

.site-primary-nav a,
.site-account-link,
.site-account-button {
    padding: 0.55rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-account-nav {
    justify-content: flex-end;
    gap: 0.2rem;
}

.site-account-nav form {
    margin: 0;
}

.site-account-link {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-account-button {
    color: #ffffff;
}

.site-brand-mark,
.site-account-button {
    background: var(--color-agave);
}

.site-brand-mark i {
    background: #f4f7f5 !important;
}

.site-brand-logo {
    display: block;
    width: auto;
    height: 3rem;
    max-width: 13rem;
}

.site-brand-name,
.site-primary-nav a,
.site-account-link {
    color: var(--color-ink);
}

.site-brand-tagline {
    color: var(--color-ink-soft);
}

.site-primary-nav a,
.site-tool-menu-trigger,
.site-account-link,
.site-account-button {
    border-radius: 8px;
    transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.site-primary-nav a:hover,
.site-tool-menu-trigger:hover,
.site-account-link:hover {
    color: var(--color-agave);
    background: #eef4f1;
}

.site-primary-nav > a.is-active,
.site-tool-menu.is-active > .site-tool-menu-trigger,
.site-tool-submenu a.is-active {
    color: var(--color-terracotta-dark);
    background: var(--color-terracotta-soft);
}

.site-tool-menu {
    display: grid;
    align-items: start;
}

.site-tool-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
    color: var(--color-ink);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.site-tool-menu-trigger::-webkit-details-marker {
    display: none;
}

.site-tool-menu-chevron {
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.16s ease;
}

.site-tool-menu[open] .site-tool-menu-chevron {
    transform: translateY(0.1rem) rotate(225deg);
}

.site-tool-submenu {
    display: grid;
    width: 15.5rem;
    margin-top: 0.45rem;
    padding: 0.45rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f5f8f5;
    box-shadow: 0 18px 36px -24px rgba(36, 52, 58, 0.58);
}

.site-tool-submenu a {
    width: 100%;
    padding: 0.65rem 0.75rem;
    text-align: left;
    white-space: normal;
}

.site-account-button:hover {
    background: var(--color-agave-dark);
    box-shadow: 0 10px 22px -16px rgba(38, 114, 103, 0.7);
    transform: translateY(-1px);
}

.site-main {
    color: var(--color-ink);
}

.site-main.container:has(> .home-tool-stage) {
    max-width: none;
}

.home-tool-stage {
    padding: clamp(0.5rem, 1vw, 0.875rem);
    background:
        radial-gradient(circle at 10% 16%, rgba(229, 27, 13, 0.18) 0 8rem, transparent 8.4rem),
        radial-gradient(circle at 90% 78%, rgba(11, 11, 11, 0.08) 0 10rem, transparent 10.4rem),
        linear-gradient(118deg, transparent 0 34%, rgba(229, 27, 13, 0.12) 34.2% 42%, transparent 42.2% 100%),
        radial-gradient(circle, rgba(11, 11, 11, 0.12) 0 1px, transparent 1.2px),
        #eee8dc;
    background-size: auto, auto, 140% 140%, 8px 8px, auto;
    animation: home-tool-backdrop 7s ease-in-out infinite alternate;
}

.site-main > .home-tool-stage {
    animation: home-tool-backdrop 7s ease-in-out infinite alternate;
}

.site-main :where(h1, h2, h3, h4, strong) {
    color: var(--color-ink);
}

.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.ui-button--primary {
    color: #ffffff;
    background: var(--color-terracotta);
}

.ui-button--primary:hover {
    background: var(--color-terracotta-dark);
}

.ui-button--secondary {
    border-color: var(--color-border);
    color: var(--color-ink);
    background: var(--color-paper);
}

.ui-button--secondary:hover {
    background: var(--color-agave-soft);
}

.ui-button--info {
    border-color: #a9c5cf;
    color: #244f61;
    background: #edf6f8;
}

.ui-button--info:hover {
    background: #dbecef;
}

.ui-button--danger {
    border-color: #eab4ad;
    color: #a63a2c;
    background: #fff8f6;
}

.ui-button--danger:hover {
    background: #fce9e5;
}

.ui-button--block {
    width: 100%;
}

.ui-button:disabled,
.ui-button.is-disabled {
    border-color: #d7ddda;
    color: #7d8a86;
    background: #e7ece9;
    cursor: not-allowed;
}

.home-section {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1rem;
    background:
        radial-gradient(circle at 14% 22%, rgba(229, 27, 13, 0.1) 0 9rem, transparent 9.2rem),
        linear-gradient(135deg, rgba(23, 23, 23, 0.035) 0 1px, transparent 1px 28px),
        #fffaf0;
}

.home-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(#171717 1px, transparent 1.35px);
    background-size: 18px 18px;
    opacity: 0.06;
    transform: translateZ(0);
}

.home-section--intro {
    isolation: isolate;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background:
        linear-gradient(112deg, rgba(255, 250, 240, 0.94), rgba(255, 245, 224, 0.9)),
        radial-gradient(circle at 82% 18%, rgba(233, 75, 53, 0.16) 0 8rem, transparent 8.2rem),
        radial-gradient(circle at 16% 78%, rgba(11, 11, 11, 0.06) 0 10rem, transparent 10.2rem),
        #fffaf0;
    background-size: auto, 120% 120%, 130% 130%, auto;
    animation: home-hero-wash 18s ease-in-out infinite alternate;
}

.home-section--intro::before {
    inset: -8%;
    background:
        radial-gradient(#171717 1px, transparent 1.35px),
        radial-gradient(circle at 78% 22%, rgba(229, 27, 13, 0.12) 0 8rem, transparent 8.2rem);
    background-size: 18px 18px, auto;
    opacity: 0.07;
    animation: home-halftone-scroll 22s linear infinite;
}

.home-section--intro::after,
.home-section--showcase::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        linear-gradient(70deg, transparent 0 38%, rgba(23, 23, 23, 0.14) 38.2% 38.7%, transparent 39% 100%),
        linear-gradient(82deg, transparent 0 48%, rgba(229, 27, 13, 0.12) 48.2% 49%, transparent 49.2% 100%),
        linear-gradient(110deg, transparent 0 58%, rgba(233, 75, 53, 0.16) 58.2% 59%, transparent 59.2% 100%);
    opacity: 0.34;
    animation: home-hero-speed-lines 11s linear infinite;
    z-index: -1;
}

.home-section--muted {
    background:
        radial-gradient(circle at 88% 24%, rgba(11, 11, 11, 0.07) 0 8rem, transparent 8.2rem),
        linear-gradient(135deg, rgba(23, 23, 23, 0.035) 0 1px, transparent 1px 28px),
        #fff2d8;
}

.home-section__inner {
    position: relative;
    z-index: 1;
    width: min(72rem, 100%);
    margin-inline: auto;
}

.home-section__heading {
    max-width: 48rem;
}

.home-eyebrow,
.pricing-eyebrow {
    color: #e94b35;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-title {
    max-width: 56rem;
    margin-top: 0.75rem;
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

.home-lede {
    max-width: 48rem;
    margin-top: 1rem;
    color: #3a332f;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-section .ui-button {
    border: 2px solid #171717;
    box-shadow: 4px 4px 0 #171717;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease,
        box-shadow 0.16s ease;
}

.home-section .ui-button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 #171717;
}

.home-section .ui-button--primary {
    color: #ffffff;
    background: #e51b0d;
}

.home-section .ui-button--primary:hover {
    background: #b9140b;
}

.home-section .ui-button--secondary {
    background: #fffdf5;
}

.home-heading,
.pricing-section-title {
    margin-top: 0.75rem;
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    text-wrap: balance;
}

.home-card-grid,
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

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

.home-card,
.home-step,
.home-faq-item {
    position: relative;
    border: 2px solid #171717;
    border-radius: 2px;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 90% 12%, rgba(229, 27, 13, 0.1) 0 3.5rem, transparent 3.7rem),
        #fffdf5;
    box-shadow: 8px 8px 0 #171717;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-card::after,
.home-step::after,
.home-faq-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 0;
    background-image: radial-gradient(#171717 0.8px, transparent 1.2px);
    background-size: 12px 12px;
    opacity: 0.035;
}

.home-card:hover,
.home-step:hover,
.home-faq-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 11px 11px 0 #171717;
}

.home-step {
    background:
        linear-gradient(135deg, rgba(11, 11, 11, 0.06), transparent 52%),
        #fffdf5;
}

.home-card__index {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.55rem;
    border: 2px solid #171717;
    border-radius: 1px;
    color: #ffffff;
    background: #e51b0d;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.home-card__title {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
}

.home-card__copy,
.home-step p,
.home-faq-item p {
    margin-top: 0.5rem;
    color: #3a332f;
    font-size: 0.875rem;
    line-height: 1.6;
}

.home-comparison {
    display: grid;
    margin-top: 2rem;
    border: 3px solid #171717;
    background: #fffdf5;
    box-shadow: 8px 8px 0 #171717;
}

.home-comparison__header,
.home-comparison__row {
    display: grid;
    grid-template-columns: minmax(9rem, 0.5fr) repeat(2, minmax(0, 1fr));
}

.home-comparison__header {
    color: #ffffff;
    background: #171717;
}

.home-comparison__header > p {
    display: grid;
    align-content: center;
    gap: 0.25rem;
    margin: 0;
    padding: 1rem 1.25rem;
    font-weight: 800;
}

.home-comparison__header > p + p {
    border-left: 2px solid #fffdf5;
}

.home-comparison__header strong {
    color: inherit;
    font-size: 1.05rem;
}

.home-comparison__header span {
    color: #d8d2c8;
    font-size: 0.75rem;
    font-weight: 600;
}

.home-comparison__header .home-comparison__header-product {
    background: #e51b0d;
}

.home-comparison__header-product span {
    color: #ffffff;
}

.home-comparison__row {
    border-top: 2px solid #171717;
}

.home-comparison__row > h3 {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 1.25rem;
    background: #ede5d8;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.home-comparison__row > * + * {
    border-left: 2px solid #171717;
}

.home-comparison__cell {
    padding: 1.25rem;
}

.home-comparison__cell--ordinary {
    background: #f5f1e9;
}

.home-comparison__cell--product {
    background: #fffdf5;
}

.home-comparison__cell h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.home-comparison__cell--product h4 {
    color: #b9140b;
}

.home-comparison__cell > p:not(.home-comparison__mobile-label) {
    margin-top: 0.5rem;
    color: #3a332f;
    font-size: 0.875rem;
    line-height: 1.65;
}

.home-comparison__mobile-label {
    display: none;
}

.home-faq {
    width: min(56rem, 100%);
    margin-inline: auto;
}

.home-faq-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.home-faq-item summary {
    font-weight: 700;
    cursor: pointer;
}

.home-section--showcase {
    padding-top: 3.5rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(233, 75, 53, 0.13) 0 9rem, transparent 9.3rem),
        radial-gradient(circle at 84% 70%, rgba(11, 11, 11, 0.08) 0 10rem, transparent 10.4rem),
        #fffaf0;
}

.home-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.home-showcase__copy {
    min-width: 0;
}

.home-section-visual {
    width: min(52rem, 100%);
    margin: 2rem auto 0;
    overflow: hidden;
    border: 3px solid #171717;
    border-radius: 2px;
    background: #fffdf5;
    box-shadow: 8px 8px 0 #171717;
}

.home-section-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.home-manga-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1rem;
    perspective: 1200px;
}

.home-manga-sample {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 3px solid #171717;
    border-radius: 2px;
    background: #fffdf5;
    box-shadow: 10px 10px 0 #171717;
    transform: rotate(-1.2deg);
}

.home-manga-sample:nth-child(2) {
    transform: rotate(1.6deg) translateY(0.75rem);
}

.home-manga-sample:nth-child(3) {
    transform: rotate(-0.7deg) translateY(-0.25rem);
}

.home-manga-sample--large {
    grid-column: 1 / -1;
}

.home-manga-sample img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.home-manga-sample--large img {
    height: auto;
}

.home-manga-sample figcaption {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.35rem 0.65rem;
    border: 2px solid #171717;
    border-radius: 1px;
    color: #171717;
    background: #fffdf5;
    font-size: 0.8125rem;
    font-weight: 800;
    box-shadow: 3px 3px 0 #171717;
}

.home-manga-sample::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(105deg, transparent 0 72%, rgba(255, 255, 255, 0.38) 75%, transparent 80%),
        radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.34), transparent 28%);
    opacity: 0;
    animation: home-panel-glint 6s ease-in-out infinite;
}

.pricing-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    width: min(72rem, 100%);
    margin-inline: auto;
    padding: 2rem 1rem 4rem;
}

.pricing-page > * {
    min-width: 0;
}

.pricing-hero,
.pricing-pack,
.pricing-callout {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: #f7f9f6;
    box-shadow: var(--shadow-soft);
}

.pricing-title {
    max-width: 56rem;
    margin-top: 0.75rem;
    font-size: clamp(2.25rem, 5vw, 3rem);
    line-height: 1.1;
}

.pricing-lede {
    max-width: 48rem;
    margin-top: 1.25rem;
    color: #405851;
    font-size: 1.125rem;
    line-height: 1.75;
}

.pricing-badges,
.pricing-hero-action,
.pricing-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.pricing-badges {
    margin-top: 1.5rem;
}

.pricing-badge {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d9b8ad;
    border-radius: 6px;
    color: #864134;
    background: #fff4f1;
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-badge--info {
    border-color: #b1ced6;
    color: #285466;
    background: #edf6f8;
}

.pricing-badge--warning {
    border-color: #dfc789;
    color: #745716;
    background: #fff9e8;
}

.pricing-hero-action {
    margin-top: 1.75rem;
}

.pricing-hero-action span,
.pricing-section-copy,
.pricing-card__description,
.pricing-card__note,
.pricing-pack__copy,
.pricing-faq p,
.pricing-callout p {
    color: #526864;
    font-size: 0.875rem;
    line-height: 1.75;
}

.pricing-section-copy {
    max-width: 48rem;
    margin-top: 0.75rem;
}

.pricing-table-wrap {
    margin-top: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-paper);
}

.pricing-table {
    width: 100%;
    min-width: 36rem;
    text-align: left;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem 1rem;
}

.pricing-table th {
    background: #e9f0ed;
    font-size: 0.875rem;
}

.pricing-table tbody tr + tr {
    border-top: 1px solid var(--color-border);
}

.pricing-table td {
    color: #405851;
    font-size: 0.875rem;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
    text-align: right;
    font-weight: 700;
}

.pricing-plans {
    display: grid;
    gap: 1.5rem;
}

.pricing-plans__intro,
.pricing-callout {
    text-align: center;
}

.pricing-plans__intro .pricing-section-title {
    margin-top: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f7f9f6;
    box-shadow: var(--shadow-soft);
}

.pricing-card.is-recommended {
    border-color: #d78d7c;
    background: #fff4f1;
}

.pricing-card__header,
.pricing-pack__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card__header h3 {
    font-size: 1.5rem;
}

.pricing-card__recommendation {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: #ffffff;
    background: var(--color-terracotta);
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card__description {
    margin-top: 0.75rem;
}

.pricing-card__price {
    margin-top: 1.25rem;
    padding-block: 1.25rem;
    border-block: 1px solid var(--color-border);
}

.pricing-price-row {
    align-items: flex-end;
    gap: 0.5rem;
}

.pricing-card__price-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.pricing-card__price-unit {
    padding-bottom: 0.25rem;
    color: var(--color-ink-soft);
    font-size: 0.875rem;
}

.pricing-card__saving {
    margin-top: 0.5rem;
    color: var(--color-terracotta-dark);
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-card__fine-print {
    margin-top: 0.25rem;
    color: var(--color-ink-soft);
    font-size: 0.75rem;
}

.pricing-card__credits {
    margin-top: 1.25rem;
}

.pricing-card__credits strong {
    font-size: 1.5rem;
}

.pricing-card__note {
    margin-top: 0.5rem;
}

.pricing-card__features {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: #405851;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pricing-card__actions {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.75rem;
}

.pricing-pack {
    border-color: #b1ced6;
    background: #edf6f8;
}

.pricing-pack__copy h2 {
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.pricing-pack__copy p {
    margin-top: 0.75rem;
}

.pricing-pack__purchase {
    min-width: 14rem;
    padding: 1.25rem;
    border: 1px solid #b1ced6;
    border-radius: 8px;
    text-align: center;
    background: var(--color-paper);
}

.pricing-pack__price {
    font-size: 1.875rem;
    font-weight: 700;
}

.pricing-pack__credits {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-pack__expiry {
    margin-top: 0.25rem;
    color: var(--color-ink-soft);
    font-size: 0.75rem;
}

.pricing-pack__purchase .ui-button {
    margin-top: 1rem;
}

.pricing-faq-list {
    margin-top: 1.5rem;
    padding-inline: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f7f9f6;
}

.pricing-faq-list details {
    padding-block: 1.25rem;
}

.pricing-faq-list details + details {
    border-top: 1px solid var(--color-border);
}

.pricing-faq-list summary {
    font-weight: 700;
    cursor: pointer;
}

.pricing-faq-list p {
    margin-top: 0.75rem;
}

.pricing-callout {
    border-color: #dfc789;
    background: #fff9e8;
}

.pricing-callout p {
    max-width: 48rem;
    margin: 1rem auto 0;
}

.pricing-callout .ui-button {
    margin-top: 1.5rem;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 16rem);
    place-items: center;
    width: min(28rem, 100%);
    margin-inline: auto;
    padding: 3rem 1rem;
}

.auth-card {
    width: 100%;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-paper);
    box-shadow: var(--shadow-soft);
}

.auth-provider-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.5rem;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-paper);
}

.auth-provider-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.auth-title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.35;
}

.auth-title--center,
.auth-lede--center,
.auth-note,
.auth-footer {
    text-align: center;
}

.auth-lede,
.auth-note,
.auth-footer {
    color: var(--color-ink-soft);
    font-size: 0.875rem;
    line-height: 1.6;
}

.auth-lede {
    margin-bottom: 1.5rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.5rem;
}

.auth-label,
.auth-label-row {
    color: var(--color-ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-control {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.auth-link {
    color: var(--color-agave);
    font-weight: 600;
}

.auth-link:hover {
    color: var(--color-agave-dark);
}

.auth-divider {
    margin-block: 1.5rem;
}

.auth-divider span {
    padding-inline: 0.75rem;
    color: #89938f;
    background: var(--color-paper);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #a63a2c;
    background: #fff0ed;
    font-size: 0.875rem;
}

.auth-footer,
.auth-note {
    margin-top: 1.5rem;
}

.dashboard {
    display: grid;
    gap: 2rem;
    width: min(72rem, 100%);
    margin-inline: auto;
    padding: 2rem 1rem 4rem;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-header h1 {
    font-size: 1.5rem;
}

.dashboard-header p {
    margin-top: 0.5rem;
    color: var(--color-ink-soft);
    font-size: 0.875rem;
}

.dashboard-balances {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-balance,
.dashboard-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-paper);
}

.dashboard-balance {
    padding: 1rem;
}

.dashboard-balance__label {
    color: var(--color-ink-soft);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-balance__value {
    margin-top: 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.dashboard-balance__unit {
    margin-top: 0.25rem;
    color: var(--color-ink-soft);
    font-size: 0.875rem;
}

.dashboard-balance__hint {
    margin-top: 0.5rem;
    color: var(--color-ink-soft);
    font-size: 0.75rem;
    line-height: 1.4;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: 1.5rem;
}

.dashboard-main,
.dashboard-sidebar {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.dashboard-card__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-card__header h2,
.dashboard-card > h2 {
    font-size: 1rem;
}

.dashboard-card--padded {
    padding: 1.25rem;
}

.dashboard-list > * + * {
    border-top: 1px solid #e7ece9;
}

.dashboard-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.dashboard-list__title {
    font-weight: 600;
}

.dashboard-list__meta,
.dashboard-empty,
.dashboard-payment__status {
    color: var(--color-ink-soft);
    font-size: 0.875rem;
}

.dashboard-empty {
    padding: 2rem 1.25rem;
}

.dashboard-status {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: #405851;
    background: #e9f0ed;
    font-size: 0.75rem;
    font-weight: 700;
}

.dashboard-payment {
    text-align: right;
}

.dashboard-payment__amount {
    font-weight: 700;
}

.dashboard-details,
.dashboard-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dashboard-details > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
}

.dashboard-details dt {
    color: var(--color-ink-soft);
}

.dashboard-details dd {
    text-align: right;
    font-weight: 600;
}

.dashboard-message {
    padding: 0.75rem;
    border-radius: 6px;
    color: #745716;
    background: #fff9e8;
    font-size: 0.875rem;
    line-height: 1.5;
}

.dashboard-message[hidden] {
    display: none;
}

.article-index,
.article-list,
.article-pagination {
    width: min(64rem, 100%);
    margin-inline: auto;
}

.article-index {
    display: grid;
    gap: 0.75rem;
    padding: 2rem 1rem 0;
}

.article-eyebrow {
    color: var(--color-terracotta-dark);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-index h1,
.article-detail h1 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    line-height: 1.2;
}

.article-index__description {
    max-width: 48rem;
    color: var(--color-ink-soft);
    line-height: 1.75;
}

.article-list {
    display: grid;
    gap: 1.5rem;
    padding: 2.5rem 1rem 0;
}

.article-card {
    overflow: hidden;
    display: grid;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-paper);
    box-shadow: var(--shadow-soft);
}

.article-card__cover {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.article-card__body {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.article-card__date,
.article-detail__meta,
.article-pagination,
.article-empty {
    color: var(--color-ink-soft);
    font-size: 0.875rem;
}

.article-card h2 {
    font-size: 1.5rem;
}

.article-card__excerpt {
    color: var(--color-ink-soft);
    line-height: 1.75;
}

.article-card__link {
    color: var(--color-terracotta-dark);
    font-size: 0.875rem;
    font-weight: 700;
}

.article-empty {
    padding: 2rem;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    background: var(--color-paper);
}

.article-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.5rem 1rem 4rem;
}

.article-pagination__link,
.article-pagination__disabled {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.article-pagination__disabled {
    color: #aab3af;
}

.article-detail {
    width: min(48rem, calc(100% - 2rem));
    margin: 2rem auto 4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-paper);
    box-shadow: var(--shadow-soft);
}

.article-detail__header {
    display: grid;
    gap: 1.25rem;
}

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

.article-detail__cover {
    overflow: hidden;
    border-radius: 8px;
}

.article-detail__cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-detail__body {
    margin-top: 2rem;
    line-height: 1.8;
}

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

.article-detail__body :where(h2, h3, h4) {
    line-height: 1.4;
}

.article-detail__body h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.5rem;
}

.article-detail__body h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.article-detail__body :where(ul, ol) {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.5rem;
}

.article-detail__body ul {
    list-style: disc;
}

.article-detail__body ol {
    list-style: decimal;
}

.article-detail__body :where(a) {
    color: var(--color-terracotta-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-detail__body :where(img, video) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-detail__body :where(blockquote, pre) {
    overflow-x: auto;
    padding: 1rem;
    border-left: 3px solid var(--color-agave);
    border-radius: 0 8px 8px 0;
    background: var(--color-cream);
}

.article-detail__body :where(code) {
    overflow-wrap: anywhere;
    font-size: 0.9em;
}

.policy-hero {
    padding: 3rem 1rem;
    background: #eef4f1;
}

.policy-hero__inner,
.policy-body {
    width: min(56rem, 100%);
    margin-inline: auto;
}

.policy-label {
    color: var(--color-ink-soft);
    font-size: 0.875rem;
    font-weight: 700;
}

.policy-title {
    margin-top: 1rem;
    font-size: clamp(1.875rem, 5vw, 3rem);
}

.policy-intro {
    max-width: 48rem;
    margin-top: 1rem;
    color: #405851;
    font-size: 1.125rem;
    line-height: 1.75;
}

.policy-section {
    padding: 3rem 1rem 4rem;
    background: var(--color-paper);
}

.policy-body {
    display: grid;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.policy-body section {
    display: grid;
    gap: 0.75rem;
}

.policy-body h2 {
    font-size: 1.25rem;
}

.policy-body p,
.policy-body table {
    color: #405851;
    font-size: 0.875rem;
    line-height: 1.75;
}

.policy-body a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-table-wrap {
    overflow-x: auto;
}

.policy-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    text-align: left;
}

.policy-table th,
.policy-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.policy-table th {
    color: var(--color-ink);
}

.policy-table code {
    font-size: 0.75rem;
}

.policy-updated {
    color: var(--color-ink-soft);
    font-size: 0.75rem;
}

.site-footer {
    border-top-color: #b9cbc4;
    color: #526864;
    background: #e2ebe7;
}

.site-footer-brand,
.site-footer h3 {
    color: var(--color-ink);
}

.site-footer a:not(.site-footer-brand),
.site-footer p {
    color: #526864;
}

.site-footer a:not(.site-footer-brand) {
    transition: color 0.16s ease, background-color 0.16s ease;
}

.site-footer a:not(.site-footer-brand):hover {
    color: var(--color-terracotta-dark);
}

.site-footer-bottom {
    border-color: #b9cbc4;
}

/* Shared manga-style surfaces outside the core editor. */
.site-body {
    background:
        radial-gradient(circle at 8% 16%, rgba(229, 27, 13, 0.09) 0 9rem, transparent 9.2rem),
        radial-gradient(circle at 92% 36%, rgba(11, 11, 11, 0.05) 0 10rem, transparent 10.2rem),
        linear-gradient(135deg, rgba(23, 23, 23, 0.03) 0 1px, transparent 1px 28px),
        #fffaf0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 3px solid #171717;
    background:
        radial-gradient(circle at 92% 20%, rgba(229, 27, 13, 0.1) 0 4.4rem, transparent 4.6rem),
        rgba(255, 253, 245, 0.96);
    box-shadow: 0 8px 0 rgba(23, 23, 23, 0.08);
    backdrop-filter: blur(12px);
}

.site-primary-nav a,
.site-tool-menu-trigger,
.site-account-link,
.site-account-button {
    border: 2px solid transparent;
    color: #171717;
    font-weight: 800;
}

.site-primary-nav a:hover,
.site-tool-menu-trigger:hover,
.site-account-link:hover {
    border-color: #171717;
    color: #171717;
    background: #fffdf5;
    box-shadow: 3px 3px 0 #171717;
    transform: translate(-1px, -1px);
}

.site-primary-nav > a.is-active,
.site-tool-menu.is-active > .site-tool-menu-trigger,
.site-tool-submenu a.is-active {
    border-color: #171717;
    color: #ffffff;
    background: #e51b0d;
    box-shadow: 3px 3px 0 #171717;
}

.site-account-button {
    border: 2px solid #171717;
    color: #ffffff;
    background: #e51b0d;
    box-shadow: 4px 4px 0 #171717;
}

.site-account-button:hover {
    color: #ffffff;
    background: #b9140b;
    box-shadow: 6px 6px 0 #171717;
}

.site-tool-submenu {
    border: 2px solid #171717;
    background: #fffdf5;
    box-shadow: 8px 8px 0 #171717;
}

.pricing-page,
.dashboard,
.article-index,
.article-list,
.article-pagination,
.article-detail,
.auth-page,
.policy-section {
    position: relative;
}

.pricing-page::before,
.dashboard::before,
.article-index::before,
.auth-page::before,
.policy-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(#171717 1px, transparent 1.3px);
    background-size: 18px 18px;
    opacity: 0.045;
}

.pricing-page > *,
.dashboard > *,
.article-index > *,
.article-list > *,
.article-pagination > *,
.auth-page > *,
.policy-section > * {
    position: relative;
    z-index: 1;
}

.pricing-page,
.dashboard,
.article-index,
.article-list,
.article-pagination,
.policy-section {
    background: transparent;
}

.pricing-hero,
.pricing-pack,
.pricing-callout,
.pricing-card,
.pricing-table-wrap,
.pricing-faq-list,
.auth-card,
.auth-provider-icon,
.dashboard-balance,
.dashboard-card,
.article-card,
.article-detail,
.article-empty,
.policy-body {
    border: 2px solid #171717;
    border-radius: 2px;
    background:
        radial-gradient(circle at 92% 12%, rgba(229, 27, 13, 0.09) 0 4rem, transparent 4.2rem),
        #fffdf5;
    box-shadow: 8px 8px 0 #171717;
}

.pricing-hero,
.auth-card,
.article-detail,
.policy-body {
    background:
        radial-gradient(circle at 88% 16%, rgba(233, 75, 53, 0.1) 0 5.6rem, transparent 5.8rem),
        radial-gradient(circle at 12% 82%, rgba(11, 11, 11, 0.05) 0 6rem, transparent 6.2rem),
        #fffdf5;
}

.pricing-title,
.auth-title,
.dashboard-header h1,
.article-index h1,
.article-detail h1,
.policy-title {
    font-weight: 800;
    color: #171717;
    text-wrap: balance;
}

.pricing-lede,
.pricing-hero-action span,
.pricing-section-copy,
.pricing-card__description,
.pricing-card__note,
.pricing-pack__copy,
.pricing-faq p,
.pricing-callout p,
.auth-lede,
.auth-note,
.auth-footer,
.dashboard-header p,
.dashboard-list__meta,
.dashboard-empty,
.dashboard-payment__status,
.dashboard-details dt,
.article-index__description,
.article-card__date,
.article-detail__meta,
.article-pagination,
.article-empty,
.article-card__excerpt,
.policy-intro,
.policy-body p,
.policy-body table {
    color: #3a332f;
}

.pricing-badge,
.pricing-card__recommendation,
.dashboard-status,
.article-eyebrow,
.policy-label {
    border: 2px solid #171717;
    border-radius: 1px;
    color: #ffffff;
    background: #e51b0d;
    box-shadow: 3px 3px 0 #171717;
    font-weight: 800;
}

.pricing-badge--info {
    color: #171717;
    background: #dff1ff;
}

.pricing-badge--warning {
    color: #171717;
    background: #fff4c7;
}

.pricing-card.is-recommended {
    border-color: #171717;
    background:
        radial-gradient(circle at 92% 10%, rgba(233, 75, 53, 0.18) 0 4rem, transparent 4.2rem),
        #fff5ea;
}

.pricing-card__price,
.dashboard-card__header,
.dashboard-list > * + *,
.pricing-table tbody tr + tr,
.pricing-faq-list details + details,
.policy-table th,
.policy-table td,
.article-detail__body h2 {
    border-color: #171717;
}

.pricing-table th {
    color: #ffffff;
    background: #e51b0d;
}

.pricing-table td,
.pricing-card__features {
    color: #3a332f;
}

.pricing-pack {
    background:
        radial-gradient(circle at 92% 12%, rgba(11, 11, 11, 0.07) 0 4rem, transparent 4.2rem),
        #f3eee4;
}

.pricing-callout,
.dashboard-message {
    background: #fff4c7;
}

.pricing-pack__purchase,
.auth-control,
.article-pagination__link,
.article-pagination__disabled {
    border: 2px solid #171717;
    border-radius: 2px;
    background: #fffdf5;
}

.auth-control:focus {
    border-color: #171717 !important;
    outline: 3px solid rgba(229, 27, 13, 0.22);
}

.auth-divider span {
    color: #171717;
    background: #fffdf5;
    font-weight: 800;
}

.auth-link,
.article-card__link,
.article-detail__body :where(a),
.policy-body a {
    color: #a83f2e;
    font-weight: 800;
}

.dashboard-balance__label {
    color: #171717;
}

.dashboard-balance__value,
.pricing-card__price-value {
    color: #e94b35;
}

.article-card {
    overflow: hidden;
}

.article-card__cover,
.article-detail__cover,
.article-detail__body :where(img, video) {
    border: 2px solid #171717;
    border-radius: 2px;
}

.article-detail__body :where(blockquote, pre) {
    border: 2px solid #171717;
    border-left-width: 8px;
    background: #fff8df;
}

.policy-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #171717;
    background:
        radial-gradient(circle at 82% 20%, rgba(233, 75, 53, 0.13) 0 9rem, transparent 9.2rem),
        linear-gradient(135deg, rgba(23, 23, 23, 0.035) 0 1px, transparent 1px 28px),
        #fff2d8;
}

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 3px solid #171717;
    color: #3a332f;
    background:
        radial-gradient(circle at 4% 12%, rgba(229, 27, 13, 0.08) 0 7rem, transparent 7.2rem),
        linear-gradient(135deg, rgba(23, 23, 23, 0.028) 0 1px, transparent 1px 28px),
        #fff8e8;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(#171717 1px, transparent 1.3px);
    background-size: 18px 18px;
    opacity: 0.055;
}

.site-footer-inner {
    position: relative;
    z-index: 1;
    padding-block: 2.25rem 1.25rem;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 1.15fr) repeat(3, minmax(10rem, 1fr));
    gap: 2.5rem;
    align-items: start;
    padding: 1.4rem;
    border: 2px solid #171717;
    border-radius: 2px;
    background: rgba(255, 253, 245, 0.88);
    box-shadow: 6px 6px 0 #171717;
}

.site-footer-about {
    max-width: 26rem;
    padding-right: 1.25rem;
    border-right: 2px solid rgba(23, 23, 23, 0.16);
}

.site-footer ul {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.8rem;
    padding: 0;
    list-style: none;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.35rem 0.7rem;
    border: 2px solid #171717;
    border-radius: 1px;
    color: #ffffff;
    background: #e51b0d;
    box-shadow: 3px 3px 0 #171717;
    font-weight: 900;
    text-decoration: none;
}

.site-footer h3 {
    display: block;
    margin: 0 0 0.8rem;
    padding: 0 0 0.45rem;
    border-bottom: 2px solid #171717;
    border-radius: 0;
    color: #171717;
    background: transparent;
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 900;
}

.site-footer a:not(.site-footer-brand),
.site-footer p {
    color: #3a332f;
}

.site-footer-about p {
    max-width: 28rem;
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-footer a:not(.site-footer-brand) {
    display: inline-flex;
    width: fit-content;
    padding-block: 0.08rem;
    color: #3a332f;
    font-size: 0.92rem;
    line-height: 1.55;
    text-decoration: none;
}

.site-footer a:not(.site-footer-brand):hover {
    color: #171717;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.site-footer-bottom {
    border-color: #171717;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(23, 23, 23, 0.24);
    color: #5b524b;
    font-size: 0.82rem;
}

@keyframes home-hero-wash {
    from {
        background-position: 0 0, 100% 8%, 0 100%, 0 0;
    }
    to {
        background-position: 0 0, 70% 16%, 18% 82%, 0 0;
    }
}

@keyframes home-tool-backdrop {
    from {
        background-position: 10% 16%, 90% 78%, 0 0, 0 0, 0 0;
    }
    to {
        background-position: 18% 22%, 82% 72%, 100% 100%, 8px 8px, 0 0;
    }
}

@keyframes home-halftone-scroll {
    from {
        transform: translate3d(-0.6rem, -0.4rem, 0);
    }
    to {
        transform: translate3d(1.1rem, 0.8rem, 0);
    }
}

@keyframes home-hero-speed-lines {
    from {
        transform: translate3d(-2.5rem, -1rem, 0) skewX(-1deg);
    }
    to {
        transform: translate3d(2.5rem, 1rem, 0) skewX(1deg);
    }
}

@keyframes home-panel-glint {
    0%,
    72%,
    100% {
        opacity: 0;
        transform: translateX(-32%);
    }
    82% {
        opacity: 1;
        transform: translateX(18%);
    }
}

@media (max-width: 820px) {
    .site-nav {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.35rem 0.75rem;
        padding: 0.5rem 0.75rem 0.65rem;
    }

    .site-primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-primary-nav::-webkit-scrollbar {
        display: none;
    }

    .site-account-nav {
        grid-column: 2;
        grid-row: 1;
    }

    .site-account-link,
    .site-account-button {
        padding: 0.45rem 0.55rem;
        font-size: 0.75rem;
    }

    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.25rem;
    }

    .site-footer-grid > div {
        min-width: 0;
    }

    .site-footer-about,
    .site-footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .site-footer-grid a {
        overflow-wrap: anywhere;
    }

    .home-card-grid,
    .home-steps,
    .pricing-grid,
    .dashboard-balances {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-showcase {
        grid-template-columns: 1fr;
    }

    .home-comparison {
        box-shadow: 6px 6px 0 #171717;
    }

    .home-comparison__header {
        display: none;
    }

    .home-comparison__row {
        grid-template-columns: 1fr;
    }

    .home-comparison__row > h3 {
        padding: 0.8rem 1rem;
        color: #ffffff;
        background: #171717;
    }

    .home-comparison__row > * + * {
        border-left: 0;
        border-top: 2px solid #171717;
    }

    .home-comparison__cell {
        padding: 1rem;
    }

    .home-comparison__mobile-label {
        display: inline-flex;
        margin: 0 0 0.55rem;
        padding: 0.25rem 0.5rem;
        border: 2px solid #171717;
        color: #171717;
        background: #ffffff;
        font-size: 0.75rem;
        font-weight: 800;
        line-height: 1;
    }

    .home-comparison__cell--product .home-comparison__mobile-label {
        color: #ffffff;
        background: #e51b0d;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-brand-logo {
        height: 2.65rem;
        max-width: 12rem;
    }

    .site-tool-menu {
        grid-column: 1 / -1;
        order: 5;
        width: 100%;
    }

    .site-primary-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, auto));
        justify-content: space-between;
        gap: 0.15rem;
        overflow: visible;
    }

    .site-primary-nav a {
        min-width: 0;
        padding: 0.45rem 0.35rem;
        font-size: 0.72rem;
        text-align: center;
    }

    .site-tool-menu-trigger {
        justify-content: center;
        width: 100%;
        border: 1px solid rgba(203, 216, 211, 0.78);
        padding: 0.55rem 0.4rem;
        background: rgba(243, 246, 244, 0.9);
        white-space: normal;
    }

    .site-tool-submenu {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-top: 0.35rem;
        transform: none;
    }

    .site-tool-submenu a {
        min-width: 0;
        padding: 0.65rem 0.4rem;
        text-align: center;
    }

    .home-section {
        padding-block: 3rem;
    }

    .home-card-grid,
    .home-steps,
    .home-manga-gallery,
    .pricing-grid,
    .dashboard-balances,
    .pricing-pack__layout {
        grid-template-columns: 1fr;
    }

    .home-manga-sample,
    .home-manga-sample:nth-child(2),
    .home-manga-sample:nth-child(3) {
        transform: none;
    }

    .home-manga-sample--large {
        grid-column: auto;
        grid-row: auto;
    }

    .home-section-visual {
        border-width: 2px;
        box-shadow: 5px 5px 0 #171717;
    }

    .pricing-page,
    .dashboard {
        padding-inline: 0.75rem;
    }

    .pricing-pack__purchase {
        min-width: 0;
    }

    .dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-card,
    .policy-body {
        padding: 1.25rem;
    }

    .article-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-tool-stage,
    .home-card,
    .home-step,
    .home-section--intro,
    .home-section--intro::before,
    .home-section--intro::after,
    .home-section--showcase::after,
    .home-manga-sample::after,
    .article-card,
    .pricing-card,
    .site-primary-nav a,
    .site-tool-menu-trigger,
    .site-tool-menu-chevron,
    .site-account-link,
    .site-account-button {
        animation: none !important;
        transition: none !important;
    }
}
